The bsddb module provides an interface to the Berkeley DB library.
Users can create hash, btree or record based library files using the appropriate open call.
Bsddb objects behave generally like dictionaries. The bsddb module is only available on Unix systems, so it is not built by default in the standard Python distribution. Also, there are two incompatible versions of the underlying library. Version 1.85 is widely available, but has some known bugs. Version 2 is not quite as widely used, but does offer some improvements.