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
- Getting Started - Installation, configuration, troubleshooting
- API Reference - Complete API documentation
- Examples - Real-world usage examples
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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a65c0784423766b2e2080c9f6df66237bed9cc3ea15cecc377e363449c91f46
|
|
| MD5 |
38c58a1274207a4c6cb4eb62d57cb1cb
|
|
| BLAKE2b-256 |
f08a337d7466072f14f79eab1eabd5bfd72b5f84a02ca644ad203bc755e79154
|
Provenance
The following attestation bundles were made for ptelemetry-0.2.2.tar.gz:
Publisher:
publish.yml on AInvirion/ptelemetry-python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ptelemetry-0.2.2.tar.gz -
Subject digest:
5a65c0784423766b2e2080c9f6df66237bed9cc3ea15cecc377e363449c91f46 - Sigstore transparency entry: 1298978563
- Sigstore integration time:
-
Permalink:
AInvirion/ptelemetry-python-sdk@5e5424460088522b87ba2e30cb459a0d433e9052 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AInvirion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5e5424460088522b87ba2e30cb459a0d433e9052 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6141e396d424a09cf0d3e53c1807156cb47892187cbc14f385d975ee44c17b3
|
|
| MD5 |
d7fe93f94f1c26cc8afe8a1b733e2a0b
|
|
| BLAKE2b-256 |
de9333f56eb2677798c004d07dd22396ac1b0914c4e38f5f86606719a364086b
|
Provenance
The following attestation bundles were made for ptelemetry-0.2.2-py3-none-any.whl:
Publisher:
publish.yml on AInvirion/ptelemetry-python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ptelemetry-0.2.2-py3-none-any.whl -
Subject digest:
d6141e396d424a09cf0d3e53c1807156cb47892187cbc14f385d975ee44c17b3 - Sigstore transparency entry: 1298978674
- Sigstore integration time:
-
Permalink:
AInvirion/ptelemetry-python-sdk@5e5424460088522b87ba2e30cb459a0d433e9052 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AInvirion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5e5424460088522b87ba2e30cb459a0d433e9052 -
Trigger Event:
workflow_dispatch
-
Statement type: