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

  • Rename to isis-cli
  • Package it to be installed from PyPI, e.g. pip install icli
  • Make possible to run it
  • Integrate GitHub action for running tests
  • Integrate GitHub action for PyPI publication
  • 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.1.tar.gz (2.5 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.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: isis-cli-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 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.1.tar.gz
Algorithm Hash digest
SHA256 4eff316cde38e03159216eda0d63b6c322588a21cb111ccca9bb41a4c0dbbc41
MD5 7574abced0922e144ca67262345fa77d
BLAKE2b-256 8e0aabff29af4340b1dbea2f5bd7b8691569a72c711679ed9b61ccfb366ef9fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: isis_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 252eb9abc649862ded74bc27209ff6b5adf0287da1b75f757c57e461ef909d22
MD5 de889b585eb1591f2335217128b18097
BLAKE2b-256 e6776cc50fae800c8f513740227057d69175f9fdf4bd0f56f10cae715b81b909

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