Collection of practical, production-ready automation scripts focused on real productivity: file management, API consumption, and automated email reporting.
Demonstrate real-world automations using Python, focusing on:
- Security
- Clarity
- Practical use
- Clean, reusable code
python-automations/
├── scripts/
│ ├── file_renamer.py
│ ├── api_consumer.py
│ └── email_reporter.py
├── requirements.txt
├── .gitignore
└── README.md
Automation for batch file renaming with safety features.
Key Features
- Prefix and suffix
- Text replacement
- Sequential numbering
- Date stamps
- Character sanitization
- Recursive processing
- Dry-run by default (safety)
Example
test file (3).txt → demo_test_file_3.txt
Usage
python file_renamer.py --dry-runConsumes data from public APIs and exports results.
Supported APIs
- GitHub
- CoinGecko
- OpenWeatherMap (demo mode)
Features
- Formatted terminal output
- JSON and CSV export
- Error handling
- Basic rate limiting
Usage
python api_consumer.py github --user torvaldsAutomatic generation of HTML reports sent via email.
Features
- Professional HTML reports
- Preview without sending
- SMTP support (Gmail, Outlook)
- JSON or CSV data input
- Attachments and visual metrics
Usage
python email_reporter.py --previewpython -m venv venv
source venv/bin/activate
pip install -r requirements.txt- Python 3
- requests
- argparse
- SMTP / HTML
- Type hints
- Docstrings
- Error handling
- User-friendly CLI
- Modular code
- File standardization
- API data collection
- Automated reporting
- Repetitive task automation
✔ Production-ready
✔ Safe by default
✔ Easy to extend