Metadata-Version: 2.1
Name: isis-cli
Version: 0.1.1
Summary: General purpose CLI
License: MIT
Keywords: cli,PoC
Author: Isidro Lopez
Author-email: islomar@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: click (>=8.1.3,<9.0.0)
Requires-Dist: setuptools (>=63.1.0,<64.0.0)
Requires-Dist: wheel (>=0.37.1,<0.38.0)
Description-Content-Type: text/markdown

# icli

## Development set up
### Without Docker
- You need to install [poetry](https://python-poetry.org/docs/#installation)
- 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**](https://python-poetry.org/)
    - `poetry show -v`
    - `poetry env list`
- The [ENTRYPOINT](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#entrypoint) is the execution of the main file.

## Resources
- [Video tutorial: Building Command Line Applications with Click](https://www.youtube.com/watch?v=kNke39OZ2k0) - 18 minutes
- [Click examples](https://click.palletsprojects.com/en/7.x/quickstart/#screencast-and-examples)
- https://github.com/CodiumTeam/docker-training
- https://jackmckew.dev/packaging-python-packages-with-poetry.html
    - https://github.com/JackMcKew/wordsum

## 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

