0.1.5
This version adds a bunch of new features. Listed below.
- Added support for most of the HTTPX client arguments as kwargs to be passed into both Service and Resource class. This includes things like cookies, auth, transport, cert etc. That way you can reuse a transport object in all your resources / services.
- Added backoff retries for all the http calls with configurable no. of retries.
- Added support for providing your own
httpx.AsyncClient
instance as a field in both Service and Resource class. This can also be any other class that subclasseshttpx.AsyncClient
(for example, the Oauth2 client from authlib). - Added a new decorator
.handler(...)
for a resource to decorate a custom user-defined function for a resource sub-path. This enables more fine-grained control over the http calls and also injects the a reference to the resource instance inside the function for easier access. - General bug fixes
- Documentation changes