skillfed

pydocumentdb

Azure DocumentDB Python SDK

pydocumentdb v2.3.5 226.6K downloads/30d#9,198 on PyPI150
Permissive license MIT Abandoned released

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 pydocumentdb

uv

uv add pydocumentdb

poetry

poetry add pydocumentdb

Installing 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

Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Libraries :: Python Modules

Tags

azure cosmos db python clientdocumentdb sdk pythonazure document databasenosql database pythoncosmos db sql api
deprecatedazureretired

More Python Modules packages