Python Tutorial

You can learn how to build a terminal application(CLI application) to manage your task and tools.

You will use typer for building this CLI application.
And use Rich for a colorized terminal output and SQLite for the database.

1. When the SQLite is empty, you show the CLI application

python todo.py show

Image text

2. You could add 1 item, the status of Done is ‘Not Done’

python todo.py add "Todo-1" "Sports"

Image text

3. You could edit the status of Done, make it ‘Finish’

python todo.py complete 1

image text

4. You could add 1 item and delete this item

python todo.py add "Todo-2" "Learn"
python todo.py delete 2

GitHub

View Github