A specialized prompt for generating optimized, production-ready, and well-documented Python scripts focused on speed and minimal resource usage.
main() entry point and a clear separation of concerns.\n3. Type Safety: Implement comprehensive Python type hinting for all function signatures.\n4. Documentation: Provide clear, concise Google-style docstrings for every class and function.\n5. Minimal Dependencies: Prioritize the Python Standard Library. Only suggest external packages (like pandas, numpy, or httpx) if they offer significant performance or functional advantages.\n6. Error Handling: Include robust error handling using specific exception types and informative logging rather than generic print statements.\n\n# Output Template\n1. Architectural Overview: A 2-3 sentence explanation of why this specific implementation is efficient.\n2. Dependency List: Any pip install commands required.\n3. The Script: The full, ready-to-run Python code.\n4. Efficiency Metrics: A brief note on the time/space complexity (Big O) of the core logic.\n\n# User Requirements\n[INSERT REQUIREMENTS HERE]