Tools for extracting metadata from Tableau Desktop workbook files.
Project description
TableauDesktopPy
Tools for extracting metadata from Tableau Desktop workbook files. This package parses the underlying xml of a workbook to retrieve information on its style and data connections.
Installation
Install with pip:
pip install TableauDesktopPy
Usage
- Provide a valid Tableau workbook file ('.twb' or '.twbx') to declare a
Workbookobject:
import TableauDesktopPy as tdp
my_workbook = tdp.Workbook("C:\Users\bpewyllie\test_workbook.twbx")
- Then call any of the following attributes to retrieve workbook metadata:
Workbook.colorsWorkbook.custom_sqlWorkbook.excelWorkbook.fontsWorkbook.fieldsWorkbook.onedriveWorkbook.imagesWorkbook.shapes- ... and more
-
Other metadata may be retrieved by calling the
Workbook.xmlattribute and parsing with an xml parser such as BeautifulSoup. -
The module also provides methods for modifying a workbook's xml.
Workbook.hide_field(), for example, hides an arbitrary field from the workbook's xml. To make the changes appear when opening the workbook in Tableau, first call theWorkbook.save()method. Currently only saving as a.twbfile is supported. To prevent confusion, it is best to run this method with the workbook closed.
Release notes
1.1.1 (3/19/2021)
-
Fix bug with some fields not showing up in fields attribute
-
Clean up some formatting with README files generated by
generate_readme
1.1.0 (1/29/2021)
-
Ability to save workbooks to
.twbxfiles -
Change default fonts of workbooks
1.0.9 (1/22/2021)
- Address README template not being accessible
1.0.8 (1/21/2021)
-
Include datasource in parenthetical in any field-related attribute to overcome duplicate-named fields from different datasources
-
Create method for building workbook README file
-
Create save method for overwriting workbooks
-
Create method for changing fonts
-
Fix some bugs with retrieving field names when parameters are present
To do
-
Create worksheet, datasource subclasses (long-term goal: allow more precise manipulation)
-
Create method for changing file paths of images and data files
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file TableauDesktopPy-1.1.1.tar.gz.
File metadata
- Download URL: TableauDesktopPy-1.1.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb726515b7776040c9c5e8574476ae624086d82b5a96040f581364269076518c
|
|
| MD5 |
039bcd83e0a4baa11e347ed32f0e7e7a
|
|
| BLAKE2b-256 |
8787ef724a9941231e32dfa9491a318e38fbdc2e563eeca3b25a41b12608a152
|
File details
Details for the file TableauDesktopPy-1.1.1-py3-none-any.whl.
File metadata
- Download URL: TableauDesktopPy-1.1.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae566bb1927bf480c053d4e872a067013e07e447227781c0d521a71135c5cb5c
|
|
| MD5 |
afe27a88edeb3f626f8280038fee55bc
|
|
| BLAKE2b-256 |
bde5f19773506feb7c88d320b0d418774d995dff4ead1dce2978bdd3e8692b76
|