Learn and explore different kinds of CLI tools in Python.
This repository contains examples and notebooks to help you understand and experiment with various command-line interface (CLI) tools and libraries in Python.
argparser/— Examples using Python's built-inargparsemodule for CLI argument parsing.calculator.py— Simple calculator CLI example.greeting.py— Greeting CLI example.
Rich.ipynb— Jupyter notebook demonstrating usage of therichlibrary for beautiful terminal output.tqdm.ipynb— Jupyter notebook demonstrating progress bars withtqdm.Rich/— Directory for Rich library experiments (e.g.,RichProgress.py).
- argparse: Standard library for parsing CLI arguments.
- rich: For rich text and beautiful formatting in the terminal.
- tqdm: Fast, extensible progress bars for loops and CLI tasks.
- Clone the repository:
git clone https://github.com/ThanuMahee12/python-learn-cli-tech.git cd python-learn-cli-tech - (Optional) Create a virtual environment:
python3 -m venv venv source venv/bin/activate - Install required packages:
pip install rich tqdm
- Explore the notebooks and scripts to learn about CLI tools.
- Run Python scripts in the terminal for CLI demonstrations.
- Open notebooks in Jupyter to see visual examples and explanations.
This project is for learning purposes. See individual files for license details if provided.