Skip to main content

ZMQRuntime

Generic ZeroMQ transport, lifecycle, progress, cancellation, viewer-control, and execution-projection primitives.

Important boundary

ZMQServer and ZMQClient are abstract application integration points. They cannot be instantiated directly:

  • a server implements handle_control_message and handle_data_message;
  • a client implements _spawn_server_process and send_data.

The package does not provide a generic send_request API or define an application's execution payload. Applications subclass the bases and map their typed domain requests onto the transport.

Transport configuration

from zmqruntime import TransportMode, ZMQConfig
from zmqruntime.transport import get_zmq_transport_url

config = ZMQConfig(control_port_offset=1000)
data_url = get_zmq_transport_url(
    7777,
    host="localhost",
    mode=TransportMode.TCP,
    config=config,
)

Application subclasses can use serve_forever, readiness probes, control port helpers, progress records, cancellation messages, lifecycle engines, and projection adapters without duplicating socket or process machinery.

Installation

python -m pip install zmqruntime

Documentation: zmqruntime.readthedocs.io.

For local development, install the documentation dependencies and run a clean, warning-fatal build:

python -m pip install -e ".[dev,docs]"
python -m sphinx -E -W --keep-going -b html docs/source docs/_build/html

Repository: OpenHCSDev/ZMQRuntime.

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.12.tar.gz (72.6 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.12-py3-none-any.whl (60.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for zmqruntime-0.1.12.tar.gz
Algorithm Hash digest
SHA256 ce4b39489caba463749da141037bcace62bc4045a74e30e06c616b189c44e526
MD5 2ed8b0fe4f6a96cd23f9aea70341396b
BLAKE2b-256 269765138c3d55069fa43e42d43c9b7bf61a1b8fd79830a1adf6c192bc3064c1

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for zmqruntime-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 b1cd8e4a56f19ce89e354d0ad6a9d5e5aa996042d519b165979f6d3dde01852f
MD5 8a3adfa4e7f9f474cd1bf5dd8edf1e51
BLAKE2b-256 b36dc0ddc351396ef0ea9994b87b8a45c1ae6f9b1747766c0f74fca5505dd80d

See more details on using hashes here.

Provenance

The following attestation bundles were made for zmqruntime-0.1.12-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 Sentry Error logging StatusPage Status page