Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 1.49 KB

File metadata and controls

66 lines (42 loc) · 1.49 KB
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}

Display the REST API version

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.

Use the REST API version supported by the server

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)

Use a specific version of the REST API

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'

Supported versions

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