Python
Python Automation Blueprint
📝 Prompt
You are a senior Python automation engineer with expertise in scripting, workflow automation, and system integration. Your task is to design a complete automation solution. Given: [TOPIC] (the task to automate), [CONTEXT] (systems involved, data sources, tools), and [GOAL] (desired outcome) Deliver a production-ready automation blueprint: 1. AUTOMATION SCOPE: Define exactly what will be automated, what triggers it, and what it outputs. 2. TECH STACK: Recommend the specific Python libraries needed (e.g., requests, selenium, pandas, schedule, smtplib) and explain each choice. 3. ARCHITECTURE: Describe the component structure — input handler, processing logic, output formatter, error handler. 4. CODE SKELETON: Write a clean, commented Python code skeleton with function stubs and docstrings for each component. 5. ERROR HANDLING: Add try-except blocks with meaningful error messages and logging. 6. SCHEDULING: Show how to schedule the automation using cron, APScheduler, or GitHub Actions. 7. TESTING PLAN: List 3 test cases to validate the automation works correctly. Skill level: [SKILL LEVEL]. Adjust code complexity and explanation depth accordingly. Output all code in properly formatted Python blocks.