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

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.1
File Size Uploaded Provenance Actions
imbi_plugin_posthog-2.62.1.tar.gz 4.2 kB With provenance Details for imbi_plugin_posthog-2.62.1.tar.gz

Built distribution (wheel)

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

Total release size: 8.3 kB

Release files / imbi_plugin_posthog-2.62.1.tar.gz

Download URL imbi_plugin_posthog-2.62.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
99bc13bab8cf8cef3cda33ccef1445ab6c111dfd7ef981b1fe6ba4312884f5a3
BLAKE2b-256 checksum
How to use checksums
2d968b8ceb6df0057eebd44d49a33d6c3f7eccfca093953de46bca9c07c7f165
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.1-py3-none-any.whl

Download URL imbi_plugin_posthog-2.62.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dae28a893178da2b1fe5306e54fe00b7ee5a9e8f46697d6b25f3a347ea4a9b59
BLAKE2b-256 checksum
How to use checksums
f9790d6ab4d3e8a77935f8b9d31247f642632cd1f41b2bf30d07116a27a34b15
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.1

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