Flux is a distributed workflow orchestration engine to build stateful and fault-tolerant workflows.
Project description
Flux
Flux is a distributed workflow orchestration engine to build stateful and fault-tolerant workflows.
Getting started
- Install the latest version of Flux
pip install flux-core
Flux requires Python 3.12 or later.
- Create your first Workflow
from flux import task, workflow, WorkflowExecutionContext
@task
def say_hello(name: str):
return f"Hello, {name}"
@workflow
def hello_world(ctx: WorkflowExecutionContext[str]):
return (yield say_hello(ctx.input))
if __name__ == "__main__":
ctx = hello_world.run("Joe")
print(ctx.to_json())
For more examples, checkout the
examplesfolder.
- Execute the workflow locally
flux exec hello_world.py hello_world "Joe"
- If you prefer via API
flux start examples
curl --location 'localhost:8000/hello_world' \
--header 'Content-Type: application/json' \
--data '"Joe"'
Features
- High-Performance
- Fault-Tolerance
- Durable Execution
- Parallelism
Next Steps
- Checkout the tutoarials and examples
- Learn how to configure and deploy Flux on different environments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flux_core-0.1.2.tar.gz
(14.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
flux_core-0.1.2-py3-none-any.whl
(19.2 kB
view details)
File details
Details for the file flux_core-0.1.2.tar.gz.
File metadata
- Download URL: flux_core-0.1.2.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.7 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
874935e637733527e46f028f92a65d706e6833285a804ba07a694703b7796a76
|
|
| MD5 |
1a149a9e7e20edb8b7d0b839e3b8c68e
|
|
| BLAKE2b-256 |
508bd131dff59f434e345eb787ce422e8e28b7d81bb0c6d87fbedd0f387c7e75
|
File details
Details for the file flux_core-0.1.2-py3-none-any.whl.
File metadata
- Download URL: flux_core-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.7 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aeefdb6cea0be4f03420bb4b6a41404260a295ba458ad83a69b3ba08c0f81da6
|
|
| MD5 |
d8c47f3ddeb1bc26fd8441a7a046ed23
|
|
| BLAKE2b-256 |
c38e02936fb73b18e9f741a57afd2e69bf2bc03cc1d92822f2184f0a8be17fa7
|