Repository navigation
0.2.0
Full Changelog: 0.1.0...0.2.0
Changelog
-
Added an
environparse-based HTTP server start script for example purpose.-
To access/use this script, run:
$ > [ENVIRONS]... python -m environparse.examples.httpserver
-
-
Added some base path validators.
- These validators are members of class
PathValidators. For example,PathValidators.HasPermissioncan validate the path accessibility with specifiedmodeargument. - To create a custom path validator, please inherit from
environparse.AbstractPathValidatorand implement the__call__()method.
- These validators are members of class
-
Now you can finer control over display of option defaults in help messages through keyword-only argument
show_defaultin parser initialization and option definition. -
Protocol class
DefinedOptionTypeis removed. NowDefinedOption(renamed from_DefinedOption) can use to annotate the return type ofEnvironmentVariableParser.defineOption().