Metadata-Version: 2.4
Name: dcbroker
Version: 1.0.0
Summary: A lightweight Python client for DC-broker message broker system
Home-page: https://github.com/aYukine/DCBroker
Author: aYukine
Author-email: phayuk@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.25.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

## 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

```bash
pip install dcbroker
```

### Usage

```python
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.
