11. Data Persistence """""""""""""""""""" https://docs.python.org/2/library/persistence.html The modules described in this chapter support storing Python data in a persistent form on disk. The pickle and marshal modules can turn many Python data types into a stream of bytes and then recreate the objects from the bytes. The various DBM-related modules support a family of hash-based file formats that store a mapping of strings to other strings. The bsddb module also provides such disk-based string-to-string mappings based on hashing, and also supports B-Tree and record-based formats. .. toctree:: :maxdepth: 1 :numbered: 11.1_pickle 11.2_cpickle 11.3_copy_reg 11.4_shelve 11.5_marshal 11.6_anydbm 11.7_whichdb.rst 11.8_dbm.rst 11.9_gdbm.rst 11.10_dbhash.rst 11.11_bsddb.rst 11.12_dumbdbm.rst 11.13_sqlite.rst