zenbroker 0.5__py3-none-any.whl → 1.1.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,54 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: zenbroker
|
3
|
+
Version: 1.1.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
|
+
## Notes
|
50
|
+
|
51
|
+
- Replace `YOUR_APPLICATION_ID` with your actual application ID
|
52
|
+
- Replace `CHANNEL-ID` with your target channel ID when publishing messages
|
53
|
+
|
54
|
+
|
@@ -0,0 +1,6 @@
|
|
1
|
+
zenbroker/__init__.py,sha256=J-UtdbKCUJ2xJVcng2slPY81nl015BHBTNNSE6ZAwvA,130
|
2
|
+
zenbroker/client.py,sha256=FDjIbV9yRhdbAsWp_kc-0GHqUYuAENlOI3b5l2ZB85o,1279
|
3
|
+
zenbroker-1.1.0.dist-info/METADATA,sha256=1tE4Lq1SA_zvz-jdPrHBUn8vMqw9piwNNxTtW_lUnYU,1012
|
4
|
+
zenbroker-1.1.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
5
|
+
zenbroker-1.1.0.dist-info/top_level.txt,sha256=u-V5a1mTLsnD3DQb01LQo8WtbYc75BIZ6jSWrZ7vDkY,10
|
6
|
+
zenbroker-1.1.0.dist-info/RECORD,,
|
zenbroker-0.5.dist-info/METADATA
DELETED
zenbroker-0.5.dist-info/RECORD
DELETED
@@ -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,,
|
File without changes
|
File without changes
|