Skip to content

Latest commit

 

History

History
163 lines (127 loc) · 7.36 KB

documentdb-sdk-python.md

File metadata and controls

163 lines (127 loc) · 7.36 KB
title description services documentationcenter author manager editor ms.assetid ms.service ms.workload ms.tgt_pltfrm ms.devlang ms.topic ms.date ms.author ms.custom
Azure Cosmos DB Python API, SDK & Resources | Microsoft Docs
Learn all about the Python API and SDK including release dates, retirement dates, and changes made between each version of the Azure Cosmos DB Python SDK.
cosmos-db
python
rnagpal
jhubbard
cgronlun
3ac344a9-b2fa-4a3f-a4cc-02d287e05469
cosmos-db
data-services
na
python
article
11/14/2017
rnagpal
H1Hack27Feb2017

Azure Cosmos DB Python SDK: Release notes and resources

[!div class="op_single_selector"]

**Download SDK**[PyPI](https://pypi.python.org/pypi/pydocumentdb)
**API documentation**[Python API reference documentation](http://azure.github.io/azure-documentdb-python/api/pydocumentdb.html)
**SDK installation instructions**[Python SDK installation instructions](http://azure.github.io/azure-documentdb-python/)
**Contribute to SDK**[GitHub](https://github.com/Azure/azure-documentdb-python)
**Get started**[Get started with the Python SDK](documentdb-python-application.md)
**Current supported platform**[Python 2.7](https://www.python.org/downloads/) and [Python 3.5](https://www.python.org/downloads/)

Release notes

  • Bug fix for aggregate dictionary.
  • Bug fix for trimming slashes in the resource link.
  • Added tests for Unicode encoding.
  • Added support for a new consistency level called ConsistentPrefix.
  • Added support for aggregation queries (COUNT, MIN, MAX, SUM, and AVG).
  • Added an option for disabling SSL verification when running against Cosmos DB Emulator.
  • Removed the restriction of dependent requests module to be exactly 2.10.0.
  • Lowered minimum throughput on partitioned collections from 10,100 RU/s to 2500 RU/s.
  • Added support for enabling script logging during stored procedure execution.
  • REST API version bumped to '2017-01-19' with this release.
  • Made editorial changes to documentation comments.
  • Added support for Python 3.5.
  • Added support for connection pooling using a requests module.
  • Added support for session consistency.
  • Added support for TOP/ORDERBY queries for partitioned collections.
  • Added retry policy support for throttled requests. (Throttled requests receive a request rate too large exception, error code 429.) By default, Azure Cosmos DB retries nine times for each request when error code 429 is encountered, honoring the retryAfter time in the response header. A fixed retry interval time can now be set as part of the RetryOptions property on the ConnectionPolicy object if you want to ignore the retryAfter time returned by server between the retries. Azure Cosmos DB now waits for a maximum of 30 seconds for each request that is being throttled (irrespective of retry count) and returns the response with error code 429. This time can also be overriden in the RetryOptions property on ConnectionPolicy object.
  • Cosmos DB now returns x-ms-throttle-retry-count and x-ms-throttle-retry-wait-time-ms as the response headers in every request to denote the throttle retry count and the cummulative time the request waited between the retries.
  • Removed the RetryPolicy class and the corresponding property (retry_policy) exposed on the document_client class and instead introduced a RetryOptions class exposing the RetryOptions property on ConnectionPolicy class that can be used to override some of the default retry options.
  • Added the support for multi-region database accounts.
  • Added the support for Time To Live(TTL) feature for documents.
  • Bug fixes related to server side partitioning to allow special characters in partitionkey path.
  • Add Hash & Range partition resolvers to assist with sharding applications across multiple partitions.
  • Implement Upsert. New UpsertXXX methods added to support Upsert feature.
  • Implement ID Based Routing. No public API changes, all changes internal.
  • Supports GeoSpatial index.
  • Validates id property for all resources. Ids for resources cannot contain ?, /, #, , characters or end with a space.
  • Adds new header "index transformation progress" to ResourceResponse.
  • Implements V2 indexing policy.
  • Supports proxy connection.
  • GA SDK.

Release & retirement dates

Microsoft will provide notification at least 12 months in advance of retiring an SDK in order to smooth the transition to a newer/supported version.

New features and functionality and optimizations are only added to the current SDK, as such it is recommend that you always upgrade to the latest SDK version as early as possible.

Any request to Cosmos DB using a retired SDK will be rejected by the service.

Warning

All versions of the Azure DocumentDB SDK for Python prior to version 1.0.0 will be retired on February 29, 2016.


Version Release Date Retirement Date
2.3.0 November 10, 2017 ---
2.2.1 Sep 29, 2017 ---
2.2.0 May 10, 2017 ---
2.1.0 May 01, 2017 ---
2.0.1 October 30, 2016 ---
2.0.0 September 29, 2016 ---
1.9.0 July 07, 2016 ---
1.8.0 June 14, 2016 ---
1.7.0 April 26, 2016 ---
1.6.1 April 08, 2016 ---
1.6.0 March 29, 2016 ---
1.5.0 January 03, 2016 ---
1.4.2 October 06, 2015 ---
1.4.1 October 06, 2015 ---
1.2.0 August 06, 2015 ---
1.1.0 July 09, 2015 ---
1.0.1 May 25, 2015 ---
1.0.0 April 07, 2015 ---
0.9.4-prelease January 14, 2015 February 29, 2016
0.9.3-prelease December 09, 2014 February 29, 2016
0.9.2-prelease November 25, 2014 February 29, 2016
0.9.1-prelease September 23, 2014 February 29, 2016
0.9.0-prelease August 21, 2014 February 29, 2016

FAQ

[!INCLUDE cosmos-db-sdk-faq]

See also

To learn more about Cosmos DB, see Microsoft Azure Cosmos DB service page.