baybe.serialization.coreΒΆ

Converter and hooks.

Module Attributes

converter

The default converter for (de-)serializing BayBE-related objects.

Functions

block_deserialization_hook(_, cls)

Prevent deserialization into a specific type.

block_serialization_hook(obj)

Prevent serialization of the passed object.

get_base_structure_hook(base[, overrides])

Return a hook for structuring a dictionary into an appropriate subclass.

select_constructor_hook(specs, cls)

Use the constructor specified in the 'constructor' field for deserialization.

unstructure_base(base[, overrides])

Unstructure an object into a dictionary and adds an entry for the class name.