Releases
1.0.4
Changelog for 1.0.4
Improved Enum
usage with configs #13
Documentation here working-with-enums-and-annotations.md
Implemented simputils.config.base.get_enum_defaults()
method to get default values form Enum
class
Implemented simputils.config.base.get_enum_annotation_for()
method to get specific annotation for specific key of Enum
Implemented simputils.config.base.get_enum_all_annotations()
method to get all available annotations of Enum
Added ENUM
key to simputils.config.enums.ConfigStoreType
Implemented simputils.config.generic.BasicConfigEnum.target_config()
shortcut
Added support of Enum
class for simputils.config.generic.BasicConfigStore
.
So you can specify a raw class reference as a source of config
Added type
field to simputils.config.models.AnnotatedConfigData
for type casting
Added disclaimer Potential package collision 2024
Some more cleanups and small improvements
Improved preprocessors infrastructure and added type auto-casting for strings #11
Improved simputils.config.base.simputils_pp()
function through class simputils.config.components.preprocessors.SimputilsStandardPreprocessor
Added simputils.config.base.simputils_cast()
for auto-casting strings
Added simputils.config.base.simputils_pp_with_cast()
for standard simputils key
normalization auto-casting strings
Implemented simputils.config.components.preprocessors.SimputilsCastingPreprocessor
auto-casting preprocessor
Implemented simputils.config.components.preprocessors.SimputilsStandardPreprocessor
key normalization
(just code relocation from simputils.config.base.simputils_pp()
)
Implemented simputils.config.generic.BasicPreprocessor
Added documentation about preprocessing and filtering:
Preprocessing and filtering
Now list
or tuple
with callables can be provided to the preprocessor
param,
which sequentially will be applied to incoming key-value pairs.
You can’t perform that action at this time.