Latitude Telemetry for Python
Project description
Latitude Telemetry for Python
pip install latitude-telemetry
Requires Python 3.11 through 3.14.
Go to the documentation to learn more.
Usage
from latitude_telemetry import Instrumentors, Telemetry, TelemetryOptions
from openai import OpenAI
telemetry = Telemetry("my-api-key", TelemetryOptions(
instrumentors=[
Instrumentors.OpenAI,
],
))
openai = OpenAI(api_key="my-api-key")
openai.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Hello, I'm being instrumented!"}],
)
Find more examples.
Development
Requires uv 0.5.10 or higher.
- Install dependencies:
uv venv && uv sync --all-extras --all-groups - Add [dev] dependencies:
uv add [--dev] <package> - Run linter:
uv run scripts/lint.py - Run formatter:
uv run scripts/format.py - Run tests:
uv run scripts/test.py - Build package:
uv build - Publish package:
uv publish
License
The Telemetry is licensed under the LGPL-3.0 License - read the LICENSE file for details.
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
latitude_telemetry-2.0.2.tar.gz
(160.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
File details
Details for the file latitude_telemetry-2.0.2.tar.gz.
File metadata
- Download URL: latitude_telemetry-2.0.2.tar.gz
- Upload date:
- Size: 160.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44b64edb1962f966fa3e0eb39824f84cdc69911519df465baac982f11a917d3c
|
|
| MD5 |
eaf55e319f8cbccd6fd6dfd70ec75a64
|
|
| BLAKE2b-256 |
16c6ce08592cc47efed2985ed1c56c80547956bd519b15ecaaaf45d7a75eb220
|
File details
Details for the file latitude_telemetry-2.0.2-py3-none-any.whl.
File metadata
- Download URL: latitude_telemetry-2.0.2-py3-none-any.whl
- Upload date:
- Size: 25.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0b0dec2f9dfdd88a517dd647c14c46312d41c2a3d41682765ca082c63d63a3e
|
|
| MD5 |
986e993cd7073bb8e9df7800a9751ce5
|
|
| BLAKE2b-256 |
237ff18154be5804bf4ab5b35a5a8223bf75c02531b511a053c95f79b9f14104
|