hookbridge 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
hookbridge/__init__.py ADDED
@@ -0,0 +1,72 @@
1
+ """
2
+ HookBridge SDK for Python
3
+
4
+ Send webhooks with guaranteed delivery, automatic retries, and full observability.
5
+
6
+ Example:
7
+ >>> from hookbridge import HookBridge
8
+ >>>
9
+ >>> client = HookBridge(api_key="hb_live_xxxxxxxxxxxxxxxxxxxx")
10
+ >>>
11
+ >>> result = client.send(
12
+ ... endpoint="https://customer.app/webhooks",
13
+ ... payload={"event": "order.created", "order_id": "12345"}
14
+ ... )
15
+ >>> print(result.message_id)
16
+ """
17
+
18
+ from hookbridge.client import HookBridge, AsyncHookBridge
19
+ from hookbridge.types import (
20
+ SendWebhookResponse,
21
+ Message,
22
+ MessageSummary,
23
+ MessageStatus,
24
+ LogsResponse,
25
+ Metrics,
26
+ MetricsWindow,
27
+ APIKeyInfo,
28
+ APIKeyMode,
29
+ CreateAPIKeyResponse,
30
+ DLQMessagesResponse,
31
+ )
32
+ from hookbridge.errors import (
33
+ HookBridgeError,
34
+ AuthenticationError,
35
+ NotFoundError,
36
+ ValidationError,
37
+ RateLimitError,
38
+ IdempotencyError,
39
+ ReplayLimitError,
40
+ NetworkError,
41
+ TimeoutError,
42
+ )
43
+
44
+ __version__ = "1.0.0"
45
+
46
+ __all__ = [
47
+ # Client
48
+ "HookBridge",
49
+ "AsyncHookBridge",
50
+ # Types
51
+ "SendWebhookResponse",
52
+ "Message",
53
+ "MessageSummary",
54
+ "MessageStatus",
55
+ "LogsResponse",
56
+ "Metrics",
57
+ "MetricsWindow",
58
+ "APIKeyInfo",
59
+ "APIKeyMode",
60
+ "CreateAPIKeyResponse",
61
+ "DLQMessagesResponse",
62
+ # Errors
63
+ "HookBridgeError",
64
+ "AuthenticationError",
65
+ "NotFoundError",
66
+ "ValidationError",
67
+ "RateLimitError",
68
+ "IdempotencyError",
69
+ "ReplayLimitError",
70
+ "NetworkError",
71
+ "TimeoutError",
72
+ ]