jsondb-cloud
The official Python SDK for jsondb.cloud — a hosted JSON document database.
Install
pip install jsondb-cloud
Quick Start
from jsondb_cloud import JsonDB
db = JsonDB(api_key="jdb_sk_live_xxxx")
users = db.collection("users")
# Create
user = users.create({"name": "Alice", "email": "alice@example.com"})
# Read
user = users.get(user["_id"])
# List with filtering
admins = users.list(filter={"role": "admin", "age": {"$gte": 21}}, sort="-createdAt", limit=10)
# Update
users.update(user["_id"], {"name": "Alice Updated", "email": "alice@example.com"})
# Patch (partial update)
users.patch(user["_id"], {"age": 31})
# Delete
users.delete(user["_id"])
Configuration
db = JsonDB(
api_key="jdb_sk_live_xxxx", # required
project="v1", # project namespace (default: "v1")
base_url="https://api.jsondb.cloud", # API endpoint
timeout=30.0, # request timeout in seconds
max_retries=3, # retries on 429/5xx errors
headers={"X-Custom": "val"}, # extra headers for every request
)
AsyncJsonDB accepts the same options and supports async with for automatic cleanup.
API
All methods are available on both Collection (sync) and AsyncCollection (async).
| Category | Methods |
|---|---|
| CRUD | create, get, list, update, patch, json_patch, delete |
| Bulk | bulk_create, bulk |
| Count | count |
| Schema | get_schema, set_schema, remove_schema, validate |
| Versioning | list_versions, get_version, restore_version, diff_versions |
| Webhooks | create_webhook, list_webhooks, get_webhook, update_webhook, delete_webhook, test_webhook |
| Import/Export | import_documents, export_documents |
See the full API reference for details.
Async Usage
from jsondb_cloud import AsyncJsonDB
async with AsyncJsonDB(api_key="jdb_sk_live_xxxx") as db:
users = db.collection("users")
user = await users.create({"name": "Alice"})
page = await users.list(filter={"role": "admin"})
Error Handling
from jsondb_cloud import JsonDB, NotFoundError, QuotaExceededError, JsonDBError
try:
user = users.get("nonexistent")
except NotFoundError as e:
print(f"Not found: {e.document_id}")
except QuotaExceededError as e:
print(f"Limit: {e.limit}, Current: {e.current}")
except JsonDBError as e:
print(f"Error: {e.code} - {e.message} (HTTP {e.status})")
Documentation
Full documentation at jsondb.cloud/docs/sdks/python.
Related Packages
| Package | Description |
|---|---|
| @jsondb-cloud/client | JavaScript/TypeScript SDK |
| @jsondb-cloud/mcp | MCP server for AI agents |
| @jsondb-cloud/cli | CLI tool |
| jsondb-cloud (PyPI) | Python SDK |
License
MIT
Metadata
Release files for jsondb-cloud 1.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 | Provenance | |
|---|---|---|---|---|
| jsondb_cloud-1.0.6.tar.gz | 48.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jsondb_cloud-1.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.8 kB
Release files / jsondb_cloud-1.0.6.tar.gz
| Download URL | jsondb_cloud-1.0.6.tar.gz |
|---|---|
| Size | 48.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
558c18dd2fb3e1a83cf2ab4fd731d7cc9e42b37febe30f3c698efca367a3afd9
|
|
BLAKE2b-256 checksum How to use checksums |
a40b67bf2187ea1edddf981899b2a135f3ef0ab37cf06c8df798c13e2f466de2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 7, 2026.
Transparency logRelease files / jsondb_cloud-1.0.6-py3-none-any.whl
| Download URL | jsondb_cloud-1.0.6-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d16259bda4ef599eea03086c3308ac08a1eacb4d0563ebe54e1d0e40a01b4b9
|
|
BLAKE2b-256 checksum How to use checksums |
69a9b45636379391f5bd0007c364474519ceba0e23062978584e6ecbdb5649cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 7, 2026.
Transparency logSecurity for jsondb-cloud 1.0.6
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for jsondb_cloud-1.0.6.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 7, 2026.
Transparency logA 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.