Block 140: Mini-Project: Full Automation Script
Build and test a complete automation script from scratch.
Concepts
- Combining filesystem, subprocess, pandas, logging, testing
- Clean CLI interface with argparse
Code Examples
See exercise below.
Exercise
Build a complete tool of your choice: e.g., a 'CSV merger and summarizer', a 'file organizer with logging', or a 'website monitor that checks status and logs results'. Includes: CLI args, logging to file, error handling, and at least 5 pytest tests. Write a README.md explaining what it does and how to run it.
Homework
Reflection: List the 8 best practices for writing production-quality Python scripts that you learned this week.