Python SDK for the Adola compression API
Project description
adola
Python SDK for the Adola compression API.
pip install adola
from adola import Adola
client = Adola(api_key="adola_...")
result = client.compress(
input="Adola compresses long prompts before they reach your model.",
query="What does Adola do?",
compression={"target_ratio": 0.4},
)
print(result["output"])
print(result["receipt"]["tokens_saved"])
The client defaults to https://api.adola.app. Set ADOLA_API_KEY for auth and ADOLA_BASE_URL for local testing.
The package contains only the SDK client and does not include the Adola application codebase.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
adola-0.1.1.tar.gz
(6.3 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
adola-0.1.1-py3-none-any.whl
(5.6 kB
view details)
File details
Details for the file adola-0.1.1.tar.gz.
File metadata
- Download URL: adola-0.1.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d87876e5f928a802e9dbf74e86cd9800fbec9020e314682472d5585f1c7b6fa
|
|
| MD5 |
2063f9c91d3b77930c409771fbeb2890
|
|
| BLAKE2b-256 |
725479ec3b0298ca3819807c8fb9f200b577635a86d09de03daf068390c7630c
|
File details
Details for the file adola-0.1.1-py3-none-any.whl.
File metadata
- Download URL: adola-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
968b19972c962cd19625c3dbcad06db48fc5cd1e38893d34ef831c788bf841a2
|
|
| MD5 |
d628aa988fbe423a5af60ef3957dfad7
|
|
| BLAKE2b-256 |
a72458fcedbce0821fabfd58126232aa363bd9f2d512c284823be93409db6a15
|