posthoganalytics
Integrate PostHog into any python application.
What it is and what it does
posthoganalytics is an automatically generated mirror of the posthog SDK, published under a separate name to avoid import conflicts within the PostHog repository itself. It provides event capture and user property tracking functionality using requests, backoff, distro, and typing-extensions as its runtime dependencies.
The package is explicitly not intended for general use—the description states 'Do not use this package' and directs users to the primary posthog package instead. It exists solely to support internal development in the posthog/posthog repository. Unless you are actively contributing to PostHog's main codebase, you should use the primary package rather than this one.
Use it for:
- Internal development in the PostHog main repository where a local posthog module creates import conflicts.
- Supporting PostHog's own test suite and internal CI/CD pipelines that require a separately named package.
- Avoiding namespace collisions when working on PostHog's codebase alongside the analytics SDK.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Sends event data and user properties to PostHog for product analytics, via HTTP requests backed by retry logic.
No. The package's own documentation explicitly states 'Do not use this package' and directs users to the primary package instead. It is a repository-internal mirror with no general-purpose value. Install the primary package unless you are contributing directly to the PostHog main repository.
Install
posthoganalytics on PyPI
pip
pip install posthoganalyticsuv
uv add posthoganalyticspoetry
poetry add posthoganalyticsInstalling posthoganalytics
Before you install
Low install friction with four lightweight runtime dependencies. Active maintenance with a release on 2026-08-14 and no known vulnerabilities.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions.
Quickstart
pip install posthoganalytics
from posthoganalytics import Posthog
posthog = Posthog(api_key='your-key', host='https://app.posthog.com')
posthog.capture('user-id', 'event-name', {'property': 'value'})
Requires Python 3.10 or later.
Verify before relying
- Whether this package's API surface and behavior remain synchronized with the primary posthog package.
- Whether the automatic mirroring process introduces any latency or version skew between releases.
- What specific import conflicts the internal repository mirroring is designed to resolve.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — requests, backoff, distro, typing-extensions |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,126,499/month — #3,272 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: posthoganalytics-7.39.1-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
kanaries-trackSends event and metric data to Kanaries' data…
permissive · top 15,000 on PyPI
posthogPostHog Python SDK integrates product analytics…
permissive · top 1,000 on PyPI
scarf-sdkA Python client for sending telemetry events to…
unclear · top 15,000 on PyPI
analytics-pythonA Python client library that sends analytics…
permissive · top 5,000 on PyPI
amplitude-analyticsOfficial Amplitude backend SDK for Python that…
permissive · top 5,000 on PyPI
snowplow-trackerSends event data from Python applications to…
permissive · top 1,000 on PyPI
openvino-telemetrySends telemetry data from OpenVINO toolkit…
permissive · top 5,000 on PyPI
customerio-cdp-analyticsSends event and user data to Customer.io's Data…
permissive · top 15,000 on PyPI
kedro-telemetryKedro-Telemetry is a plugin that collects…
permissive · top 15,000 on PyPI
minimal-snowplow-trackerSends event data from Python applications to…
permissive · top 5,000 on PyPI