Skip to main content

The official Python SDK for Adaline - the single platform to iterate, evaluate, deploy, and monitor AI agents.

Project description

adaline-client

Official Python SDK for Adaline - Prompt management, testing, evaluation, and monitoring.

Installation

pip install adaline-client

Usage

import asyncio
from adaline import Adaline

async def main():
    # Initialize client (reads ADALINE_API_KEY and ADALINE_BASE_URL from environment)
    client = Adaline()

    # Get latest deployment
    deployment = await client.get_latest_deployment(
        prompt_id="your-prompt-id",
        deployment_environment_id="your-env-id"
    )
    print(f"Model: {deployment.prompt.config.model}")

    # Close the client
    await client.client.close()

asyncio.run(main())

Environment Variables

  • ADALINE_API_KEY - Your Adaline API key
  • ADALINE_BASE_URL - API base URL (defaults to https://api.adaline.ai/v2)

Requirements

  • Python >= 3.11

License

MIT

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_client-2.2.1.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

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

adaline_client-2.2.1-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file adaline_client-2.2.1.tar.gz.

File metadata

  • Download URL: adaline_client-2.2.1.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.11.15 Linux/6.17.0-1010-azure

File hashes

Hashes for adaline_client-2.2.1.tar.gz
Algorithm Hash digest
SHA256 d713b7148d8a7e6ce8fb1ac03ed5e097478fea46696bc78f9f29f7006698dcdc
MD5 9a8f7f634bc88cb240cd69dae776adf8
BLAKE2b-256 ad42cded32020ffcceda0275cda927270a1204054ea20c04929d8eb5c7edc92a

See more details on using hashes here.

File details

Details for the file adaline_client-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: adaline_client-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.11.15 Linux/6.17.0-1010-azure

File hashes

Hashes for adaline_client-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1cae7f348f6bd143c2b87a79889a13c972076c8a03bde05de01397a0c66b53ee
MD5 de41413aa31af041d066f8f83edc50d6
BLAKE2b-256 8410bdc6f03b79ef2cec122b97274fcbbed5d0787a3a41f41095237afcc3356b

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