azure-mgmt-cosmosdb
Microsoft Azure Cosmosdb Management Client Library for Python
Decision gist · record as of 2026-08-14
Yes—if you need to manage Azure Cosmos DB resources from Python code. The package is actively maintained, has no known vulnerabilities, low install friction, and is the official Microsoft SDK for this purpose. Requires Python 3.10+, Azure subscription, and proper Entra authentication setup.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10+; Azure subscription and Entra credentials (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID environment variables) must be configured.
- Low install friction; pure Python wheel with three lightweight runtime dependencies.
- Actively maintained with recent release (42 days old); repository is not archived and has 5588 stars.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
last release 2026-07-03 (42 days) · last repo commit 2026-08-14 · 5,588 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 14,239,128 downloads/mo, #1,241 on PyPI
Alternatives
Verify before relying
pip install azure-mgmt-cosmosdb
from azure.mgmt.cosmosdb import CosmosDBManagementClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = CosmosDBManagementClient(
credential=credential,
subscription_id=sub_id
)- Whether the package includes async/await support for management operations
- Specific Azure Cosmos DB API types supported (SQL, MongoDB, Cassandra, Gremlin, Table)
- Rate limits or throttling behavior for management plane calls
- Whether azure-identity is required or optional for authentication
What it is and what it does
This is the official Azure SDK management client for Cosmos DB. It lets you create, update, delete, and query Cosmos DB accounts, databases, containers, and clusters programmatically from Python code. You authenticate via Microsoft Entra using environment variables or credential objects, then instantiate a CosmosDBManagementClient and call methods on operation groups to manage your infrastructure.
The package requires Python 3.10 or later and depends on azure-mgmt-core (the base Azure management SDK), isodate (for date parsing), and typing-extensions (for type hints). It is designed for infrastructure automation, deployment pipelines, and administrative tooling rather than for querying data within Cosmos DB itself.
Use it for
- Automate provisioning of Cosmos DB accounts and databases in CI/CD pipelines
- Build infrastructure-as-code scripts to manage Cosmos DB resources across environments
- Create administrative dashboards or tools that list and configure Cosmos DB clusters
- Programmatically scale throughput or adjust backup schedules on existing databases
- Migrate or replicate Cosmos DB configurations across Azure subscriptions or regions
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes—if you need to manage Azure Cosmos DB resources from Python code.
The package is actively maintained, has no known vulnerabilities, low install friction, and is the official Microsoft SDK for this purpose. Requires Python 3.10+, Azure subscription, and proper Entra authentication setup.
Install
azure-mgmt-cosmosdb on PyPI
Before you install
Low install friction; pure Python wheel with three lightweight runtime dependencies. Actively maintained with recent release (42 days old); repository is not archived and has 5588 stars.
Requires Python 3.10+; Azure subscription and Entra credentials (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID environment variables) must be configured.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install azure-mgmt-cosmosdb
from azure.mgmt.cosmosdb import CosmosDBManagementClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = CosmosDBManagementClient(
credential=credential,
subscription_id=sub_id
)
Verify before relying
- Whether the package includes async/await support for management operations
- Specific Azure Cosmos DB API types supported (SQL, MongoDB, Cassandra, Gremlin, Table)
- Rate limits or throttling behavior for management plane calls
- Whether azure-identity is required or optional for authentication
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesisodateazure-mgmt-coretyping-extensions |
| Maintenance | Actively maintained 42 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 14,239,128 / month, #1,241 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: azure_mgmt_cosmosdb-10.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “azure cosmos db management”
- azure-mgmt-cosmosdbProvides programmatic management of Azure Cosmos DB…
- azure-cosmosPython client library for Azure Cosmos DB SQL API that manages…
- pydocumentdbPython client library for interacting with Azure Cosmos DB SQL API,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also azure-mgmt-sql · azure-cosmosdb-table · pydocumentdb · agent-framework-azure-cosmos · azure-cosmos · azure-data-tables · azure-mgmt-resource-deployments · azure-mgmt-resource · azure-mgmt-web · azure-mgmt-storage