blob: b90b2e1a8073524e1cadf9d5e4eee41547b2ce03 [file] [log] [blame]
Georg Brandl116aa622007-08-15 14:28:22 +00001
2.. _persistence:
3
4****************
5Data Persistence
6****************
7
8The modules described in this chapter support storing Python data in a
9persistent form on disk. The :mod:`pickle` and :mod:`marshal` modules can turn
10many Python data types into a stream of bytes and then recreate the objects from
11the bytes. The various DBM-related modules support a family of hash-based file
Benjamin Peterson6ba23322008-09-03 22:59:38 +000012formats that store a mapping of strings to other strings.
Georg Brandl116aa622007-08-15 14:28:22 +000013
14The list of modules described in this chapter is:
15
16
17.. toctree::
18
19 pickle.rst
Alexandre Vassalottif7fa63d2008-05-11 08:55:36 +000020 copyreg.rst
Georg Brandl116aa622007-08-15 14:28:22 +000021 shelve.rst
22 marshal.rst
Georg Brandl116aa622007-08-15 14:28:22 +000023 dbm.rst
Georg Brandl116aa622007-08-15 14:28:22 +000024 sqlite3.rst