zenbroker 0.5__tar.gz → 1.0.0__tar.gz
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.
- zenbroker-1.0.0/PKG-INFO +66 -0
- zenbroker-1.0.0/README.md +55 -0
- zenbroker-1.0.0/setup.py +21 -0
- zenbroker-1.0.0/zenbroker/zenbroker.egg-info/PKG-INFO +66 -0
- {zenbroker-0.5 → zenbroker-1.0.0}/zenbroker/zenbroker.egg-info/SOURCES.txt +1 -0
- zenbroker-0.5/PKG-INFO +0 -10
- zenbroker-0.5/setup.py +0 -12
- zenbroker-0.5/zenbroker/zenbroker.egg-info/PKG-INFO +0 -10
- {zenbroker-0.5 → zenbroker-1.0.0}/setup.cfg +0 -0
- {zenbroker-0.5 → zenbroker-1.0.0}/zenbroker/zenbroker/__init__.py +0 -0
- {zenbroker-0.5 → zenbroker-1.0.0}/zenbroker/zenbroker/client.py +0 -0
- {zenbroker-0.5 → zenbroker-1.0.0}/zenbroker/zenbroker.egg-info/dependency_links.txt +0 -0
- {zenbroker-0.5 → zenbroker-1.0.0}/zenbroker/zenbroker.egg-info/requires.txt +0 -0
- {zenbroker-0.5 → zenbroker-1.0.0}/zenbroker/zenbroker.egg-info/top_level.txt +0 -0
zenbroker-1.0.0/PKG-INFO
ADDED
@@ -0,0 +1,66 @@
|
|
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
|
+
|
10
|
+
# Zenbroker Client Example
|
11
|
+
|
12
|
+
This project demonstrates how to use the Zenbroker client library to publish messages to channels.
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
```bash
|
17
|
+
pip install zenbroker
|
18
|
+
```
|
19
|
+
|
20
|
+
## Configuration
|
21
|
+
|
22
|
+
You need to configure your Zenbroker client with your application ID:
|
23
|
+
|
24
|
+
```python
|
25
|
+
from zenbroker import ZenbrokerClient
|
26
|
+
|
27
|
+
client = ZenbrokerClient(
|
28
|
+
application_id="YOUR_APPLICATION_ID",
|
29
|
+
base_url="https://broker.oraczen.xyz"
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
33
|
+
## Usage
|
34
|
+
|
35
|
+
### Publishing a single message
|
36
|
+
|
37
|
+
```python
|
38
|
+
resp = client.publish(
|
39
|
+
channel="CHANNEL-ID",
|
40
|
+
data={
|
41
|
+
"key": "value",
|
42
|
+
"message": "hello"
|
43
|
+
}
|
44
|
+
)
|
45
|
+
```
|
46
|
+
|
47
|
+
### Publishing multiple messages
|
48
|
+
|
49
|
+
```python
|
50
|
+
for i in range(10000):
|
51
|
+
resp = client.publish(
|
52
|
+
channel="testing-channel",
|
53
|
+
data={
|
54
|
+
"index": i,
|
55
|
+
"message": "Hey There"
|
56
|
+
}
|
57
|
+
)
|
58
|
+
print("DONE", i)
|
59
|
+
```
|
60
|
+
|
61
|
+
## Notes
|
62
|
+
|
63
|
+
- Replace `YOUR_APPLICATION_ID` with your actual application ID
|
64
|
+
- Replace `CHANNEL-ID` with your target channel ID when publishing messages
|
65
|
+
|
66
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# Zenbroker Client Example
|
2
|
+
|
3
|
+
This project demonstrates how to use the Zenbroker client library to publish messages to channels.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
```bash
|
8
|
+
pip install zenbroker
|
9
|
+
```
|
10
|
+
|
11
|
+
## Configuration
|
12
|
+
|
13
|
+
You need to configure your Zenbroker client with your application ID:
|
14
|
+
|
15
|
+
```python
|
16
|
+
from zenbroker import ZenbrokerClient
|
17
|
+
|
18
|
+
client = ZenbrokerClient(
|
19
|
+
application_id="YOUR_APPLICATION_ID",
|
20
|
+
base_url="https://broker.oraczen.xyz"
|
21
|
+
)
|
22
|
+
```
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
### Publishing a single message
|
27
|
+
|
28
|
+
```python
|
29
|
+
resp = client.publish(
|
30
|
+
channel="CHANNEL-ID",
|
31
|
+
data={
|
32
|
+
"key": "value",
|
33
|
+
"message": "hello"
|
34
|
+
}
|
35
|
+
)
|
36
|
+
```
|
37
|
+
|
38
|
+
### Publishing multiple messages
|
39
|
+
|
40
|
+
```python
|
41
|
+
for i in range(10000):
|
42
|
+
resp = client.publish(
|
43
|
+
channel="testing-channel",
|
44
|
+
data={
|
45
|
+
"index": i,
|
46
|
+
"message": "Hey There"
|
47
|
+
}
|
48
|
+
)
|
49
|
+
print("DONE", i)
|
50
|
+
```
|
51
|
+
|
52
|
+
## Notes
|
53
|
+
|
54
|
+
- Replace `YOUR_APPLICATION_ID` with your actual application ID
|
55
|
+
- Replace `CHANNEL-ID` with your target channel ID when publishing messages
|
zenbroker-1.0.0/setup.py
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
from setuptools import setup, find_packages
|
2
|
+
import os
|
3
|
+
|
4
|
+
this_directory = os.path.abspath(os.path.dirname(__file__))
|
5
|
+
|
6
|
+
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
7
|
+
long_description = f.read()
|
8
|
+
|
9
|
+
setup(
|
10
|
+
name="zenbroker",
|
11
|
+
version="1.0.0",
|
12
|
+
description="Zenbroker client",
|
13
|
+
package_dir={"": "zenbroker"},
|
14
|
+
packages=find_packages("zenbroker"),
|
15
|
+
install_requires=[
|
16
|
+
"pydantic>=2.0.0,<3.0.0",
|
17
|
+
"httpx>=0.28.0,<1.0.0"
|
18
|
+
],
|
19
|
+
long_description=long_description,
|
20
|
+
long_description_content_type='text/markdown'
|
21
|
+
)
|
@@ -0,0 +1,66 @@
|
|
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
|
+
|
10
|
+
# Zenbroker Client Example
|
11
|
+
|
12
|
+
This project demonstrates how to use the Zenbroker client library to publish messages to channels.
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
```bash
|
17
|
+
pip install zenbroker
|
18
|
+
```
|
19
|
+
|
20
|
+
## Configuration
|
21
|
+
|
22
|
+
You need to configure your Zenbroker client with your application ID:
|
23
|
+
|
24
|
+
```python
|
25
|
+
from zenbroker import ZenbrokerClient
|
26
|
+
|
27
|
+
client = ZenbrokerClient(
|
28
|
+
application_id="YOUR_APPLICATION_ID",
|
29
|
+
base_url="https://broker.oraczen.xyz"
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
33
|
+
## Usage
|
34
|
+
|
35
|
+
### Publishing a single message
|
36
|
+
|
37
|
+
```python
|
38
|
+
resp = client.publish(
|
39
|
+
channel="CHANNEL-ID",
|
40
|
+
data={
|
41
|
+
"key": "value",
|
42
|
+
"message": "hello"
|
43
|
+
}
|
44
|
+
)
|
45
|
+
```
|
46
|
+
|
47
|
+
### Publishing multiple messages
|
48
|
+
|
49
|
+
```python
|
50
|
+
for i in range(10000):
|
51
|
+
resp = client.publish(
|
52
|
+
channel="testing-channel",
|
53
|
+
data={
|
54
|
+
"index": i,
|
55
|
+
"message": "Hey There"
|
56
|
+
}
|
57
|
+
)
|
58
|
+
print("DONE", i)
|
59
|
+
```
|
60
|
+
|
61
|
+
## Notes
|
62
|
+
|
63
|
+
- Replace `YOUR_APPLICATION_ID` with your actual application ID
|
64
|
+
- Replace `CHANNEL-ID` with your target channel ID when publishing messages
|
65
|
+
|
66
|
+
|
zenbroker-0.5/PKG-INFO
DELETED
zenbroker-0.5/setup.py
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|