Community Conundrum 25:Feature Visualization is now live! Read More

How to load a file from a managed folder in an endpoint defined with API Designer ?

Level 3
How to load a file from a managed folder in an endpoint defined with API Designer ?

Hello,

I defined an end point with a working folder (managed folder).

In my python function (API), I would like to read a file from this managed folder.

Please, how to proceed to read it with good performances ? 

Thanks

Annie

0 Kudos
2 Replies
Dataiker
Dataiker

Hi,

the doc for this usage is https://doc.dataiku.com/dss/latest/apinode/endpoint-python-function.html#using-managed-folders

DSS will have the folder's content copied to the local filesystem of where the API service runs, and you code can access it there

0 Kudos
Level 3
Author

Hi,

 

In the API, I would like to use the 'get_file' method of the Managed folder and I need to provide a 'path'. How can I get the path of the managed folder ?

This refers to the API at this URL https://doc.dataiku.com/dss/latest/python-api/managed_folders.html

Thanks

Annie

0 Kudos