Release Notes¶
1.0.0¶
Release Summary¶
This is the first 1.0 release. It includes a major rework of the cfgtree internal code and API.
Upgrade Notes¶
- rename
EnvironmentConfigtoConfigBaseModel
- add type:
FloatCfg
- rename type
FileVersionCfgtoConfigVersionCfg
remove short parameter for type definition:
l` to ``long_params` to ``short_paramh` to ``summary
- Please note the API is not compatible with previous version. You need to manually update your application.
EnvironmentConfigis renamedConfigBaseModel.config_storageis renamedstorage.cfgtreeis renamedmodel.From:
from cfgtree.cfgtree import EnvironmentConfig class MyAppConfig(EnvironmentConfig): config_storage = ... cfgtree = ... ...
To:
from cfgtree import ConfigBaseModel class MyAppConfig(ConfigBaseModel): storage = ... model = ... ...
DopplerrJsonConfigFilehas been moved tocfgtree.storages.jsonand its fields has been renamed.
- Type short argument
h=,l=,s=has been renamed to more meaningful name.l=:long_params=:short_paramh=:summaryr=:required
0.1.0¶
Release Summary¶
First release of cfgtree. It only support basic features, that was needed for the main project I was using it internally.
New Features¶
- Only simple feature are supported on this version, single json configuration file, argparse command line parser and a bunch of setting types.
- Note the API may change on the next version.
- Current support:
- File storage:
- json (
JsonFileConfigStorage) - Command line parser: - argparse
- Settings types:
-
BoolCfg-ConfigFileCfg-DirNameCfg-HardcodedCfg-IntCfg-ListOfStringCfg-MultiChoiceCfg-PasswordCfg-SingleChoiceCfg-StringCfg-UserCfg
- File storage:
- json (