Use `anyio` for async code, so that users can choose either `asyncio` or `trio` backends
還沒有人認領這個 Issue。
評估
研究方向
先檢視非同步的 AsyncClient 及其周邊以 asyncio 為基礎的堆疊,接著閱讀連結的 anyio 與 Trio 文件,以了解後端邊界。當使用者可以選擇 asyncio 或 Trio,而不必維護分開的堆疊,同時現有使用 asyncio 的程式碼仍維持相容時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
👋 Over at @anthropics we're enthusiastic users of both Slack and async Python - but instead of asyncio we use structured concurrency with Trio.
This makes using slack-bolt's AyncClient pretty awkward, because now we have multiple async backends running, can't use our standard helper functions, and things generally start going wrong. Building a copy of the whole stack for each backend isn't feasible (thus also sans-io designs), and hence this request to support using either asyncio or trio as the backend.
Using anyio makes this pretty easy - just ask e.g. FastAPI! - and it should be fully compatible with existing asyncio-using code. I realize it's not a particularly small task, but Trio is downloaded about 200k times per day and good support for that makes a big difference.
- 主要語言
- Python
- 星號
- 1.3k
- 分支
- 291
- 平均合併
- 1 天 14 小時
- 30 天內合併 PR
- 8
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
slackapi/bolt-python 的其他 Issue
-
docs enhancement server-side
難度 1/5 1 小時以內 新手友好度 88/100
slackapi/bolt-python#1576 · 1 則留言 ·
-
auto-triage-skip bug security semver:major
難度 2/5 1-3 小時 新手友好度 72/100
slackapi/bolt-python#1447 · 9 則留言 ·
-
難度 3/5 1-2 天 新手友好度 65/100
slackapi/bolt-python#1577 ·
-
area:async auto-triage-skip dependencies
難度 3/5 1-2 天 新手友好度 65/100
slackapi/bolt-python#1472 · 1 則留言 · 1 個 reaction ·
-
Enhancement: Assistant should inherit global middleware for security and consistency可能重新可做 @hello-ashleyintech 於 422 天前認領,目前沒有進行中的 PR。 未關閉auto-triage-skip enhancement
slackapi/bolt-python#1346 · 2 則留言 · 已指派 1 人 ·
查看 slackapi/bolt-python 的全部 Issue
相似的 Issue
-
adr
難度 2/5 1-3 小時 新手友好度 72/100
kristofdegrave/homeassistant-smart-charging#1607 ·
維護者通常 1 天內回覆
-
namespace operations
難度 2/5 1-3 小時 新手友好度 64/100
EclipseFdn/open-vsx.org#13665 ·
維護者通常 1 天內回覆
-
doc good first issue help wanted
難度 2/5 1-3 小時 新手友好度 68/100
collective/icalendar#1865 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
canonical/opentelemetry-collector-operator#409 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 85/100
mozilla/addons-release-tests#1243 ·
維護者通常 1 天內回覆