Metadata-Version: 2.4
Name: jents
Version: 0.1.0
Summary: Jents Capture — one line to capture your LLM usage (cost, tokens, latency) into Jents.
Project-URL: Homepage, https://jents.io
Project-URL: Documentation, https://app.jents.io/academy
Author-email: Jents <niv@jents.io>
License: MIT
License-File: LICENSE
Keywords: ai,anthropic,cost,jents,llm,observability,openai,telemetry
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.8
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.20
Requires-Dist: opentelemetry-instrumentation-openai>=0.30
Requires-Dist: opentelemetry-sdk>=1.20
Provides-Extra: all
Requires-Dist: opentelemetry-instrumentation-anthropic>=0.30; extra == 'all'
Provides-Extra: anthropic
Requires-Dist: opentelemetry-instrumentation-anthropic>=0.30; extra == 'anthropic'
Description-Content-Type: text/markdown

# jents

One line to capture your LLM usage — cost, tokens, latency — into [Jents](https://jents.io).

```bash
pip install jents
```

```python
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

```python
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:

```bash
pip install "jents[anthropic]"
```

Self-hosting Jents? Point at your own endpoint:

```python
jents.init(api_key="...", endpoint="https://jents.your-company.com/api/capture")
```

## How it works

`jents` is a thin convenience layer over the [OpenTelemetry](https://opentelemetry.io)
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.
