Skip to main content

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


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-0.1.0b6.tar.gz (125.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

latitude_telemetry-0.1.0b6-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file latitude_telemetry-0.1.0b6.tar.gz.

File metadata

  • Download URL: latitude_telemetry-0.1.0b6.tar.gz
  • Upload date:
  • Size: 125.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for latitude_telemetry-0.1.0b6.tar.gz
Algorithm Hash digest
SHA256 38f3c7a877d7bdab7ed0e6d71d5f1d2ea23fe6cd7d1231b058ed3b00110f5f99
MD5 bfbce1dec8590f57c0a3f61248c9b7ba
BLAKE2b-256 87008347857b4d2bb8c66a1a9252c79174ca761b34aa4bfc92dc887dcfea2572

See more details on using hashes here.

File details

Details for the file latitude_telemetry-0.1.0b6-py3-none-any.whl.

File metadata

File hashes

Hashes for latitude_telemetry-0.1.0b6-py3-none-any.whl
Algorithm Hash digest
SHA256 abeecc9cd499dfbcd0cfa4f3f55a5556fcc0b01653b35c431a7c74043ecf2fc1
MD5 8b36cd60442f5d439e33823471f8fc6d
BLAKE2b-256 e2f2888f0ee097a4e10c5b8804954984c2ade96ff300a3707752fa601ee58c47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page