Get maintainable starter code with tests and practical run instructions.
Copy this prompt
Act as a senior Python developer. Help me build a small utility that [REQUIREMENT]. Before coding, list any important assumptions and ask only questions that block a correct implementation. Then provide readable Python 3 code, explain the key design choices, handle likely invalid inputs, and include pytest tests for normal cases, edge cases, and failures. Avoid unnecessary dependencies. Include exact setup and run commands, and identify any security or performance considerations.
How to use this prompt
Describe the expected inputs, outputs, operating environment, and constraints. Run the tests before using the code in production.