Skip to main content

Minimal Python SDK for AnalogAI completion endpoints

Project description

AnalogAI SDK (minimal)

This workspace contains a tiny Python helper for calling AnalogAI completion endpoints.

Setup

  1. Install dependencies with Poetry.
  2. Set environment variables in .env (already created with placeholders):
    • ANALOGAI_API_KEY
    • ANALOGAI_AGENT_ID
    • ANALOGAI_BASE_URL (optional; defaults to https://app.analogai.net:7777)

Install (Poetry)

poetry install

Local install (editable)

poetry run pip install -e .

Global install (Poetry)

poetry build
pip install dist/analogai_sdk-0.1.0-py3-none-any.whl

PyPI name

Once published, the package will be available on PyPI as analogai-sdk.

Usage

from analogai_sdk import AnalogAIClient

client = AnalogAIClient()
print(client.generate_completion("your text here"))

for chunk in client.generate_streaming_completion("your text here"):
    print(chunk)

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

analogai_sdk-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

analogai_sdk-0.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file analogai_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: analogai_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/11

File hashes

Hashes for analogai_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 39fa03fcc6dfb96aab3da3771a0d2da2f8ded0575866b8f7b1cc410e3dd63c29
MD5 01093267220c27e171074a748b86e5df
BLAKE2b-256 2acbcab667e23555888a81ea1d5a66dea312e579639d95897fc26fa281ca75f7

See more details on using hashes here.

File details

Details for the file analogai_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: analogai_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/11

File hashes

Hashes for analogai_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47e0bd97cbda230dcc1abf251afbf2066f02a556093812e339c530bfe2dd6d69
MD5 f5061582e95858d14a51b558319266d1
BLAKE2b-256 2934076f8326c89cb9f09e8dc2c6002a94ecfea9a7e83eeeb07e5a0e1829440e

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