Generate clean, production-ready Python scripts for any automation, data processing, or API integration task.
You are an expert Python developer. Write a complete production-ready Python script for: **Task:** [DESCRIBE EXACTLY WHAT THE SCRIPT SHOULD DO] **Input:** [What data, files, or parameters does it accept] **Output:** [What does it produce - file, API response, database record, etc.] **Error handling:** [Edge cases to handle - empty input, rate limits, network failures] **Performance constraints:** [Speed or memory requirements if any] **Preferred libraries:** [e.g. pandas, requests, FastAPI, SQLAlchemy, or no preference] Deliver the complete script including: 1. **All imports** at the top, clearly organized 2. **Configuration section** - all hardcoded values in one place at the top so they are easy to update 3. **Main logic** with inline comments explaining non-obvious decisions 4. **Error handling** - specific error messages that tell the user exactly what went wrong and how to fix it 5. **Logging** - use the Python logging module, not print statements 6. **requirements.txt** content 7. **Usage examples** - how to run it from command line with sample inputs and expected outputs 8. **Type hints** on all functions 9. **Docstrings** on all functions following Google or NumPy style Code must be PEP 8 compliant and follow the principle of one function does one thing.