SDK for Stallion message broker
Project description
Stallion Python SDK
Client SDK for Stallion message broker.
How to use?
Python install:
pip install stallion-python-sdk
Client
Create a client:
from stallion_python_sdk import Client
c = Client(url="localhost:9090")
Publish
c.Publish("book", {'author': "Amirhossein", 'name': "Stallion"})
Subscribe
def handler(data):
print(data)
c.Subscribe("book", handler)
Unsubscribe
c.Unsubscribe("book")
Project details
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
Close
Hashes for stallion-python-sdk-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42001f67b5ce570eefd508dca9bcf42817da0223817163d00a0cd867cf023e48 |
|
MD5 | b8929c39cb6a5454b32ec23b1cd4e0bc |
|
BLAKE2b-256 | 0bbaff880ec9c9a7207bf44bfbd4f31dc4f11563a7617bfd8fbaa41cc9542663 |
Close
Hashes for stallion_python_sdk-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c487b43a20a6f2116e19c45fcd5378827c11d5e3b26408cdd448b80e2d7a972a |
|
MD5 | 97ea967b22bc93667b4010b8371dbbd7 |
|
BLAKE2b-256 | 1609ab32f15cc1d9f20e1647af88c56bcaaeff14cb64be0f56f6d7e033ae0655 |