Skip to content

A hands-on repository for learning Python, exploring CLI tools, experimenting with different modules, and practicing exercises.

Notifications You must be signed in to change notification settings

ThanuMahee12/python-learn-tech

Repository files navigation

Python Learn CLI Tech

Learn and explore different kinds of CLI tools in Python.

Overview

This repository contains examples and notebooks to help you understand and experiment with various command-line interface (CLI) tools and libraries in Python.

Structure

  • argparser/ — Examples using Python's built-in argparse module for CLI argument parsing.
    • calculator.py — Simple calculator CLI example.
    • greeting.py — Greeting CLI example.
  • Rich.ipynb — Jupyter notebook demonstrating usage of the rich library for beautiful terminal output.
  • tqdm.ipynb — Jupyter notebook demonstrating progress bars with tqdm.
  • Rich/ — Directory for Rich library experiments (e.g., RichProgress.py).

Featured Libraries

  • 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.

Getting Started

  1. Clone the repository:
    git clone https://github.com/ThanuMahee12/python-learn-cli-tech.git
    cd python-learn-cli-tech
  2. (Optional) Create a virtual environment:
    python3 -m venv venv
    source venv/bin/activate
  3. Install required packages:
    pip install rich tqdm
  4. Explore the notebooks and scripts to learn about CLI tools.

Usage

  • Run Python scripts in the terminal for CLI demonstrations.
  • Open notebooks in Jupyter to see visual examples and explanations.

License

This project is for learning purposes. See individual files for license details if provided.

About

A hands-on repository for learning Python, exploring CLI tools, experimenting with different modules, and practicing exercises.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published