An abstraction of the requests library providing a simpler interface to enable consumption of HTTP REST APIs
Project description
rest3client is an abstraction of the HTTP requests library (https://pypi.org/project/requests/) providing a simpler interface to enable consumption of HTTP REST APIs.
The library further abstracts the underlying requests methods providing HTTP verb equivalent methods for GET, POST, PATCH, PUT and DELETE. The library includes a RESTclient class that implements a consistent approach for processing request responses, extracting error messages from responses, providing standard headers to request methods, and enabling request resiliency through integration with the retrying library. The abstraction enables the consumer to focus on their business logic and less on the complexites of setting up requests and processing request responses.
A subclass inheriting RESTclient can override the base methods providing further customization and flexibility including the ability to automatically retry on exceptions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rest3client-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac1b13364c97d442355336e47e60908d45b00f601bfce931372b8bdce4050e20 |
|
MD5 | 851ce30ce80c5522ea608d3a2cf7aeb0 |
|
BLAKE2b-256 | 77166c1a8c6f7a57cf3853bb1b199f871c44e8ce5432b0a51cf5416f5dbde848 |