Simple subcommand CLIs with argparse
Project description
multicommand
Simple subcommand CLIs with argparse.
Installation
pip install multicommand
Overview
multicommand
enables you to easily write CLIs with deeply nested (sub)commands using argparse. Just created the directory structure that reflects the CLI command structure you want, write your parsers in "isolation" and multi command will do the rest.
multicommand turns a directory structure like this:
commands/unary/negate.py
commands/binary/add.py
commands/binary/divide.py
commands/binary/multiply.py
commands/binary/subtract.py
Turns into a command line application like this:
mycli unary negate ...
mycli binary add ...
mycli binary divide ...
mycli binary multiply ...
mycli binary subtract ...
Getting Started
See the simple example.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
multicommand-0.0.4.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for multicommand-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9029c925f793818cd2ed9678553cd19c99fc658b02118567d2d9b67d11ef3458 |
|
MD5 | 921b0e233c7e419f3ae7342da0ab7fef |
|
BLAKE2b-256 | ffb559a752de42245b3c555842559dd92404135dc9dbe9c0d2257947b3550e60 |