Skip to content

0.2.0

Choose a tag to compare

@nukemiko nukemiko released this 27 Jul 20:18
· 1 commit to master since this release
ee9599e

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.HasPermission can validate the path accessibility with specified mode argument.
    • To create a custom path validator, please inherit from environparse.AbstractPathValidator and implement the __call__() method.
  • Now you can finer control over display of option defaults in help messages through keyword-only argument show_default in parser initialization and option definition.

  • Protocol class DefinedOptionType is removed. Now DefinedOption (renamed from _DefinedOption) can use to annotate the return type of EnvironmentVariableParser.defineOption().