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 connections through a global registry.

An endpoint is created once and can then be accessed anywhere in the Qt application.

Create an endpoint

subscribe(name, address)

publish(name, address)

request(name, address)

reply(name, address)

Each call creates a named endpoint and registers it internally.

Access an endpoint

stream(name)

This returns the previously created endpoint.

Widgets and other components can then attach handlers or send messages through it.

Multiple Qt widgets can consume the same endpoint without managing sockets or threads directly.

See the examples/ directory for complete usage examples.

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.5.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.5-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qtzmq-0.1.5.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qtzmq-0.1.5.tar.gz
Algorithm Hash digest
SHA256 56219c3679dad66903dbc1b708adf357de119a6f34689006628b726aef5afab8
MD5 52db2e3356b5ad8f8f5971d125ad516d
BLAKE2b-256 d54350239775b69b985759cf81bd369c15ff52993fffe8922b2adc7892b0be8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for qtzmq-0.1.5.tar.gz:

Publisher: publish.yml on Robertoherrera0/qtzmq

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: qtzmq-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qtzmq-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2197a912206ccb6bef4120bac88e01f430f2b17b5c5031cce0e6f885a9b00f94
MD5 032a9327cc3e59e7ce1d1107b91c33fb
BLAKE2b-256 54f0db6c6019fa2051ecfea82fceaa04cbc7dd23031523d5a8d1550224804e34

See more details on using hashes here.

Provenance

The following attestation bundles were made for qtzmq-0.1.5-py3-none-any.whl:

Publisher: publish.yml on Robertoherrera0/qtzmq

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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