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


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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page