openapi-python-sdk
openapi-python-sdk copied to clipboard
🐍 A fully-featured and blazing-fast Python API client to interact with @Openapi®
Currently, the OpenAPI Python SDK is designed with low-level HTTP primitives. If an API request fails due to a transient error, the client raises an error or fails immediately: 1....
Ref issue #20 This PR resolves the lack of a built-in retry mechanism in the SDK client and OAuth client interfaces. Previously, any temporary network dropout, gateway timeout (502/503/504), or...
### Query parameters not properly URL-encoded (pandas data pipeline) **Description** Special characters break API calls when used in data pipelines. **Code snippet** params = { "denominazione": "azienda & co" }...
### Retry logic not compatible with urllib3 Retry (requests adapter) **Description** Cannot integrate SDK with urllib3 retry strategies. **Code snippet** from requests.adapters import HTTPAdapter from urllib3.util.retry import Retry retry =...
#### **The Problem** By default, the underlying `httpx` HTTP library used by this SDK applies a strict 5-second timeout to all network requests. If an API method takes longer than...
### No way to inject custom requests.Session (Django application) **Description** In Django projects, it's common to reuse a configured requests.Session, but the SDK does not allow it. **Code snippet** import...
### JSON response returned as string instead of dict (Flask integration) **Description** SDK returns raw string instead of parsed JSON, adding boilerplate in Flask apps. **Code snippet** from flask import...
### Large response handling causes high memory usage (PDF generation use case) **Description** SDK loads entire response into memory, problematic for large files. **Code snippet** response = client.request( "POST", base_url,...
### Token expiration not handled in long-running Airflow DAGs **Description** In Airflow DAGs, token expires and SDK does not refresh automatically. **Code snippet** from airflow import DAG client = Client("token")...
### Multipart file upload not supported (Django Rest Framework use case) **Description** Unable to upload files using SDK in DRF-based APIs. **Code snippet** files = {"file": open("test.pdf", "rb")} response =...