Hera is an intuitive SDK that extends Argo Workflows, allowing you to define and submit jobs entirely in Python. Use Hera to create and scale DAG, step-wise, and parallelized workflows with ease.
The @script
decorator lets you run any function on Kubernetes,
with
native integration into Argo Workflows.
from hera.workflows import DAG, Workflow, script
@script()
def echo(message: str):
print(message)
with Workflow(
generate_name="dag-diamond-",
entrypoint="diamond",
) as w:
with DAG(name="diamond"):
A = echo(name="A", arguments={"message": "A"})
B = echo(name="B", arguments={"message": "B"})
C = echo(name="C", arguments={"message": "C"})
D = echo(name="D", arguments={"message": "D"})
A >> [B, C] >> D
w.create()
Write native, testable Python functions using Pydantic, NumPy, TensorFlow, and more.
Argo Workflows runs up to 50% faster than Airflow. Parallelize steps by default.
Define workflows as Python functions. Inherently reusable. Easier to write, test, and maintain.
Hera is built by developers for developers. Our open-source community is creating the future of cloud-native Python orchestration. Contribute code, report issues, or just star the repo to show support.
Testimonials from Hera's anonymous 2025 developer survey
"Massively simpler than trying to manage complex YAML files."
- DevOps Engineer"For me: It just works"
- Data Scientist"It is 1000x better than Kubeflow SDK and easier than Argo YAML to author pipelines."
- Machine Learning Engineer"Harness the power of Argo Workflows directly from Python, low effort to create workflows."
- DevOps Engineer