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