imbi-plugin-posthog
The PostHog plugin for the Imbi
platform, distributed as a single Python package (imbi.plugins.posthog)
exposing one Integration (posthog) with one capability:
webhook-actions— receives deliveries from a PostHog webhook destination. imbi-gateway verifies the signature, finds the project, and records each delivery as an event. The capability advertises no custom actions.
The Imbi host discovers the package by scanning imbi.plugins.* and
reads the module-level PLUGIN attribute; there are no entry points.
All plugin base classes come from imbi.common.plugins.
The delivery
Configure the PostHog webhook destination with this JSON body:
{
"event": "{event}",
"person": "{person}"
}
PostHog expands {event} and {person} to objects, so a delivery is:
{
"event": {
"uuid": "...",
"event": "$pageview",
"distinct_id": "...",
"properties": {},
"timestamp": "...",
"url": "https://us.posthog.com/project/1/events/..."
},
"person": {
"id": "...",
"name": "...",
"url": "https://us.posthog.com/project/1/person/...",
"properties": {}
}
}
Signature
PostHog signs each request per the Standard Webhooks specification. The destination sends three headers:
| Header | Value |
|---|---|
Webhook-Id |
The unique id of the message |
Webhook-Timestamp |
The send time, as integer seconds since the epoch |
Webhook-Signature |
Space-separated v1,<base64> tokens |
Each token is the base64 HMAC-SHA256 of
<webhook-id>.<webhook-timestamp>.<body>, keyed by the signing secret.
PostHog signs only when the destination's Signing secret is set, so
generate a Standard Webhooks key (a base64 string, optionally prefixed
with whsec_), enter it as the Signing secret of the PostHog
destination with Signature format set to Standard Webhooks, and
put the same key in the Secret field of the Imbi webhook. The
gateway drops a delivery whose signature is missing or does not match,
and a delivery whose timestamp is more than five minutes from the
gateway clock.
The header name and prefix are the SIGNATURE_HEADER and
SIGNATURE_PREFIX constants in imbi.plugins.posthog.plugin.
Development
moon run root:setup # uv sync + pre-commit hooks
moon run posthog:test # coverage (fails under 85%)
moon run posthog:lint posthog:typecheck posthog:format # ruff + basedpyright + format check
The plugin needs no credentials (auth_type='none'): it only receives.
License
BSD-3-Clause.
Metadata
Release files for imbi-plugin-posthog 2.61.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 | Provenance | Actions |
|---|---|---|---|---|
| imbi_plugin_posthog-2.61.0.tar.gz | 4.2 kB | With provenance | Details for imbi_plugin_posthog-2.61.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imbi_plugin_posthog-2.61.0-py3-none-any.whl | Python 3 | none | any | Details for imbi_plugin_posthog-2.61.0-py3-none-any.whl |
Total release size: 8.3 kB
Release files / imbi_plugin_posthog-2.61.0.tar.gz
| Download URL | imbi_plugin_posthog-2.61.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19130e214962920daa36f6227785d06908c5ac013afde356193699f1673bcb73
|
|
BLAKE2b-256 checksum How to use checksums |
e67f7a5e8e12821d42c3b99e920ed33a4ca03e5bc03269cc0a4a7ab830ee7343
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logRelease files / imbi_plugin_posthog-2.61.0-py3-none-any.whl
| Download URL | imbi_plugin_posthog-2.61.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
788916cdafe083056c99a1d384489c395c22ed11a4a5f087fe4a49978d80d3a6
|
|
BLAKE2b-256 checksum How to use checksums |
c0d96aca2c67d47e1a7415711f060e0bbc4fe50f4a94b5d2fc13fdc66d8b8e53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logSecurity for imbi-plugin-posthog 2.61.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for imbi_plugin_posthog-2.61.0.tar.gz
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 Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.