Skip to main content

Argpext: hierarchical extension of sub-commands in argparse.

Project description

Argpext is a module dedicated to improving the command line interface with Python module internals. It allows one to quickly expose any selected Python functions to the command line within DOS or Linux-like shells. Help messages are automatically produced.

Argpext provides hierarchical extension to the “Sub-commands” utility of the standard argparse module. It allows one to group any Python functions into a hierarchical tree-like structure, e.g. according to their logic. Every such function then corresponds to a certain sequence of sub-commands, and can be executed directly from the command line by simply passing the sequence as command line arguments to the top level script. The rest of the command line arguments to the script are used to set up the values of function arguments, at which level the standard argparse interface applies.

Argpext provides a special type to support command line arguments that take predetermined set of values. Information about available choices is automatically propagated into the usage help message.

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

argpext-1.2.0.tar.gz (9.2 kB view details)

Uploaded Source

File details

Details for the file argpext-1.2.0.tar.gz.

File metadata

  • Download URL: argpext-1.2.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for argpext-1.2.0.tar.gz
Algorithm Hash digest
SHA256 e43f1cb852e1acc8c84663e7d78465eeeb4366a196a207893289b7029b76d067
MD5 860f763220d7a347b755610816c665e3
BLAKE2b-256 99277b8271bc9dd52178b787c94ede6f08b4a29f456e863a7c4141ab5184c969

See more details on using hashes here.

Supported by

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