<#1689 Add PydanticRemote plugin for creating pyth...
# flyte-github
a
#1689 Add PydanticRemote plugin for creating pythonic interfaces to remote workflows Pull request opened by ggydush TL;DR Adds a PydanticRemote plugin that provides a simpler UX for retrieving and launching workflows from FlyteRemote. See

YouTube

demo for more information. Type ☐ Bug Fix ☑︎ Feature ☐ Plugin Are all requirements met? ☐ Code completed ☑︎ Smoke tested ☑︎ Unit tests added ☐ Code documentation added ☐ Any pending items have an associated Issue Complete description Most of the users of Flyte that I interact with are launching tasks and workflows from Python or Jupyter notebooks. Currently with
FlyteRemote.execute
, the user must know the workflow interface and provide workflow inputs as a Python dictionary when launching a workflow. This works, but often involves the user going back and forth between the FlyteConsole and their Jupyter Notebook to ensure all inputs are provided and are of the correct type. To address this, I created a version of FlyteRemote that leverages Pydantic to dynamically create workflow interfaces. This works by: 1. Querying Flyte for workflows and their input/output interface 2. Converting the interface to a Pydantic model and populating the docstring 3. Returning this model with a
execute
method that enables launching the workflow on a remote cluster flyteorg/flytekit All checks have passed 30/30 successful checks