cosmodol
Azure Cosmos DB Data Object Layer — access Cosmos DB through a dict-like
dol Mapping / MutableMapping interface.
To install: pip install cosmodol
Scope
cosmodol targets the NoSQL (Core / SQL) API of Azure Cosmos DB via the official
azure-cosmos Python SDK.
If your Cosmos DB account was provisioned with the MongoDB API, use
pymongo directly with
mongodol — Cosmos's MongoDB-API accounts speak the
MongoDB wire protocol, and cosmodol cannot reach them.
For Azure Blob Storage, see the sibling package
azuredol.
Quick start
from cosmodol import cosmos_store
# Single-partition store (simplest)
store = cosmos_store(
connection_string="AccountEndpoint=https://localhost:8081/;AccountKey=…",
database="mydb",
container="mycontainer",
partition_key_value="my-partition",
)
store["k1"] = {"name": "Alice", "age": 30}
store["k1"] # → {"id": "k1", "_pk": "my-partition", "name": "Alice", "age": 30}
"k1" in store # → True
del store["k1"]
See also
- Architecture (misc/docs/architecture.md) — the layered design.
- Design decisions (misc/docs/design_decisions.md) — defaults and rationale.
- Cosmos DB reference (misc/docs/cosmos_db_reference.md) — distilled SDK and service facts.
dol— the underlying data-object-layer toolkit.
Metadata
Release files for cosmodol 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cosmodol-0.0.9.tar.gz | 62.9 kB | Without provenance | Details for cosmodol-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cosmodol-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for cosmodol-0.0.9-py3-none-any.whl |
Total release size: 113.0 kB
Release files / cosmodol-0.0.9.tar.gz
| Download URL | cosmodol-0.0.9.tar.gz |
|---|---|
| Size | 62.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb24c6303d06134d062aacc80f59b606fb410d0ba64650023084295bb5008f59
|
|
BLAKE2b-256 checksum How to use checksums |
5d5924d1af5337da576d8040ea437c7b6af1da1890d26fd6eee71256c637e18a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / cosmodol-0.0.9-py3-none-any.whl
| Download URL | cosmodol-0.0.9-py3-none-any.whl |
|---|---|
| Size | 50.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1725ca301ebe2026e593e152dd0a72810af8878506973f346774519a3cb5aa7a
|
|
BLAKE2b-256 checksum How to use checksums |
19c8e3f40a4c8d07ee1a7722d28b222b3e75ad370f8c3f37b85d2b7d137fe4e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for cosmodol 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.