Skip to main content

Command Line Interfaces from custom classes

Project description

# ClassCLI Command Line Interfaces from class definitione

Very similar to [Fire](https://github.com/google/python-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.

Source Distribution

classcli-0.0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

classcli-0.0.1-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

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