PubSubRT Python connector
Project description
PSRT Python connector
Python connector for PSRT
SDK Documentation: https://psrt-py.readthedocs.io/
Client usage example:
from psrt import Client
import time
def process_message(client, userdata, message):
print(message.topic)
print(message.payload)
client = Client(path='localhost:2873')
# client.tls = True
# client.tls_ca = '/opt/workstuff/psrt/certs/ca.crt'
# client.need_data_socket = False
client.on_message = process_message
client.connect()
client.subscribe('test')
client.subscribe_bulk(['test2', '#'])
client.unsubscribe('test')
client.unsubscribe_bulk(['test2', '#'])
client.subscribe('#')
for _ in range(3):
client.publish('unit/tests/test1', 'hello')
time.sleep(1)
client.bye()
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
psrt-0.0.17.tar.gz
(6.0 kB
view details)
File details
Details for the file psrt-0.0.17.tar.gz.
File metadata
- Download URL: psrt-0.0.17.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.26.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74e8a76299c1510fad5149a58777508a0ecc4026140f0edd37a270e224af941a
|
|
| MD5 |
65147ab8eabdcffb959dfab56b3bfd4e
|
|
| BLAKE2b-256 |
be26761f731d40c6aa92cbb9d75804714afdb88b14dfafa8bb9468d2a3e6b16e
|