Skip to main content

Qt-friendly ZeroMQ bindings for PySide and PyQt applications

Project description

qtzmq

Qt-friendly ZeroMQ bindings for Python.

qtzmq provides lightweight wrappers around ZeroMQ sockets that expose incoming messages as Qt signals.
It is designed for PySide6 and PyQt applications that need to consume streaming data without blocking the GUI thread.

The library handles:

  • ZeroMQ socket setup
  • background worker threads
  • safe interaction with the Qt event loop
  • clean message dispatch through Qt signals

Why qtzmq?

When building Qt applications that use ZeroMQ, developers usually need to write the same boilerplate:

  • create a ZeroMQ socket
  • run a background thread
  • receive messages
  • emit Qt signals
  • manage shutdown safely

qtzmq provides a small reusable layer that removes this boilerplate and exposes a simple API.

API Overview

qtzmq manages ZeroMQ endpoints through a global stream registry.

Applications create a messaging endpoint once and access it anywhere in the Qt application.

Create streams

subscribe(name, address)

publish(name, address)

request(name, address)

reply(name, address)

Access streams

stream(name)

Widgets and components can then attach handlers or send messages using the returned stream object.

This design allows multiple Qt widgets to consume the same ZeroMQ stream without managing sockets or threads.

Installation

pip install qtzmq

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

qtzmq-0.1.4.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qtzmq-0.1.4-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file qtzmq-0.1.4.tar.gz.

File metadata

  • Download URL: qtzmq-0.1.4.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for qtzmq-0.1.4.tar.gz
Algorithm Hash digest
SHA256 81447eb0e0a851ce9bd5a7a3c9e495466efb4f4b0bb43667b0fcca0670f41abe
MD5 add9a691f220c82526f73791d85b93d0
BLAKE2b-256 3120db7e8ca5168779de5a2728bc95b5f0e28d22cd3c76dc805eb0cea5c6fdd6

See more details on using hashes here.

File details

Details for the file qtzmq-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: qtzmq-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for qtzmq-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 90be82ce11d6ab744110a0078a84f5f8c94f23446bd0b0f17d372947dcb6aedc
MD5 61572201696973d7a92f7b960aa0e877
BLAKE2b-256 8aaa8e6d0bfe2d464666ebc150320f4ee9e1d55479804ed269796fa4e53fb2ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page