5 practical Python scripts to automate boring everyday tasks and save hours of manual work.
- Python 3.11 or higher
- pip (Python package manager)
watchdog>=2.1.0 # For file monitoring
Pillow>=9.0.0 # For image conversion
pandas>=1.3.0 # For data file conversion
openpyxl>=3.0.0 # For Excel files
PyPDF2>=3.0.0 # For PDF text extraction
Optional dependencies (install only if needed):
pip install pytesseract # For OCR in screenshots (requires Tesseract OCR installed)Automatically sorts messy folders by file type and date.
Usage:
python file_organizer.pyWhat it does:
- Organizes Downloads, Desktop, or any folder
- Groups files by type (Images, Documents, Videos, etc.)
- Optional date-based subfolders
- Handles duplicate filenames
- Maintains organization log
Example:
# Organize Downloads folder
python file_organizer.py ~/Downloads
# Or run interactively
python file_organizer.py
# Then select: 1. Show statistics, 2. Organize filesRename hundreds of files at once with flexible patterns.
Usage:
python batch_renamer.py [directory]What it does:
- Add prefixes/suffixes
- Sequential numbering
- Date-based naming
- Text replacement (with regex)
- Case conversion
- Preview before applying
Example:
# Rename all vacation photos
python batch_renamer.py ~/Photos/Vacation
# Select files: *.jpg
# Add prefix: "Bali_2025_"
# Add sequential numbers: 001, 002, 003...Create intelligent incremental backups automatically.
Usage:
python backup_manager.py <source_dir> <backup_dir>What it does:
- Only backs up changed files (incremental)
- Compresses backups to save space
- Maintains multiple backup versions
- Automatic cleanup of old backups
- Easy restoration
Example:
# Backup Documents folder
python backup_manager.py ~/Documents ~/Backups/Documents
# Interactive menu:
# 1. Create new backup
# 2. List backups
# 3. Restore backupTip: Schedule with cron/Task Scheduler for automatic daily backups.
Find and remove duplicate files to free up disk space.
Usage:
python duplicate_finder.py <directory1> [directory2] ...What it does:
- Scans directories for exact duplicates
- Uses hash comparison (not just filenames)
- Shows wasted space
- Safe deletion with preview
- Exports detailed reports
Example:
# Find duplicates in Downloads and Documents
python duplicate_finder.py ~/Downloads ~/Documents
# Shows:
# - Duplicate sets: 47
# - Wasted space: 3.2 GB
# - Interactive deletion optionsAutomatically organize screenshots by date.
Usage:
python screenshot_organizer.py [screenshots_directory]What it does:
- Organizes screenshots by year/month
- Archives old screenshots (30+ days)
- Extracts dates from filenames
- Cleans up desktop automatically
- Searchable organization
Example:
# Organize Desktop screenshots
python screenshot_organizer.py ~/Desktop
# Or run interactively
python screenshot_organizer.py
# 1. Preview organization
# 2. Organize screenshots
# 3. Show statistics