New python native client for FastAPI, easy to use, no schema #11743
LamaAni
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a new client for FastAPi, that uses the original FastAPI decorators to define the function calls to the api. The client dose affect the api operation at all, but dose require enabling before the api methods are decorated (e.g. before calling
@api.get(...)
). See example below.I find that for me, this "python native" client is easy to use, allows auto-complete and context sensitive help, without adding more work. It follows the simple methods that fast API uses to define the services in the api.
Usage example
Define the api,
API calls and usage,
Beta Was this translation helpful? Give feedback.
All reactions