We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

The dbhash module

(Optional). This module provides a dbm-compatible interface to the bsddb database handler.

Example: Using the dbhash module
# File: dbhash-example-1.py

import dbhash

db = dbhash.open("dbhash", "c")
db["one"] = "the foot"
db["two"] = "the shoulder"
db["three"] = "the other foot"
db["four"] = "the bridge of the nose"
db["five"] = "the naughty bits"
db["six"] = "just above the elbow"
db["seven"] = "two inches to the right of a very naughty bit indeed"
db["eight"] = "the kneecap"

db = dbhash.open("dbhash", "r")
for key in db.keys():
    print repr(key), repr(db[key])