Use `anyio` for async code, so that users can choose either `asyncio` or `trio` backends
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
Direzione di ricerca
Inizia esaminando l’AsyncClient asincrono e lo stack circostante basato su asyncio, quindi leggi la documentazione collegata di anyio e Trio per comprendere il confine del backend. Il lavoro è completo quando gli utenti possono scegliere asyncio o Trio senza mantenere stack separati, mentre il codice esistente che usa asyncio rimane compatibile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
👋 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.
- Lingua principale
- Python
- Stelle
- 1.3k
- Fork
- 288
- Merge medio
- 1g 8h
- PR unite (30g)
- 10
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di slackapi/bolt-python
-
docs enhancement server-side
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
slackapi/bolt-python#1576 · 1 commento ·
-
auto-triage-skip bug security semver:major
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
slackapi/bolt-python#1447 · 9 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
slackapi/bolt-python#1577 ·
-
area:async auto-triage-skip dependencies
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
slackapi/bolt-python#1472 · 1 commento · 1 reazione ·
-
auto-triage-skip enhancement
slackapi/bolt-python#1346 · 2 commenti · 1 assegnatario ·
Tutte le issue di slackapi/bolt-python
Issue simili
-
Add: hunch Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DiamondLightSource/dodal#2211 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
openml/openml-python#1749 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
sipyourdrink-ltd/bernstein#6191 ·