CodingSaves ~1 hour
Write a Python automation script
Generate a clean, well-structured Python automation script ready for production use.
The prompt
You are a Python automation engineer. Write a clean, production-quality Python script to automate the following task. The script must: use Python 3.10+ features where appropriate, include a main() function with argparse for CLI arguments, add type hints to all functions, handle errors gracefully with informative messages (not bare except), use pathlib instead of os.path, include logging with configurable log level, add a docstring to every function and the module, be importable as a module without executing (if __name__ == '__main__'), and list any pip dependencies at the top. Task to automate: [DESCRIBE THE TASK] Inputs: [LIST INPUTS] Outputs: [DESCRIBE EXPECTED OUTPUT] External dependencies allowed: [LIST OR 'STDLIB ONLY']
Replace the [BRACKETED] fields with your details, then paste into ChatGPT, Claude or Gemini.
Want AI to fill this in for you?
Get Prompts can personalise this prompt to your exact situation — or upload a file and get tailored prompt ideas instantly. 3 free edits, no sign-up.
Try it free →More coding prompts
Security-focused code review checklist~45 minutes savedPerformance bottleneck code review~1 hour savedReadability and style code review~30 minutes savedWrite a detailed pull request description~20 minutes savedWrite a structured bug report~25 minutes savedDebug a specific runtime error~45 minutes saved