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.
Metadata
Release files for github-events 0.1.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 | |
|---|---|---|---|---|
| github_events-0.1.0.tar.gz | 37.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| github_events-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 77.6 kB
Release files / github_events-0.1.0.tar.gz
| Download URL | github_events-0.1.0.tar.gz |
|---|---|
| Size | 37.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e29896dfcd99bb2f6b0512c6262586f1f0009ff5d4b28af047f27a26d5aa22a
|
|
BLAKE2b-256 checksum How to use checksums |
799e2ad03b8d6e778ff2c8e516186289738bb2cc5a43c469f8bd8084a6eca305
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / github_events-0.1.0-py3-none-any.whl
| Download URL | github_events-0.1.0-py3-none-any.whl |
|---|---|
| Size | 40.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
368bb972e5e5d94debe0457ae0dd80899c4510c11513fdca06f4b3052c91817b
|
|
BLAKE2b-256 checksum How to use checksums |
0a730f9ac90b12c3a9c117938dc57ab7f73d410ac807267db7a0717184d7d7d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for github-events 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.