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-1.0.1.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-1.0.1-py3-none-any.whl (362.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: adaline_api-1.0.1.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-1.0.1.tar.gz
Algorithm Hash digest
SHA256 23cb7bdf6da79c052f896bef3701c5fddb90864fec3c2c8849d7622b4b481bc9
MD5 319d1f1aaaa48324f0c46f3e5f787d82
BLAKE2b-256 ad813539eaf49d1fc1a6ae702d920a3a993ca77152f0ad536fbaaf15bffca1f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: adaline_api-1.0.1-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-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64469ec08c4bf55afddf5ea91e5a6a2bb31543c4066750b895f626ba6146185d
MD5 7117a377f8057398cac0731cc25784ba
BLAKE2b-256 9d3f6e094a8fd2f6df94c6239fa8a55813285acc52757ce52fea2bb4e95c3f6d

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