Skip to main content

Write once with inspection of python objects with type hinting from Python's standard library `typing` to generate a ConfigArgParser.

Project description

Typing to ConfigArgParse

Write once with inspection of type hinted python objects from Python's standard library typing to generate a ConfigArgParser. ConfigArgParser is a drop in replacement for python's argparse that supports the parsing of configuration files and environment variables in addition to argparse's command line interface. Type hinting your python objects should be enough to generate a hierarchical ConfigArgParser automtically through inspection.

If you want to generate a ConfigArgParser from your docstrings, see docstr.

Considering using typing_inspect.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typing-to-configargparse-0.0.0rc0.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page