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 `pip`:
`$ pip install dill`
`dill` requires:
`- python or pypy, ==2.7 or >=3.7`
Optional requirements:
`- pyreadline, >=1.7.1` (install with `$ pip install dill[readline]`)
`- objgraph, >=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())