Skip to main content

"Command Line Interface"

Project description

Craft CLI

A Command Line Client builder that follows the Canonical's Guidelines for a Command Line Interface.

The library provides two main functionalities:

  • a framework to define and execute application commands, which involves argument parsing and the provision of help texts

  • infrastructure to handle the terminal and present all the outputs for the different application needs

Documentation

The documentation is available on Read The Docs.

Setting up the environment

Install at system level:

sudo snap install pyright

Create a virtual environment, activate it, and install developer dependencies:

python3 -m venv env
source env/bin/activate
pip install .[dev]

That's all.

Contributing

A Makefile is provided for easy interaction with the project. To see all available options run:

make help

Running tests

To run all tests in the suite run:

make tests

Verifying documentation changes

To locally verify documentation changes run:

make docs

After running, newly generated documentation shall be available at ./docs/_build/html/.

License

Free software: GNU Lesser General Public License v3

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

craft-cli-0.5.0.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

craft_cli-0.5.0-py2.py3-none-any.whl (28.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file craft-cli-0.5.0.tar.gz.

File metadata

  • Download URL: craft-cli-0.5.0.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for craft-cli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 99a01975193e29237980d8532aca0aeebbb9452ed70b13dee36089b951506548
MD5 0262ddc811a900ecfed1bc29b5b3288d
BLAKE2b-256 07a98ecd68aed0581cc628132022f70c5a8a44ccb41db6274df216b6d561ab2f

See more details on using hashes here.

File details

Details for the file craft_cli-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: craft_cli-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for craft_cli-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 417594c83c9297e7bd8d76eafc9bd119316c3f1d4dcf8f8f574d4077fefdcef8
MD5 39a7896661c97008b4d156900a2e9cfa
BLAKE2b-256 d9bbeb0f2942705621f58763918ab25390f2b5c1b33cf5a8529ffea7d91dae50

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