Full featured constant database reader, and writer
Compatible with D.J. Bernstein's cdb
A constant database is a key-value database, a mapping, that can not be changed at runtime. That restriction allows to use a perfect hash that makes retrieval much faster than a regular, mutable, key-value store.
pure-cdb will read the files that are produced by the original tool written by D.J. Bernstein. It also support a 64-bit setting to avoid the restriction in the original design of 4-GiB database files.
This package works with most common CPython versions, and PyPy.
For a version that works with Python 2, see this older release. To aid in porting cdb applications to Python 3, this library provides a compatability module for the python-cdb package, which can act as a drop-in replacement (see the docs).
For more information on constant databases, see djb's page and Wikipedia.
The documentation for this package is available at https://python-pure-cdb.readthedocs.io.