zenbroker 0.5__py3-none-any.whl → 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.
@@ -0,0 +1,68 @@
1
+ Metadata-Version: 2.1
2
+ Name: zenbroker
3
+ Version: 1.0.0
4
+ Summary: Zenbroker client
5
+ Home-page: UNKNOWN
6
+ License: UNKNOWN
7
+ Platform: UNKNOWN
8
+ Description-Content-Type: text/markdown
9
+ Requires-Dist: pydantic<3.0.0,>=2.0.0
10
+ Requires-Dist: httpx<1.0.0,>=0.28.0
11
+
12
+ # Zenbroker Client Example
13
+
14
+ This project demonstrates how to use the Zenbroker client library to publish messages to channels.
15
+
16
+ ## Installation
17
+
18
+ ```bash
19
+ pip install zenbroker
20
+ ```
21
+
22
+ ## Configuration
23
+
24
+ You need to configure your Zenbroker client with your application ID:
25
+
26
+ ```python
27
+ from zenbroker import ZenbrokerClient
28
+
29
+ client = ZenbrokerClient(
30
+ application_id="YOUR_APPLICATION_ID",
31
+ base_url="https://broker.oraczen.xyz"
32
+ )
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ ### Publishing a single message
38
+
39
+ ```python
40
+ resp = client.publish(
41
+ channel="CHANNEL-ID",
42
+ data={
43
+ "key": "value",
44
+ "message": "hello"
45
+ }
46
+ )
47
+ ```
48
+
49
+ ### Publishing multiple messages
50
+
51
+ ```python
52
+ for i in range(10000):
53
+ resp = client.publish(
54
+ channel="testing-channel",
55
+ data={
56
+ "index": i,
57
+ "message": "Hey There"
58
+ }
59
+ )
60
+ print("DONE", i)
61
+ ```
62
+
63
+ ## Notes
64
+
65
+ - Replace `YOUR_APPLICATION_ID` with your actual application ID
66
+ - Replace `CHANNEL-ID` with your target channel ID when publishing messages
67
+
68
+
@@ -0,0 +1,6 @@
1
+ zenbroker/__init__.py,sha256=J-UtdbKCUJ2xJVcng2slPY81nl015BHBTNNSE6ZAwvA,130
2
+ zenbroker/client.py,sha256=FDjIbV9yRhdbAsWp_kc-0GHqUYuAENlOI3b5l2ZB85o,1279
3
+ zenbroker-1.0.0.dist-info/METADATA,sha256=JC-XaDfw-tLx5mz6CiYJhuZynT_M50bNUwMGeVsAdaY,1257
4
+ zenbroker-1.0.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
5
+ zenbroker-1.0.0.dist-info/top_level.txt,sha256=u-V5a1mTLsnD3DQb01LQo8WtbYc75BIZ6jSWrZ7vDkY,10
6
+ zenbroker-1.0.0.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: zenbroker
3
- Version: 0.5
4
- Summary: UNKNOWN
5
- Home-page: UNKNOWN
6
- License: UNKNOWN
7
- Platform: UNKNOWN
8
- Requires-Dist: pydantic<3.0.0,>=2.0.0
9
- Requires-Dist: httpx<1.0.0,>=0.28.0
10
-
11
- UNKNOWN
12
-
@@ -1,6 +0,0 @@
1
- zenbroker/__init__.py,sha256=J-UtdbKCUJ2xJVcng2slPY81nl015BHBTNNSE6ZAwvA,130
2
- zenbroker/client.py,sha256=FDjIbV9yRhdbAsWp_kc-0GHqUYuAENlOI3b5l2ZB85o,1279
3
- zenbroker-0.5.dist-info/METADATA,sha256=wL1oZm959nUC3mkNugLxXv9508FAgOE9gel2hnQFL9Q,206
4
- zenbroker-0.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
5
- zenbroker-0.5.dist-info/top_level.txt,sha256=u-V5a1mTLsnD3DQb01LQo8WtbYc75BIZ6jSWrZ7vDkY,10
6
- zenbroker-0.5.dist-info/RECORD,,