tokenize#

gufe.tokenization.tokenize(obj: GufeTokenizable) str#

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

Examples

>>> from gufe import SolventComponent
>>> s = SolventComponent()
>>> tokenize(s)
'e6eef7519854d35a5ce6c84136b3684c'
>>> tokenize(s) == tokenize(SolventComponent.from_dict(s.to_dict()))
True