Data Persistence

sqlite3 — DB-API 2.0 interface for SQLite databases

Source code: Lib/sqlite3/

dbm — Interfaces to Unix “databases”

Source code: Lib/dbm/__init__.py

marshal — Internal Python object serialization

This module contains functions that can read and write Python values in a binary format. The format is specific to Python, but independent of machine architecture issues (e.g., you can write a Python value to a file on a PC, transport the file to a Sun, and read it back there). Details of the format are undocumented on purpose; it may change between Python versions (although it rarely does). 1

shelve — Python object persistence

Source code: Lib/shelve.py

copyreg — Register pickle support functions

Source code: Lib/copyreg.py

pickle — Python object serialization

Source code: Lib/pickle.py