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.
Release files for adola 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| adola-0.1.1.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adola-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / adola-0.1.1.tar.gz
| Download URL | adola-0.1.1.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d87876e5f928a802e9dbf74e86cd9800fbec9020e314682472d5585f1c7b6fa
|
|
BLAKE2b-256 checksum How to use checksums |
725479ec3b0298ca3819807c8fb9f200b577635a86d09de03daf068390c7630c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / adola-0.1.1-py3-none-any.whl
| Download URL | adola-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
968b19972c962cd19625c3dbcad06db48fc5cd1e38893d34ef831c788bf841a2
|
|
BLAKE2b-256 checksum How to use checksums |
a72458fcedbce0821fabfd58126232aa363bd9f2d512c284823be93409db6a15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|