def list_datasets(project=None):
 bigquery_client = bigquery.Client(project=project)
 for dataset in bigquery_client.list_datasets():
  print dataset.name

def list_datasets ( project = None ) : bigquery_client = bigquery . Client ( project = project ) for dataset in bigquery_client . list_datasets ( ) : print dataset . name
lists all datasets in a given project .