hera
Hera makes Python code easy to orchestrate on Argo Workflows through native Python integrations. It lets you construct and submit your Workflows entirely in Python.
Decision gist · record as of 2026-08-14
Yes. Hera is actively maintained, has no known vulnerabilities, low install friction, and a permissive Apache 2.0 license. Install it if you need to orchestrate containerized workloads on Kubernetes and prefer writing Python over YAML. The main prerequisite is having an Argo Workflows server already deployed to a cluster; without that, the package alone is not useful.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an Argo Workflows server deployed to a Kubernetes cluster and network access to it; authentication typically via Bearer token or port forwarding to localhost:2746.
- Low install friction with three lightweight runtime dependencies (pydantic, requests, typing-extensions).
- Active maintenance with a release within the last 57 days and an active repository.
License · maintenance · safety
Apache-2.0 (permissive) — Apache 2.0 permissive license allows commercial and private use with minimal restrictions; you may use, modify, and distribute Hera freely provided you include the license notice.
last release 2026-06-18 (57 days) · last repo commit 2026-08-09 · 927 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,070,096 downloads/mo, #4,406 on PyPI
Alternatives
Verify before relying
pip install hera
from hera.workflows import DAG, Workflow, script
@script()
def echo(message: str):
print(message)
with Workflow(generate_name="test-", entrypoint="diamond") as w:
with DAG(name="diamond"):
A = echo(name="A", arguments={"message": "A"})
B = echo(name="B", arguments={"message": "B"})
A >> B
w.create()- Whether optional dependencies (yaml, cli, async-client) are commonly needed for typical workflows.
- Performance characteristics when orchestrating large numbers of tasks or complex DAGs.
- Compatibility guarantees with specific Argo Workflows server versions.
What it is and what it does
Hera is a Python SDK that bridges Python code and Argo Workflows, a Kubernetes-native workflow orchestration engine. Instead of writing YAML manifests, you define workflows as Python functions and DAGs, then submit them directly to an Argo server running on your cluster. The package handles the translation from Python to Argo's workflow format, letting you keep orchestration logic separate from business logic while retaining full access to Argo's capabilities like conditional execution, loops, and resource management.
The core workflow is simple: decorate Python functions with @script(), compose them into DAGs using Python operators (like >> for sequencing), and call w.create() to submit to your cluster. Hera depends on pydantic for data validation, requests for HTTP communication with the Argo server, and typing-extensions for type hints. It supports modern Python versions (3.10 through 3.14) and is in active development with optional extras for YAML export, a CLI tool, and async client support.
Use it for
- Build multi-step data pipelines on Kubernetes where each step is a Python function, without writing YAML.
- Orchestrate machine learning training and inference workflows with dependency management and conditional branching.
- Create scheduled or event-driven job workflows that run containerized Python code across a cluster.
- Define complex DAGs with parallel execution paths and dynamic task generation using native Python syntax.
- Enable GitOps practices by generating Argo YAML from Python source code for version control and review.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Hera is actively maintained, has no known vulnerabilities, low install friction, and a permissive Apache 2.0 license. Install it if you need to orchestrate containerized workloads on Kubernetes and prefer writing Python over YAML. The main prerequisite is having an Argo Workflows server already deployed to a cluster; without that, the package alone is not useful.
Install
hera on PyPI
Before you install
Low install friction with three lightweight runtime dependencies (pydantic, requests, typing-extensions). Active maintenance with a release within the last 57 days and an active repository.
Requires an Argo Workflows server deployed to a Kubernetes cluster and network access to it; authentication typically via Bearer token or port forwarding to localhost:2746.
License in practice
Apache 2.0 permissive license allows commercial and private use with minimal restrictions; you may use, modify, and distribute Hera freely provided you include the license notice.
Quickstart
pip install hera
from hera.workflows import DAG, Workflow, script
@script()
def echo(message: str):
print(message)
with Workflow(generate_name="test-", entrypoint="diamond") as w:
with DAG(name="diamond"):
A = echo(name="A", arguments={"message": "A"})
B = echo(name="B", arguments={"message": "B"})
A >> B
w.create()
Verify before relying
- Whether optional dependencies (yaml, cli, async-client) are commonly needed for typical workflows.
- Performance characteristics when orchestrating large numbers of tasks or complex DAGs.
- Compatibility guarantees with specific Argo Workflows server versions.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagespydanticrequeststyping-extensions |
| Maintenance | Actively maintained 57 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,070,096 / month, #4,406 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering |
Evidence: hera-7.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “kubernetes workflow orchestration”
- heraHera is a Python SDK that turns Python functions into Argo Workflows…
- argo-workflowsProvides Python API bindings for Argo Workflows, enabling…
- hera-workflowsHera is a Python SDK that turns Python functions into Argo Workflows…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also hera-workflows · argo-workflows · dagger-io · apache-airflow-providers-docker · prefect-docker · kfp-server-api · apache-airflow-core · apache-airflow-task-sdk · kfp-pipeline-spec · distributed