Metadata-Version: 2.1
Name: psrt
Version: 0.0.17
Summary: PubSubRT Python connector
Home-page: https://github.com/alttch/psrt-py
Author: Altertech
Author-email: pr@altertech.com
License: Apache License 2.0
Description: # PSRT Python connector
        
        Python connector for [PSRT](https://github.com/alttch/psrt)
        
        SDK Documentation: https://psrt-py.readthedocs.io/
        
        Client usage example:
        
        ```python
        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()
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Description-Content-Type: text/markdown
