A collection of powerful Python scripts to automate everyday tasks and boost productivity.
This repository hosts a curated set of Python scripts designed to simplify common workflows. Whether you need to analyze disk usage, generate QR codes, organize cluttered directories, or automate other routine tasks, these scripts have you covered. Perfect for developers, sysadmins, and productivity enthusiasts!
- 📂 Storage Finder
Recursively calculate folder size with human-readable output (MB/GB/TB). - 🔳 QR Code Generator
Generate customizable QR codes in PNG/SVG format with size and color options. - 🗂 File Organizer
Automatically sort files into category-based folders (Documents, Images, Videos, etc.).
- 🌐 URL Shortener (coming soon)
- 📷 Image Converter (coming soon)
- 🔒 File Encryptor (coming soon)
- Python 3.6 or higher
pippackage manager
-
Clone the repository:
git clone https://github.com/your-username/python-utility-scripts.git cd python-utility-scripts -
(Optional) Create a virtual environment:
python -m venv venv source venv/bin/activate # Linux/MacOS venv\Scripts\activate # Windows
-
Install dependencies:
pip install -r requirements.txt
python script_name.py [arguments] [options]Calculate the size of a folder and its subdirectories:
python storage_finder.py /path/to/folderOptions:
--unit [B/KB/MB/GB]: Specify output unit (default: auto-detected)--exclude-hidden: Ignore hidden files and directories
Generate a QR code for a URL and save as PNG:
python qr_code_generator.py "https://example.com" --output example_qr.png --size 10 --color blueOptions:
--output <filename>: Output file name (supports .png/.svg)--size <int>: QR code pixel size per module (default: 10)--color <color_name>: QR code color (default: black)
Organize files in the Downloads folder:
python file_organizer.py ~/Downloads --dry-runOptions:
--dry-run: Preview changes without moving files--log: Generate a log file of moved items
Supported File Categories:
| Category | File Extensions |
|---|---|
| Documents | .pdf, .docx, .txt, .md, .xlsx |
| Images | .jpg, .png, .gif, .svg, .bmp |
| Videos | .mp4, .avi, .mov, .mkv, .flv |
| Audio | .mp3, .wav, .ogg, .flac |
| Archives | .zip, .rar, .7z, .tar.gz |
| Code | .py, .js, .html, .css, .json |
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add some amazing feature' - Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
Distributed under the MIT License. See LICENSE for details.
Reach out for help or feedback:
Happy Coding! 🎉