← wshobson/agents

/python-resource-management

寫程式wshobson/agentsAI翻譯

用 context manager、清理模式與 streaming 管理 Python 資源。用於管理連線與檔案 handle、實作清理邏輯,或建立帶累積狀態的串流回應。

安裝次數
1.1 萬
專案星數
4.2 萬 ★
授權
MIT
專案更新
2026-11-02

怎麼裝

npx skills add https://github.com/wshobson/agents --skill python-resource-management

安裝前請先看過原文內容。中文說明是 AI 翻譯,不保證安全。

原文

Python resource management with context managers, cleanup patterns, and streaming. Use when managing connections, file handles, implementing cleanup logic, or building streaming responses with accumulated state.