This repository provides some examples for TSC by Tableau.
Official documentation can be found here and GitHub
Below are some initial set-up steps I'd recommend.
Check out the new Developer Portal here
These examples are based on the use of a free Sandbox through the program
I’d recommend forking the repo for ease of following along
and then clone to your computer. Once that’s done, navigate to the root of the repository.
Intro to pyenv here
brew install pyenv
pyenv local 3.9.1
# use this to check version:
pyenv versions
python -m venv venv
souce venv/bin/activate
For more information about why visit this link
pip install -r requirements.txt
An .env file is a great way to host your credentials and avoid entering over and over. Here we'll be using Personal Access Tokens for authentication. Create Tokens
tokenName='TokenName'
tokenSecret='TokenSecret'
url='https://10ax.online.tableau.com'
site='SiteName'
Make new projects to use
python 0_setup/CreateProjects.py