Skip to main content

Standard Webhooks HMAC-SHA256 signing and verification for EEP

Project description

eep-signer (Python)

Python port of @eep-dev/signer — Standard Webhooks HMAC-SHA256 signing and verification for EEP.

Install

pip install -e .

Usage

from eep_signer import EEPSigner, verify_eep_webhook

# Sign a webhook
signer = EEPSigner(secret)
signature = signer.sign(webhook_id, timestamp, raw_body)

# Verify a webhook (low-level)
is_valid = signer.verify(webhook_id, timestamp, signature, raw_body)

# Verify a webhook (convenience — FastAPI / Flask)
from eep_signer import verify_eep_webhook
is_valid = verify_eep_webhook(raw_body, request.headers, secret)

Tests

pip install -e ".[dev]"
pytest

License

Apache-2.0

Project details


Download files

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

Source Distribution

eep_signer-0.1.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

eep_signer-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eep_signer-0.1.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for eep_signer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 da7617863182d54f5ad175b510f5b65ac6589fab4e0760ccf5aa4e16557df714
MD5 ac3ae1e8b9759162051eb24c35bf8533
BLAKE2b-256 a4371055fe8a90d1e2e6baaa9b1612ed792055be13242339ed584fd6fb1d5cfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eep_signer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for eep_signer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 181263c93678971e4b9c64292ac98a2bd322fc0e0fc8951344a3a80ce24cb678
MD5 35e644f8c98cd77f8a7e36f7b02e1839
BLAKE2b-256 d3e4c1cd165870ceb7eda94942b425de2749ce75719bd8a6fd4c9d5ffbb92f78

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page