Skip to main content

General purpose CLI

Project description

icli

Development set up

Without Docker

  • You need to install poetry
  • Run poetry install
  • Run poetry run python src/main.py
  • Run poetry run python src/main.py --name=Batman --count=2
  • Run poetry run python src/main.py --help

With Docker

  • Prerequisite: being able to run make
  • Running make will show you all the possible actions

Decisions taken and personal notes

  • Origin of the name:
    • i(si) + cli
    • or the typical iAnything :-)
  • Library used: Click
    • The examples of code seen look simpler
    • Good opinions in several posts with comparisons with Docopts or Argparse
    • Looks like a "modern" way of creating a CLI in 2022
    • Used by AWS
  • Dependencies with poetry
    • poetry show -v
    • poetry env list
  • The ENTRYPOINT is the execution of the main file.

Resources

TO DO

  • Publish it to PyPI
  • Package it to be installed from PyPI, e.g. pip install icli
  • Make possible to run it
  • Version it
  • Use mypy
  • Use black formatter

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

isis-cli-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isis_cli-0.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: isis-cli-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.12 Linux/5.13.0-51-generic

File hashes

Hashes for isis-cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 42abcb20abc6c085eed5a4cdfa1a2f2d6ab1d7d934ed35f1e6ac13ee81c46b37
MD5 837123f9e1b19f7920398e78000a36ee
BLAKE2b-256 46fe82193bf6d1b2dc245f12c882c3bd9ce409a1038c9f5f4f5a8b73df9a0502

See more details on using hashes here.

File details

Details for the file isis_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: isis_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.12 Linux/5.13.0-51-generic

File hashes

Hashes for isis_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b937e914f9539575621249407d4bf39cd00b8e1b207772c6bd2f2cc4898f8f21
MD5 12f945bec321d161d0bcf6b6295523bf
BLAKE2b-256 9c49f347ae1a62af963de97bf472c48a76c529f37c8a807c5446b988395992d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page