dill scripts documentation¶
get_objgraph script¶
display the reference paths for objects in dill.types
or a .pkl file
Notes
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.
Examples:
$ 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 thetypes
module, providing a registry of object types. By default, the module is empty (for import speed purposes). Use theload_types
function to load selected object types to thedill.types
module.
undill script¶
unpickle the contents of a pickled object file
Examples:
$ undill hello.pkl
['hello', 'world']