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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file climates-0.0.4.tar.gz.

File metadata

  • Download URL: climates-0.0.4.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for climates-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d8d0d69083a8950598e3a1f160feda7a4702ba14aec32bf48872e33e2aa5cb92
MD5 8f09a23584a1fd4967ee4b7dccfd8bd0
BLAKE2b-256 3088154f410bbe4d7d6e5fd5fa10113f2e6dc094fa26663b8d590a8b228ff0f3

See more details on using hashes here.

File details

Details for the file climates-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: climates-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for climates-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a504816829d86baab46865db3d8d721fa44804c8a0476cf1b6f06628cdcde2a9
MD5 2c9c2634fc98327ccc77fb00a814f640
BLAKE2b-256 9a1d87b71a7973b276e4bb52687c3e3b9f7835750c1fc84607e6de19b0f1ac65

See more details on using hashes here.

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