8000 Updating README file for new features · parino/document-api-python@8cb4caf · GitHub
[go: up one dir, main page]

Skip to content

Commit 8cb4caf

Browse files
committed
Updating README file for new features
1 parent f8206b9 commit 8cb4caf

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

README.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,26 @@ This repo contains Python source and example files for the Tableau Document API.
66

77
Document API
88
---------------
9-
The Document API provides a supported way to programmatically make updates to Tableau workbook (`.twb`) and datasource (`.tds`) files. If you've been making changes to these file types by directly updating the XML--that is, by XML hacking--this SDK is for you :)
10-
11-
Currently only the following operations are supported:
12-
13-
- Modify database server
14-
- Modify database name
15-
- Modify database user
16-
17-
We don't yet support creating files from scratch. In addition, support for `.twbx` and `.tdsx` files is coming.
9+
The Document API provides a supported way to programmatically make updates to Tableau workbook and data source files. If you've been making changes to these file types by directly updating the XML--that is, by XML hacking--this SDK is for you :)
10+
11+
Features include:
12+
- Support for 8.X, 9.X, and 10.X workbook and data source files
13+
- Including TDSX and TWBX files
14+
- Getting connection information from data sources and workbooks
15+
- Server Name
16+
- Username
17+
- Database Name
18+
- Authentication Type
19+
- Connection Type
20+
- Updating connection information in workbooks and data sources
21+
- Server Name
22+
- Username
23+
- Database Name
24+
- Getting Field information from data sources and workbooks
25+
- Get all fields in a data source
26+
- Get all feilds in use by certain sheets in a workbook
27+
28+
We don't yet support creating files from scratch, adding extracts into workbooks or data sources, or updating field information
1829

1930

2031
###Getting Started
@@ -34,9 +45,6 @@ Download the `.zip` file that contains the SDK. Unzip the file and then run the
3445
pip install -e <directory containing setup.py>
3546
```
3647

37-
We plan on putting the package in PyPi to make installation easier.
38-
39-
4048
###Basics
4149
The following example shows the basic syntax for using the Document API to update a workbook:
4250

@@ -52,7 +60,7 @@ sourceWB.datasources[0].connections[0].username = "benl"
5260
sourceWB.save()
5361
```
5462

55-
With Data Integration in Tableau 10, a datasource can have multiple connections. To access the connections simply index them like you would datasources
63+
With Data Integration in Tableau 10, a data source can have multiple connections. To access the connections simply index them like you would datasources
5664

5765
```python
5866
from tableaudocumentapi import Workbook
@@ -75,13 +83,13 @@ sourceWB.save()
7583
**Notes**
7684

7785
- Import the `Workbook` object from the `tableaudocumentapi` module.
78-
- To open a workbook, instantiate a `Workbook` object and pass the `.twb` file name in the constructor.
79-
- The `Workbook` object exposes a `datasources` collection.
80-
- Each datasource object has a `connection` object that supports a `server`, `dbname`, and `username` property.
86+
- To open a workbook, instantiate a `Workbook` object and pass the file name as the first argument.
87+
- The `Workbook` object exposes a list of `datasources` in the workbook
88+
- Each data source object has a `connection` object that supports a `server`, `dbname`, and `username` property.
8189
- Save changes to the workbook by calling the `save` or `save_as` method.
8290

8391

8492

8593
###Examples
8694

87-
The downloadable package contains an example named `replicateWorkbook.py` (in the folder `\Examples\Replicate Workbook`). This example reads an existing workbook and reads a .csv file that contains a list of servers, database names, and users. For each new user in the .csv file, the code copies the original workbook, updates the `server`, `dbname`, and `username` properties, and saves the workbook under a new name.
95+
The downloadable package contains several example scripts that show more detailed usage of the Document API

0 commit comments

Comments
 (0)
0