Skip to main content

Reduce your AI bill up to 78% — context compression for OpenAI and Anthropic.

Project description

aetus

Python SDK for Aetus context compression.

Install

pip install aetus

Usage

from aetus import Aetus

aetus = Aetus()
result = aetus.compress(
    messages,
    query="What should the model answer next?",
)

print(result["compressed"])
print(result["savings_pct"])

Set AETUS_API_KEY to a key created at aetus.vercel.app/dashboard/keys.

Pass base_url to override the hosted API.

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

aetus-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aetus-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file aetus-1.0.0.tar.gz.

File metadata

  • Download URL: aetus-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for aetus-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c5be95c3af36f55fa1a773f50e7bae11529bc8ee150f041ba1e2bd64555f1eb3
MD5 2e5c05960c67af8dbf8d13721f9d8c8d
BLAKE2b-256 28888a10486e750f907523b84d56b95230b89734679895924692b601202549bb

See more details on using hashes here.

File details

Details for the file aetus-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: aetus-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for aetus-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16e35e5d8f5fb57744c751cfe9c7cd19fc9f37a9771d245720da138e5633109c
MD5 d59889d8494caf7444ba29733833294e
BLAKE2b-256 3a26a7a90124515a3770f4421b4c0b126d6d2289320cf5955d19726e622de87e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page