Share a standardized set of argparse arguments within your codebase
Project description
This package wraps argparse to facilitate sharing a standardized set of arguments across various scripts and applications that may use argparse.
For example, assume you have two scripts, “runthis.py” and “runthat.py,” both of which share common arguments. It may make sense to share the argument logic between runthis and runthat. See the examples directory for an implementation of runthis and runthat.
This tool lets you specify default argparse arguments and also lets applications override the defaults via the @lazy_kwargs decorator. See examples/shared.py for an example.
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
Built Distributions
Hashes for argparse_tools-1.0.0.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4be874cb61bf00a5a038de4cd280281751df7036145969a2a66c61693a3176cd |
|
MD5 | ed15ced13599b30b9fcb645c1391b452 |
|
BLAKE2b-256 | 9fc96a1913ad437ea7e278a26ca40237f5cdb5e72f4f07cc9488073e09df04fb |