Skip to main content

Python SDK for reliapi - Reliability layer for API calls

Project description

reliapi-sdk

Reliability layer for API calls: retries, caching, dedup, circuit breakers.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.4
  • Package version: 1.0.4
  • Generator version: 7.17.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/kikuai-lab/reliapi

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import reliapi_sdk

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import reliapi_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import reliapi_sdk
from reliapi_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = reliapi_sdk.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
with reliapi_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = reliapi_sdk.DefaultApi(api_client)

    try:
        # Healthz
        api_response = api_instance.healthz_healthz_get()
        print("The response of DefaultApi->healthz_healthz_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->healthz_healthz_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultApi healthz_healthz_get GET /healthz Healthz
DefaultApi livez_livez_get GET /livez Livez
DefaultApi metrics_metrics_get GET /metrics Metrics
DefaultApi proxy_http_proxy_http_post POST /proxy/http Proxy HTTP request
DefaultApi proxy_llm_proxy_llm_post POST /proxy/llm Proxy LLM request
DefaultApi rapidapi_status_rapidapi_status_get GET /rapidapi/status RapidAPI Integration Status
DefaultApi readyz_readyz_get GET /readyz Readyz

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

dev@kikuai.dev

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

reliapi_sdk-1.0.4.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

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

reliapi_sdk-1.0.4-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

File details

Details for the file reliapi_sdk-1.0.4.tar.gz.

File metadata

  • Download URL: reliapi_sdk-1.0.4.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for reliapi_sdk-1.0.4.tar.gz
Algorithm Hash digest
SHA256 c2b368b3b6d0c463b19b6cfa73085d8408ef6d1b6e6dc7b694e0e93b88ca1fd1
MD5 bad1e5dfad886f357b732b47b3e2bc81
BLAKE2b-256 c0b58a1e2f11c5a3f8913a3ccacc3c8b233d7e48b197995f51f8020e316c3c9a

See more details on using hashes here.

File details

Details for the file reliapi_sdk-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: reliapi_sdk-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 36.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for reliapi_sdk-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 884dfdf625038b1fb03913707245c863c9b4ea7cbea2300de1f0f6e047a05a67
MD5 d0cc1c90130fdfe84cfe79cd59fc0824
BLAKE2b-256 623db7779a2061d1f9b58ade7a532dc735c8bbb5c81a58f80d1a4ebfbf69a2ce

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