Skip to main content

Argpext: hierarchical extension of sub-commands in argparse.

Project description

Argpext provides hierarchical, or multilevel, subcommand implementation that allows one to quickly expose any required callable objects, such as functions, generators, to a DOS/Linux command line.

Hierarchical sub-commands implementation: Class “Task” is used to define the interface between a specific callable object and the command line. When python module contains more than one “task”, class “Node” may be used in order to populate all the required “tasks” onto a tree structure. Any such task may then individually be executed from a UNIX/DOS command line prompt, by passing a script name followed a sequence of command line arguments, followed by the command line arguments used to specify the arguments of the task, if required. Using the “–help” results in a help message. Passing the sequence of arguments complete with the task arguments results in the actual execution of the task.

Acknowledgements: Hierarchical subcommands feature internally relies on the argparse module.

Release v1.3.0 - substantial new features. This version is only compatible with Python 3 only. Support for Python 2 is currently planned, for versions 1.3.XXX.

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.3.0.tar.gz (29.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