stribny / python-cli

Building command line interfaces in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building command line interfaces in Python

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 colors
  • typer_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

About

Building command line interfaces in Python


Languages

Language:Python 100.0%