tokenization#

The machinery for tokenizing gufe objects live in this module.

Module Attributes

TOKENIZABLE_CLASS_REGISTRY

noindex:

REMAPPED_CLASSES

noindex:

TOKENIZABLE_REGISTRY

Registry of tokenizable objects.

Functions

dict_decode_dependencies

dict_encode_dependencies

from_dict

get_all_gufe_objs

For GufeTokenizable obj, get all contained GufeTokenizables.

get_class

import_qualname

is_gufe_dict

is_gufe_key_dict

is_gufe_obj

key_decode_dependencies

key_encode_dependencies

key_renamed

Serialization migration: Rename a key in the dictionary.

modify_dependencies

param obj:

Dictionary or list to traverse. Assumes that only mappings are dict and

module_qualname

nested_key_moved

Serialization migration: Move nested key to a new location.

new_key_added

Serialization migration: Add a new key to the dictionary.

old_key_removed

Serialization migration: Remove an old key from the dictionary.

register_tokenizable_class

to_dict

tokenize

Generate a deterministic, relatively-stable token from a GufeTokenizable object.

Classes

GufeKey

GufeTokenizable

Base class for all tokenizeable gufe objects.