With dill, you can serialize almost anything in python, even an entire interpreter session. If you encounter any pickling failures, dill also has some good tools to help you discover why your object fails to pickle.
Dill installs with easy_install or pip:
$ easy_install dill
Dill requires:
- python, version >=2.5 *or* version >= 3.1
Optional requirements:
- objgraph, version >= 1.7.2
Dill is licensed under 3-clause BSD:>>> import dill >>> print (dill.license())
To cite dill:>>> import dill >>> print (dill.citation())