List recipe inputs from within the recipe

Options
rmnvncnt
rmnvncnt Registered Posts: 41 ✭✭✭✭✭

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

Tagged:
Setup Info
    Tags
      Help me…