Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hi all,
I am looking for a way to list all the dataset names based on the "Tags" into a python code.
So that I can get the dataset names which can be used for further processing. Thank you
Regards
Suhas
Hi @SuhasChinku
You should be able to do this via this code sample (replace the <> placeholders with proper value):
import dataiku
client = dataiku.api_client()
project = client.get_project('<project_key>')
datasets = project.list_datasets()
for dataset in datasets:
if ('<tag>' in dataset['tags']):
print(dataset['name'])