python-resource-management - Python Resource Management
Manage Python resources deterministically using context managers, cleanup patterns, and streaming.
Tags
Updated: 2026-09-23Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Manage database connections and pools
- Handle file handles and IO
- Implement custom context managers
- Create async context managers
- Build streaming responses with state
- Suppress specific exceptions in cleanup
- Track streaming metrics and timing
Inputs
- Database DSN
- File path
- Streaming response object
Outputs
- Released resources and closed handles
- Accumulated stream content
- Stream performance metrics
Requirements
- Python runtime
- Contextlib module
