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.
Metadata
Release files for trainloop-llm-logging 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trainloop_llm_logging-0.9.0.tar.gz | 16.1 kB | Without provenance | Details for trainloop_llm_logging-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trainloop_llm_logging-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for trainloop_llm_logging-0.9.0-py3-none-any.whl |
Total release size: 37.2 kB
Release files / trainloop_llm_logging-0.9.0.tar.gz
| Download URL | trainloop_llm_logging-0.9.0.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81d5d8f492eb412f9acc7ad9c777ac3305446e229e4c6241843a11dd04b46363
|
|
BLAKE2b-256 checksum How to use checksums |
74070485704b9e782690bbf0130ee0f9be52db13772f8e91a5ecc888bce54cdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1018-azure
|
Release files / trainloop_llm_logging-0.9.0-py3-none-any.whl
| Download URL | trainloop_llm_logging-0.9.0-py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4baab40901c285a3c40f2df3e90c6fd1183256fb3ac74fb2ee03208a1fdbbd40
|
|
BLAKE2b-256 checksum How to use checksums |
46ba9de1e8b048dfab030eb05bfac07f0cf5d6f9f8ef9e6f274888732e69727d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1018-azure
|
Security for trainloop-llm-logging 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.