Skip to main content

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

argparse_tools-1.0.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distributions

argparse_tools-1.0.0.linux-x86_64.tar.gz (5.1 kB view hashes)

Uploaded Source

argparse_tools-1.0.0-py2.7.egg (9.6 kB view hashes)

Uploaded Source

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