Skip to content

Instantly share code, notes, and snippets.

@kvnkho
Last active May 28, 2022 04:34
Show Gist options
  • Select an option

  • Save kvnkho/0f27b23e7a04301955692bf20db06c42 to your computer and use it in GitHub Desktop.

Select an option

Save kvnkho/0f27b23e7a04301955692bf20db06c42 to your computer and use it in GitHub Desktop.
# Prefect 2.0
@flow
def myflow(today: datetime.date = None):
today_parsed = today or datetime.date.today()
e = extract(today_parsed)
t = transform(e)
l = load(t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment