Skip to main content

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 requests
  • ZMQClient: Client for sending requests to the server
  • ExecuteRequest / ExecuteResponse: Request/response message types
  • ProgressUpdate: Progress reporting during execution
  • QueueTracker: Track pending and active executions
  • GlobalAckListener: 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

zmqruntime-0.1.3.tar.gz (37.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zmqruntime-0.1.3-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file zmqruntime-0.1.3.tar.gz.

File metadata

  • Download URL: zmqruntime-0.1.3.tar.gz
  • Upload date:
  • Size: 37.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zmqruntime-0.1.3.tar.gz
Algorithm Hash digest
SHA256 89010a823cce4891aefbaaedfaad9b4b6a7e6efe48ca6986f301d5c69e643c47
MD5 10762c7663d51728b938ec5f05879e1a
BLAKE2b-256 930b76692ffb3ed79e8a38421a8553626add1d7f061bd7d9c5d57d5a7d6cec45

See more details on using hashes here.

Provenance

The following attestation bundles were made for zmqruntime-0.1.3.tar.gz:

Publisher: publish.yml on OpenHCSDev/ZMQRuntime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zmqruntime-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: zmqruntime-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 33.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zmqruntime-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4e6805ab52ae5651df5cc4f6212c9a159c7c70f7ba9c8e2799c3567c7f442f56
MD5 83c0ee60b2d2c2bf886339f9b0bc44b7
BLAKE2b-256 3b1f8fc3cbb66c5151946fc75aa3bf058f12001c2582d6c6b31cac085f65b3e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for zmqruntime-0.1.3-py3-none-any.whl:

Publisher: publish.yml on OpenHCSDev/ZMQRuntime

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