Serialization constraints and methods in gufeΒΆ

GufeTokenizable subclasses are designed to be easily serialized by a variety of methods (see also: Serialization Methods). In order for these objects to be serializable by these methods, however, there exist constraints on the data types that a GufeTokenizable can be composed of.

In addition to the data types natively supported by JSON and MessagePack, gufe also supports the following types as serializable attributes:

  • pathlib.Path

  • numpy.generic

  • numpy.ndarray

  • bytes

  • datetime.datetime

  • openff.units.Unit

  • openff.units.Quantity

  • uuid.UUID

  • gufe.settings.SettingsBaseModel

  • gufe.tokenization.GufeTokenizable