Burr Serving Framework
I maintainer di solito rispondono entro 4 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Esamina gli esempi di serving FastAPI collegati e l’attuale pattern di serving personalizzato prima di restringere l’ambito. Confronta gli entry point proposti burr_fastapi.post e post_streaming, inclusi i controlli di arresto e il comportamento di response-model/state, e considera la relazione con il follow-up #139. Done dovrebbe significare che è stata concordata una prima API con test di accettazione documentati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
We have some examples of serving in FastAPI. They all follow the same pattern. We should be able to automate this (to some extent):
Describe the solution you'd like
A few thoughts:
In FastAPI:
burr_app = Application()....build()
app = FastAPI()
burr_fastapi.post("/api/v0/...", app, burr_app, halt_after=..., halt_before=..., ..., response_model=CustomResponseModel)
burr_fastapi.post_streaming("/api/v0/...", app, burr_app, halt_after=..., halt_before=..., ..., response_model=CustomResponseModel)
Then CustomResponseModel has to be instantiatable from state dict (E.G. be a subset/have the right defaults).
Could also decorate functions -- these inject the results in
burr_app = Application()....build()
app = FastAPI()
@burr_fastapi.post("/api/v0/...", app, burr_app, halt_after=..., halt_before=..., ...)
def my_burr_endpoint(burr_state, burr_action, burr_result) -> MyResponse:
return MyResponse(...)
Note that we could also derive it if we set up the fields we expose in state + add #139 -- this is something we'd want to do later, but...
burr_app = ...
app = FastAPI()
burr_fastapi.post("/api/v0/...", app, burr_app, halt_after=..., halt_before=..., ...)
This could automatically derive the response model based on types statically inferred + halt_before/halt_after, although it's a little complicated...
Describe alternatives you've considered
Can do custom like we do now.
Additional context
As asked on discord -- this is part 1
- Lingua principale
- Python
- Stelle
- 2.6k
- Fork
- 209
- Merge medio
- 8g 9h
- PR unite (30g)
- 26
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi 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 apache/burr
-
Notebook UI launcher should use the current Python interpreterForse già presa @sivakumar-mahalingam l’ha presa 2 giorni fa. Apertastatus/needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 4 giorni
-
astep() passes unprocessed inputs to pre_run_step hooksForse già presa @sivakumar-mahalingam l’ha presa 2 giorni fa. Apertastatus/needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 4 giorni
-
`burr` fails to start when the Python path has a space in itForse già presa @enekoreto l’ha presa 5 giorni fa. Apertastatus/needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 4 giorni
-
Add more instructions for applying ORM migrations for S3 deploymentForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaarea/storage area/ui help wanted kind/documentation priority/low
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
apache/burr#524 · 11 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
Add documentation on how to run the Burr UI serverForse di nuovo libera @iamSerafinnn l’ha presa 134 giorni fa e non c’è nessuna pull request aperta. Apertaarea/ui good first issue kind/documentation priority/low
Difficoltà 2/5 Mezza giornata Idoneità per principianti 68/100
apache/burr#272 · 5 commenti ·
I maintainer di solito rispondono entro 4 giorni
Issue simili
-
idxmax/idxmin raise ValueError when a single partition is all-NAForse già presa @Jason10191019999 l’ha presa oggi. Apertaneeds triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 3 giorni
-
Old versions of datamodelsApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
[BUG]: Windows GUI package of v1.17.0-rc3 has no GTK DLLsForse già presa @andrut-ds l’ha presa oggi. Apertabug CI/CD Pactus-GUI Windows
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
pactus-project/pactus#2428 ·
I maintainer di solito rispondono entro 1 giorno
-
DiskDataset.reshard() can hang with a zero or negative shard sizeForse già presa @Programmer-Develops l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 19 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
GNS3/gns3-server#3017 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno