Skip to main content

No project description provided

Project description

Tableau Toolkit

Development Process

Prerequisites

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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tableau_toolkit-0.1.23.tar.gz (35.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tableau_toolkit-0.1.23-cp313-cp313-manylinux_2_40_x86_64.whl (48.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.40+ x86-64

File details

Details for the file tableau_toolkit-0.1.23.tar.gz.

File metadata

  • Download URL: tableau_toolkit-0.1.23.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.8 Linux/6.10.11-1rodete2-amd64

File hashes

Hashes for tableau_toolkit-0.1.23.tar.gz
Algorithm Hash digest
SHA256 aefceae3158fe676b1d1b8b7639306554734c378f5f9f2d989863bdf245e26a1
MD5 da730864e1016833a989a724f494f8b4
BLAKE2b-256 a8e179e3b4a99bbf30dd26596ab494e86564f4de0354230b1fd71bffcad5ab32

See more details on using hashes here.

File details

Details for the file tableau_toolkit-0.1.23-cp313-cp313-manylinux_2_40_x86_64.whl.

File metadata

File hashes

Hashes for tableau_toolkit-0.1.23-cp313-cp313-manylinux_2_40_x86_64.whl
Algorithm Hash digest
SHA256 e7642b6508518204d3b598c8972b772ed50cd146fb1f9499c2f6cdc02f256293
MD5 448f33a48607fc7e84b366723816757b
BLAKE2b-256 a56a009fdd9343be4b685daf13b63adf78a95a4aa9da2067f5f48c3c2c29aa94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page