Skip to main content

Drop-in LLM cost tracker, analyzer, and optimizer

Project description

token_purveyor

Drop-in LLM cost tracker, deduplicator, cluster analyzer, and optimizer. One line of setup.

import openai
from token_purveyor import CostAwareClient

client = CostAwareClient(openai.OpenAI())
response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello"}],
)

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

token_purveyor-0.1.0.tar.gz (32.3 kB view details)

Uploaded Source

Built Distribution

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

token_purveyor-0.1.0-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

Details for the file token_purveyor-0.1.0.tar.gz.

File metadata

  • Download URL: token_purveyor-0.1.0.tar.gz
  • Upload date:
  • Size: 32.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for token_purveyor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 846c1915178fefcc9f4cf7e0d285b9b37235d4d860b4798cf9ca118e36db82e1
MD5 6c860a6696cc7b4d3edf0ad43e260746
BLAKE2b-256 d515b31bcffa35db5e270398739393fcf0494c9de049e13487f47d3494aac65e

See more details on using hashes here.

File details

Details for the file token_purveyor-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: token_purveyor-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for token_purveyor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f81cb90ef35c115e7de06c0fd25981573265d9b22aae5514841bf97eb76d8846
MD5 dc81f2562042a39478a57f9089e1cf6f
BLAKE2b-256 60df11515da1f926e89b08bdf65bb43adbe18512d05017eb6154040de877aea0

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