This repository includes a file (TableauSDK-10300.18.0703.1954
) extracted from a zip file found at tableau.com. Step by step instructions on how to get and extract the file along with setting up Python can be followed from this youtube: "Tableau Training & Tutorials 13 01 APIs Extract API Introduction".
- Python 3 - Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.
- Tableau SDK - The Tableau SDK contains a set of functions for creating Tableau Data Extract (.tde) files and for publishing extracts to a Tableau Server.
- Download and install Python 3.5.2 or later
- Clone this repository if you have Windows 10. Otherwise, click the Tableau SDK link above to download the zipfile and extract the appropriate tableau SDK files for your system.
- The extracted folder will be called
TableauSDK-10300.18.0703.1954
or something similar. Change directories into the folder. - Make sure you are running your CLI with administrator rights and have python run the
setup.py
file.
$ cd TableauSDK-10300.18.0703.1954
$ python setup.py install
- The
trivialExample.py
file was created and added to theTableauSDK-10300.18.0703.1954
folder of this repo (based from the youtube video linked above). It was modified to work with python 3 because the original instructions in the video were for python 2 and would not work if left unchanged. Note the changes in the file indicated with comments. If you did not clone this repo, then copy the contents of thetrivialExample.py
file from here into your own new file and save it inside your copy of theTableauSDK-10300.18.0703.1954
folder. - Have python run the
trivialExample.py
file.
$ python trivialExample.py
- If all ran sucessfully, you will see a new file called
trivialExample.tde
appear in theTableauSDK-10300.18.0703.1954
folder. NOTE: A copy of the resulting file trivialExample.tde from completing Steps 1-6 is provided in the repo.