-
-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add FastAPI based serve functions #7205
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7205 +/- ##
==========================================
- Coverage 82.24% 82.23% -0.02%
==========================================
Files 331 337 +6
Lines 49420 50123 +703
==========================================
+ Hits 40647 41217 +570
- Misses 8773 8906 +133 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Simon Høxbro Hansen <[email protected]> Co-authored-by: Andrew <[email protected]>
Co-authored-by: Philip Meier <[email protected]>
Co-authored-by: Philip Meier <[email protected]>
If this make it very easy to add FAST API (REST) endpoints in general it would be of great value. |
Co-authored-by: Simon Høxbro Hansen <[email protected]>
This pull request has been mentioned on HoloViz Discourse. There might be relevant details there: https://discourse.holoviz.org/t/how-to-integrate-a-panel-app-with-fastapi-on-the-same-port/7601/6 |
Builds on top of bokeh-fastapi and adds two main user facing APIs:
panel.io.fastapi.serve
: Mirrors thepanel.serve
API but launches a FastAPI backed uvicorn server (optionally on a separate thread).panel.io.fastapi.add_applications
: Adds Panel applications to an existing FastAPI application.panel.io.fastapi.add_application
: Decorator to add a function returning Panel objects to the FastAPI server.@pmeier, thoughts and review appreciated. I'd like to get an initial cut of this in pretty soon but then we'll have about 1 - 1.5 weeks to add docs and more tests.