Skip to main content

github-events

Typed GitHub webhook payloads, HMAC signature verification, and event dispatch.

pip install github-events
# Optional payload validation and FastAPI integration:
pip install 'github-events[fastapi]'
import os
from github_events import WebhookDispatcher

hooks = WebhookDispatcher(secret=os.environ["GITHUB_WEBHOOK_SECRET"])

@hooks.on("push")
async def on_push(payload):
    print(payload["ref"])

Pass the raw request body and GitHub webhook headers to the dispatcher, or mount its as_fastapi_router() in your FastAPI application. The base package depends only on typing-extensions. The pydantic extra adds validation; the fastapi extra adds the HTTP integration and validation dependencies.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github_events-0.1.0.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

github_events-0.1.0-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file github_events-0.1.0.tar.gz.

File metadata

  • Download URL: github_events-0.1.0.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for github_events-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7e29896dfcd99bb2f6b0512c6262586f1f0009ff5d4b28af047f27a26d5aa22a
MD5 2601c21d0f5a41b909d869be9fadda05
BLAKE2b-256 799e2ad03b8d6e778ff2c8e516186289738bb2cc5a43c469f8bd8084a6eca305

See more details on using hashes here.

File details

Details for the file github_events-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: github_events-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for github_events-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 368bb972e5e5d94debe0457ae0dd80899c4510c11513fdca06f4b3052c91817b
MD5 7e3d4575d7886b7639029b8f87cc582b
BLAKE2b-256 0a730f9ac90b12c3a9c117938dc57ab7f73d410ac807267db7a0717184d7d7d9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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