Skip to main content

RAF Banner

License: MIT Python 3.11+ Tests Documentation

RADICAL AsyncFlow (RAF) is a fast asynchronous scripting library built on top of asyncio for building powerful async/sync workflows on HPC, clusters, and local machines. It supports pluggable execution backends with intuitive task dependencies and workflow composition.

  • ⚡ Powerful asynchronous workflows — Compose complex async and sync workflows easily, with intuitive task dependencies and campaign orchestration.

  • 🌐 Portable across environments — Run seamlessly on HPC systems, clusters, and local machines with pluggable execution backends.

  • 🧩 Flexible and extensible — Supports campaign management and advanced workflow patterns, built on Python’s asyncio and RADICAL Cybertools expertise.

AsyncFlow ships with the following built-in execution backends:

  • LocalExecutionBackend — local execution using Python's concurrent.futures (ThreadPoolExecutor / ProcessPoolExecutor)
  • NoopExecutionBackend — no-op backend for testing and dry_run mode

For HPC execution, install RHAPSODY which provides additional backends that plug directly into AsyncFlow:

  • Radical.Pilot — distributed HPC execution across supercomputers and clusters
  • Dask — parallel computing with Dask distributed
  • Concurrent — thread/process pool execution with extended HPC support
  • Dragon — high-performance distributed execution

⚙️ Installation

Radical AsyncFlow package is available on PyPI.

pip install radical-asyncflow

For HPC execution via RHAPSODY:

pip install rhapsody-py

For developers:

git clone https://github.com/radical-cybertools/radical.asyncflow
cd radical.asyncflow
pip install -e .[dev,lint,doc]

📚 Documentation

👉 AsyncFlow Documentation and API References

Basic Usage

import asyncio

from radical.asyncflow import WorkflowEngine, LocalExecutionBackend
from concurrent.futures import ThreadPoolExecutor


async def main():
    # Create backend and workflow
    backend = await LocalExecutionBackend(ThreadPoolExecutor())
    flow = await WorkflowEngine.create(backend=backend)

    @flow.executable_task
    async def task1():
        return "/bin/echo 5"

    @flow.function_task
    async def task2(t1_result):
        return int(t1_result.strip()) * 2 * 2

    # create the workflow
    t1_fut = task1()
    t2_result = await task2(t1_fut)  # t2 depends on t1 (waits for it)

    print(t2_result)
    # shutdown the execution backend
    await flow.shutdown()


if __name__ == "__main__":
    asyncio.run(main())

What AsyncFlow Can Be Used For

  • AI & LLM Workflows - Build complex AI agent systems and orchestrate multiple language model calls with automatic dependency resolution in parallel.
  • Data Processing Pipelines - Create data science pipelines, and real-time analytics with async task coordination.
  • High-Performance Computing - Execute scientific computing workflows and distributed simulations on HPC clusters with scaling.
  • Cross-Platform Execution - Deploy the same workflows locally for development, or HPC infrastructure without code changes

Metadata

Release files for radical.asyncflow 0.7.0

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

Source distribution (sdist)

Source distribution for radical.asyncflow 0.7.0
File Size Uploaded Provenance Actions
radical_asyncflow-0.7.0.tar.gz 41.7 kB Without provenance Details for radical_asyncflow-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for radical.asyncflow 0.7.0
File Interpreter ABI Platform Actions
radical_asyncflow-0.7.0-py3-none-any.whl Python 3 none any Details for radical_asyncflow-0.7.0-py3-none-any.whl

Total release size: 81.0 kB

Release files / radical_asyncflow-0.7.0.tar.gz

Download URL radical_asyncflow-0.7.0.tar.gz
Size 41.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f52199ffc12caf6fa7668bb21b87064bd1e300e2f203abba6ed19c4fcf555216
BLAKE2b-256 checksum
How to use checksums
5fafac3214c66d09bbf752275a9a23fc153a46a317cf3904dc3d3e83edefd7af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / radical_asyncflow-0.7.0-py3-none-any.whl

Download URL radical_asyncflow-0.7.0-py3-none-any.whl
Size 39.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22a141887c6749bf991d474da33591a4ed9eb0d4266ec37f2c150797c2617a41
BLAKE2b-256 checksum
How to use checksums
824c00b89bf60e77fa8735927b3a099a7dbd0b4a950212b2432a79ed91495887
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for radical.asyncflow 0.7.0

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.

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