Closed jaybythebay closed 1 year ago
Justin's code:
if __name__ == '__main__':
datasources_dir = args.datasources_dir
if args.download_all:
datasources_dir = download_all_datasources(creds)
if datasources_dir:
create_column_config_from_dir(datasources_dir)
elif args.datasource_path:
create_column_config_from_datasource(args.datasource_path)
elif args.datasource_name:
ts = TableauServer(**creds)
ds = [d for d in ts.get_datasources() if d.name == args.datasource_name]
if ds:
path = ts.download_datasource(ds[0].id)
create_column_config_from_datasource(path)
Changes merged into 2.0 branch https://github.com/hoverinc/tableau-utilities/pull/9
Be able to build a config from all the sources in a local directly.