I would like to fetch only those datasources which are of type: Extract, and skip on the Live Data Sources. I am using tableauserverclient python library.
I have found code online to filter on the basis of data source name but I want to filter on the basis of data source type. Below is the code to filer on data source name:
req_option = TSC.RequestOptions()
req_option.filter.add(TSC.Filter(TSC.RequestOptions.Field.Name,
TSC.RequestOptions.Operator.Equals,
'Superstore'))
datasources = server.datasources.get(req_option)