Releases: posthook/posthook-python
Releases · posthook/posthook-python
v1.2.0
What's new
- WebSocket listener:
listen()andstream()APIs for real-time hook delivery via persistent WebSocket connection - Result type: Shared
ack/accept/nackpattern across HTTP and WebSocket handlers - ASGI/WSGI handlers: Handler wrappers with automatic signature verification and Result dispatch
- SSL compatibility: certifi-backed SSL context for websockets library
- HTTP fallback: Automatic fallback to HTTP delivery when no listener is connected
See the README for usage examples.
v1.1.0
What's New
- Async hooks support:
ack()andnack()callbacks for long-running webhook processing - See the Async Hooks guide for details
v1.0.0
posthook-python v1.0.0
The official Python SDK for Posthook — schedule webhooks and deliver them reliably.
Features
- Sync and async clients (
PosthookandAsyncPosthook) - Schedule hooks with relative delay, absolute UTC time, or local time with timezone
- Manage hooks: get, list, delete with auto-paginating
list_alliterator - Bulk operations: retry, replay, cancel (by IDs or by filter)
- Webhook signature verification for Flask, Django, and FastAPI
- Typed errors with
PosthookErrorhierarchy - Quota tracking on schedule responses
- Only dependency: httpx
Install
pip install posthook-pythonRequires Python 3.9+. See the README for full documentation.