Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkvdb-0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkvdb-0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for mkvdb-0.1.tar.gz
Algorithm Hash digest
SHA256 05e8ed755ba9bdea817cfd00632f24b336a72f19278040622184adebf3763b83
MD5 ec7b5d47dfc371dbd30204717af2bd56
BLAKE2b-256 b60679f5204de51eb4d12b7f5909e57d3b3a028f29a5784f97f5c7825923cf9f

See more details on using hashes here.

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

Hashes for mkvdb-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d76298336b87c44b58e6b46f16e1c20b438164a8338c49ffebc8ece1b14b68f
MD5 378ca91f0a073d2ef9cf2765a7e0643b
BLAKE2b-256 0fd00f8e8564f6d29c9133dbcb2d95f03bb311dc0e2265c4c157cefa81259910

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page