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 in 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.1.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

craft_cli-0.1.0-py2.py3-none-any.whl (24.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: craft-cli-0.1.0.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for craft-cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6a6d735cf3f881f96ae462448542ac3b08b952c8d469d5db1dd6d2beb71d4a9d
MD5 13b6c0f6d84de9b0849aa33544ba2a60
BLAKE2b-256 66fc61000bf5e21c207bc69c6fc0ccea5a4629cfa75d6b56c17b20a5be9b46a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: craft_cli-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for craft_cli-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9da1f3244c38b926c79f279319df277742bb764a2a14709f4e7ced84e1f523a7
MD5 e6c54fef1a374f7dd4c2254694d42821
BLAKE2b-256 34e404abf9f04b887de63087c7abfdd39b43684407efd3c4abe8b089fda54095

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