Data Persistence Articles

copyreg — Register pickle support functions

Source code: Lib/

dbm — Interfaces to Unix “databases”

Source code: Lib/dbm/

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

pickle — Python object serialization

Source code: Lib/

shelve — Python object persistence

Source code: Lib/

sqlite3 — DB-API 2.0 interface for SQLite databases

Source code: Lib/sqlite3/