Skip to main content

requests-websub-auth

A micro-library providing WebSub HMAC Signature authentication for webhooks.

The HMAC signature is generated using a secret and the webhook body. It is placed in the X-Hub-Signature header in the format <algorithm>=<hmac_signature>, where the hmac_signature is a hexdigest.

Supports all of the algorithms detailed in the WebSub specification.

Installation

pip install requests-websub-auth

Usage

import requests
from requests_websub_auth import WebSubAuth, WebSubAlgorithm

auth = WebSubAuth("secret", WebSubAlgorithm.SHA256)
payload = {
    "foo": 1,
    "bar": 2
}

response = requests.post("https://foobar.com/", auth=auth, json=payload)
response.raise_for_status()

Metadata

Release files for requests-websub-auth 0.0.5

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

Source distribution (sdist)

Source distribution for requests-websub-auth 0.0.5
File Size Uploaded Provenance Actions
requests-websub-auth-0.0.5.tar.gz 6.4 kB Without provenance Details for requests-websub-auth-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for requests-websub-auth 0.0.5
File Interpreter ABI Platform Actions
requests_websub_auth-0.0.5-py3-none-any.whl Python 3 none any Details for requests_websub_auth-0.0.5-py3-none-any.whl

Total release size: 13.2 kB

Release files / requests-websub-auth-0.0.5.tar.gz

Download URL requests-websub-auth-0.0.5.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
674ee08183092ffdc9637827ca5e6ebf6d13147eb59eee1320b5f1edb6117bf6
BLAKE2b-256 checksum
How to use checksums
08042953b6009b3d78e7f29db0e70f93906322d9e03eed42849de8eb10d6bace
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / requests_websub_auth-0.0.5-py3-none-any.whl

Download URL requests_websub_auth-0.0.5-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66702189071836088a4fe0455786b2a5675bec5f92512c3b9b6e511b857f396a
BLAKE2b-256 checksum
How to use checksums
484a27de401fb4d3d63b2f85995ea8b34ed5903af222698ceccac85ac2fa1bc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for requests-websub-auth 0.0.5

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.

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files No provenance

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