tabcmd 2.0.17__tar.gz → 2.0.18__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. {tabcmd-2.0.17 → tabcmd-2.0.18}/.github/workflows/check-coverage.yml +7 -6
  2. {tabcmd-2.0.17 → tabcmd-2.0.18}/.github/workflows/codeql-analysis.yml +1 -1
  3. {tabcmd-2.0.17 → tabcmd-2.0.18}/.github/workflows/generate-metadata.yml +1 -1
  4. {tabcmd-2.0.17 → tabcmd-2.0.18}/.github/workflows/package.yml +2 -3
  5. {tabcmd-2.0.17 → tabcmd-2.0.18}/.github/workflows/publish-pypi.yml +1 -2
  6. {tabcmd-2.0.17 → tabcmd-2.0.18}/.github/workflows/python-app.yml +1 -1
  7. {tabcmd-2.0.17 → tabcmd-2.0.18}/.github/workflows/run-e2-tests.yml +1 -1
  8. {tabcmd-2.0.17 → tabcmd-2.0.18}/.github/workflows/run-tests.yml +1 -1
  9. {tabcmd-2.0.17 → tabcmd-2.0.18}/PKG-INFO +7 -5
  10. {tabcmd-2.0.17 → tabcmd-2.0.18}/README.md +2 -0
  11. {tabcmd-2.0.17 → tabcmd-2.0.18}/pyproject.toml +6 -5
  12. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/auth/session.py +14 -1
  13. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/datasources_and_workbooks_command.py +20 -10
  14. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/export_command.py +11 -4
  15. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/extracts/refresh_extracts_command.py +3 -5
  16. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/de/tabcmd_messages_de.properties +1 -0
  17. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/en/tabcmd_messages_en.properties +1 -0
  18. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/es/tabcmd_messages_es.properties +1 -0
  19. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/fr/tabcmd_messages_fr.properties +1 -0
  20. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ga/tabcmd_messages_ga.properties +1 -0
  21. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/it/tabcmd_messages_it.properties +1 -0
  22. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ja/tabcmd_messages_ja.properties +1 -0
  23. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ko/tabcmd_messages_ko.properties +1 -0
  24. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/pt/tabcmd_messages_pt.properties +1 -0
  25. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/sv/tabcmd_messages_sv.properties +1 -0
  26. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/zh/tabcmd_messages_zh.properties +1 -0
  27. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd.egg-info/PKG-INFO +7 -5
  28. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd.egg-info/requires.txt +1 -1
  29. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/test_datasources_and_workbooks_command.py +60 -0
  30. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/test_geturl_utils.py +1 -0
  31. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/test_run_commands.py +29 -0
  32. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/test_session.py +86 -0
  33. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/e2e/online_tests.py +5 -3
  34. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/e2e/setup_e2e.py +13 -0
  35. {tabcmd-2.0.17 → tabcmd-2.0.18}/.coverage +0 -0
  36. {tabcmd-2.0.17 → tabcmd-2.0.18}/.coveragerc +0 -0
  37. {tabcmd-2.0.17 → tabcmd-2.0.18}/.github/dependabot.yml +0 -0
  38. {tabcmd-2.0.17 → tabcmd-2.0.18}/.gitignore +0 -0
  39. {tabcmd-2.0.17 → tabcmd-2.0.18}/LICENSE +0 -0
  40. {tabcmd-2.0.17 → tabcmd-2.0.18}/SECURITY.md +0 -0
  41. {tabcmd-2.0.17 → tabcmd-2.0.18}/bin/coverage.sh +0 -0
  42. {tabcmd-2.0.17 → tabcmd-2.0.18}/bin/i18n/makelocalealias.py +0 -0
  43. {tabcmd-2.0.17 → tabcmd-2.0.18}/bin/i18n/msgfmt.py +0 -0
  44. {tabcmd-2.0.17 → tabcmd-2.0.18}/bin/i18n/prop2po.py +0 -0
  45. {tabcmd-2.0.17 → tabcmd-2.0.18}/bin/i18n/pygettext.py +0 -0
  46. {tabcmd-2.0.17 → tabcmd-2.0.18}/bin/license-checker.py +0 -0
  47. {tabcmd-2.0.17 → tabcmd-2.0.18}/bin/pyinstaller.sh +0 -0
  48. {tabcmd-2.0.17 → tabcmd-2.0.18}/contributing.md +0 -0
  49. {tabcmd-2.0.17 → tabcmd-2.0.18}/dodo.py +0 -0
  50. {tabcmd-2.0.17 → tabcmd-2.0.18}/res/README.md +0 -0
  51. {tabcmd-2.0.17 → tabcmd-2.0.18}/res/metadata.yml +0 -0
  52. {tabcmd-2.0.17 → tabcmd-2.0.18}/res/tabcmd.icns +0 -0
  53. {tabcmd-2.0.17 → tabcmd-2.0.18}/res/tabcmd.ico +0 -0
  54. {tabcmd-2.0.17 → tabcmd-2.0.18}/res/tabcmd.png +0 -0
  55. {tabcmd-2.0.17 → tabcmd-2.0.18}/setup.cfg +0 -0
  56. {tabcmd-2.0.17 → tabcmd-2.0.18}/setup.py +0 -0
  57. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/__init__.py +0 -0
  58. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/__main__.py +0 -0
  59. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/__init__.py +0 -0
  60. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/auth/__init__.py +0 -0
  61. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/auth/login_command.py +0 -0
  62. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/auth/logout_command.py +0 -0
  63. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/commands.py +0 -0
  64. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/constants.py +0 -0
  65. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/__init__.py +0 -0
  66. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/datasources_workbooks_views_url_parser.py +0 -0
  67. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/delete_command.py +0 -0
  68. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/get_url_command.py +0 -0
  69. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/publish_command.py +0 -0
  70. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/datasources_and_workbooks/runschedule_command.py +0 -0
  71. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/extracts/__init__.py +0 -0
  72. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/extracts/create_extracts_command.py +0 -0
  73. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/extracts/decrypt_extracts_command.py +0 -0
  74. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/extracts/delete_extracts_command.py +0 -0
  75. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/extracts/encrypt_extracts_command.py +0 -0
  76. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/extracts/extracts.py +0 -0
  77. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/extracts/reencrypt_extracts_command.py +0 -0
  78. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/group/__init__.py +0 -0
  79. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/group/create_group_command.py +0 -0
  80. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/group/delete_group_command.py +0 -0
  81. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/project/__init__.py +0 -0
  82. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/project/create_project_command.py +0 -0
  83. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/project/delete_project_command.py +0 -0
  84. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/project/publish_samples_command.py +0 -0
  85. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/server.py +0 -0
  86. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/site/__init__.py +0 -0
  87. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/site/create_site_command.py +0 -0
  88. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/site/delete_site_command.py +0 -0
  89. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/site/edit_site_command.py +0 -0
  90. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/site/list_command.py +0 -0
  91. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/site/list_sites_command.py +0 -0
  92. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/user/__init__.py +0 -0
  93. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/user/add_users_command.py +0 -0
  94. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/user/create_site_users.py +0 -0
  95. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/user/create_users_command.py +0 -0
  96. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/user/delete_site_users_command.py +0 -0
  97. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/user/remove_users_command.py +0 -0
  98. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/commands/user/user_data.py +0 -0
  99. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/execution/__init__.py +0 -0
  100. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/execution/_version.py +0 -0
  101. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/execution/global_options.py +0 -0
  102. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/execution/localize.py +0 -0
  103. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/execution/logger_config.py +0 -0
  104. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/execution/map_of_commands.py +0 -0
  105. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/execution/parent_parser.py +0 -0
  106. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/execution/tabcmd_controller.py +0 -0
  107. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/de/LC_MESSAGES/.gitkeep +0 -0
  108. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/de/LC_MESSAGES/tabcmd.mo +0 -0
  109. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/de/extra.properties +0 -0
  110. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/de/shared_wg_de.properties +0 -0
  111. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/en/LC_MESSAGES/tabcmd.mo +0 -0
  112. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/en/extra.properties +0 -0
  113. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/en/shared_wg_en.properties +0 -0
  114. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/es/LC_MESSAGES/.gitkeep +0 -0
  115. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/es/LC_MESSAGES/tabcmd.mo +0 -0
  116. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/es/extra.properties +0 -0
  117. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/es/shared_wg_es.properties +0 -0
  118. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/fr/LC_MESSAGES/.gitkeep +0 -0
  119. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/fr/LC_MESSAGES/tabcmd.mo +0 -0
  120. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/fr/extra.properties +0 -0
  121. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/fr/shared_wg_fr.properties +0 -0
  122. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ga/LC_MESSAGES/.gitkeep +0 -0
  123. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ga/LC_MESSAGES/tabcmd.mo +0 -0
  124. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ga/extra.properties +0 -0
  125. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ga/shared_wg_ga.properties +0 -0
  126. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/it/LC_MESSAGES/.gitkeep +0 -0
  127. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/it/LC_MESSAGES/tabcmd.mo +0 -0
  128. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/it/extra.properties +0 -0
  129. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/it/shared_wg_it.properties +0 -0
  130. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ja/LC_MESSAGES/.gitkeep +0 -0
  131. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ja/LC_MESSAGES/tabcmd.mo +0 -0
  132. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ja/extra.properties +0 -0
  133. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ja/shared_wg_ja.properties +0 -0
  134. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ko/LC_MESSAGES/.gitkeep +0 -0
  135. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ko/LC_MESSAGES/tabcmd.mo +0 -0
  136. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ko/extra.properties +0 -0
  137. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/ko/shared_wg_ko.properties +0 -0
  138. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/pt/LC_MESSAGES/.gitkeep +0 -0
  139. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/pt/LC_MESSAGES/tabcmd.mo +0 -0
  140. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/pt/extra.properties +0 -0
  141. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/pt/shared_wg_pt.properties +0 -0
  142. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/sv/LC_MESSAGES/.gitkeep +0 -0
  143. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/sv/LC_MESSAGES/tabcmd.mo +0 -0
  144. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/sv/extra.properties +0 -0
  145. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/sv/shared_wg_sv.properties +0 -0
  146. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/zh/LC_MESSAGES/.gitkeep +0 -0
  147. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/zh/LC_MESSAGES/tabcmd.mo +0 -0
  148. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/zh/extra.properties +0 -0
  149. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/locales/zh/shared_wg_zh.properties +0 -0
  150. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/tabcmd.py +0 -0
  151. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd/version.py +0 -0
  152. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd-linux.spec +0 -0
  153. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd-mac.spec +0 -0
  154. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd-windows.spec +0 -0
  155. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd.egg-info/SOURCES.txt +0 -0
  156. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd.egg-info/dependency_links.txt +0 -0
  157. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd.egg-info/entry_points.txt +0 -0
  158. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd.egg-info/top_level.txt +0 -0
  159. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd.py +0 -0
  160. {tabcmd-2.0.17 → tabcmd-2.0.18}/tabcmd.spec +0 -0
  161. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/__init__.py +0 -0
  162. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/assets/EmbeddedCredentials.twb +0 -0
  163. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/assets/SampleDS.tds +0 -0
  164. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/assets/WorkbookWithExtract.twbx +0 -0
  165. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/assets/WorkbookWithoutExtract.twbx +0 -0
  166. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/assets/World Indicators.tds +0 -0
  167. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/assets/World Indicators.tdsx +0 -0
  168. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/assets/detailed_users.csv +0 -0
  169. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/assets/simple-data.twbx +0 -0
  170. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/assets/usernames.csv +0 -0
  171. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/__init__.py +0 -0
  172. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/test_credential_file.txt +0 -0
  173. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/test_execution.py +0 -0
  174. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/test_listing_commands.py +0 -0
  175. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/test_localize.py +0 -0
  176. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/test_projects_utils.py +0 -0
  177. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/test_publish_command.py +0 -0
  178. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/test_server.py +0 -0
  179. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/test_server_handler.py +0 -0
  180. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/commands/test_user_utils.py +0 -0
  181. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/e2e/__init__.py +0 -0
  182. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/e2e/language_tests.py +0 -0
  183. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/e2e/tests.py +0 -0
  184. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/e2e/tests_integration.py +0 -0
  185. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/__init__.py +0 -0
  186. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/common_setup.py +0 -0
  187. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_login_parser.py +0 -0
  188. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_logout_parser.py +0 -0
  189. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_add_user.py +0 -0
  190. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_create_extracts.py +0 -0
  191. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_create_group.py +0 -0
  192. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_create_project.py +0 -0
  193. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_create_site.py +0 -0
  194. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_create_site_users.py +0 -0
  195. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_create_user.py +0 -0
  196. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_decrypt_extracts.py +0 -0
  197. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_delete.py +0 -0
  198. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_extracts.py +0 -0
  199. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_group.py +0 -0
  200. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_project.py +0 -0
  201. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_site.py +0 -0
  202. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_delete_site_user.py +0 -0
  203. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_edit_site.py +0 -0
  204. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_encrypt_extracts.py +0 -0
  205. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_export.py +0 -0
  206. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_get_url.py +0 -0
  207. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_list_sites.py +0 -0
  208. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_login.py +0 -0
  209. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_publish.py +0 -0
  210. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_publish_samples.py +0 -0
  211. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_reencrypt_extracts.py +0 -0
  212. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_refresh_extracts.py +0 -0
  213. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_remove_user.py +0 -0
  214. {tabcmd-2.0.17 → tabcmd-2.0.18}/tests/parsers/test_parser_runschedule.py +0 -0
