Survey banner
Switching to Dataiku - a new area to help users who are transitioning from other tools and diving into Dataiku! CHECK IT OUT

Reading Tags of datasets in python

Level 2
Reading Tags of datasets in python

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



0 Kudos
1 Reply

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']):
0 Kudos