Latitude Telemetry for Python
Project description
Latitude Telemetry for Python
pip install latitude-telemetry
Requires Python 3.9 or higher.
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-1.0.0.tar.gz
(125.8 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-1.0.0.tar.gz.
File metadata
- Download URL: latitude_telemetry-1.0.0.tar.gz
- Upload date:
- Size: 125.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc1b1e9b45827092767ea0972749948df5914df546541b4dc5ffa36e07ee6a69
|
|
| MD5 |
f51e4f91f5c9880668cccec929c03240
|
|
| BLAKE2b-256 |
f1aba0d7e3996c7ca13688c8e1b74733be0bc1b9cce4d1b14c5950396cbbfd8a
|
File details
Details for the file latitude_telemetry-1.0.0-py3-none-any.whl.
File metadata
- Download URL: latitude_telemetry-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42d016e55d928ef0c072879af355af332cfe3d6a9ac4f36469a63b7d96fface3
|
|
| MD5 |
e44e8398c19eb93b9343b041649d9875
|
|
| BLAKE2b-256 |
0a1341fc1443a6c7c09c59a1b2462af5cffe0c5c71f94ebda34d318e6d599932
|