dataclass_helpers

Contains helper methods for dataclasses.

Functions

Summary

asdict

Create a dictionary containing all fields of the dataclass.

exclude_from_dict_field

Create a dataclass field with which will be excluded from asdict.

file_representation_field

Create a dataclass field with target and loader as metadata.

fromdict

Create a dataclass instance from a dict and loads all file represented fields.