How to retrieve input datasets for a specific dataset using the Python API?

ELACHAR
ELACHAR Registered Posts: 4 ✭✭

Hi everyone,

I'm trying to use the Dataiku Python API to identify which input datasets were used to create a specific dataset within a project.

For example, in the project "PRISME_INTEGRATION_TABLES", I want to retrieve the direct input datasets that were used to generate the dataset "PRS_Decision_Complement".

I attempted to use project.get_flow().get_graph() but ran into a TypeError: 'DSSProjectFlowGraph' object is not subscriptable, and I'm unsure how to properly access the recipes or the flow connections.

Is there a recommended way to extract this information?
Any guidance or sample code would be greatly appreciated!

Thanks in advance for your help!

Setup Info
    Tags
      Help me…