Jents Capture — one line to capture your LLM usage (cost, tokens, latency) into Jents.
Project description
jents
One line to capture your LLM usage — cost, tokens, latency — into Jents.
pip install jents
import jents
jents.init(api_key="<your ingest key>", team="<your team>")
That's it. Your existing OpenAI / Anthropic calls are now captured automatically and
sent to your Jents workspace — attributed to the right team (and person, if you set
user_id). Only metadata is sent (model, tokens, cost, latency); your prompts and
responses never leave your process.
Get an ingest key in Jents: Observability → Capture → Generate ingest key.
Options
jents.init(
api_key="<your ingest key>", # required
team="Sales", # per-team cost rollups
user_id="alice@company.com", # optional per-person attribution
app_name="my-service", # optional service label
)
Capture Anthropic calls too:
pip install "jents[anthropic]"
Self-hosting Jents? Point at your own endpoint:
jents.init(api_key="...", endpoint="https://jents.your-company.com/api/capture")
How it works
jents is a thin convenience layer over the OpenTelemetry
open standard: it configures an OTLP exporter aimed at your Jents Capture endpoint and
turns on auto-instrumentation for your LLM clients. It composes cleanly with any other
OpenTelemetry tracing you already run.
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
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 jents-0.1.0.tar.gz.
File metadata
- Download URL: jents-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fa4959c9574a08ed302a0f46bbf1f19df5aa941dae42263041124b34e1bd6fa
|
|
| MD5 |
45853349c6a6bd1152d4011cbe89c6ac
|
|
| BLAKE2b-256 |
db4d2337585c8285f6e46fb73cbed4764336b9f787ac3fed2bb4698c00813a70
|
File details
Details for the file jents-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jents-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7384f2eb0225b2e2c4239f0fcd478b03f2ac61e3c241b14ee1b043d34b9ac05d
|
|
| MD5 |
15d6e60464149df3355050d5261fc102
|
|
| BLAKE2b-256 |
b4c0e009496d18dee640324c7dc470c9ed1d9c1f279e62d924cfc01e304cbce6
|