Tableau Server Client Python
To interact with Tableau Server using Python, you can use the tableau-api-lib library. This library allows you to perform various tasks programmatically, such as publishing workbooks, managing projects, users, and permissions, and retrieving server information. Here’s how you can use the tableau-api-lib library:
Installation:
- You need to install the tableau-api-lib library. You can use pip to install it:
- bashCopy code
- pip install tableau-api-lib
Importing the Library:
- Import the necessary modules from the tableau_api_lib library:
- pythonCopy code
- from tableau_api_lib import TableauServerConnection
- from tableau_api_lib.utils.querying import get_projects_dataframe
Creating a Server Connection:
- Create a server connection by specifying the server URL, site, and authentication details:
- pythonCopy code
- connection = TableauServerConnection(
- server=’https://your-tableau-server’,
- username=’your-username’,
- password=’your-password’,
- site=’site-name’
Working with Resources:
- You can use the connection to interact with various resources on Tableau Server, such as projects, workbooks, and users.
Examples:
Here are some example tasks you can perform using the tableau-api-lib library:
- Publish a workbook to Tableau Server.
- Query projects, workbooks, and users.
Manage permissions on projects and workbooks.
Authentication Options:
- In addition to username and password, you can also use personal access tokens or SAML authentication for authentication.
Demo Day 1 Video:
Conclusion:
Unogeeks is the No.1 Training Institute for Tableau Training. Anyone Disagree? Please drop in a comment
You can check out our other latest blogs on Tableau Training here – Tableau Blogs
You can check out our Best in Class Tableau Training details here – Tableau Training
Follow & Connect with us:
———————————-
For Training inquiries:
Call/Whatsapp: +91 73960 33555
Mail us at: info@unogeeks.com
Our Website ➜ https://unogeeks.com
Follow us:
Instagram: https://www.instagram.com/unogeeks
Facebook: https://www.facebook.com/UnogeeksSoftwareTrainingInstitute
Twitter: https://twitter.com/unogeeks