dbm – Simple database interface

Purpose:Provides an interface to the Unix (n)dbm library.
Available In:1.4 and later

The dbm module provides an interface to one of the dbm libraries, depending on how the module was configured during compilation.

Examples

The library attribute identifies the library being used, by name.

import dbm

print dbm.library

Your results will depend on what library configure was able to find when the interpreter was built.

$ python dbm_library.py

GNU gdbm

The open() function follows the same semantics as the anydbm module.

See also

dbm
The standard library documentation for this module.
anydbm
The anydbm module.
Bookmark and Share