@@ -5,6 +5,7 @@ on:
5
5
  pull_request:
6
6
  branches:
7
7
  - development
8
+ workflow_dispatch:
8
9
 
9
10
  jobs:
10
11
  build:
@@ -12,7 +13,7 @@ jobs:
12
13
  fail-fast: false
13
14
  matrix:
14
15
  os: [ubuntu-latest]
15
- python-version: ['3']
16
+ python-version: ['3.12']
16
17
 
17
18
  runs-on: ${{ matrix.os }}
18
19
 
@@ -38,6 +39,10 @@ jobs:
38
39
  - name: Generate coverage report
39
40
  run: pytest --junitxml=pytest.xml --cov=tabcmd tests/ | tee pytest-coverage.txt
40
41
 
42
+ # trying another coverage reporter for PRs/badges
43
+ - name: Coveralls
44
+ uses: coverallsapp/github-action@v2
45
+
41
46
  - name: Comment on pull request with coverage
42
47
  uses: MishaKav/pytest-coverage-comment@main
43
48
  with:
@@ -46,10 +51,6 @@ jobs:
46
51
  # Error: The head commit for this pull_request event is not ahead of the base commit.
47
52
  # Please submit an issue on this action's GitHub repo
48
53
  # report-only-changed-files: true
49
-
50
- # TODO update badge on readme:
51
- # generate badge with https://pypi.org/project/coverage-badge/
52
- # display it with https://github.com/Schneegans/dynamic-badges-action
53
-
54
+
54
55
  # TODO track docstring coverage
