| title | Versions |
|---|---|
| layout | docs |
Because the TSC library is a client for the Tableau Server REST API, you need to confirm that the version of the TSC library that you use is compatible with the version of the REST API used by your installation of Tableau Server.
- TOC {:toc}
To display the default version of the REST API used by TSC, run the following code:
import tableauserverclient as TSC
server = TSC.Server('http://SERVER_URL')
print(server.version)For example, the code might display version 2.3.
To always use the latest version of the REST API that is supported by the instance of Tableau Server you are connecting to, set the version using the use_server_version() method. You can do this when you create the server instance by specifying use_server_version=True as one of the arguments.
import tableauserverclient as TSC
server = TSC.Server('http://SERVER_URL', use_server_version=True)
To use another version of the REST API, set the version like so:
import tableauserverclient as TSC
server = TSC.Server('http://SERVER_URL')
server.version = '2.6'The current version of TSC only supports the following REST API and Tableau Server versions:
| REST API version | Tableau Server version |
|---|---|
| 2.3 | 10.0 |
| 2.4 | 10.1 |
| 2.5 | 10.2 |
| 2.6 | 10.3 |
| 2.7 | 10.4 |
| 2.8 | 10.5 |
| 3.0 | 2018.1 |
| 3.1 | 2018.2 |
| 3.2 | 2018.3 |