Read the blog: Building command line interfaces in Python.
There are two examples in the repo:
click_example.py
utilizing Click and Rich libraries to make progress bar, create tables and use colorstyper_example.py
utilizing Typer and Python types to define CLI commands
Run with:
poetry shell
python click_example.py compute some words as arguments
python typer_example.py --no-reverse blue