55
56
  # https://github.com/marketplace/actions/python-interrogate-check
@@ -48,7 +48,7 @@ jobs:
48
48
  # If you wish to specify custom queries, you can do so here or in a config file.
49
49
  # By default, queries listed here will override any specified in a config file.
50
50
  # Prefix the list here with "+" to use these queries and those in the config file.
51
-
51
+
52
52
  # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53
53
  # queries: security-extended,security-and-quality
54
54
 
@@ -16,7 +16,7 @@ jobs:
16
16
  - name: Set up Python
17
17
  uses: actions/setup-python@v5
18
18
  with:
19
- python-version: '3.9'
19
+ python-version: '3.12'
20
20
 
21
21
  - name: Install App and Extras
22
22
  run: |
@@ -64,7 +64,7 @@ jobs:
64
64
 
65
65
  - uses: actions/setup-python@v5
66
66
  with:
67
- python-version: 3.9
67
+ python-version: 3.12
68
68
 
69
69
  - name: Install dependencies and build
70
70
  run: |
@@ -94,7 +94,7 @@ jobs:
94
94
  cd dist/${{ matrix.TARGET }}
95
95
  tar -cvf ${{ matrix.UPLOAD_FILE_NAME }} ${{ matrix.OUT_FILE_NAME }}
96
96
 
97
-
97
+
98
98
  - name: Upload binaries to release for ${{ matrix.TARGET }}
99
99
  uses: svenstaro/upload-release-action@v2
100
100
  with:
@@ -104,4 +104,3 @@ jobs:
104
104
  tag: ${{ github.ref_name }}
105
105
  overwrite: true
106
106
  promote: true
107
-
@@ -20,7 +20,7 @@ jobs:
20
20
  fetch-depth: 0
21
21
  - uses: actions/setup-python@v5
22
22
  with:
23
- python-version: 3.9
23
+ python-version: 3.12
24
24
  - name: Build dist files
25
25
  run: |
26
26
  python --version
@@ -41,4 +41,3 @@ jobs:
41
41
  uses: pypa/gh-action-pypi-publish@release/v1 # license BSD-2
42
42
  with:
43
43
  password: ${{ secrets.PYPI_API_TOKEN }}
44
-
@@ -18,7 +18,7 @@ jobs:
18
18
  fail-fast: false
19
19
  matrix:
20
20
  os: [ubuntu-latest, macos-latest, windows-latest]
21
- python-version: ['3.x']
21
+ python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
22
22
 
23
23
  runs-on: ${{ matrix.os }}
24
24
 
@@ -18,7 +18,7 @@ jobs:
18
18
  fail-fast: true
19
19
  matrix:
20
20
  os: [ubuntu-latest, macos-latest, windows-latest]
21
- python-version: ['3.9', '3.10', '3.11', '3.12', '3']
21
+ python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
22
22
 
23
23
  runs-on: ${{ matrix.os }}
24
24
 
@@ -15,7 +15,7 @@ jobs:
15
15
  fail-fast: true
16
16
  matrix:
17
17
  os: [ubuntu-latest, macos-latest, windows-latest]
18
- python-version: ['3.9', '3.10', '3.11', '3.12', '3']
18
+ python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
19
19
 
20
20
  runs-on: ${{ matrix.os }}
21
21
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: tabcmd
3
- Version: 2.0.17
3
+ Version: 2.0.18
4
4
  Summary: A command line client for working with Tableau Server.
5
5
  Author-email: Tableau <github@tableau.com>
6
6
  License: The MIT License (MIT)
@@ -29,11 +29,12 @@ License: The MIT License (MIT)
29
29
  Project-URL: repository, https://github.com/tableau/tabcmd
30
30
  Classifier: Programming Language :: Python
31
31
  Classifier: Programming Language :: Python :: 3
32
- Classifier: Programming Language :: Python :: 3.8
33
32
  Classifier: Programming Language :: Python :: 3.9
34
33
  Classifier: Programming Language :: Python :: 3.10
35
34
  Classifier: Programming Language :: Python :: 3.11
36
- Requires-Python: >=3.7
35
+ Classifier: Programming Language :: Python :: 3.12
36
+ Classifier: Programming Language :: Python :: 3.13
37
+ Requires-Python: >=3.9
37
38
  Description-Content-Type: text/markdown
38
39
  License-File: LICENSE
39
40
  Requires-Dist: appdirs
@@ -47,7 +48,7 @@ Requires-Dist: types-appdirs
47
48
  Requires-Dist: types-mock
48
49
  Requires-Dist: types-requests
49
50
  Requires-Dist: types-setuptools
50
- Requires-Dist: tableauserverclient==0.35
51
+ Requires-Dist: tableauserverclient==0.37
51
52
  Requires-Dist: urllib3
52
53
  Provides-Extra: test
53
54
  Requires-Dist: black<23,>=22; extra == "test"
@@ -64,6 +65,7 @@ Requires-Dist: ftfy; extra == "localize"
64
65
  Provides-Extra: package
65
66
  Requires-Dist: pyinstaller==5.13; extra == "package"
66
67
  Requires-Dist: doit; extra == "package"
68
+ Dynamic: license-file
67
69
 
68
70
 
69
71
  This program is an executable command-line utility which you can use to automate activity on Tableau Cloud or Tableau Server.
@@ -1,6 +1,8 @@
1
1
  # Tabcmd
2
2
 
