Generic ZMQ-based distributed execution framework
Project description
zmqruntime
Generic ZMQ-based distributed execution framework extracted from OpenHCS.
Features
- Client-Server Architecture: Simple ZMQ-based client and server for distributed task execution
- Multiple Transport Modes: Support for TCP and IPC transports
- Message Protocol: Typed message classes for requests, responses, progress updates, and control messages
- Queue Tracking: Built-in queue tracking for monitoring execution status
- Acknowledgment System: Global acknowledgment listener for reliable message delivery
Installation
pip install zmqruntime
Quick Start
Server
from zmqruntime import ZMQServer, serve_forever
# Create and start a server
server = ZMQServer(port=7777)
serve_forever(server)
Client
from zmqruntime import ZMQClient, ExecuteRequest
# Connect to the server
client = ZMQClient(port=7777)
# Send an execution request
request = ExecuteRequest(
execution_id="task-001",
payload={"task": "process_data"}
)
response = client.send_request(request)
Core Components
ZMQServer: Server that listens for and processes execution requestsZMQClient: Client for sending requests to the serverExecuteRequest/ExecuteResponse: Request/response message typesProgressUpdate: Progress reporting during executionQueueTracker: Track pending and active executionsGlobalAckListener: Acknowledgment handling for reliable delivery
Transport Configuration
from zmqruntime import ZMQConfig, TransportMode
# TCP transport (default)
config = ZMQConfig(port=7777, transport_mode=TransportMode.TCP)
# IPC transport (Unix sockets)
config = ZMQConfig(port=7777, transport_mode=TransportMode.IPC)
License
MIT License - see LICENSE file for details.
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 zmqruntime-0.1.0.tar.gz.
File metadata
- Download URL: zmqruntime-0.1.0.tar.gz
- Upload date:
- Size: 31.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b151fb37e176d2d538ae85155d7eb2676b90f7d589d735ba7e8fc7b065495d7
|
|
| MD5 |
8eae023413a88c9626d1623c3a5eb519
|
|
| BLAKE2b-256 |
8af757aabcc85994273fbcc8a862ebd101bde87d1f86d3be1167edc89d1f32a4
|
Provenance
The following attestation bundles were made for zmqruntime-0.1.0.tar.gz:
Publisher:
publish.yml on OpenHCSDev/ZMQRuntime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zmqruntime-0.1.0.tar.gz -
Subject digest:
7b151fb37e176d2d538ae85155d7eb2676b90f7d589d735ba7e8fc7b065495d7 - Sigstore transparency entry: 854602148
- Sigstore integration time:
-
Permalink:
OpenHCSDev/ZMQRuntime@b7ead4c0fc8f8756e02be7d6eef9d2039cc462e3 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/OpenHCSDev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b7ead4c0fc8f8756e02be7d6eef9d2039cc462e3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file zmqruntime-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zmqruntime-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.1 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 |
691d5df23257fc6c6e3b1d4472304e8176089b24a5bcffa8d8b4938289433c4a
|
|
| MD5 |
fea496ef3e45c8d69119fd43f87ac80e
|
|
| BLAKE2b-256 |
2b8ff3554c77929fe4ab91561d18117bf33b94a79baf6149b2e8060e1b76472b
|
Provenance
The following attestation bundles were made for zmqruntime-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on OpenHCSDev/ZMQRuntime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zmqruntime-0.1.0-py3-none-any.whl -
Subject digest:
691d5df23257fc6c6e3b1d4472304e8176089b24a5bcffa8d8b4938289433c4a - Sigstore transparency entry: 854602153
- Sigstore integration time:
-
Permalink:
OpenHCSDev/ZMQRuntime@b7ead4c0fc8f8756e02be7d6eef9d2039cc462e3 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/OpenHCSDev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b7ead4c0fc8f8756e02be7d6eef9d2039cc462e3 -
Trigger Event:
push
-
Statement type: