apimatic-requests-client-adapter-0.1.3


توضیحات

An adapter for requests client library consumed by the SDKs generated with APIMatic
ویژگی مقدار
سیستم عامل -
نام فایل apimatic-requests-client-adapter-0.1.3
نام apimatic-requests-client-adapter
نسخه کتابخانه 0.1.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده APIMatic
ایمیل نویسنده support@apimatic.io
آدرس صفحه اصلی https://github.com/apimatic/requests-client-adapter
آدرس اینترنتی https://pypi.org/project/apimatic-requests-client-adapter/
مجوز MIT
# apimatic-requests-client-adapter [![PyPI][pypi-version]][pypi-apimatic-requests-client-adapter-url] [![Tests][test-badge]][test-url] [![Test Coverage][test-coverage-url]][code-climate-url] [![Licence][license-badge]][license-url] ## 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. ```python pip install apimatic-requests-client-adapter ``` **Supported Methods Provided by requests-client** | Method | Description | | -----------------------------------------------------------------------------------|----------------------------------------------------------------------------------| | [`create_default_http_client`](apimatic_requests_client_adapter/requests_client.py)| function to creat a defaultp http client | | [`force_retries`](apimatic_requests_client_adapter/requests_client.py) | Reset retries according to each request | | [`execute`](apimatic_requests_client_adapter/requests_client.py) | Execute a given HttpRequest to get a string response back | | [`convert_response`](apimatic_requests_client_adapter/requests_client.py) | 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 * [apimatic-core-interfaces](https://pypi.org/project/apimatic-core-interfaces/) * [Requests](https://pypi.org/project/requests/) [pypi-version]: https://img.shields.io/pypi/v/apimatic-requests-client-adapter [pypi-apimatic-requests-client-adapter-url]: https://pypi.org/project/apimatic-requests-client-adapter/ [test-badge]: https://github.com/apimatic/requests-client-adapter/actions/workflows/test-runner.yml/badge.svg [test-url]: https://github.com/apimatic/requests-client-adapter/actions/workflows/test-runner.yml [code-climate-url]: https://codeclimate.com/github/apimatic/requests-client-adapter [maintainability-url]: https://api.codeclimate.com/v1/badges/1daeb05c58b9a252043c/maintainability [test-coverage-url]: https://api.codeclimate.com/v1/badges/1daeb05c58b9a252043c/test_coverage [license-badge]: https://img.shields.io/badge/licence-MIT-blue [license-url]: LICENSE


نیازمندی

مقدار نام
~=0.1.0 apimatic-core-interfaces
~=2.25 requests
~=0.12.6 cachecontrol


نحوه نصب


نصب پکیج whl apimatic-requests-client-adapter-0.1.3:

    pip install apimatic-requests-client-adapter-0.1.3.whl


نصب پکیج tar.gz apimatic-requests-client-adapter-0.1.3:

    pip install apimatic-requests-client-adapter-0.1.3.tar.gz