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`:
`$ pip install dill`
`dill` requires:
`- python, version >=2.6 *or* version >= 3.1 *or* pypy`
Optional requirements:
`- pyreadline, version >= 1.7.1` (install with `$ pip install dill[readline]`)
`- objgraph, version >= 1.7.2` (install with `$ pip install dill[graph]`)
`dill` is licensed under 3-clause BSD:
>>> import dill
>>> print (dill.license())
To cite `dill`:
>>> import dill
>>> print (dill.citation())