TrainLoop LLM Logging SDK for data collection
Project description
TrainLoop Python SDK
Zero-touch HTTP instrumentation library for collecting LLM request/response data.
📚 Documentation
For complete Python SDK documentation, installation guides, and usage examples:
Quick Links
- Python SDK Guide - Complete integration guide
- Installation - Install the SDK
- Development - Contributing to the SDK
Quick Start
# Install
pip install trainloop-llm-logging
from trainloop_llm_logging import collect
# Start collecting LLM data
collect("path/to/trainloop.config.yaml")
# Your existing LLM calls work automatically
# No code changes required!
For detailed information, visit evals.docs.trainloop.ai/docs/python
Development & Testing
For SDK development and testing information:
- Unit Tests:
poetry run pytest -m unit - Integration Tests:
python run_integration_tests.py(see INTEGRATION_TESTING.md) - Documentation: See docs/development/sdk-testing.md
Note: Integration tests cannot use pytest due to import order requirements. Use the standalone test runner instead.
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 trainloop_llm_logging-0.9.0.tar.gz.
File metadata
- Download URL: trainloop_llm_logging-0.9.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81d5d8f492eb412f9acc7ad9c777ac3305446e229e4c6241843a11dd04b46363
|
|
| MD5 |
2809e96a8ed9bcb22d7f996feefe410a
|
|
| BLAKE2b-256 |
74070485704b9e782690bbf0130ee0f9be52db13772f8e91a5ecc888bce54cdd
|
File details
Details for the file trainloop_llm_logging-0.9.0-py3-none-any.whl.
File metadata
- Download URL: trainloop_llm_logging-0.9.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4baab40901c285a3c40f2df3e90c6fd1183256fb3ac74fb2ee03208a1fdbbd40
|
|
| MD5 |
6ecc95c20ef08a2d1ff744b439d95ee5
|
|
| BLAKE2b-256 |
46ba9de1e8b048dfab030eb05bfac07f0cf5d6f9f8ef9e6f274888732e69727d
|