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

Uploaded Python 3

File details

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

File metadata

  • Download URL: qtzmq-0.1.7.tar.gz
  • Upload date:
  • Size: 5.1 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.7.tar.gz
Algorithm Hash digest
SHA256 e0a52eacee4e1e9c4166f051876f60b5543c894695f8ddcdf78ef17ead933e24
MD5 88f62d125663622e000074e513a334b6
BLAKE2b-256 302f4a273a6a5cd47cfde6ff8e14fc08551eeb3da013a7298192460ef407ee58

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qtzmq-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5020dc41d0c6433f4a97d4f76a294c512ee40be4de4d84dc11a45420060644d4
MD5 e1bc912c3a37e2ea79825ad7ddd336f8
BLAKE2b-256 c0e507caeb11328919da5993ac4c508a4301866e7749416da87cfc904afb2ba4

See more details on using hashes here.

Provenance

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