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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bfcfa634345ad61baf1bb6d9f3e31b186c8009bb8347092277c85b1e32fa926
|
|
| MD5 |
8cd772d4cc3d2ebf208b630640012110
|
|
| BLAKE2b-256 |
a364f5e8668a954bd5fd96d968d5d3a6eb32c9396657b36f985cd441f938c036
|
Provenance
The following attestation bundles were made for qtzmq-0.1.6.tar.gz:
Publisher:
publish.yml on Robertoherrera0/qtzmq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qtzmq-0.1.6.tar.gz -
Subject digest:
9bfcfa634345ad61baf1bb6d9f3e31b186c8009bb8347092277c85b1e32fa926 - Sigstore transparency entry: 1219432521
- Sigstore integration time:
-
Permalink:
Robertoherrera0/qtzmq@becc5f8c9056a83daa70148247b1153bfe3c7afd -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/Robertoherrera0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@becc5f8c9056a83daa70148247b1153bfe3c7afd -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfc9af0e83ac830edde22899cd3f6c8ac6e87e2b9938107c63106c566dd60618
|
|
| MD5 |
48195f8b58ac5606aa8f76d528fcf144
|
|
| BLAKE2b-256 |
6167d3247902ef3cc305fe4f6de190bfb56fc43c96cde64eeee8149d86a4eabb
|
Provenance
The following attestation bundles were made for qtzmq-0.1.6-py3-none-any.whl:
Publisher:
publish.yml on Robertoherrera0/qtzmq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qtzmq-0.1.6-py3-none-any.whl -
Subject digest:
dfc9af0e83ac830edde22899cd3f6c8ac6e87e2b9938107c63106c566dd60618 - Sigstore transparency entry: 1219432557
- Sigstore integration time:
-
Permalink:
Robertoherrera0/qtzmq@becc5f8c9056a83daa70148247b1153bfe3c7afd -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/Robertoherrera0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@becc5f8c9056a83daa70148247b1153bfe3c7afd -
Trigger Event:
release
-
Statement type: