반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- string
- math
- Google Excel
- dataframe
- django
- SQL
- Redshift
- c#
- Tkinter
- Python
- Github
- PySpark
- matplotlib
- Kotlin
- GIT
- google apps script
- 파이썬
- list
- Java
- hive
- Google Spreadsheet
- Mac
- Apache
- PostgreSQL
- Excel
- gas
- numpy
- array
- PANDAS
Archives
- Today
- Total
달나라 노트
Python tableauserverclient : Sign in & Sign out 본문
Python/Python tableauserverclient
Python tableauserverclient : Sign in & Sign out
CosmosProject 2020. 12. 21. 15:42728x90
반응형
Tableau Server Client(TSC)
Tableau Server Client(TSC) library gives you various functions to deal with tableau on python code.
Sign in & Sign out
# --------------------------------------------------
# Chapter 1. How to sign in and out in tableau server using TSC
# --------------------------------------------------
import tableauserverclient as TSC
def TSC_sign_in_out():
tableau_server_url = 'tableau_url' # e.g. https://tableau-server.test.com
tableau_user_id = 'tableau_id'
tableau_user_pw = 'tableau_password'
server = TSC.Server(tableau_server_url)
tableau_auth = TSC.TableauAuth(tableau_user_id, tableau_user_pw)
print('Current REST API Version :', server.version)
server.version = '2.8' # You can set tableau server version like this. In this example, version was set as 2.8.
print('Modified REST API Version :', server.version, '\n')
server.auth.sign_in(tableau_auth) # login to tableau server using tableau_auth class
print('Logged in')
# Do something here
server.auth.sign_out() # logout from tableau server
print('Logged out')
Before you use TSC, you should sign in.
728x90
반응형
'Python > Python tableauserverclient' 카테고리의 다른 글
Python tableauserverclient : populate (2) | 2022.05.25 |
---|---|
Python tableauserverclient : RequestOptions (Filtering) (0) | 2022.05.25 |
Python tableauserverclient : get (project class 얻기, workbook class 얻기, view class 얻기) (0) | 2022.05.25 |
Python tableauserverclient : Refresh workbook (0) | 2020.12.21 |
Python tableauserverclient : Filtering (0) | 2020.12.21 |
Comments