shelve — Persistent Storage of Objects — PyMOTW 3

The shelve module can be used as a simple persistent storage option for Python objects when a relational database is not required. The shelf is accessed by keys, just as with a dictionary. The values are pickled and written to a database created and managed by dbm .

Read more…

This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.