sessionweave-sdk 0.13.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.
@@ -0,0 +1,70 @@
1
+ """Async Python client for the SessionWeave relay.
2
+
3
+ Two surfaces are exposed:
4
+
5
+ * ``SessionWeaveClient`` — entry point; creates / describes / joins sessions
6
+ and yields ``Participant`` handles bound to a single session+token pair.
7
+ * ``Participant`` — bound handle. Drives commands, responses, leaves, and
8
+ exposes a live event stream over the WebSocket events endpoint
9
+ (``Participant.events``) plus a pull-mode ``drain_inbox`` for runtimes
10
+ that can't keep a socket open.
11
+
12
+ The client speaks the relay's REST surface (``/v1/...``) for everything
13
+ *except* live event push, which uses ``wss://.../events?token=<bearer>``.
14
+ Tokens: joining takes a short-lived join token; a joined participant
15
+ authenticates with its secret participant_token (never the participant_id).
16
+ """
17
+ from sessionweave_client.client import (
18
+ Participant,
19
+ SessionWeaveClient,
20
+ )
21
+ from sessionweave_client.errors import (
22
+ AlreadyRespondedError,
23
+ InvalidDeliveryModeError,
24
+ NoHistoryError,
25
+ NoteNotFoundError,
26
+ NotInSessionError,
27
+ ParticipantEvictedError,
28
+ ParticipantPausedError,
29
+ ParticipantRemovedError,
30
+ PermissionDeniedError,
31
+ PersistenceFailedError,
32
+ SessionNotFoundError,
33
+ SessionWeaveError,
34
+ TooManyWaitsError,
35
+ ValidationError,
36
+ WaitAlreadyInFlightError,
37
+ )
38
+ from sessionweave_client.types import (
39
+ Event,
40
+ OrderKind,
41
+ SessionInfo,
42
+ WaitForEventResult,
43
+ )
44
+
45
+ __version__ = "0.13.0"
46
+
47
+ __all__ = [
48
+ "AlreadyRespondedError",
49
+ "Event",
50
+ "InvalidDeliveryModeError",
51
+ "NoHistoryError",
52
+ "NotInSessionError",
53
+ "NoteNotFoundError",
54
+ "OrderKind",
55
+ "Participant",
56
+ "ParticipantEvictedError",
57
+ "ParticipantPausedError",
58
+ "ParticipantRemovedError",
59
+ "PermissionDeniedError",
60
+ "PersistenceFailedError",
61
+ "SessionInfo",
62
+ "SessionNotFoundError",
63
+ "SessionWeaveClient",
64
+ "SessionWeaveError",
65
+ "TooManyWaitsError",
66
+ "ValidationError",
67
+ "WaitAlreadyInFlightError",
68
+ "WaitForEventResult",
69
+ "__version__",
70
+ ]