pickleDB

A lightweight and simple database using json.


Keywords
bsd-3-clause, database, datastore, json, key-value, pickledb, python, python3
License
BSD-2-Clause-FreeBSD
Install
pip install pickleDB==1.3.2

Documentation

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"