streamcast-client 0.31.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,65 @@
1
+ """Light WebSocket publishing and subscription, with local file cursors.
2
+
3
+ The broker owns validation and offsets. Archive catch-up, remote cursors and
4
+ broker APIs belong to the full streamcast distribution.
5
+ """
6
+
7
+ from importlib.metadata import PackageNotFoundError, version
8
+
9
+ from streamcast_client._client import Subscription, connect
10
+ from streamcast_client._cursor import Cursor
11
+ from streamcast_client._errors import (
12
+ AcknowledgedRowsLost,
13
+ Close,
14
+ CommitFailed,
15
+ ExactlyOnceUnavailable,
16
+ IngestFailed,
17
+ NotReplayable,
18
+ ProtocolError,
19
+ Rejected,
20
+ SequenceGap,
21
+ StoreBehindBroker,
22
+ StreamcastError,
23
+ StreamMismatch,
24
+ StreamNotFound,
25
+ StreamRetired,
26
+ Superseded,
27
+ TooSlow,
28
+ Unavailable,
29
+ )
30
+ from streamcast_client._protocol import EARLIEST, Greeting, PublisherMark
31
+ from streamcast_client._publish import Publication, publish
32
+
33
+ try:
34
+ __version__ = version("streamcast-client")
35
+ except PackageNotFoundError: # a source tree that was never installed
36
+ __version__ = "0.0.0"
37
+
38
+ __all__ = [
39
+ "publish",
40
+ "Publication",
41
+ "PublisherMark",
42
+ "connect",
43
+ "Subscription",
44
+ "Cursor",
45
+ "Greeting",
46
+ "EARLIEST",
47
+ "AcknowledgedRowsLost",
48
+ "Close",
49
+ "CommitFailed",
50
+ "ExactlyOnceUnavailable",
51
+ "IngestFailed",
52
+ "NotReplayable",
53
+ "ProtocolError",
54
+ "Rejected",
55
+ "SequenceGap",
56
+ "StoreBehindBroker",
57
+ "StreamcastError",
58
+ "StreamMismatch",
59
+ "StreamNotFound",
60
+ "StreamRetired",
61
+ "Superseded",
62
+ "TooSlow",
63
+ "Unavailable",
64
+ "__version__",
65
+ ]