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-0.1.0-py3-none-any.whl
PyPI name
Once published, the package will be available on PyPI as analogai.
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)
Passing agent ID directly
from analogai_sdk import AnalogAIClient
client = AnalogAIClient(agent_id="your-agent-id")
print(client.generate_completion("your text here"))
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.2.tar.gz
(2.1 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.2.tar.gz.
File metadata
- Download URL: analogai_sdk-0.1.2.tar.gz
- Upload date:
- Size: 2.1 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 |
464470db50ba41d0bca976926614548eab91958e8e5be1225f3f47bd52bbfa93
|
|
| MD5 |
cf84b2114b38468f6459c9f73fb8903e
|
|
| BLAKE2b-256 |
efc23cad6cd4de47fced2c271835ddc1fad86b4e95e171eb723ca83fb4985a65
|
File details
Details for the file analogai_sdk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: analogai_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.7 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 |
0a16bf5bcf42c6338570dfa400f301de31e24bb93c91907dbca2ccc472500d32
|
|
| MD5 |
170e90eddab21cb42689ecaf51ad734a
|
|
| BLAKE2b-256 |
d23a0b6eef907c795b54401f3a0bb55d6b7d3f13973363cbf6054e532d340ff7
|