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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa91102593eedbdf2a1f3eb6373ff9f8aa8f52a8018923fcfc1fe458568692d8 |
|
MD5 | 760d152be29e9b5f008629e8b4f71d04 |
|
BLAKE2b-256 | 975db7c135284af2fd41a8d60d2565b7f57dd02e7958d410df8db5bd72f64f5d |