This Airflow plugin provides tableau online/ server interactions.
- Add this folder to
$AIRFLOW_HOME/plugins - Install requirements
pip3 install -r requirements.txt
- Add a connection using the airflow UI
Admin > Connections > Create - Set
Conn Idto[YOUR CONN ID]usually this istableau - Add to
Extrathe following configration:
Example:
{
"username": "john.doe@example.com",
"password": "secret",
"site_name": "acme",
"site_uri": "https://dub01.online.tableau.com"
}
Create a dag and use it like:
from tableau_plugin.operators import TableauDSExtractRefreshOperator
run_this = TableauDSExtractRefreshOperator(
dag=dag,
task_id="task1",
tableau_conn_id='[YOUR CONN ID]',
datasource_name='[YOUR DATASOURCE NAME]',
)
Kindly check the open issues and raise a PR where applicable.
Apache 2.0.