Lightweight LLM observability SDK with privacy-first defaults
Project description
Cecil Python SDK
cecil-sdk is a privacy-first Python SDK for LLM cost visibility and cache optimization insights.
Install
pip install cecil-sdk
Quickstart
import cecil
cecil.patch()
Default behavior is local-only. No telemetry is sent unless explicitly enabled.
Usage Analytics Report
import cecil
from openai import OpenAI
session = cecil.start_session()
client = OpenAI()
client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Summarize this SDK in one sentence."}],
)
session.print_report(usd_decimals=8)
session.save_json("cecil_usage_report.json", usd_decimals=8)
session.close()
Why Cecil
- Privacy-first defaults (hashed metadata, no raw prompt export by default)
- Fail-open instrumentation (SDK failures do not break provider calls)
- Actionable cost and cache opportunity analytics
- Lightweight integration (
import cecil; cecil.patch())
Development
pip install -e ".[dev]"
make lint
make typecheck
make test
make build
python -m twine check dist/*
python scripts/smoke_check_wheel.py
Documentation
docs/quickstart.mddocs/telemetry-opt-in.mddocs/privacy-contract.mddocs/recommendations.mddocs/release-checklist.md
License
MIT. See LICENSE.
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
cecil_sdk-0.2.0.tar.gz
(17.3 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
cecil_sdk-0.2.0-py3-none-any.whl
(21.5 kB
view details)
File details
Details for the file cecil_sdk-0.2.0.tar.gz.
File metadata
- Download URL: cecil_sdk-0.2.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e23b4482bdea8cb053c32e6fafe225a952e9512cb868e41ae5bff4e5baec9646
|
|
| MD5 |
341c61ecd57aa2b8ac72ffde87100ec9
|
|
| BLAKE2b-256 |
6bb33eb5c81a9d49fdf50770e16c5f98e8925df6f02e040e616649a8ac7f17f5
|
File details
Details for the file cecil_sdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cecil_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d30bba5150e002b2460ffda50b695bf01526b24cee3e6d42c0303934bc9caa5
|
|
| MD5 |
885b51556b5c72ba8d709f954fea93ab
|
|
| BLAKE2b-256 |
55aaf9162908bfda6b9649c4ba1ccaddb394f2e9c8921f821c29100ca61469c5
|