MongoDB-backed async/sync key–value store with a super tiny API.
Project description
mkvDB is a fast, easy to use, Python key-value store with first-class asynchronous support. It stands on the shoulders of motor and is safe across multiple processes and workers thanks to MongoDB’s concurrency model.
Is it a little pointless if you already know Mongo? Yeah. But if ya just want to
set and get without thinking about collections or schemas, it’s perfect. I made this
because pickleDB doesn't play nice with ASGI but I
like its dumb API anyway :) There's no docs yet, so just look at the source code -
its really short I promise.
from mkvdb import Mkv
db = Mkv("mongodb://localhost:27017")
db.set("key", "value")
db.get("key") # returns "value"
Note: You can also await db.set or db.whatever for async usage.
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.1.tar.gz.
File metadata
- Download URL: mkvdb-0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05e8ed755ba9bdea817cfd00632f24b336a72f19278040622184adebf3763b83
|
|
| MD5 |
ec7b5d47dfc371dbd30204717af2bd56
|
|
| BLAKE2b-256 |
b60679f5204de51eb4d12b7f5909e57d3b3a028f29a5784f97f5c7825923cf9f
|
File details
Details for the file mkvdb-0.1-py3-none-any.whl.
File metadata
- Download URL: mkvdb-0.1-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 |
5d76298336b87c44b58e6b46f16e1c20b438164a8338c49ffebc8ece1b14b68f
|
|
| MD5 |
378ca91f0a073d2ef9cf2765a7e0643b
|
|
| BLAKE2b-256 |
0fd00f8e8564f6d29c9133dbcb2d95f03bb311dc0e2265c4c157cefa81259910
|