pickleDB is an in memory key-value store using Python's orjson module for persistence. It can also use SQLite instead of orjson if needed. This is an official mirror of pickleDB, for issue tracking and contributions see the official repo on GitHub!

$ git clone https://gitman.io/git/patx/pickledb

Logo

pickleDB is a fast, easy to use, in-memory Python key-value store with first class asynchronous support. It is built with the orjson module for extremely high performance. It is licensed under the BSD three-clause license. Check out the website for installation instructions, API docs, advanced examples, benchmarks, and more.

from pickledb import PickleDB

db = PickleDB("example.json").load()
db.set("key", "value")

db.get("key")  # return "value"