A lightweight Python client for DC-broker message broker system
Project description
DC BROKER
A lightweight Python client for the DC-broker message broker system.
NOTE
As of currently, this system is only usable by whitelisted user, no public account registration is allowed yet
If you wanna use this message broker system please contact phayuk168@gmail.com so he can make an account for you. Don't abuse the system
Installation
pip install dcbroker
Usage
from dcbroker.client import DCBrokerClient
# Initialize the client
client = DCBrokerClient(base_url="https://friendio.live")
# Login
if client.login("your_username", "your_password"):
# Create or update an endpoint
client.create_endpoint("status", "Server is running")
# List all endpoints
endpoints = client.list_endpoints()
if endpoints:
print(f"Endpoints: {endpoints}")
# Get a message from a specific endpoint
msg = client.get_endpoint_message("status")
if msg:
print(f"Message: {msg}")
# Logout
client.logout()
Features
- Login and session management
- Create or update endpoints
- List endpoints
- Get messages from endpoints
- Logout
Replace "your_username" and "your_password" with your actual credentials.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dcbroker-1.0.0.tar.gz.
File metadata
- Download URL: dcbroker-1.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64a1e681b73a7f2a84955c0d4bad4aae6b0989ca18030b6972017f07098a7ba6
|
|
| MD5 |
88cf8702abae99c70327e2477645e28c
|
|
| BLAKE2b-256 |
c8606d5e8673270f72f26ed76a750acabe4f9e40b562ff45b986a048f72d8d1e
|
File details
Details for the file dcbroker-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dcbroker-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f68dd0aefbc3d0599910ffe9b25eac62c1e9b3a616255bf765b7b235c26aa359
|
|
| MD5 |
76ca40ecf0f71a3a3b768bdf872d2da3
|
|
| BLAKE2b-256 |
acfe06cccbf06b21f2270edad99701623f87009c9ff8e1e75ce6e8aa3e7acbb0
|