dill scripts documentation

get_objgraph script

display the reference paths for objects in dill.types or a .pkl file


the generated image is useful in showing the pointer references in objects that are or can be pickled. Any object in dill.objects listed in dill.load_types(picklable=True, unpicklable=True) works.


$ get_objgraph ArrayType
Image generated as ArrayType.png
load_types(pickleable=True, unpickleable=True)

load pickleable and/or unpickleable types to dill.types

dill.types is meant to mimic the types module, providing a registry of object types. By default, the module is empty (for import speed purposes). Use the load_types function to load selected object types to the dill.types module.

  • pickleable (bool, default=True) – if True, load pickleable types.

  • unpickleable (bool, default=True) – if True, load unpickleable types.



undill script

unpickle the contents of a pickled object file


$ undill hello.pkl
['hello', 'world']