LLM observability SDK for Revefi - Traceloop-based monitoring with custom ingestor service
Project description
Revefi LLM SDK
A minimal Python SDK for LLM observability with Revefi's monitoring platform.
Installation
pip install revefi-llm-sdk
Quick Start
from revefi_llm_sdk import init_llm_observability
# Initialize the SDK
init_llm_observability(
api_key="your-revefi-api-key",
agent_name="my-llm-agent",
ingestor_url="https://your-revefi-instance.com"
)
# Your LLM calls will now be automatically tracked
import openai
client = openai.OpenAI()
response = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": "Hello!"}]
)
Configuration
api_key: Your Revefi API key for authenticationagent_name: Name identifier for your agent/applicationingestor_url: Revefi ingestor service URL (defaults to localhost:6556)
Supported LLM Providers
- OpenAI
- Anthropic
Development & Distribution
Building Distribution Files
The dist/ directory contains the distribution files that are built from the source code and uploaded to PyPI. These files are generated using Python's build tools:
# Build distribution files (generates .whl and .tar.gz files in dist/)
python -m build
# This creates:
# - dist/revefi_llm_sdk-{version}-py3-none-any.whl (wheel package)
# - dist/revefi_llm_sdk-{version}.tar.gz (source distribution)
Update the version in pyproject.toml before building to ensure the correct version is included in the distribution files.
Publishing to PyPI
The distribution files are uploaded to the Python Package Index (PyPI) registry using twine:
# Upload to PyPI (requires valid PyPI credentials)
python -m twine upload dist/*
# For testing, upload to Test PyPI first:
python -m twine upload --repository testpypi dist/*
Note: The files in dist/ are automatically generated and should not be manually edited. They are created from the source code defined in revefi_llm_sdk/ and the project configuration in pyproject.toml.
License
MIT
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
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 revefi_llm_sdk-0.1.1.2.tar.gz.
File metadata
- Download URL: revefi_llm_sdk-0.1.1.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bf662924c9755e666c294164ed29f3d9bb9fce4bcefbc01622e8dd2fb24b0f5
|
|
| MD5 |
7c6f683a9b650e85353eab43df02a241
|
|
| BLAKE2b-256 |
65f0237e03583ce5d6361e2257c41e92d3942d731a103a7d265fbd0bad6556aa
|
File details
Details for the file revefi_llm_sdk-0.1.1.2-py3-none-any.whl.
File metadata
- Download URL: revefi_llm_sdk-0.1.1.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c5df95eebf0694c89e0600c9b8b22208768b499ee5267c4861ac526b7d1a7ce
|
|
| MD5 |
0daa07d84050be686ba55e26e5a75acc
|
|
| BLAKE2b-256 |
62c3f2c057f121356a5388d1f4cda1beda2310ce263f18afe83b98828d80f0f8
|