Burr Serving Framework
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Xem xét các ví dụ serving FastAPI được liên kết và pattern serving tùy chỉnh hiện tại trước khi thu hẹp phạm vi. So sánh các entry point được đề xuất là burr_fastapi.post và post_streaming, bao gồm các tùy chọn kiểm soát dừng và hành vi của response-model/state, đồng thời tính đến mối quan hệ với follow-up #139. Done nên có nghĩa là đã thống nhất một API ban đầu cùng với các acceptance test được ghi lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 2.6k
- Fork
- 199
- Merge trung bình
- 3 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/burr
-
status/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
apache/burr#809 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Streaming Event type, type hint, should support union typeCó thể đã có người làm @mvanhorn đã nhận 183 ngày trước. Đang mởarea/streaming area/typing good first issue help wanted kind/bug priority/high
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
apache/burr#607 · 12 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Add more instructions for applying ORM migrations for S3 deploymentCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea/storage area/ui help wanted kind/documentation priority/low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/burr#524 · 11 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Add documentation on how to run the Burr UI serverCó thể làm lại được @iamSerafinnn đã nhận 122 ngày trước và không có pull request nào đang mở. Đang mởarea/ui good first issue kind/documentation priority/low
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
apache/burr#272 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
status/needs-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 2 ngày
Issue tương tự
-
first
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
AcademySoftwareFoundation/rmtc#54 · 1 bình luận ·
-
feature/cohorts feature/feature-flags team/feature-flags
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
License examples/ as MITCó thể đã có người làm @PGrayCS đã nhận hôm nay. Đang mởdocumentation enhancement example good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
speedyk-005/yasbd-lib#383 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
interactions-py/interactions.py#1827 ·
-
Managed start can fail when OpenVMM reads its control capability before NVX writes itCó thể đã có người làm @ppenna đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày