Skip to main content

Adaline API - Auto-generated Python client for the Adaline platform

Reason this release was yanked:

Bad initial release, do not use, update coming soon

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.deployments_get(prompt_id, deployment_id, deployment_environment_id=deployment_environment_id)
        print("The response of DefaultApi->deployments_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->deployments_get: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
DefaultApi deployments_get GET /deployments Retrieve a specific or latest deployment
DefaultApi logs_span_post POST /logs/span Create span log
DefaultApi logs_trace_patch PATCH /logs/trace Update trace log
DefaultApi logs_trace_post 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-1.0.0.tar.gz (111.9 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-1.0.0-py3-none-any.whl (363.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for adaline_api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 036894be62bb5a9d3683bf107a652032f5cb4d4eeac465e0d6952d4a7f753e08
MD5 77fb89b5a01cc3825c43d35a2c155e1c
BLAKE2b-256 b3d8e0a55062c0fd7d6ca3836057e5d9160de7035a6becbe3528756ec80152f2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for adaline_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 938400f215beb00afea4afd78a9ff086e678e31423e0af3d1d67b02c7f7b2ef5
MD5 95ea2dd17971f0ec950ad1124683820a
BLAKE2b-256 c3dbb55cb28c9472b7789bdb72d7f416eef8808e04cbf6bef2b1ebbd48761c2c

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