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.0.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.0-py3-none-any.whl
(5.6 kB
view details)
File details
Details for the file adola-0.1.0.tar.gz.
File metadata
- Download URL: adola-0.1.0.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 |
d98e5e74f0999157bdf84a442a2a404afc890065efc4ac7d1bcdab1f2a42a57d
|
|
| MD5 |
f97f1e50f82565cc1ee6ff1b3d86338b
|
|
| BLAKE2b-256 |
938ca8c7ede2f664e1c1da04aefe2f1e2bb9a60e5908189a86e8f60dd6c74734
|
File details
Details for the file adola-0.1.0-py3-none-any.whl.
File metadata
- Download URL: adola-0.1.0-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 |
46fd50ac681449759fa95251f762e3052acc074e7d2e34b83adca0e28421a758
|
|
| MD5 |
ddc52243992ccc001e90d274476a43e4
|
|
| BLAKE2b-256 |
0910afc6dfd7fe6c408f2231eadd23694ab5449b0f2a333f6107c81e88e9c223
|