There are many scattered posts out on StackOverflow, regarding Python modules used to save and load data.
I myself am familiar with json and pickle and I have heard of pytables too. There are probably more out there. Also, each module seems to fit a certain purpose and has its own limits (e.g. loading a large list or dictionary with pickle takes ages if working at all). Hence it would be nice to have a proper overview of possibilities.
Could you then help providing a comprehensive list of modules used to save and load data, describing for each module:
- what the general purpose of the module is,
- its limits,
- why you would choose this module over others?
marshal:
Pros:
pickle
(which is character based).Cons:
shelve
Pros:
Cons:
ZODB (suggested by @Duncan)
Pro:
Cons