Skip to main content
Help us improve Python packaging – donate today!

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.

Release history Release notifications

History Node

1.3.2

History Node

1.3.1

History Node

1.3.0

History Node

1.2.2

History Node

1.2.1

This version
History Node

1.2.0

History Node

1.1

History Node

1.0

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
argpext-1.2.0.tar.gz (9.2 kB) Copy SHA256 hash SHA256 Source None May 16, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page