Skip to main content

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


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.0.tar.gz (160.2 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-2.0.0-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file latitude_telemetry-2.0.0.tar.gz.

File metadata

  • Download URL: latitude_telemetry-2.0.0.tar.gz
  • Upload date:
  • Size: 160.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for latitude_telemetry-2.0.0.tar.gz
Algorithm Hash digest
SHA256 c5eff37f19c5f69097781aff5bfe689d5d58e3cbdf35ca57b25e98c6fd332020
MD5 f7adb5b74e4f274b3112219956008ecf
BLAKE2b-256 ed05b94d3c6582b4288b0dbb92a64cac772d1a90bac448d15b1ad0b96604084c

See more details on using hashes here.

File details

Details for the file latitude_telemetry-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: latitude_telemetry-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for latitude_telemetry-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cb9de57eaabba7b026b48f7d6d7cf16399787c0ab8e88bad8823a6b9de9c01c
MD5 51084c4a70094cb29bb4cad52cb4e177
BLAKE2b-256 7f6c7ef13e66054acd67d926d670d4ce20ac858975265c1276086ba7cc7bdcc5

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