A Python package for LLM execution tracking and flow analysis
Project description
Aviro
A Python package for LLM execution tracking and flow analysis.
Installation
You can install aviro using pip:
pip install aviro
Usage
import aviro
# Create a Tropir instance for tracking
tropir = aviro.Tropir(api_key="your-api-key", base_url="https://api.tropir.com")
# Use as a context manager to track LLM calls
with tropir.span("my_llm_workflow"):
# Your LLM calls will be automatically tracked
pass
# Or use the Span class directly
span = aviro.Span("my_span", api_key="your-api-key")
with span.track_calls("my_case"):
# LLM calls tracked here
pass
Development
To set up the development environment:
# Clone the repository
git clone https://github.com/yourusername/aviro.git
cd aviro
# Install in development mode
pip install -e .
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black aviro tests
# Lint code
flake8 aviro tests
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for your changes
- Run the test suite
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
aviro-0.1.1.tar.gz
(25.2 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
aviro-0.1.1-py3-none-any.whl
(23.8 kB
view details)
File details
Details for the file aviro-0.1.1.tar.gz.
File metadata
- Download URL: aviro-0.1.1.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52e1123b3d570dc8abbe1e534f13d572111925418de872076f162fa7d4ad3675
|
|
| MD5 |
1bcc7b5c2bf4f3578758619af82d4c44
|
|
| BLAKE2b-256 |
86df00f2e4b49851874bd352ac096d74e5e21705748c251fb9d52aacc334b558
|
File details
Details for the file aviro-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aviro-0.1.1-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
badb3011631dfb85ef548538d2324839db084b87e70ab659da115826d58ef91a
|
|
| MD5 |
3445fbeec60e7de8c02b463f33021521
|
|
| BLAKE2b-256 |
3d371cedd3576a3c7b0ae85b005592feec49a7f51ef667a9d9bab77a1488392a
|