The python-pure-cdb package (pure-cdb on PyPI) is a Python library for working with D.J. Bernstein’s “constant datbases.” It supports both Python 2.7 and Python 3.

In addition to being able to read and write the database files produced by other cdb tools, python-pure-cdb can produce and consume “64-bit” constant databases that don’t have the usual 4 GiB restriction.

For more information on constant databases, see djb’s page and Wikipedia.

The documentation for this package is available at

Indices and tables