MongoDB-backed async/sync key–value store with a super tiny API.
Project description
mkvDB is a unified sync + async key-value store backed by MongoDB. It gives you a
dead-simple Redis-like API (set, get, remove, etc.) while letting MongoDB handle all
the heavy concurrency lifting — meaning it’s safe across threads, processes, and
ASGI workers out of the box. Sync usage uses MongoClient (thread-safe). Async usage
uses AsyncMongoClient (non-blocking, ASGI/uvicorn safe). Same API either way.
Read the docs here..
from mkvdb import Mkv
db = Mkv("mongodb://localhost:27017")
# Sync
db.set("key", "value")
db.get("key")
# Async
await db.set("a", 123)
val = await db.get("a")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkvdb-0.2.tar.gz.
File metadata
- Download URL: mkvdb-0.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41b00418d7173f60629999236bca863134e5083daa28f02e5e1b58c07f7bc327
|
|
| MD5 |
1f1dd18c5529763809b03e97594e1bb6
|
|
| BLAKE2b-256 |
c80c0f8c780119d4bcd3a7543c113cc4ac5f927810ea9513cb88ad0af21ca138
|
File details
Details for the file mkvdb-0.2-py3-none-any.whl.
File metadata
- Download URL: mkvdb-0.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52dbc95ac93876f4111eda4649286179c77d26f1072efa4e79894f36b044d8d6
|
|
| MD5 |
3509b9aecdfb114aa18f42f7aab67cf9
|
|
| BLAKE2b-256 |
fb4c2084accddc92b7a263145c8ea6bfcf6a16d25bd7bed05fe413b7ff8bbfaf
|