Skip to content
aYukinePublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages