File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed
flyte-simple/{{cookiecutter.project_name}} Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 11# {{ cookiecutter.project_name }}
22
3- A simple Union project.
3+ A simple Flyte project.
Original file line number Diff line number Diff line change 11"""Hello World"""
22
3- import union
3+ import flytekit as fl
44
5- image_spec = union .ImageSpec (
6-
7- # Build the image using Union's built-in cloud builder (not locally on your machine)
8- builder = "union" ,
5+ image_spec = fl .ImageSpec (
96
107 # The name of the image. This image will be used byt he say_hello task
118 name = "say-hello-image" ,
1411 requirements = "uv.lock" ,
1512)
1613
17- @union .task (container_image = image_spec )
14+ @fl .task (container_image = image_spec )
1815def say_hello (name : str ) -> str :
1916 return f"Hello, { name } !"
2017
21- @union .workflow
18+ @fl .workflow
2219def hello_world_wf (name : str = "world" ) -> str :
2320 greeting = say_hello (name = name )
2421 return greeting
Original file line number Diff line number Diff line change 11[project ]
2- name = " union -simple"
2+ name = " flyte -simple"
33version = " 0.1.0"
4- description = " A simple Union project"
4+ description = " A simple Flyte project"
55readme = " README.md"
66requires-python = " >=3.9,<3.13"
7- dependencies = [" union " ]
7+ dependencies = [" flytekit " ]
You can’t perform that action at this time.
0 commit comments