argoproj-labs/hera

★ 953⑂ 0

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. ⭐️ Remember to star!

About argoproj-labs/hera

argoproj-labs/hera is an open-source project on GitHub, mainly written in Python. Hera makes Python code easy to orchestrate on Argo Workflows through native Python integrations. It currently holds 953 stars and 0 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

Git Homed tracks it on the Automation Agent Trending board and on the AI Automation Agent Trending list.

GitHub Repository Details

Repository argoproj-labs/hera · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

Hera

| https://github.com/argoproj-labs/hera/blob/HEAD/Hera mascot | Hera is the go-to Python SDK to make Argo Workflows simple and intuitive. Easily turn Python functions into containerised templates that run on Kubernetes, with full access to its capabilities. | |---|---|

See the Quick Start guide to start using Hera to orchestrate your Argo Workflows!

The Argo was constructed by the shipwright Argus,
and its crew were specially protected by the goddess Hera.

PyPI stats

PyPI Versions

Downloads Downloads/month Downloads/week

Repo information

License: Apache-2.0 CICD Docs codecov

Hera at a glance

from hera.workflows import DAG, Workflow, script

Turn a function into a reusable "Script template"

using the script decorator

@script() def echo(message: str): print(message)

Orchestration logic lives outside of business logic

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 # Define execution order

Create the workflow directly on your Argo Workflows cluster!

w.create()

Check out the Walkthrough to learn how to construct and submit Argo Workflows with Hera!

Requirements

Hera requires an Argo Workflows server to be deployed to a Kubernetes cluster. To learn how to deploy Argo to your own Kubernetes cluster you can follow the Argo Workflows guide!

Authenticating in Hera

Hera assumes that the Argo server sits behind an authentication layer, so workflow submission requests are authenticated using a Bearer token on the request. Another option for workflow submission without the authentication layer is using port forwarding to your Argo server deployment and submitting workflows to localhost:2746.

There are a few ways to authenticate in Hera - read more in the authentication walkthrough - for now, with the argo cli tool installed, and the server port-forwarded to localhost:2746, this example will get you up and running:

from hera.workflows import Workflow, Container
from hera.shared import global_config
from hera.auth import ArgoCLITokenGenerator

global_config.host = "http://localhost:2746" global_config.token = ArgoCLITokenGenerator

with Workflow(generate_name="local-test-", entrypoint="c") as w: Container(name="c", image="docker/whalesay", command=["cowsay", "hello"])

w.create()

Installation

| Source | Command | |------------------------------------------------------|--------------------------------------------------------------------------------------| | PyPI | pip install hera | | GitHub repo | python -m pip install git+https://github.com/argoproj-labs/hera --ignore-installed |

Optional dependencies

yaml

hera.workflows.Workflow.to_yaml(*args, kwargs). This enables GitOps practices and easier debugging.

cli

  • Install via hera[cli]. The [cli] option installs the extra dependencies including
Cappa which is required for the CLI
  • The CLI aims to enable GitOps practices, easier onboarding to Hera, and a more seamless experience with Argo
Workflows.
  • It currently supports converting workflows between YAML and Python source codes. See hera generate yaml --help,
and hera generate python --help for more information.

async-client

Workflow functions through the AsyncWorkflowsService.

Presentations

More presentations

Blogs

More blogs

Contributing

Use one of the following to open the repo in a cloud dev box:

https://github.com/argoproj-labs/hera/blob/HEAD/Open in GitHub Codespaces https://github.com/argoproj-labs/hera/blob/HEAD/Open in Gitpod

Read more in the contributing guide!

Hera Emeritus Maintainers

These emeritus maintainers dedicated a part of their career to Hera and reviewed code, triaged bugs and pushed the project forward over a substantial period of time. Their contribution is greatly appreciated:

License

Hera is licensed under Apache 2.0. See License for details.

GitHub Stars & Activity

953Stars
0Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars953
Forks0
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related GitHub Projects

1

langgenius / dify

Python★ 162,246⑂ 0
→
2

harry0703 / MoneyPrinterTurbo

Python★ 147,111⑂ 0
→
3

Panniantong / Agent-Reach

Python★ 116,468⑂ 0
→
4

D4Vinci / Scrapling

Python★ 107,481⑂ 0
→
5

mvanhorn / last30days-skill

Python★ 78,936⑂ 0
→
6

apache / airflow

Python★ 47,789⑂ 0
→
7

feder-cr / Jobs_Applier_AI_Agent

Python★ 32,712⑂ 0
→
8

FujiwaraChoki / MoneyPrinterV2

Python★ 32,647⑂ 0
→

More Trending Repositories