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.6.tar.gz (5.1 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.6-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qtzmq-0.1.6.tar.gz
  • Upload date:
  • Size: 5.1 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.6.tar.gz
Algorithm Hash digest
SHA256 9bfcfa634345ad61baf1bb6d9f3e31b186c8009bb8347092277c85b1e32fa926
MD5 8cd772d4cc3d2ebf208b630640012110
BLAKE2b-256 a364f5e8668a954bd5fd96d968d5d3a6eb32c9396657b36f985cd441f938c036

See more details on using hashes here.

Provenance

The following attestation bundles were made for qtzmq-0.1.6.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.6-py3-none-any.whl.

File metadata

  • Download URL: qtzmq-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dfc9af0e83ac830edde22899cd3f6c8ac6e87e2b9938107c63106c566dd60618
MD5 48195f8b58ac5606aa8f76d528fcf144
BLAKE2b-256 6167d3247902ef3cc305fe4f6de190bfb56fc43c96cde64eeee8149d86a4eabb

See more details on using hashes here.

Provenance

The following attestation bundles were made for qtzmq-0.1.6-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