The TableauServer class was a bit cluttered. Also, it feels cleaner when using TableauServer if the core functionality could be called with a pattern like TableauServer.get.datasources().
Also, we've been experiencing some resource issues in our Airflow DAG related to publishing datasources.
Made some updates to the code that may help with this.
Changes
Refactored TableauServer to make the code more modular.
Syntax changed from, Example -> TableauServer.get_datasources() to TableauServer.get.datasources()
Updated code for TableauServer.publish.datasource() / TableauServer.publish.workbook()
Summary
The TableauServer class was a bit cluttered. Also, it feels cleaner when using TableauServer if the core functionality could be called with a pattern like
TableauServer.get.datasources()
.Also, we've been experiencing some resource issues in our Airflow DAG related to publishing datasources. Made some updates to the code that may help with this.
Changes
TableauServer
to make the code more modular.TableauServer.get_datasources()
toTableauServer.get.datasources()
TableauServer.publish.datasource()
/TableauServer.publish.workbook()
Tests
tableau_utilities -n 'Datasource' -pn 'Project' -f file.tdsx --include_extract server_operate --publish datasource