Changelog¶
0.4.0 (2025-12-23)¶
Changed¶
Handlers now take a single context argument (
StructurerContextorUnstructurerContext) which contain the structurer and the target type. (PR_20)Support any
Sequencetype instead of just a list when structuring into a struct-like. Consequently, the handlers hadlistchanged tosequence. (PR_22)Support any
Mappingtype orMappingProxyTypeinstead of just a dict when structuring into a struct-like. Consequently, the handlers hadDictchanged toMapping. (PR_22)Uniformized structurer/unstructurers. Now they are all classes based on
StructureHandler/UnstructureHandler.simple_structurer,simple_unstructurerremoved. (PR_23)simple_typechecked_unstructurerremoved, nowUnstructurer.unstructure_asperforms the typecheck. (PR_23)Skip final default values when unstructuring from a struct-like into a sequence. (PR_23)
Added
StructLikeOptionsto tune behavior for struct-like types. (PR_23)
Added¶
Fixed¶
Resolve type hints in dataclasses if they are given as strings. (PR_20)
0.3.0 (2024-03-15)¶
Changed¶
Renamed “handlers” and “predicate handlers” to “lookup handlers” and “sequential handlers”. (PR_15)
Added¶
0.2.1 (2024-03-05)¶
Fixed¶
The metadata type in the name converter parameter of
StructureDictIntoDataclassandUnstructureDataclassToDictset to the correctMappingProxyType. (PR_1)
0.2.0 (2024-03-05)¶
Changed¶
Minimum Python version bumped to 3.10.
0.1.0 (2024-03-04)¶
Initial version.