FastAPI Native Client, that dose not affect the decorators or requires code generation/sync. #11343
LamaAni
started this conversation in
Show and tell
Replies: 1 comment
-
Related discussion: #11343 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reference example PR: #11342
Related to discussion here #85 and here #8242
While working with FastAPI I was wondering if there is a way to create python client API nicely, e.g. in such a way that would not require either the generation of code or the generation of a new client.
I came across
fastapi_client
and I was not satisfied. It requires a "SYNC" and dose not have context sensitive help (AFAIK). I want my users to just "install a package" and get the full functionality. I therefore came up with an example of how to solve this issue.In short, I created a "catch" mechanism in the routing to determine if the call is to be made to the original function (the route handler), or the call is to be made to the fast api client.
An example of use can be found here:
Beta Was this translation helpful? Give feedback.
All reactions