Skip to main content

Adaline API

Project description

adaline-api

API for managing Adaline deployments, logs, and core type definitions.

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

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.14.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

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 adaline_api

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 adaline_api

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import adaline_api
from adaline_api.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.adaline.ai/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = adaline_api.Configuration(
    host = "https://api.adaline.ai/v2"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): bearerAuth
configuration = adaline_api.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
async with adaline_api.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = adaline_api.DefaultApi(api_client)
    prompt_id = 'prompt_id_example' # str | The unique identifier of the prompt. Required for both specific and latest deployment retrieval.
    deployment_id = 'deployment_id_example' # str | The unique identifier of the deployment. Set to 'latest' to retrieve the latest deployment in the given environment.
    deployment_environment_id = 'deployment_environment_id_example' # str | The unique identifier of the deployment environment. Required when retrieving the latest deployment (deploymentId=latest). (optional)

    try:
        # Retrieve a specific or latest deployment
        api_response = await api_instance.get_deployment(prompt_id, deployment_id, deployment_environment_id=deployment_environment_id)
        print("The response of DefaultApi->get_deployment:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->get_deployment: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.adaline.ai/v2

Class Method HTTP request Description
DefaultApi get_deployment GET /deployments Retrieve a specific or latest deployment
DefaultApi patch_log_trace PATCH /logs/trace Update trace log
DefaultApi post_log_span POST /logs/span Create span log
DefaultApi post_log_trace POST /logs/trace Create trace log

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication (JWT)

Author

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

adaline_api-2.0.0.tar.gz (111.5 kB view details)

Uploaded Source

Built Distribution

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

adaline_api-2.0.0-py3-none-any.whl (362.9 kB view details)

Uploaded Python 3

File details

Details for the file adaline_api-2.0.0.tar.gz.

File metadata

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

File hashes

Hashes for adaline_api-2.0.0.tar.gz
Algorithm Hash digest
SHA256 77075243444dabc61f2236252bc7cfe4109d82adacc15e226daed35840dfef81
MD5 2961879fb216e9c54654852294d578e9
BLAKE2b-256 c8bf6acbf6eda0ed0a6d2186c903ad46e5710b314486b7e05689e114dd88a40c

See more details on using hashes here.

File details

Details for the file adaline_api-2.0.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for adaline_api-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7235e23812236a3bea0153fadfd56c88a21fe63cf8b2c10ffbf29180e968655b
MD5 bfb7210acbe3dc0a30766d26307f5a40
BLAKE2b-256 1518513774c835a13ecc2e42dcfef85f65058b7ecbfdb1745fadc6cd21b38750

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