Hello World HeraYAML 1 2 3 4 5 6 7 8 9 10 11 12 13 14from hera.workflows import Workflow, script @script() def hello(s: str): print("Hello, {s}!".format(s=s)) with Workflow( generate_name="hello-world-", entrypoint="hello", arguments={"s": "world"}, ) as w: hello() 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33apiVersion: argoproj.io/v1alpha1 kind: Workflow metadata: generateName: hello-world- spec: arguments: parameters: - name: s value: world entrypoint: hello templates: - inputs: parameters: - name: s name: hello script: command: - python image: python:3.8 source: 'import os import sys sys.path.append(os.getcwd()) import json try: s = json.loads(r''''''{{inputs.parameters.s}}'''''') except: s = r''''''{{inputs.parameters.s}}'''''' print(''Hello, {s}!''.format(s=s))' Comments