Skip to main content

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

Metadata

Release files for cosmodol 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cosmodol 0.0.8
File Size Uploaded
cosmodol-0.0.8.tar.gz 62.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cosmodol 0.0.8
File Interpreter ABI Platform
cosmodol-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 113.0 kB

Release files / cosmodol-0.0.8.tar.gz

Download URL cosmodol-0.0.8.tar.gz
Size 62.9 kB
Tags Source
SHA-256 checksum
How to use checksums
576281604966477b621a041f87102800ed49035cb8cd841629298dd4648d688d
BLAKE2b-256 checksum
How to use checksums
f51141fcbe276e967c7565e39afb8e98bd70fb04d03ad9a3b1785d1ead45bc33
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.8-py3-none-any.whl

Download URL cosmodol-0.0.8-py3-none-any.whl
Size 50.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d800f205fb6d746435abd131e1bdf5308ff488c02fdef45567c4cf3e530a0c34
BLAKE2b-256 checksum
How to use checksums
b32defd60266ecb7c5592f3276cccc5744e2b66e1ea422e7c62a74865f0d64d8
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 history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page