Skip to main content

parallelazy

A lightweight Python plugin/worker framework with:

  • isolated plugin processes started with spawn;
  • topic-based publish/subscribe;
  • shared environment values and change notifications;
  • plugin-to-plugin RPC; and
  • PyTorch/CUDA-aware multiprocessing support.

Install

python -m pip install .

Quick start

import time

from parallelazy.plugin import Plugin
from parallelazy.plugin_manager import PluginManager


class Worker(Plugin):
    def on_start(self):
        self.env_set("worker.ready", True)

    def main(self):
        pass


def main():
    manager = PluginManager()
    descriptor = Worker.Descriptor(
        version="1.0.0",
        author="Application team",
        description="Example worker",
    )
    if not manager.load_plugin(descriptor):
        raise RuntimeError("Plugin failed to load")
    if not manager.start_plugin(descriptor.name):
        raise RuntimeError("Plugin failed to start")
    try:
        time.sleep(0.1)
        print(manager.env_get("worker.ready"))
    finally:
        manager.unload_plugin(descriptor.name)


if __name__ == "__main__":
    main()

Documentation

Read the documentation index for installation, concepts, API reference, usage patterns, and troubleshooting.

The complete runnable examples are in examples/. For example:

python -m examples.example_pubsub
python -m examples.example_rpc_calls

Metadata

Release files for parallelazy 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parallelazy 0.0.3
File Size Uploaded Provenance
parallelazy-0.0.3.tar.gz 34.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for parallelazy 0.0.3
File Interpreter ABI Platform
parallelazy-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 71.4 kB

Release files / parallelazy-0.0.3.tar.gz

Download URL parallelazy-0.0.3.tar.gz
Size 34.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8b6bfa40aa878c1cf99219b036cbc1506ee05ba4e68c70ae1ad0638438d38370
BLAKE2b-256 checksum
How to use checksums
466badd6d2795f379fc1f67507ff2b3b89b456b1cf180d0ba62288d2d30591ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / parallelazy-0.0.3-py3-none-any.whl

Download URL parallelazy-0.0.3-py3-none-any.whl
Size 37.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cdf236475b6c1249f209922beabc37b827d1ec4ee77ce57634561a46a86c57c1
BLAKE2b-256 checksum
How to use checksums
7e2852ae001e043f460bff221d65c9a0b950acca51cb5f50496ee37994a9c560
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for parallelazy 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page