3
3
  [![Tableau Supported](https://img.shields.io/badge/Support%20Level-Tableau%20Supported-53bd92.svg)](https://www.tableau.com/support-levels-it-and-developer-tools)
4
+
5
+ [![Code coverage]([https://coveralls.io/repos/tableau/tabcmd/badge.png])(https://github.com/tableau/tabcmd/actions)
4
6
  [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
5
7
  [![Python tests](https://github.com/tableau/tabcmd/actions/workflows/run-tests.yml/badge.svg)](https://github.com/tableau/tabcmd/actions/workflows/run-tests.yml)
6
8
  [![Pypi smoke tests](https://github.com/tableau/tabcmd/actions/workflows/python-app.yml/badge.svg)](https://github.com/tableau/tabcmd/actions/workflows/python-app.yml)
@@ -10,7 +10,7 @@ tabcmd = ["tabcmd.locales/**/*.mo"]
10
10
  [tool.black]
11
11
  line-length = 120
12
12
  required-version = 22
13
- target-version = ['py38', 'py39', 'py310', 'py311']
13
+ target-version = ['py39', 'py310', 'py311']
14
14
  extend-exclude = '^/bin/*'
15
15
  [tool.mypy]
16
16
  disable_error_code = [
@@ -31,14 +31,15 @@ description="A command line client for working with Tableau Server."
31
31
  authors = [{name="Tableau", email="github@tableau.com"}]
32
32
  license = {file = "LICENSE"}
33
33
  readme = "res/README.md"
34
- requires-python = ">=3.7" # https://devguide.python.org/versions/
34
+ requires-python = ">=3.9" # https://devguide.python.org/versions/
35
35
  classifiers = [
36
36
  "Programming Language :: Python",
37
37
  "Programming Language :: Python :: 3",
38
- "Programming Language :: Python :: 3.8",
39
38
  "Programming Language :: Python :: 3.9",
40
39
  "Programming Language :: Python :: 3.10",
41
- "Programming Language :: Python :: 3.11"
40
+ "Programming Language :: Python :: 3.11",
41
+ "Programming Language :: Python :: 3.12",
42
+ "Programming Language :: Python :: 3.13"
42
43
  ]
43
44
  dependencies = [
44
45
  "appdirs",
@@ -52,7 +53,7 @@ dependencies = [
52
53
  "types-mock",
53
54
  "types-requests",
54
55
  "types-setuptools",
55
- "tableauserverclient==0.35",
56
+ "tableauserverclient==0.37",
56
57
  "urllib3",
57
58
  ]
58
59
  [project.optional-dependencies]
@@ -6,6 +6,7 @@ import requests
6
6
  import tableauserverclient as TSC
7
7
  import urllib3
8
8
  from urllib3.exceptions import InsecureRequestWarning
9
+ from urllib.parse import urlparse, urlunparse
9
10
 
10
11
  from tabcmd.version import version
11
12
  from tabcmd.commands.constants import Errors
@@ -61,7 +62,8 @@ class Session:
61
62
  # self.command = args.???
62
63
  self.username = args.username or self.username or ""
63
64
  self.username = self.username.lower()
64
- self.server_url = args.server or self.server_url or "http://localhost"
65
+ server_base_url = self._get_server_base_url(args.server) if args.server else None
66
+ self.server_url = server_base_url or self.server_url or "http://localhost"
65
67
  self.server_url = self.server_url.lower()
66
68
  if args.server is not None:
67
69
  self.site_name = None
@@ -481,3 +483,14 @@ class Session:
481
483
  message = "Error clearing session data from {}: check and remove manually".format(file_path)
482
484
  self.logger.error(message)
483
485
  self.logger.error(e)
486
+
487
+ def _get_server_base_url(self, url: str):
488
+ try:
489
+ parsed = urlparse(url)
490
+ scheme = parsed.scheme or "http"
491
+
492
+ # If netloc is empty, treat path as netloc and discard any extra path
493
+ netloc = parsed.netloc or parsed.path.split("/")[0] # Keep only the domain
494
+ return urlunparse((scheme, netloc, "", "", "", ""))
495
+ except Exception as e:
496
+ Errors.exit_with_error(self.logger, exception=e)
@@ -125,14 +125,18 @@ class DatasourcesAndWorkbooks(Server):
125
125
  request_options.max_age = 0 # type: ignore
126
126
  logger.debug("Set max age to {} from {}".format((TSC.ImageRequestOptions(request_options)).max_age, value))
127
127
  elif ":size" == setting_name:
128
- # this is only used by get as png
129
- try:
130
- height, width = setting_val.split(",")
131
- (TSC.ImageRequestOptions(request_options)).viz_height = int(height)
132
- (TSC.ImageRequestOptions(request_options)).viz_width = int(width)
133
- except Exception as oops:
134
- logger.warn("Unable to read image size options '{}', skipping".format(setting_val))
135
- logger.warn(oops)
128
+ if isinstance(request_options, (TSC.ImageRequestOptions, TSC.PDFRequestOptions)):
129
+ try:
130
+ height, width = setting_val.split(",")
131
+ request_options.viz_height = int(height)
132
+ request_options.viz_width = int(width)
133
+ except Exception as oops:
134
+ logger.warn("Unable to read image size options '{}', skipping".format(setting_val))
135
+ logger.warn(oops)
136
+ else:
137
+ logger.debug(
138
+ "Request options are not of type ImageRequestOptions or PDFRequestOptions, skipping size setting"
139
+ )
136
140
  else:
137
141
  logger.debug("Parameter[s] not recognized: {}".format(value))
138
142
 
@@ -147,8 +151,10 @@ class DatasourcesAndWorkbooks(Server):
147
151
  request_options.viz_height = int(args.height)
148
152
  if args.width:
149
153
  request_options.viz_width = int(args.width)
150
- # Always request high-res images
151
- request_options.image_resolution = "high"
154
+ if args.resolution and args.resolution != TSC.ImageRequestOptions.Resolution.High.lower():
155
+ request_options.image_resolution = None
156
+ else:
157
+ request_options.image_resolution = TSC.ImageRequestOptions.Resolution.High.lower()
152
158
 
153
159
  @staticmethod
154
160
  def apply_pdf_options(logger, request_options: TSC.PDFRequestOptions, args):
@@ -156,6 +162,10 @@ class DatasourcesAndWorkbooks(Server):
156
162
  request_options.orientation = args.pagelayout
157
163
  if args.pagesize:
158
164
  request_options.page_type = args.pagesize
165
+ if args.height:
166
+ request_options.viz_height = int(args.height)
167
+ if args.width:
168
+ request_options.viz_width = int(args.width)
159
169
 
160
170
  @staticmethod
161
171
  def save_to_data_file(logger, output, filename):
@@ -10,6 +10,9 @@ from .datasources_and_workbooks_command import DatasourcesAndWorkbooks
10
10
  from .datasources_workbooks_views_url_parser import DatasourcesWorkbooksAndViewsUrlParser
11
11
 
12
12
  pagesize = TSC.PDFRequestOptions.PageType # type alias for brevity
13
+ pageorientation = TSC.PDFRequestOptions.Orientation
14
+ imageresolution = TSC.ImageRequestOptions.Resolution
15
+ ImageResolutionStandard = "standard"
13
16
 
14
17
 
15
18
  class ExportCommand(DatasourcesAndWorkbooks):
@@ -29,7 +32,7 @@ class ExportCommand(DatasourcesAndWorkbooks):
29
32
 
30
33
  group.add_argument(
31
34
  "--pagelayout",
32
- choices=["landscape", "portrait"],
35
+ choices=[pageorientation.Landscape, pageorientation.Portrait],
33
36
  type=str.lower,
34
37
  default=None,
35
38
  help="page orientation (landscape or portrait) of the exported PDF",
@@ -57,9 +60,7 @@ class ExportCommand(DatasourcesAndWorkbooks):
57
60
  help="Set the page size of the exported PDF",
58
61
  )
59
62
 
60
- group.add_argument(
61
- "--width", default=800, help="[Not Yet Implemented] Set the width of the image in pixels. Default is 800 px"
62
- )
63
+ group.add_argument("--width", default=800, help=_("export.options.width"))
63
64
  group.add_argument("--filename", "-f", help="filename to store the exported data")
64
65
  group.add_argument("--height", default=600, help=_("export.options.height"))
65
66
  group.add_argument(
@@ -67,6 +68,12 @@ class ExportCommand(DatasourcesAndWorkbooks):
67
68
  metavar="COLUMN=VALUE",
68
69
  help="Data filter to apply to the view",
69
70
  )
71
+ group.add_argument(
72
+ "--resolution",
73
+ choices=[imageresolution.High, ImageResolutionStandard],
74
+ type=str.lower,
75
+ help=_("export.options.resolution"),
76
+ )
70
77
 
71
78
  """
72
79
  Command to Export a view_name or workbook from Tableau Server and save
@@ -34,17 +34,15 @@ class RefreshExtracts(Server):
34
34
  if args.addcalculations or args.removecalculations:
35
35
  logger.warning("Add/Remove Calculations tasks are not supported.")
36
36
 
37
- # docs: the REST method always runs a full refresh even if the refresh type is set to incremental.
38
- if args.incremental: # docs: run the incremental refresh
39
- logger.warn("Incremental refresh is not yet available through the new tabcmd")
37
+ incremental_refresh = True if args.incremental else False
40
38
 
41
39
  try:
42
40
  item = Extracts.get_wb_or_ds_for_extracts(args, logger, server)
43
41
  if args.datasource:
44
42
  logger.info(_("refreshextracts.status_refreshed").format(_("content_type.datasource"), args.datasource))
45
- job: TSC.JobItem = server.datasources.refresh(item.id)
43
+ job: TSC.JobItem = server.datasources.refresh(item.id, incremental_refresh)
46
44
  else:
47
- job: TSC.JobItem = server.workbooks.refresh(item.id)
45
+ job: TSC.JobItem = server.workbooks.refresh(item.id, incremental_refresh)
48
46
  logger.info(_("refreshextracts.status_refreshed").format(_("content_type.workbook"), args.workbook))
49
47
 
50
48
  except Exception as e:
@@ -175,6 +175,7 @@ export.options.pagelayout=Legt die Seitenausrichtung der exportierten PDF-Datei
175
175
  export.options.pagesize=Legt die Seitengröße der exportierten PDF-Datei fest. Zulässige Werte: {0} (Standard: „{1}“)
176
176
  export.options.pdf=Daten im PDF-Format exportieren
177
177
  export.options.png=Daten im PNG-Format exportieren
178
+ export.options.resolution=Set the value to high to ensure maximum pixel density
178
179
  export.options.width=Legt die Breite fest. Muss ein Ganzzahlwert (Standard: 800 Pixel) sein
179
180
  export.short_description=Daten oder Bild einer Ansicht vom Server exportieren
180
181
  export.status=„{0}“ wird vom Server abgerufen...
@@ -175,6 +175,7 @@ export.options.pagelayout=Sets the page orientation of the exported PDF. Legal v
175
175
  export.options.pagesize=Sets the page size of the exported PDF. Legal values: {0} (default: ''{1}'')
176
176
  export.options.pdf=Export data in PDF format
177
177
  export.options.png=Export data in PNG format
178
+ export.options.resolution=Set the value to high to ensure maximum pixel density
178
179
  export.options.width=Sets the width. Must be an integer value (default: 800 pixels)
179
180
  export.short_description=Export the data or image of a view from the server
180
181
  export.status=Requesting ''{0}'' from the server...
@@ -175,6 +175,7 @@ export.options.pagelayout=Configura la orientación de páginas del PDF exportad
175
175
  export.options.pagesize=Configura el tamaño de página del PDF exportado. Valores legales: {0} (valor predeterminado: “{1}”)
176
176
  export.options.pdf=Exportar datos en formato PDF
177
177
  export.options.png=Exportar datos en formato PNG
178
+ export.options.resolution=Set the value to high to ensure maximum pixel density
178
179
  export.options.width=Configura el ancho. Debe ser un valor entero (valor predeterminado: 800 píxeles)
179
180
  export.short_description=Exportar los datos o la imagen de una vista del servidor
180
181
  export.status=Solicitando “{0}” al servidor...
@@ -175,6 +175,7 @@ export.options.pagelayout=Définit l’orientation de la page du PDF exporté. V
175
175
  export.options.pagesize=Définit la taille de page du PDF exporté. Valeurs admises : {0} (“{1}” par défaut).
176
176
  export.options.pdf=Exporter les données au format PDF
177
177
  export.options.png=Exporter les données au format PNG
178
+ export.options.resolution=Set the value to high to ensure maximum pixel density
178
179
  export.options.width=Définit la largeur. Doit être un nombre entier (800 pixels par défaut)
179
180
  export.short_description=Exporter les données ou une image d’une vue depuis le serveur
180
181
  export.status=Requête de “{0}” en provenance du serveur...
@@ -175,6 +175,7 @@ export.options.pagelayout=f683-表:Sets the page orientation of the exported PDF
175
175
  export.options.pagesize=70c0-表:Sets the page size of the exported PDF. Legal values: {0} (default: ‘{1}’)|桜
176
176
  export.options.pdf=3ecf-表:Export data in PDF format|桜
177
177
  export.options.png=9e8c-表:Export data in PNG format|桜
178
+ export.options.resolution=Set the value to high to ensure maximum pixel density
178
179
  export.options.width=687b-表:Sets the width. Must be an integer value (default: 800 pixels)|桜
179
180
  export.short_description=3b4e-表:Export the data or image of a view from the server|桜
180
181
  export.status=e524-表:Requesting ‘{0}’ from the server...|桜
@@ -175,6 +175,7 @@ export.options.pagelayout=Imposta l’orientamento della pagina del PDF esportat
175
175
  export.options.pagesize=Imposta le dimensioni della pagina del PDF esportato. Valori consentiti: {0} (predefiniti: “{1}”)
176
176
  export.options.pdf=Esporta i dati in formato PDF
177
177
  export.options.png=Esporta i dati in formato PNG
178
+ export.options.resolution=Set the value to high to ensure maximum pixel density
178
179
  export.options.width=Imposta la profondità. Deve essere un valore intero (predefinito: 800 pixel)
179
180
  export.short_description=Esportare i dati o l’immagine di una vista dal server
180
181
  export.status=Richiesta di “{0}” dal server in corso...
@@ -175,6 +175,7 @@ export.options.pagelayout=エクスポートされた PDF のページの方向
175
175
  export.options.pagesize=エクスポートされた PDF のページ サイズを設定します。有効な値: {0} (既定: 「{1}」)
176
176
  export.options.pdf=PDF 形式でデータをエクスポート
177
177
  export.options.png=PNG 形式でデータをエクスポート
178
+ export.options.resolution=Set the value to high to ensure maximum pixel density
178
179
  export.options.width=幅を設定します。整数値であることが必要です (既定: 800 ピクセル)
179
180
  export.short_description=サーバーから、ビューのデータまたはイメージをエクスポート
180
181
  export.status=サーバーから 「{0}」 を要求しています...
@@ -175,6 +175,7 @@ export.options.pagelayout=내보낸 PDF의 페이지 방향을 설정합니다.
175
175
  export.options.pagesize=내보낸 PDF의 페이지 크기를 설정합니다. 사용할 수 있는 값: {0}(기본값: ’{1}’)
176
176
  export.options.pdf=PDF 형식으로 데이터 내보내기
177
177
  export.options.png=PNG 형식으로 데이터 내보내기
178
+ export.options.resolution=Set the value to high to ensure maximum pixel density
178
179
  export.options.width=너비를 설정합니다. 정수 값이어야 합니다(기본값: 800픽셀)
179
180
  export.short_description=서버에서 뷰의 이미지 또는 데이터 내보내기
180
181
  export.status=서버에서 ’{0}’을(를) 요청하는 중...
@@ -175,6 +175,7 @@ export.options.pagelayout=Define a orientação da página do PDF exportado. Val
175
175
  export.options.pagesize=Define o tamanho da página do PDF exportado. Valores legais: {0} (padrão: “{1}”)
176
176
  export.options.pdf=Exporte dados em formato PDF
177
177
  export.options.png=Exporte dados em formato PNG
178
+ export.options.resolution=Set the value to high to ensure maximum pixel density
178
179
  export.options.width=Define a largura. Deve ser um valor integral (padrão: 800 pixels)
179
180
  export.short_description=Exporte os dados ou imagem de uma exibição do servidor
180
181
  export.status=Solicitando “{0}” do servidor...
@@ -175,6 +175,7 @@ export.options.pagelayout=Ställer in sidorienteringen för den exporterade PDF-
175
175
  export.options.pagesize=Ställer in sidstorleken för den exporterade PDF-filen. Giltiga värden: {0} (standard: ”{1}”)
176
176
  export.options.pdf=Exportera data i PDF-format
177
177
  export.options.png=Exportera data i PNG-format
178
+ export.options.resolution=Set the value to high to ensure maximum pixel density
178
179
  export.options.width=Ställer in bredden. Måste vara ett heltalsvärde (standard: 800 bildpunkter)
179
180
  export.short_description=Exportera en vys data eller avbildning från servern
180
181
  export.status=Begär ”{0}” från servern ...
@@ -175,6 +175,7 @@ export.options.pagelayout=设置导出的 PDF 的页面方向。合法值: {0}
175
175
  export.options.pagesize=设置导出的 PDF 的页面大小。合法值: {0} (默认值: “{1}”)
176
176
  export.options.pdf=将数据导出为 PDF 格式
177
177
  export.options.png=将数据导出为 PNG 格式
178
+ export.options.resolution=Set the value to high to ensure maximum pixel density
178
179
  export.options.width=设置宽度。必须为整数值(默认值: 800 个像素)
179
180
  export.short_description=从服务器中导出数据或视图的图像
180
181
  export.status=正向服务器请求 “{0}”...
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: tabcmd
3
- Version: 2.0.17
3
+ Version: 2.0.18
4
4
  Summary: A command line client for working with Tableau Server.
5
5
  Author-email: Tableau <github@tableau.com>
6
6
  License: The MIT License (MIT)
@@ -29,11 +29,12 @@ License: The MIT License (MIT)
29
29
  Project-URL: repository, https://github.com/tableau/tabcmd
30
30
  Classifier: Programming Language :: Python
31
31
  Classifier: Programming Language :: Python :: 3
32
- Classifier: Programming Language :: Python :: 3.8
33
32
  Classifier: Programming Language :: Python :: 3.9
34
33
  Classifier: Programming Language :: Python :: 3.10
35
34
  Classifier: Programming Language :: Python :: 3.11
36
- Requires-Python: >=3.7
35
+ Classifier: Programming Language :: Python :: 3.12
36
+ Classifier: Programming Language :: Python :: 3.13
37
+ Requires-Python: >=3.9
37
38
  Description-Content-Type: text/markdown
38
39
  License-File: LICENSE
39
40
  Requires-Dist: appdirs
@@ -47,7 +48,7 @@ Requires-Dist: types-appdirs
47
48
  Requires-Dist: types-mock
48
49
  Requires-Dist: types-requests
49
50
  Requires-Dist: types-setuptools
50
- Requires-Dist: tableauserverclient==0.35
51
+ Requires-Dist: tableauserverclient==0.37
51
52
  Requires-Dist: urllib3
52
53
  Provides-Extra: test
53
54
  Requires-Dist: black<23,>=22; extra == "test"
@@ -64,6 +65,7 @@ Requires-Dist: ftfy; extra == "localize"
64
65
  Provides-Extra: package
65
66
  Requires-Dist: pyinstaller==5.13; extra == "package"
66
67
  Requires-Dist: doit; extra == "package"
68
+ Dynamic: license-file
67
69
 
68
70
 
69
71
  This program is an executable command-line utility which you can use to automate activity on Tableau Cloud or Tableau Server.
@@ -9,7 +9,7 @@ types-appdirs
9
9
  types-mock
10
10
  types-requests
11
11
  types-setuptools
12
- tableauserverclient==0.35
12
+ tableauserverclient==0.37
13
13
  urllib3
14
14
 
15
15
  [localize]
@@ -49,12 +49,33 @@ class ParameterTests(unittest.TestCase):
49
49
  def test_apply_png_options(self):
50
50
  mock_args.width = "800"
51
51
  mock_args.height = "76"
52
+ mock_args.resolution = None
52
53
  request_options = tsc.ImageRequestOptions()
53
54
  DatasourcesAndWorkbooks.apply_png_options(mock_logger, request_options, mock_args)
54
55
  assert request_options.image_resolution == "high"
55
56
  assert request_options.viz_width == 800
56
57
  assert request_options.viz_height == 76
57
58
 
59
+ def test_apply_png_options_with_resolution_high(self):
60
+ mock_args.width = "800"
61
+ mock_args.height = "76"
62
+ mock_args.resolution = "high"
63
+ request_options = tsc.ImageRequestOptions()
64
+ DatasourcesAndWorkbooks.apply_png_options(mock_logger, request_options, mock_args)
65
+ assert request_options.image_resolution == "high"
66
+ assert request_options.viz_width == 800
67
+ assert request_options.viz_height == 76
68
+
69
+ def test_apply_png_options_with_resolution_standard(self):
70
+ mock_args.width = "800"
71
+ mock_args.height = "76"
72
+ mock_args.resolution = "standard"
73
+ request_options = tsc.ImageRequestOptions()
74
+ DatasourcesAndWorkbooks.apply_png_options(mock_logger, request_options, mock_args)
75
+ assert request_options.image_resolution is None
76
+ assert request_options.viz_width == 800
77
+ assert request_options.viz_height == 76
78
+
58
79
  def test_apply_png_options_bad_values(self):
59
80
  mock_args.height = "seven"
60
81
  mock_args.width = "800b"
@@ -65,12 +86,51 @@ class ParameterTests(unittest.TestCase):
65
86
  def test_apply_pdf_options(self):
66
87
  expected_page = tsc.PDFRequestOptions.PageType.Folio.__str__()
67
88
  expected_layout = tsc.PDFRequestOptions.Orientation.Portrait.__str__()
89
+ expected_height = 800
90
+ expected_width = 600
68
91
  mock_args.pagelayout = expected_layout
69
92
  mock_args.pagesize = expected_page
93
+ mock_args.height = expected_height
94
+ mock_args.width = expected_width
70
95
  request_options = tsc.PDFRequestOptions()
71
96
  DatasourcesAndWorkbooks.apply_pdf_options(mock_logger, request_options, mock_args)
72
97
  assert request_options.page_type == expected_page
73
98
  assert request_options.orientation == expected_layout
99
+ assert request_options.viz_width == expected_width
100
+ assert request_options.viz_height == expected_height
101
+
102
+ def test_apply_options_in_url_with_size(self):
103
+ request_options = tsc.ImageRequestOptions()
104
+ value = ":size=800,600"
105
+
106
+ DatasourcesAndWorkbooks.apply_options_in_url(mock_logger, request_options, value)
107
+ self.assertEqual(request_options.viz_height, 800)
108
+ self.assertEqual(request_options.viz_width, 600)
109
+
110
+ def test_apply_options_in_url_with_refresh(self):
111
+ request_options = tsc.ImageRequestOptions()
112
+ value = ":refresh=yes"
113
+
114
+ DatasourcesAndWorkbooks.apply_options_in_url(mock_logger, request_options, value)
115
+ self.assertEqual(request_options.max_age, 0)
116
+
117
+ def test_apply_options_in_url_with_invalid_size(self):
118
+ request_options = tsc.ImageRequestOptions()
119
+ value = ":size=invalid"
120
+
121
+ DatasourcesAndWorkbooks.apply_options_in_url(mock_logger, request_options, value)
122
+ self.assertEqual(request_options.viz_height, None)
123
+ self.assertEqual(request_options.viz_width, None)
124
+
125
+ def test_apply_options_in_url_with_unrecognized_parameter(self):
126
+ request_options = tsc.ImageRequestOptions()
127
+ default_max_age = request_options.max_age
128
+ value = ":unknown=param"
129
+
130
+ DatasourcesAndWorkbooks.apply_options_in_url(mock_logger, request_options, value)
131
+ self.assertEqual(request_options.viz_height, None)
132
+ self.assertEqual(request_options.viz_width, None)
133
+ self.assertEqual(request_options.max_age, default_max_age)
74
134
 
75
135
 
76
136
  @mock.patch("tableauserverclient.Server")
@@ -17,6 +17,7 @@ mock_args.width = None
17
17
  mock_args.height = None
18
18
  mock_args.filename = None
19
19
  mock_args.filter = None
20
+ mock_args.resolution = None
20
21
 
21
22
  mock_logger = mock.MagicMock()
22
23