An adapter for requests client library consumed by the SDKs generated with APIMatic
Project description
apimatic-requests-client-adapter
Introduction
Requests is a simple, yet elegant, HTTP library. This repository contains the client implementation that uses the requests library for python SDK provided by APIMatic.
Version supported
Currenty APIMatic supports Python version 3.7 - 3.10
hence the apimatic-requests-client-adapter will need the same versions to be supported.
Installation
Simply run the command below in your SDK as the apimatic-requests-client-adapter will be added as a dependency in the SDK.
pip install apimatic-requests-client-adapter
Supported Methods Provided by requests-client
Method | Description |
---|---|
create_default_http_client |
function to creat a defaultp http client |
force_retries |
Reset retries according to each request |
execute |
Execute a given HttpRequest to get a string response back |
convert_response |
Converts the Response object of the CoreHttpClient into a CoreHttpResponse object |
Tests
The requests client implementation also contains unit tests to ensure reliability of the implementation and to prevent unwanted breakages.
Links
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 apimatic-requests-client-adapter-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 828ef4f2fb5dde88460a926565cfad64d84415a5dfc5b61e0da958f92bef30c8 |
|
MD5 | f6bbae92acfa1c8dc06124f3ac508a52 |
|
BLAKE2b-256 | 1674d263d1095c62c650997aa33766747f06021a11bd632f8830e32a41d1e94c |
Hashes for apimatic_requests_client_adapter-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb95c2d6d0704db9782146eb6195c12fb7b06eabbe913852675cab155983371f |
|
MD5 | 8ffdfbc8523ab2cd0613f962dc5f81c2 |
|
BLAKE2b-256 | 930b5c83d8b191940d7969357ea76bfbd009401b622e11195bc52a0edd7151c4 |