skillfed

posthoganalytics

Integrate PostHog into any python application.

posthoganalytics v7.39.1 2.1M downloads/30d#3,272 on PyPI60
Permissive license MIT Active released

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 posthoganalytics

uv

uv add posthoganalytics

poetry

poetry add posthoganalytics

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

product analytics sdkevent tracking pythonposthog integrationuser analytics clienttelemetry collectionfeature flag analyticssession tracking
analyticsinternal-only

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

kanaries-track

Sends event and metric data to Kanaries' data…

permissive · top 15,000 on PyPI

posthog

PostHog Python SDK integrates product analytics…

permissive · top 1,000 on PyPI

scarf-sdk

A Python client for sending telemetry events to…

unclear · top 15,000 on PyPI

analytics-python

A Python client library that sends analytics…

permissive · top 5,000 on PyPI

amplitude-analytics

Official Amplitude backend SDK for Python that…

permissive · top 5,000 on PyPI

snowplow-tracker

Sends event data from Python applications to…

permissive · top 1,000 on PyPI

openvino-telemetry

Sends telemetry data from OpenVINO toolkit…

permissive · top 5,000 on PyPI

customerio-cdp-analytics

Sends event and user data to Customer.io's Data…

permissive · top 15,000 on PyPI

kedro-telemetry

Kedro-Telemetry is a plugin that collects…

permissive · top 15,000 on PyPI

minimal-snowplow-tracker

Sends event data from Python applications to…

permissive · top 5,000 on PyPI