A collection of Python practice scripts and mini projects covering automation, utilities, and beginner-to-intermediate experiments.
This repository contains multiple standalone project folders. Each folder focuses on a specific use case such as browser automation, password generation, OCR, networking utilities, screenshot tools, and more.
- Repository: mahidulhq/python
- Primary language: Python (100%)
basics/— fundamental Python practice and core conceptsbrowserAutomate/— browser automation scriptscovidAlert/— COVID-related alert/checker utilityemailSender/— scripts for sending emails programmaticallygetIP_fromHost/— resolve/get IP address from hostnamesimageTOtxt/— image-to-text (OCR-style) experimentspasswordGenerator/— random password generation toolspyTalks2007/— Python talk/demo related scriptsscreenshotAPP_CLI/— command-line screenshot utilityscreenshotGUI/— GUI-based screenshot applicationspeedtest/— internet speed test utility
Each project is mostly independent and have its own dependencies.
git clone https://github.com/mahidulhq/python.git
cd pythonpython -m venv .venv
# Linux/macOS
source .venv/bin/activate
# Windows (PowerShell)
.venv\Scripts\Activate.ps1If a project folder contains a requirements.txt, install it from that folder:
pip install -r requirements.txtEnter a project directory and run its main script (example):
cd passwordGenerator
python main.pyIf there is no main.py, run the relevant .py file in that folder.
This repository is useful for practicing:
- Python syntax and fundamentals
- File and OS operations
- Network and automation scripts
- Simple GUI and CLI app development
- Working with third-party Python libraries
Suggestions and improvements are welcome.
- Fork the repo
- Create a new branch
- Commit your changes
- Open a Pull Request
1. mkdir new_project && cd new_project
2. sudo apt install python3-venv # ONE TIME SYSTEM SETUP
3. python3 -m venv venv # Creates ./venv/
4. source venv/bin/activate # Prompt MUST show: (venv)
5. pip install --upgrade pip # Always first
6. pip install your_packages_here # Project-specific
7. python your_script.py # Runs in isolation
8. deactivate # Exit when done
9. code . # Open project
10. Ctrl+Shift+P → "Python: Select Interpreter"
11. Choose: ./venv/bin/python # Status bar MUST show this path
12. F5 to run/debug
dpkg -l | grep python3-venv # [OK] if installed
which python # MUST: .../new_project/venv/bin/python
pip list # Shows ONLY venv packages