Join us on July 16th as we explore real-world Reinforcement Learning Learn more

List recipe inputs from within the recipe

Level 3
List recipe inputs from within the recipe

I'm currently writing a Python function with lots of inputs. I'd like to list these inputs from within the recipe to avoid to declare them manually. These are the two solutions I tried :




  1. I tried to retrieve the recipe inputs using the API client. However, instanciating ```dataiku.api_client()``` into a Python recipe fails with a permission error later in the process.

  2. I tried to parse flow variables (from ```dataiku.dku_flow_variables```), but the ```DKU_LOCATION``` variable cannot differentiate inputs and outputs of the recipe.



Is there a third way I didn't see?



Best,



Romain

0 Kudos
0 Replies
Labels (2)