ody-sdk 0.6.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.
ody/__init__.py ADDED
@@ -0,0 +1,39 @@
1
+ """Official Python SDK for the Ody REST API.
2
+
3
+ Hand-written against the OpenAPI 3.1 contract served at
4
+ ``GET https://api.ody.co/v1/api/openapi.json``. Standard library only —
5
+ no third-party dependencies.
6
+
7
+ Docs: https://dev.ody.co/sdks/python · Events: https://dev.ody.co/webhooks/events
8
+
9
+ Quickstart::
10
+
11
+ from ody import Ody
12
+
13
+ client = Ody("ody_live_...")
14
+ page = client.contacts.list(q="acme")
15
+ for contact in page["contacts"]:
16
+ print(contact["id"])
17
+ """
18
+
19
+ from .client import Ody, OdyError
20
+ from .webhooks import (
21
+ WEBHOOK_EVENT_TYPES,
22
+ WebhookVerificationError,
23
+ is_known_webhook_event_type,
24
+ parse_webhook_event,
25
+ verify_webhook_signature,
26
+ )
27
+
28
+ __version__ = "0.6.0"
29
+
30
+ __all__ = [
31
+ "Ody",
32
+ "OdyError",
33
+ "WEBHOOK_EVENT_TYPES",
34
+ "WebhookVerificationError",
35
+ "is_known_webhook_event_type",
36
+ "parse_webhook_event",
37
+ "verify_webhook_signature",
38
+ "__version__",
39
+ ]