-
Notifications
You must be signed in to change notification settings - Fork 421
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 #1444 from tableau/development
v0.33 Features: - add name, datasource-name to Job item - enable bulk add and remove users - Linked Tasks: get, get by ID, run Now - implement Tags: create new, add/delete for workbooks, flows, datasources - get page and chunk size from env vars - add some repr implementations - implement virtual connections Bugfix: - #1447 - #1449
- Loading branch information
Showing
71 changed files
with
3,127 additions
and
277 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
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
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 @@ | ||
import json | ||
import requests | ||
|
||
|
||
logins = json.loads( | ||
requests.get("https://api.github.com/repos/tableau/server-client-python/contributors?per_page=200").text | ||
) | ||
for login in logins: | ||
print(f"* [{login["login"]}]({login["html_url"]})") |
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 |
---|---|---|
@@ -1,13 +1,25 @@ | ||
# TODO: check for env variables, else set default values | ||
import os | ||
|
||
ALLOWED_FILE_EXTENSIONS = ["tds", "tdsx", "tde", "hyper", "parquet"] | ||
|
||
BYTES_PER_MB = 1024 * 1024 | ||
|
||
# For when a datasource is over 64MB, break it into 5MB(standard chunk size) chunks | ||
CHUNK_SIZE_MB = 5 * 10 # 5MB felt too slow, upped it to 50 | ||
|
||
DELAY_SLEEP_SECONDS = 0.1 | ||
|
||
# The maximum size of a file that can be published in a single request is 64MB | ||
FILESIZE_LIMIT_MB = 64 | ||
|
||
|
||
class Config: | ||
# For when a datasource is over 64MB, break it into 5MB(standard chunk size) chunks | ||
@property | ||
def CHUNK_SIZE_MB(self): | ||
return int(os.getenv("TSC_CHUNK_SIZE_MB", 5 * 10)) # 5MB felt too slow, upped it to 50 | ||
|
||
# Default page size | ||
@property | ||
def PAGE_SIZE(self): | ||
return int(os.getenv("TSC_PAGE_SIZE", 100)) | ||
|
||
|
||
config = Config() |
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
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.