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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for qtzmq-0.1.8.tar.gz
Algorithm Hash digest
SHA256 17f8205e3e2a3adb48b81ac6aa58b6152b16cdc8dc7137647b9bc3a980803b2d
MD5 acdbe62406317c52e29108b0cc85ce2b
BLAKE2b-256 c8525277645f3fd966c9a868d7fa89f0299f0e72528fb2026ed31a385cb134ea

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qtzmq-0.1.8-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.12

File hashes

Hashes for qtzmq-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b6f24d83bc81770a4a0ea78cbc2bd1d3d805b52118267c12eff259ed6476c20e
MD5 acf5be5c588b50f00f7ca40227905119
BLAKE2b-256 b4ce75943d4947ea4e97a5514c4acb36f98840e559c68533f39132dcec89024d

See more details on using hashes here.

Provenance

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