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 Maintainability Rating Vulnerabilities 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+ 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

apimatic_requests_client_adapter-0.1.10.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file apimatic_requests_client_adapter-0.1.10.tar.gz.

File metadata

File hashes

Hashes for apimatic_requests_client_adapter-0.1.10.tar.gz
Algorithm Hash digest
SHA256 30698bfc26aedc655100c926424b4b0fae77d856aa3d4eccef9537fb856f9c76
MD5 a03601e021164e9ec9e3c5da6b5a97f4
BLAKE2b-256 20959c66b60bf9c9fcf3ae926fe86013f057a6710ae7cbfd818d8f4eda1ea565

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apimatic_requests_client_adapter-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 9c68c1038b169a27a2d1e0bd231a63f3f5396223e8bb232d67d47d0d055ea047
MD5 54c0eeb645ce08f6496f5b8f4d5d8917
BLAKE2b-256 2ae20ad4ddf933d0dbc8c7ba17135c2c06e467c5c74984eefebce3c8c4451f37

See more details on using hashes here.

Supported by

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