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.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cosmodol-0.0.6.tar.gz | 54.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cosmodol-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 96.2 kB
Release files / cosmodol-0.0.6.tar.gz
| Download URL | cosmodol-0.0.6.tar.gz |
|---|---|
| Size | 54.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ecc4ad9226ce522f457a651b42ab7ffedcbb5c7880707dbb7546f2e45f35f6f
|
|
BLAKE2b-256 checksum How to use checksums |
f1e9a29843ed3715c352789d075804414a131c95c8d376961b99ea8f004a09db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.6-py3-none-any.whl
| Download URL | cosmodol-0.0.6-py3-none-any.whl |
|---|---|
| Size | 41.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7994b803a90327fca906790729b8f4dfcfa6233139ca99220020db7e2ae66274
|
|
BLAKE2b-256 checksum How to use checksums |
a117db0ca7d613dcc7c57e0bc5fd8b50d9d503ab90ca97a78ba45af6711598fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|