Skip to main content

An adapter for requests client library consumed by the SDKs generated with APIMatic

Project description

apimatic-requests-client-adapter

PyPI Tests Test Coverage Licence

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.11 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


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

File details

Details for the file apimatic-requests-client-adapter-0.1.6.tar.gz.

File metadata

File hashes

Hashes for apimatic-requests-client-adapter-0.1.6.tar.gz
Algorithm Hash digest
SHA256 6b37cbe700178524191cbe7644aa604e60f23f4513f61ccf9022eca6ecc7bf8d
MD5 747d58c141c2a770c2ca53ad80e184fe
BLAKE2b-256 0a4b444ffd5876a55b21cae40248052c8d03f38d558b742c36d7227da3d2729d

See more details on using hashes here.

File details

Details for the file apimatic_requests_client_adapter-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for apimatic_requests_client_adapter-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dc1f6a859a93e844751c7d91683cadda45860c7c24b062cccb461f08a03c10ad
MD5 a40676e533cd1e7e055ca07df74eebc7
BLAKE2b-256 727974a91da0d72b6db0c9f26161f220450cb04214290e743ad3325a96f79101

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page