zenbroker 0.5__tar.gz → 1.1.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.
@@ -0,0 +1,52 @@
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
+
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
+ ## Notes
48
+
49
+ - Replace `YOUR_APPLICATION_ID` with your actual application ID
50
+ - Replace `CHANNEL-ID` with your target channel ID when publishing messages
51
+
52
+
@@ -0,0 +1,41 @@
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
+ ## Notes
39
+
40
+ - Replace `YOUR_APPLICATION_ID` with your actual application ID
41
+ - Replace `CHANNEL-ID` with your target channel ID when publishing messages
@@ -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.1.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,52 @@
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
+
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
+ ## Notes
48
+
49
+ - Replace `YOUR_APPLICATION_ID` with your actual application ID
50
+ - Replace `CHANNEL-ID` with your target channel ID when publishing messages
51
+
52
+
@@ -1,3 +1,4 @@
1
+ README.md
1
2
  setup.py
2
3
  zenbroker/zenbroker/__init__.py
3
4
  zenbroker/zenbroker/client.py
zenbroker-0.5/PKG-INFO DELETED
@@ -1,10 +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
-
9
- UNKNOWN
10
-
zenbroker-0.5/setup.py DELETED
@@ -1,12 +0,0 @@
1
- from setuptools import setup, find_packages
2
-
3
- setup(
4
- name="zenbroker",
5
- version="0.5",
6
- package_dir={"": "zenbroker"},
7
- packages=find_packages("zenbroker"),
8
- install_requires=[
9
- "pydantic>=2.0.0,<3.0.0",
10
- "httpx>=0.28.0,<1.0.0"
11
- ]
12
- )
@@ -1,10 +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
-
9
- UNKNOWN
10
-
File without changes