Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pypushflow

A task scheduler for cyclic and acyclic graphs

Install

pip install pypushflow[mx]

Use the mx option for installation at MX beamlines.

Run tests

pip install pypushflow[test]
pytest

Getting started

import logging
from pypushflow.Workflow import Workflow
from pypushflow.StopActor import StopActor
from pypushflow.StartActor import StartActor
from pypushflow.PythonActor import PythonActor
from pypushflow.ThreadCounter import ThreadCounter


class MyWorkflow(Workflow):
    def __init__(self, name):
        super().__init__(name, level=logging.DEBUG)
        ctr = ThreadCounter(parent=self)
        self.startActor = StartActor(parent=self, thread_counter=ctr)
        self.pythonActor = PythonActor(
            parent=self,
            script="pypushflow.tests.tasks.pythonActorTest.py",
            name="Python Actor Test",
            thread_counter=ctr,
        )
        self.stopActor = StopActor(parent=self, thread_counter=ctr)
        self.startActor.connect(self.pythonActor)
        self.pythonActor.connect(self.stopActor)


testMyWorkflow = MyWorkflow("Test workflow")
inData = {"name": "World"}
outData = testMyWorkflow.run(inData, timeout=15, pool_type="process")
assert outData["reply"] == "Hello World!"

Documentation

https://pypushflow.readthedocs.io/

Metadata

Release files for pypushflow 2.1.0rc2

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

Source distribution (sdist)

Source distribution for pypushflow 2.1.0rc2
File Size Uploaded Provenance Actions
pypushflow-2.1.0rc2.tar.gz 44.3 kB Without provenance Details for pypushflow-2.1.0rc2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pypushflow 2.1.0rc2
File Interpreter ABI Platform Actions
pypushflow-2.1.0rc2-py3-none-any.whl Python 3 none any Details for pypushflow-2.1.0rc2-py3-none-any.whl

Total release size: 116.3 kB

Release files / pypushflow-2.1.0rc2.tar.gz

Download URL pypushflow-2.1.0rc2.tar.gz
Size 44.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a3d26dd8bd2ba4c92700332c7a9967d957b67e0fac2d74dab1f53bd45d84e55f
BLAKE2b-256 checksum
How to use checksums
fcceec663b7b430ed30aacbc0e8b40d49150ba7a383d0220e34cd69e562e62ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / pypushflow-2.1.0rc2-py3-none-any.whl

Download URL pypushflow-2.1.0rc2-py3-none-any.whl
Size 72.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c454b7db0c96a6b0dc89e3cd43bcad2e46ac2da495818ccfd1ecbe78b0753f5
BLAKE2b-256 checksum
How to use checksums
07ce65c8193f23b841add59309b61c9930a4c182a7f624832e066116c82deffe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for pypushflow 2.1.0rc2

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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