Tableau Toolkit
Development Process
Prerequisites
- Git - https://git-scm.com/
- Poetry - https://python-poetry.org/
- Python (3.13) - https://www.python.org/
Get Project
git clone <this repository>
Install Dependencies
poetry install
Black to Standardize Code Formatting
poetry run black tableau_toolkit
Pylint to Improve Code Readability
poetry run pylint tableau_toolkit
Run unit tests
poetry run test
Run cli commands
poetry run tt
Build
poetry build
Publish
poetry config pypi-token.pypi <your-api-token> # do this only your first time
poetry publish --skip-existing
Installer
poetry run postbuild
installer.iss - Load it into 'Inno Setup' application to create Windows installer, then remove/install as needed
- install: double click on installer in output directory
- remove: use add or remove programs from start menu and search for Tableau Toolkit
create_pkg.sh - Run it to create installer for MacOS, then remove/install as needed
- install: double click on pkg file in output directory
- remove: rm /usr/local/bin/tt
create_deb.sh - create deb installer, then remove/install as needed
- install: sudo dpkg -i ./output/filename.deb
- remove: sudo dpkg -r packagename
create_rpm.sh - create rpm installer, then remove/install as needed
- install: sudo rpm -i ./output/filename.rpm
- remove: sudo rpm -e packagename
Usage
Once published, users can install and use
Install
pip install tableau-toolkit
Usage
First Time
If this is the first time using the tableau toolkit, execute the following command to create a config file. This only needs to be done once.
tt init
A file will appear at .tableau_toolkit/.tableau.yaml
in your home directory.
Next, Fill in the information in the generated config file.
For any field with the comment # provide encoded string,
use tt encode <string> to generate the encoded string for the config file
api:
version: '3.21'
authentication:
type: personal_access_token
personal_access_token:
name: api
secret: # provide encoded string
postgres:
database: workgroup
host: localhost
password:
port: 8060
user: readonly
site:
content_url: ''
tableau_auth:
password: # provide encoded string
username:
tableau_server:
url: # url for api access
public_url: # url for end user access
Ready to Use
Next, execute tt to get a list of commands. Some example commands are listed below
tt get data-alerts --limit 10000000 --columns "object_type,object_name,object_luid,object_owner_username,object_location,object_size,site_name,site_luid,days_since_last_event,snapshot_at"
tt get extract-refreshes --no-headers --limit 10000000 --columns "object_type,object_name,object_luid,object_owner_username,object_location,object_size,site_name,site_luid,days_since_last_event,snapshot_at"
tt get subscriptions --no-headers --limit 10000000 --columns "object_type,object_name,object_luid,object_owner_username,object_location,object_size,site_name,site_luid,days_since_last_event,snapshot_at"
tt get workbooks --no-headers --limit 10000000 --columns "object_type,object_name,object_luid,object_owner_username,object_location,object_size,site_name,site_luid,days_since_last_event,snapshot_at"
tt get datasources --no-headers --limit 10000000 --columns "object_type,object_name,object_luid,object_owner_username,object_location,object_size,site_name,site_luid,days_since_last_event,snapshot_at"
tt get views --no-headers --limit 10000000 --columns "object_type,object_name,object_luid,object_owner_username,object_location,object_size,site_name,site_luid,days_since_last_event,snapshot_at"
tt get users --no-headers --limit 10000000 --columns "object_type,object_name,object_luid,object_owner_username,object_location,object_size,site_name,site_luid,days_since_last_event,snapshot_at"
Metadata
Release files for tableau-toolkit 0.1.27
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tableau_toolkit-0.1.27.tar.gz | 36.1 kB | Without provenance | Details for tableau_toolkit-0.1.27.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tableau_toolkit-0.1.27-cp313-cp313-manylinux_2_40_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.40+ x86-64 | Details for tableau_toolkit-0.1.27-cp313-cp313-manylinux_2_40_x86_64.whl |
Total release size: 85.6 kB
Release files / tableau_toolkit-0.1.27.tar.gz
| Download URL | tableau_toolkit-0.1.27.tar.gz |
|---|---|
| Size | 36.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a85cfa4d947913990558faabdf9d0d265990dda522946c459def87e1209f240a
|
|
BLAKE2b-256 checksum How to use checksums |
a479142bdb6dc28370645f56eed0a1281e58ef3de3105879d1abb798dc1cc6b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.8 Linux/6.10.11-1rodete2-amd64
|
Release files / tableau_toolkit-0.1.27-cp313-cp313-manylinux_2_40_x86_64.whl
| Download URL | tableau_toolkit-0.1.27-cp313-cp313-manylinux_2_40_x86_64.whl |
|---|---|
| Size | 49.4 kB |
| Tags | CPython 3.13 Linux glibc 2.40+ x86-64 |
|
SHA-256 checksum How to use checksums |
78f54f05ba78304afdf4a6fd987d7da13d3ed5d37a9135fb3b235dfa63bdf52e
|
|
BLAKE2b-256 checksum How to use checksums |
a644d15555d00099bb4a1079231bd8133a367dda6dcb6ea9072ca1c27f1012f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.8 Linux/6.10.11-1rodete2-amd64
|
Security for tableau-toolkit 0.1.27
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.