dbm is a front-end for DBM-style databases that use simple string values as keys to access records containing strings. It uses whichdb() to identify databases, then opens them with the appropriate module. It is used as a back-end for shelve, which stores objects in a DBM database using pickle .
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.