Skip to main content

Product Telemetry SDK (Python)

Privacy-first product analytics and telemetry SDK

Features

  • Privacy-first - IP hashing, GDPR compliant
  • Event tracking - Lifecycle, usage, and error events
  • User identification - Link anonymous users to known IDs
  • GDPR deletion - Self-service data deletion requests
  • Multiple opt-out mechanisms - DO_NOT_TRACK, config file, env vars
  • Minimal dependencies - Only httpx required
  • Thread-safe - Use from multiple threads safely
  • Automatic batching - Efficient event queueing and flushing

Installation

pip install ptelemetry

Quick Start

from ptelemetry import Telemetry

t = Telemetry(write_key='proj_wk_xxxxx')

# Track events
t.track('feature.used', {'feature': 'export'})

# Track errors
try:
    risky_operation()
except Exception as e:
    t.error(exception=e)

# Link to user
t.identify('user_123')

Documentation

Links

Contributing

We welcome contributions! Please read our Contributing Guidelines before submitting a pull request.

Development Setup

# Install dependencies
pip install -e ".[dev]"

# Run tests
pytest tests/ -v

# Build package
python -m build

Security

If you discover a security vulnerability, please follow our Security Policy.

License

MIT - see LICENSE file for details.

Copyright (c) 2025-2026 AInvirion LLC. All Rights Reserved.

Metadata

Release files for ptelemetry 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ptelemetry 0.2.2
File Size Uploaded Provenance Actions
ptelemetry-0.2.2.tar.gz 33.9 kB With provenance Details for ptelemetry-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ptelemetry 0.2.2
File Interpreter ABI Platform Actions
ptelemetry-0.2.2-py3-none-any.whl Python 3 none any Details for ptelemetry-0.2.2-py3-none-any.whl

Total release size: 41.5 kB

Release files / ptelemetry-0.2.2.tar.gz

Download URL ptelemetry-0.2.2.tar.gz
Size 33.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5a65c0784423766b2e2080c9f6df66237bed9cc3ea15cecc377e363449c91f46
BLAKE2b-256 checksum
How to use checksums
f08a337d7466072f14f79eab1eabd5bfd72b5f84a02ca644ad203bc755e79154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.

Transparency log

Release files / ptelemetry-0.2.2-py3-none-any.whl

Download URL ptelemetry-0.2.2-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6141e396d424a09cf0d3e53c1807156cb47892187cbc14f385d975ee44c17b3
BLAKE2b-256 checksum
How to use checksums
de9333f56eb2677798c004d07dd22396ac1b0914c4e38f5f86606719a364086b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.

Transparency log

Security for ptelemetry 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ptelemetry-0.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page