Skip to main content

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()

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.19.tar.gz (9.9 kB view details)

Uploaded Source

File details

Details for the file psrt-0.0.19.tar.gz.

File metadata

  • Download URL: psrt-0.0.19.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.26.0 setuptools/60.5.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.10

File hashes

Hashes for psrt-0.0.19.tar.gz
Algorithm Hash digest
SHA256 13a9eabec472d194e620630e77a2c38bd4d46ad32b5ab58e0b06f11a48689b19
MD5 1d70e071b7471983ed492187e25a6057
BLAKE2b-256 d3174e2994593309b7465bacf8aaceace969da80110693594d0f33625a035078

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.19 This release

1 file

0.0.18

1 file

0.0.17

1 file

0.0.16

1 file

0.0.15

1 file

0.0.14

1 file

0.0.13

1 file

0.0.12

1 file

0.0.11

1 file

0.0.10

1 file

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

2 files

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page