Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 1 | |
| 2 | .. _persistence: |
| 3 | |
| 4 | **************** |
| 5 | Data Persistence |
| 6 | **************** |
| 7 | |
| 8 | The modules described in this chapter support storing Python data in a |
| 9 | persistent form on disk. The :mod:`pickle` and :mod:`marshal` modules can turn |
| 10 | many Python data types into a stream of bytes and then recreate the objects from |
| 11 | the bytes. The various DBM-related modules support a family of hash-based file |
| 12 | formats that store a mapping of strings to other strings. The :mod:`bsddb` |
| 13 | module also provides such disk-based string-to-string mappings based on hashing, |
| 14 | and also supports B-Tree and record-based formats. |
| 15 | |
| 16 | The list of modules described in this chapter is: |
| 17 | |
| 18 | |
| 19 | .. toctree:: |
| 20 | |
| 21 | pickle.rst |
Alexandre Vassalotti | f7fa63d | 2008-05-11 08:55:36 +0000 | [diff] [blame] | 22 | copyreg.rst |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 23 | shelve.rst |
| 24 | marshal.rst |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 25 | dbm.rst |
Georg Brandl | 38eceaa | 2008-05-26 11:14:17 +0000 | [diff] [blame] | 26 | bsddb.rst |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 27 | sqlite3.rst |