Skip to main content

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.62.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imbi-plugin-posthog 2.62.0
File Size Uploaded Provenance Actions
imbi_plugin_posthog-2.62.0.tar.gz 4.2 kB With provenance Details for imbi_plugin_posthog-2.62.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for imbi-plugin-posthog 2.62.0
File Interpreter ABI Platform Actions
imbi_plugin_posthog-2.62.0-py3-none-any.whl Python 3 none any Details for imbi_plugin_posthog-2.62.0-py3-none-any.whl

Total release size: 8.3 kB

Release files / imbi_plugin_posthog-2.62.0.tar.gz

Download URL imbi_plugin_posthog-2.62.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
efc8b3b1bdb84f80ae8ac1d2f32af6ebe256775c959cbac64e015d0915193d13
BLAKE2b-256 checksum
How to use checksums
7be83c662ce30e16a13357f9b86ffc6c14f24e90954707fac0ad9209fe115b5d
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 25, 2026.

Transparency log

Release files / imbi_plugin_posthog-2.62.0-py3-none-any.whl

Download URL imbi_plugin_posthog-2.62.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6d9b2ec22c22734ec827c46092d5158d43d6e3069c92cceacd3368f58697f9b
BLAKE2b-256 checksum
How to use checksums
a018cecf353e1c6384130c103b15e50bd1069ccd146b101ac6b08879109cb38a
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 25, 2026.

Transparency log

Security for imbi-plugin-posthog 2.62.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.

Select from 2 files

Attestation for imbi_plugin_posthog-2.62.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 25, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page