Skip to main content

Python SDK for ProductTelemetry - privacy-first product analytics

Project description

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.

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

ptelemetry-0.2.2.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

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

ptelemetry-0.2.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file ptelemetry-0.2.2.tar.gz.

File metadata

  • Download URL: ptelemetry-0.2.2.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ptelemetry-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5a65c0784423766b2e2080c9f6df66237bed9cc3ea15cecc377e363449c91f46
MD5 38c58a1274207a4c6cb4eb62d57cb1cb
BLAKE2b-256 f08a337d7466072f14f79eab1eabd5bfd72b5f84a02ca644ad203bc755e79154

See more details on using hashes here.

Provenance

The following attestation bundles were made for ptelemetry-0.2.2.tar.gz:

Publisher: publish.yml on AInvirion/ptelemetry-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ptelemetry-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: ptelemetry-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ptelemetry-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d6141e396d424a09cf0d3e53c1807156cb47892187cbc14f385d975ee44c17b3
MD5 d7fe93f94f1c26cc8afe8a1b733e2a0b
BLAKE2b-256 de9333f56eb2677798c004d07dd22396ac1b0914c4e38f5f86606719a364086b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ptelemetry-0.2.2-py3-none-any.whl:

Publisher: publish.yml on AInvirion/ptelemetry-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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