# Managed folders¶

## Reference documentation¶

class dataikuapi.dss.managedfolder.DSSManagedFolder(client, project_key, odb_id)

A managed folder on the DSS instance

delete()

Delete the managed folder

get_definition()

Get the definition of the managed folder

Returns:
the definition, as a JSON object
set_definition(definition)

Set the definition of the managed folder

Args:
definition: the definition, as a JSON object. You should only set a definition object that has been retrieved using the get_definition call.
list_contents()

Get the list of files in the managed folder

Returns:
the list of files, as a JSON object
get_file(path)

Get a file from the managed folder

Returns:
the file’s content, as a stream
delete_file(path)

Delete a file from the managed folder

put_file(name, f)

Upload the file to the managed folder

Args:
f: the file contents, as a stream name: the name of the file
compute_metrics(metric_ids=None, probes=None)

Compute metrics on this managed folder. If the metrics are not specified, the metrics setup on the managed folder are used.

get_last_metric_values()

Get the last values of the metrics on this managed folder

Returns:
a list of metric objects and their value
get_metric_history(metric)

Get the history of the values of the metric on this dataset

Returns:
an object containing the values of the metric, cast to the appropriate type (double, boolean,…)
get_usages()

Get the recipes referencing this folder

Returns:
a list of usages
get_object_discussions()

Get a handle to manage discussions on the managed folder

Returns: the handle to manage discussions dataikuapi.discussion.DSSObjectDiscussions