pydocumentdb
Azure DocumentDB Python SDK
What it is and what it does
pydocumentdb is a Python SDK for Azure Cosmos DB's SQL API, enabling developers to create, read, update, and delete documents in a NoSQL database. It supports partitioned collections, session consistency, aggregation queries, and connection pooling.
However, this package is deprecated and officially retired as of August 20, 2020. Microsoft has replaced it with azure-cosmos, which is the only supported option for new projects and ongoing maintenance. The repository is archived, and no further updates are planned.
Use it for:
- Legacy application maintenance: keeping existing code running that was built against pydocumentdb before the retirement date
- Migration planning: understanding what needs to be ported when upgrading from pydocumentdb to azure-cosmos
- Historical reference: studying the SDK's design patterns from its final release before the transition to azure-cosmos
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for interacting with Azure Cosmos DB SQL API, providing document storage, querying, and management capabilities.
No. Do not install for new projects. The package is officially retired and unsupported. Use azure-cosmos instead. Only consider installing if you are maintaining legacy code that already depends on it and cannot be migrated immediately, but plan a migration path.
Install
pydocumentdb on PyPI
pip
pip install pydocumentdbuv
uv add pydocumentdbpoetry
poetry add pydocumentdbInstalling pydocumentdb
Before you install
Low install friction, but the package is abandoned as of 2019-10-01 and officially retired. The repository is archived with no further updates planned.
License in practice
MIT license permits permissive use, modification, and distribution with minimal restrictions, but this does not offset the package's retirement status.
Quickstart
pip install pydocumentdb==2.3.5
from pydocumentdb import document_client
client = document_client.DocumentClient('https://account.documents.azure.com/', {'masterKey': 'key'})
db = client.ReadDatabase('dbs/mydb')
Package is officially retired as of August 20, 2020; use azure-cosmos instead for any new or ongoing work.
Verify before relying
- Current compatibility with modern Azure Cosmos DB service versions and API changes since 2019-10-01
- Whether any security patches have been backported after the official retirement date
- Exact end-of-life timeline and support guarantees from Microsoft
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,509 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 226,598/month — #9,198 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pydocumentdb-2.3.5-py2-none-any.whl; pydocumentdb-2.3.5-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
azure-cosmosPython client library for Azure Cosmos DB SQL…
permissive · top 1,000 on PyPI
azure-mgmt-cosmosdbProvides programmatic management of Azure…
permissive · top 5,000 on PyPI
agent-framework-azure-cosmosProvides Azure Cosmos DB integration for the…
permissive · top 15,000 on PyPI
azure-data-tablesProvides a Python client for reading, writing,…
permissive · top 5,000 on PyPI
azure-mgmt-sqlProvides programmatic management of Azure SQL…
permissive · top 5,000 on PyPI
ibmcloudantPython client library for IBM Cloudant and…
permissive · top 5,000 on PyPI
azure-mgmt-datamigrationManages Azure Data Migration resources and…
permissive · top 5,000 on PyPI
azure-mgmt-reservationsManages Azure Reservations and Savings Plans…
permissive · top 5,000 on PyPI
prefect-azurePrefect integrations for orchestrating…
permissive · top 15,000 on PyPI
azure-mgmt-sqlvirtualmachineManages SQL Server virtual machines in…
permissive · top 5,000 on PyPI