Skip to main content

hookfreight

Official Python SDK for Hookfreight.

Capture, inspect, replay, and reliably deliver webhooks with full visibility.

Installation

pip install hookfreight

Quick Start

Hookfreight Cloud

from hookfreight import Hookfreight

hf = Hookfreight(api_key="hf_sk_...")

result = hf.deliveries.list({"limit": 10})
print(result["deliveries"])

Self-Hosted

from hookfreight import Hookfreight

hf = Hookfreight(base_url="http://localhost:3030/api/v1")

Configuration

Option Type Default Description
api_key str API key for Hookfreight Cloud. Optional for self-hosted.
base_url str https://api.hookfreight.com/v1 Base URL of the API. Override for self-hosted.
timeout int 30000 Request timeout in milliseconds.

Usage

from hookfreight import Hookfreight

hf = Hookfreight(api_key="hf_sk_...")

app = hf.apps.create({"name": "My App"})
endpoint = hf.endpoints.create({
    "name": "Stripe",
    "app_id": app["id"],
    "forward_url": "https://example.com/webhooks/stripe",
})

event = hf.events.get("evt_...")
print(event["body"])

stats = hf.deliveries.queue_stats()
print(stats)

Error Handling

from hookfreight import Hookfreight, NotFoundError, ValidationError, ConnectionError

hf = Hookfreight(api_key="hf_sk_...")

try:
    hf.apps.get("app_nonexistent")
except NotFoundError:
    print("App not found")
except ValidationError as err:
    print(err.errors)
except ConnectionError as err:
    print(err)

Examples

  • examples/basic_usage.py
  • examples/manage_endpoints.py
  • examples/retry_failed_deliveries.py
  • examples/monitor_queue.py

Run an example:

HOOKFREIGHT_API_KEY=hf_sk_... python examples/basic_usage.py

License

Apache-2.0

Release files for hookfreight 0.1.2

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

Source distribution (sdist)

Source distribution for hookfreight 0.1.2
File Size Uploaded
hookfreight-0.1.2.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hookfreight 0.1.2
File Interpreter ABI Platform
hookfreight-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size:25.0 kB

Release files / hookfreight-0.1.2.tar.gz

Download URL hookfreight-0.1.2.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bfcbec8f288e837d723473657b19828056a6d0585175e8d70ba069728a178099
BLAKE2b-256 checksum
How to use checksums
224dc2d767c34efcc06acaca1d04bf19f276e03c35897d165ca98737e3d37431
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 28, 2026.

Transparency log

Release files / hookfreight-0.1.2-py3-none-any.whl

Download URL hookfreight-0.1.2-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4aaad681ca23c7c6d762d1b0a9109082f1531b7550e18fa459be56d17b9bb6b7
BLAKE2b-256 checksum
How to use checksums
6ea964d9324da80994f737b6db2d305eda3dba40f7ea3ff398fae7d9b0453234
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release 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