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
- Install dependencies with Poetry.
- Set environment variables in
.env(already created with placeholders):ANALOGAI_API_KEYANALOGAI_AGENT_IDANALOGAI_BASE_URL(optional; defaults tohttps://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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39fa03fcc6dfb96aab3da3771a0d2da2f8ded0575866b8f7b1cc410e3dd63c29
|
|
| MD5 |
01093267220c27e171074a748b86e5df
|
|
| BLAKE2b-256 |
2acbcab667e23555888a81ea1d5a66dea312e579639d95897fc26fa281ca75f7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47e0bd97cbda230dcc1abf251afbf2066f02a556093812e339c530bfe2dd6d69
|
|
| MD5 |
f5061582e95858d14a51b558319266d1
|
|
| BLAKE2b-256 |
2934076f8326c89cb9f09e8dc2c6002a94ecfea9a7e83eeeb07e5a0e1829440e
|