Skip to main content

Command-line interfaces made accessible to even simpletons

Project description

Climates

GitHub Workflow Status PyPI PyPI - Python Version GitHub

Command-line interfaces made accessible to even simpletons.

Installation

pip install climates

Usage

# Step 1: import Climate
from climates import Climate
# Step 2: create Climate object
cli = Climate("hello", description="Hello world app.")
# Step 3: ???
# Step 4: add commands to CLI
cli.add_commands(hello, bye)
# Step 5: run CLI
cli.run()
# Step 6: PROFIT!!!

See example.py for details.

Features

  • Generate CLI help and options from docstrings and type annotations
  • Automatic dispatch to command handling functions

License

MIT.

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

climates-0.0.4.tar.gz (5.2 kB view hashes)

Uploaded source

Built Distribution

climates-0.0.4-py3-none-any.whl (7.0 kB view hashes)

Uploaded py3

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