ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.5
Python Documentation
Library Reference
Front Matter
Contents
1. Introduction
2. Built-in Objects
3. Built-in Types
4. String Services
5. Data Types
6. Numeric and Mathematical Modules
7. Internet Data Handling
8. Structured Markup Processing Tools
9. File Formats
10. Cryptographic Services
11. File and Directory Access
12. Data Compression and Archiving
13. Data Persistence
13.1 pickle -- Python object serialization
13.2 cPickle -- A faster pickle
13.3 copy reg -- Register pickle support functions
13.4 shelve -- Python object persistence
13.5 marshal -- Internal Python object serialization
13.6 anydbm -- Generic access to DBM-style databases
13.7 whichdb -- Guess which DBM module created a database
13.8 dbm -- Simple ``database'' interface
13.9 gdbm -- GNU's reinterpretation of dbm
13.10 dbhash -- DBM-style interface to the BSD database library
13.11 bsddb -- Interface to Berkeley DB library
13.12 dumbdbm -- Portable DBM implementation
13.13 sqlite3 -- DB-API 2.0 interface for SQLite databases
14. Generic Operating System Services
15. Optional Operating System Services
16. Unix Specific Services
17. Interprocess Communication and Networking
18. Internet Protocols and Support
19. Multimedia Services
20. Graphical User Interfaces with Tk
21. Internationalization
22. Program Frameworks
23. Development Tools
24. The Python Debugger
25. The Python Profilers
26. Python Runtime Services
27. Custom Python Interpreters
28. Restricted Execution
29. Importing Modules
30. Python Language Services
31. Python compiler package
32. Abstract Syntax Trees
33. Miscellaneous Services
34. SGI IRIX Specific Services
35. SunOS Specific Services
36. MS Windows Specific Services
A. Undocumented Modules
B. Reporting Bugs
C. History and License
Module Index
Index
About this document ...

MyASPN >> Reference >> ActivePython 2.5 >> Python Documentation >> Library Reference
ActivePython 2.5 documentation


13. Data Persistence

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.

The list of modules described in this chapter is:

pickle   Convert Python objects to streams of bytes and back.
cPickle   Faster version of pickle, but not subclassable.
copy_reg   Register pickle support functions.
shelve   Python object persistence.
marshal   Convert Python objects to streams of bytes and back (with different constraints).
anydbm   Generic interface to DBM-style database modules.
whichdb   Guess which DBM-style module created a given database.
dbm   The standard ``database'' interface, based on ndbm.
gdbm   GNU's reinterpretation of dbm.
dbhash   DBM-style interface to the BSD database library.
bsddb   Interface to Berkeley DB database library
dumbdbm   Portable implementation of the simple DBM interface.
sqlite3   A DB-API 2.0 implementation using SQLite 3.x.

See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved