-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from tableau/development
Releasing 0.2 to master
- Loading branch information
Showing
32 changed files
with
1,407 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,3 +63,4 @@ target/ | |
|
||
#Other things | ||
.DS_Store | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## 0.2 (22 July 2016) | ||
|
||
* Added support for loading twbx and tdsx files (#43, #44) | ||
* Added Fields property to datasource (#45) | ||
* Added Example for using the Fields Property (#51) | ||
* Added Ability to get fields used by a specific sheet (#54) | ||
* Code clean up and test reorganization | ||
|
||
## 0.1 (29 June 2016) | ||
|
||
* Initial Release to the world |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../List TDS Info/World.tds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
############################################################ | ||
# Step 1) Use Datasource object from the Document API | ||
############################################################ | ||
from tableaudocumentapi import Datasource | ||
|
||
############################################################ | ||
# Step 2) Open the .tds we want to inspect | ||
############################################################ | ||
sourceTDS = Datasource.from_file('World.tds') | ||
|
||
############################################################ | ||
# Step 3) Print out all of the fields and what type they are | ||
############################################################ | ||
print('----------------------------------------------------------') | ||
print('--- {} total fields in this datasource'.format(len(sourceTDS.fields))) | ||
print('----------------------------------------------------------') | ||
for count, field in enumerate(sourceTDS.fields.values()): | ||
print('{:>4}: {} is a {}'.format(count+1, field.name, field.datatype)) | ||
blank_line = False | ||
if field.calculation: | ||
print(' the formula is {}'.format(field.calculation)) | ||
blank_line = True | ||
if field.default_aggregation: | ||
print(' the default aggregation is {}'.format(field.default_aggregation)) | ||
blank_line = True | ||
|
||
if blank_line: | ||
print('') | ||
print('----------------------------------------------------------') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Contributing | ||
|
||
We welcome contributions to this project! | ||
|
||
Contribution can include, but are not limited to, any of the following: | ||
|
||
* File an Issue | ||
* Request a Feature | ||
* Implement a Requested Feature | ||
* Fix an Issue/Bug | ||
* Add/Fix documentation | ||
|
||
Contributions must follow the guidelines outlined on the [Tableau Organization](http://tableau.github.io/) page, though filing an issue or requesting | ||
a feature do not require the CLA. | ||
|
||
## Issues and Feature Requests | ||
|
||
To submit an issue/bug report, or to request a feature, please submit a [github issue](https://github.com/tableau/document-api-python/issues) to the repo. | ||
|
||
If you are submiting a bug report, please provide as much information as you can, including clear and concise repro steps, attaching any necessary | ||
files to assist in the repro. **Be sure to scrub the files of any potentially sensitive information. Issues are public.** | ||
|
||
For a feature request, please try to describe the scenario you are trying to accomplish that requires the feature. This will help us understand | ||
the limitations that you are running into, and provide us with a use case to know if we've satisfied your request. | ||
|
||
## Fixes, Implementations, and Documentation | ||
|
||
For all other things, please submit a PR that includes the fix, documentation, or new code that you are trying to contribute. More information on | ||
creating a PR can be found in the [github documentation](https://help.github.com/articles/creating-a-pull-request/) | ||
|
||
If the feature is complex or has multiple solutions that could be equally appropriate approaches, it would be helpful to file an issue to discuss the | ||
design trade-offs of each solution before implementing, to allow us to collectively arrive at the best solution, which most likely exists in the middle | ||
somewhere. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
rm -rf dist | ||
python setup.py sdist | ||
python setup.py bdist_wheel | ||
python3 setup.py bdist_wheel | ||
twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[wheel] | ||
universal = 1 | ||
|
||
[pycodestyle] | ||
select = | ||
max_line_length = 120 | ||
|
||
[pep8] | ||
max_line_length = 120 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,12 @@ | |
|
||
setup( | ||
name='tableaudocumentapi', | ||
version='0.0.1', | ||
version='0.2', | ||
author='Tableau Software', | ||
author_email='[email protected]', | ||
url='https://github.com/tableau/document-api-python', | ||
packages=['tableaudocumentapi'], | ||
license='MIT', | ||
description='A Python module for working with Tableau files.' | ||
description='A Python module for working with Tableau files.', | ||
test_suite='test' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
from .field import Field | ||
from .connection import Connection | ||
from .datasource import Datasource, ConnectionParser | ||
from .workbook import Workbook | ||
|
||
__version__ = '0.0.1' | ||
__VERSION__ = __version__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.