Package bsddb :: Module dbshelve
[hide private]
[frames] | no frames]

Module dbshelve

Manage shelves of pickled objects using bsddb database files for the storage.

Classes [hide private]
DBShelf
A shelf to hold pickled objects, built upon a bsddb DB object.
DBShelfCursor
Functions [hide private]
 
open(filename, flags=1, mode=432, filetype=2, dbenv=None, dbname=None)
A simple factory function for compatibility with the standard shleve.py module.

Imports: cPickle, DictMixin, db


Function Details [hide private]

open(filename, flags=1, mode=432, filetype=2, dbenv=None, dbname=None)

 

A simple factory function for compatibility with the standard
shleve.py module.  It can be used like this, where key is a string
and data is a pickleable object:

    from bsddb import dbshelve
    db = dbshelve.open(filename)

    db[key] = data

    db.close()