shelve — Persistent Storage of Objects — PyMOTW 3
Originally posted · 1 min read
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 .
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.