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 for OpenAI APIs.

PyPI version Python 3.12+ License: MIT

Install

pip install token-purveyor

One-line setup

import openai
from token_purveyor import CostAwareClient

client = CostAwareClient(openai.OpenAI())

# Use exactly like the real OpenAI client — nothing else changes
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.1.tar.gz (31.7 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.1-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: token_purveyor-0.1.1.tar.gz
  • Upload date:
  • Size: 31.7 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.1.tar.gz
Algorithm Hash digest
SHA256 ba4e318f55b52ab90d294b37c1a9e85b48463c19807170dc2ca1b7562d853640
MD5 47b2243e31c0ca082b0c787636f3b653
BLAKE2b-256 3ea798f923d1cb41b6a9fe8be247b890c09c9ab06e83db4c8bd6a79782fa1633

See more details on using hashes here.

File details

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

File metadata

  • Download URL: token_purveyor-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 35.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e2dbccbaea0b90faf1e839849fe56ba5854d3f330f0336a66adc36cc8195915
MD5 6f9baa146f2d99fa99b8e6ecaeb0a008
BLAKE2b-256 c5f765631672a5a5bef3051995b9d612021657e43d57ce4527ca6772d9164f95

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