Skip to content

How to create a .tde file for tableau <=10.4 using python 3 on Windows 10

License

Notifications You must be signed in to change notification settings

erikamart/tableauSDK_py3

Repository files navigation

Creating a Tableau Data Extract (.tde) file using Python 3.5.2 on Windows 10

N|Solid

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".

Software & Files Required

  • 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.

Installation

  1. Download and install Python 3.5.2 or later
  2. 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.
  3. The extracted folder will be called TableauSDK-10300.18.0703.1954 or something similar. Change directories into the folder.
  4. 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
  1. The trivialExample.py file was created and added to the TableauSDK-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 the trivialExample.py file from here into your own new file and save it inside your copy of the TableauSDK-10300.18.0703.1954 folder.
  2. Have python run the trivialExample.py file.
$ python trivialExample.py
  1. If all ran sucessfully, you will see a new file called trivialExample.tde appear in the TableauSDK-10300.18.0703.1954 folder. NOTE: A copy of the resulting file trivialExample.tde from completing Steps 1-6 is provided in the repo.

About

How to create a .tde file for tableau <=10.4 using python 3 on Windows 10

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages