PostHog Python
Please see the main PostHog docs.
SDK usage examples and code snippets live in the official documentation so they stay up to date.
Python Version Support
| SDK Version | Python Versions Supported | Notes |
|---|---|---|
| 7.3.1+ | 3.10, 3.11, 3.12, 3.13, 3.14 | Added Python 3.14 support |
| 7.0.0 - 7.0.1 | 3.10, 3.11, 3.12, 3.13 | Dropped Python 3.9 support |
| 4.0.1 - 6.x | 3.9, 3.10, 3.11, 3.12, 3.13 | Python 3.9+ required |
Documentation
- Python library docs
- Django framework docs
- Flask framework docs
- OpenFeature provider docs — use PostHog flags through the OpenFeature Python SDK
Contributing
See CONTRIBUTING.md for local setup and test instructions.
Releasing
See RELEASING.md.
Release files for posthog 7.56.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| posthog-7.56.0.tar.gz | 591.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| posthog-7.56.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / posthog-7.56.0.tar.gz
| Download URL | posthog-7.56.0.tar.gz |
|---|---|
| Size | 591.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
719749951faa2f034479aa5b43aa195d2e204bb3e666d2d0f660b06c9abb1883
|
|
BLAKE2b-256 checksum How to use checksums |
bac8f4b196681c306527c1caf32806a75cb992035ede9728b0c920e8699b9ded
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logRelease files / posthog-7.56.0-py3-none-any.whl
| Download URL | posthog-7.56.0-py3-none-any.whl |
|---|---|
| Size | 691.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f6e2be095e2952fec5691afcc0a92dd70b55dea0ea8212a67eafde20edbbfdd
|
|
BLAKE2b-256 checksum How to use checksums |
a8a56cae46f168efc86cc181ead915f426d7e1ba1497ca037659c04565804581
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency log