Spaces:
Running
Running
File size: 941 Bytes
375a1cf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
from .converters import Converter, GenConverter, UnstructureStrategy
from .gen import override
__all__ = (
"global_converter",
"unstructure",
"structure",
"structure_attrs_fromtuple",
"structure_attrs_fromdict",
"UnstructureStrategy",
"Converter",
"GenConverter",
"override",
)
__author__ = "Tin Tvrtković"
__email__ = "[email protected]"
global_converter = Converter()
unstructure = global_converter.unstructure
structure = global_converter.structure
structure_attrs_fromtuple = global_converter.structure_attrs_fromtuple
structure_attrs_fromdict = global_converter.structure_attrs_fromdict
register_structure_hook = global_converter.register_structure_hook
register_structure_hook_func = global_converter.register_structure_hook_func
register_unstructure_hook = global_converter.register_unstructure_hook
register_unstructure_hook_func = (
global_converter.register_unstructure_hook_func
)
|