File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -20,24 +20,27 @@ To use this SDK, you must have Python installed. You can use either 2.7x or 3.3x
20
20
21
21
Download the ` .zip ` file that contains the SDK. Unzip the file and then run the following command:
22
22
23
- pip install -e <directory containing setup.py>
23
+ ``` python
24
+ pip install - e < directory containing setup.py>
25
+ ```
24
26
25
27
We plan on putting the package in PyPi to make installation easier.
26
28
27
29
28
30
###Basics
29
31
The following example shows the basic syntax for using the Document API to update a workbook:
30
32
31
- from tableaudocumentapi import Workbook
32
-
33
- sourceWB = Workbook('WorkbookToUpdate.twb')
34
-
35
- sourceWB.datasources[0].connection.server = "MY-NEW-SERVER"
36
- sourceWB.datasources[0].connection.dbname = "NEW-DATABASE"
37
- sourceWB.datasources[0].connection.username = "benl"
38
-
39
- sourceWB.save()
33
+ ``` python
34
+ from tableaudocumentapi import Workbook
40
35
36
+ sourceWB = Workbook(' WorkbookToUpdate.twb' )
37
+
38
+ sourceWB.datasources[0 ].connection.server = " MY-NEW-SERVER"
39
+ sourceWB.datasources[0 ].connection.dbname = " NEW-DATABASE"
40
+ sourceWB.datasources[0 ].connection.username = " benl"
41
+
42
+ sourceWB.save()
43
+ ```
41
44
42
45
** Notes**
43
46
You can’t perform that action at this time.
0 commit comments