Skip to main content

Command Line Interfaces from custom classes

Project description

# ClassCLI Command Line Interfaces from class definitione

Very similar to [Fire](, this is a Python module that let you build command line interfaces directly from classes, without having to deal with argument definitions.

ClassCLI is built on top of argparse, it create arguments of the cli by inspecting the classes in a module. Each compatible class is transformed in a first-level argument, each function in a second-level argument, each function’s argument in a third level argument.

ClassCLI uses docstrings to build the CLI’s help, kwargs defaults to set CLI’s pars defaults and type hints to infer CLI’s pars types.

Project details

Download files

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

Files for classcli, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size classcli-0.0.1-py3-none-any.whl (7.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size classcli-0.0.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page