Description
DictDataBase is a Python document database that stores data as JSON files, optionally compressed with zlib. It needs no database server: you import it into your project and read and write dictionaries. Multiple processes or threads on the same machine can read and write at the same time without losing data, because access is controlled with locks, so conflicts do not occur. The project describes its guarantees as ACID compliant and says it is suited for concurrent environments, unlike TinyDB. Keys inside a JSON file are indexed, so single key-value pairs can be read quickly even from very large files. The author gives an example of about 2,000 reads per second from a 2.5 GB file. The README says it is a poor fit when storage is slow, when you repeatedly change one very large file, when a relational database suits the use case better, or when files are larger than your RAM. The tests cover Python 3.8 to 3.13 with more than 98 percent coverage.…
Highlights
- Python document store with no server to run
- Safe for concurrent reads and writes across processes
- Optional zlib compression of JSON files
- Indexed keys for fast single-key reads
- Tested on Python 3.8 to 3.13
Ratings & Reviews
No ratings yet
Be the first to rate DictDataBase.
People also visit
DictDataBase FAQ
What is DictDataBase?
A document-based database for Python that stores data as JSON files, with no database server to install or run.
When should I use it?
The README suggests it when several processes or threads read and write data, when a database server is more than you need, when you need ACID guarantees, or when you repeatedly read many JSON files.
When should I avoid it?
The README says to avoid it for slow storage, for repeatedly changing one very large JSON file, for data that suits a relational database better, and for files larger than your RAM.
Does it compress the data?
You can choose whether files are stored as raw JSON or as JSON compressed with zlib.
Which Python versions are supported?
The project's tests run on Python 3.8 through 3.13.
What are the best DictDataBase alternatives?
Popular alternatives to DictDataBase include SleekDB, Lowdb and Acebase. See all DictDataBase alternatives





