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.
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
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
token_purveyor-0.1.1.tar.gz
(31.7 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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba4e318f55b52ab90d294b37c1a9e85b48463c19807170dc2ca1b7562d853640
|
|
| MD5 |
47b2243e31c0ca082b0c787636f3b653
|
|
| BLAKE2b-256 |
3ea798f923d1cb41b6a9fe8be247b890c09c9ab06e83db4c8bd6a79782fa1633
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e2dbccbaea0b90faf1e839849fe56ba5854d3f330f0336a66adc36cc8195915
|
|
| MD5 |
6f9baa146f2d99fa99b8e6ecaeb0a008
|
|
| BLAKE2b-256 |
c5f765631672a5a5bef3051995b9d612021657e43d57ce4527ca6772d9164f95
|