--- id: posthoganalytics version: "7.39.1" license: MIT license_treatment: permissive maintenance: active --- # posthoganalytics — Integrate PostHog into any python application. License: permissive · Maintenance: active · Downloads: 2.1M/mo ## 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 above — 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 pip install posthoganalytics uv add posthoganalytics 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_current - Install friction: low - Maintenance: active - Downloads: 2.1M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags product analytics sdk, event tracking python, posthog integration, user analytics client, telemetry collection, feature flag analytics, session tracking, analytics, internal-only [View on SkillFed](https://skillfed.io/packages/posthoganalytics) · [View on PyPI](https://pypi.org/project/posthoganalytics/)