tabcmd 2.0.7__tar.gz → 2.0.14__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 (263) hide show
  1. {tabcmd-2.0.7 → tabcmd-2.0.14}/.github/workflows/check-coverage.yml +2 -2
  2. {tabcmd-2.0.7 → tabcmd-2.0.14}/.github/workflows/codeql-analysis.yml +3 -3
  3. {tabcmd-2.0.7 → tabcmd-2.0.14}/.github/workflows/generate-metadata.yml +2 -2
  4. tabcmd-2.0.14/.github/workflows/package.yml +103 -0
  5. {tabcmd-2.0.7 → tabcmd-2.0.14}/.github/workflows/publish-pypi.yml +2 -2
  6. {tabcmd-2.0.7 → tabcmd-2.0.14}/.github/workflows/python-app.yml +1 -1
  7. {tabcmd-2.0.7 → tabcmd-2.0.14}/.github/workflows/run-e2-tests.yml +2 -2
  8. {tabcmd-2.0.7 → tabcmd-2.0.14}/.github/workflows/run-tests.yml +3 -3
  9. {tabcmd-2.0.7 → tabcmd-2.0.14}/.gitignore +9 -8
  10. tabcmd-2.0.14/PKG-INFO +72 -0
  11. {tabcmd-2.0.7 → tabcmd-2.0.14}/README.md +20 -68
  12. tabcmd-2.0.14/contributing.md +158 -0
  13. {tabcmd-2.0.7 → tabcmd-2.0.14}/pyproject.toml +12 -12
  14. tabcmd-2.0.14/res/README.md +5 -0
  15. tabcmd-2.0.14/tabcmd/__main__.py +11 -0
  16. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/auth/login_command.py +1 -1
  17. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/auth/session.py +203 -88
  18. tabcmd-2.0.14/tabcmd/commands/constants.py +96 -0
  19. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/datasources_and_workbooks/datasources_and_workbooks_command.py +52 -22
  20. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/datasources_and_workbooks/delete_command.py +8 -7
  21. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/datasources_and_workbooks/export_command.py +35 -34
  22. tabcmd-2.0.14/tabcmd/commands/datasources_and_workbooks/get_url_command.py +246 -0
  23. tabcmd-2.0.14/tabcmd/commands/datasources_and_workbooks/publish_command.py +128 -0
  24. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/datasources_and_workbooks/runschedule_command.py +3 -2
  25. tabcmd-2.0.14/tabcmd/commands/extracts/create_extracts_command.py +68 -0
  26. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/extracts/decrypt_extracts_command.py +5 -4
  27. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/extracts/delete_extracts_command.py +21 -14
  28. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/extracts/encrypt_extracts_command.py +4 -3
  29. tabcmd-2.0.14/tabcmd/commands/extracts/extracts.py +30 -0
  30. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/extracts/reencrypt_extracts_command.py +4 -3
  31. tabcmd-2.0.14/tabcmd/commands/extracts/refresh_extracts_command.py +67 -0
  32. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/group/create_group_command.py +6 -6
  33. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/group/delete_group_command.py +4 -4
  34. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/project/create_project_command.py +14 -12
  35. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/project/delete_project_command.py +8 -7
  36. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/project/publish_samples_command.py +4 -3
  37. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/server.py +5 -5
  38. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/site/create_site_command.py +9 -14
  39. tabcmd-2.0.14/tabcmd/commands/site/delete_site_command.py +45 -0
  40. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/site/edit_site_command.py +8 -10
  41. tabcmd-2.0.14/tabcmd/commands/site/list_command.py +66 -0
  42. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/site/list_sites_command.py +7 -6
  43. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/user/add_users_command.py +5 -4
  44. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/user/create_site_users.py +21 -8
  45. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/user/create_users_command.py +19 -6
  46. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/user/delete_site_users_command.py +4 -3
  47. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/user/remove_users_command.py +5 -4
  48. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/user/user_data.py +47 -8
  49. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/execution/global_options.py +91 -61
  50. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/execution/localize.py +11 -5
  51. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/execution/logger_config.py +4 -1
  52. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/execution/map_of_commands.py +0 -2
  53. tabcmd-2.0.14/tabcmd/execution/parent_parser.py +216 -0
  54. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/execution/tabcmd_controller.py +17 -16
  55. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/en/LC_MESSAGES/tabcmd.po +14 -26
  56. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/en/tabcmd_messages_en.properties +3 -0
  57. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/tabcmd.py +9 -3
  58. tabcmd-2.0.14/tabcmd/version.py +9 -0
  59. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd-linux.spec +3 -3
  60. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd-mac.spec +9 -8
  61. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd-windows.spec +7 -2
  62. tabcmd-2.0.14/tabcmd.egg-info/PKG-INFO +72 -0
  63. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd.egg-info/SOURCES.txt +12 -2
  64. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd.egg-info/requires.txt +7 -7
  65. tabcmd-2.0.14/tabcmd.spec +56 -0
  66. tabcmd-2.0.14/tests/assets/EmbeddedCredentials.twb +977 -0
  67. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/assets/SampleDS.tds +1 -1
  68. tabcmd-2.0.14/tests/assets/WorkbookWithExtract.twbx +0 -0
  69. tabcmd-2.0.14/tests/assets/WorkbookWithoutExtract.twbx +0 -0
  70. tabcmd-2.0.14/tests/assets/detailed_users.csv +1 -0
  71. tabcmd-2.0.14/tests/assets/simple-data.twbx +0 -0
  72. tabcmd-2.0.14/tests/assets/usernames.csv +1 -0
  73. tabcmd-2.0.14/tests/commands/test_datasources_and_workbooks_command.py +93 -0
  74. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/commands/test_execution.py +1 -2
  75. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/commands/test_geturl_utils.py +30 -10
  76. tabcmd-2.0.14/tests/commands/test_listing_commands.py +58 -0
  77. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/commands/test_localize.py +19 -1
  78. tabcmd-2.0.14/tests/commands/test_publish_command.py +92 -0
  79. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/commands/test_run_commands.py +39 -21
  80. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/commands/test_session.py +190 -106
  81. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/e2e/language_tests.py +39 -5
  82. tabcmd-2.0.14/tests/e2e/online_tests.py +477 -0
  83. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/e2e/setup_e2e.py +3 -3
  84. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/e2e/tests_integration.py +2 -2
  85. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/common_setup.py +3 -0
  86. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_add_user.py +1 -1
  87. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_create_site_users.py +1 -1
  88. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_create_user.py +2 -2
  89. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_delete_site_user.py +1 -1
  90. tabcmd-2.0.14/tests/parsers/test_parser_publish.py +107 -0
  91. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_remove_user.py +1 -1
  92. tabcmd-2.0.7/.github/workflows/package.yml +0 -75
  93. tabcmd-2.0.7/PKG-INFO +0 -157
  94. tabcmd-2.0.7/contributing.md +0 -95
  95. tabcmd-2.0.7/tabcmd/__main__.py +0 -11
  96. tabcmd-2.0.7/tabcmd/commands/constants.py +0 -75
  97. tabcmd-2.0.7/tabcmd/commands/datasources_and_workbooks/get_url_command.py +0 -199
  98. tabcmd-2.0.7/tabcmd/commands/datasources_and_workbooks/publish_command.py +0 -81
  99. tabcmd-2.0.7/tabcmd/commands/extracts/create_extracts_command.py +0 -60
  100. tabcmd-2.0.7/tabcmd/commands/extracts/refresh_extracts_command.py +0 -108
  101. tabcmd-2.0.7/tabcmd/commands/help/help_command.py +0 -74
  102. tabcmd-2.0.7/tabcmd/commands/site/delete_site_command.py +0 -33
  103. tabcmd-2.0.7/tabcmd/commands/site/list_command.py +0 -45
  104. tabcmd-2.0.7/tabcmd/execution/parent_parser.py +0 -154
  105. tabcmd-2.0.7/tabcmd.egg-info/PKG-INFO +0 -157
  106. tabcmd-2.0.7/tabcmd.spec +0 -50
  107. tabcmd-2.0.7/tests/e2e/online_tests.py +0 -332
  108. tabcmd-2.0.7/tests/parsers/__init__.py +0 -0
  109. tabcmd-2.0.7/tests/parsers/test_parser_publish.py +0 -40
  110. {tabcmd-2.0.7 → tabcmd-2.0.14}/.coverage +0 -0
  111. {tabcmd-2.0.7 → tabcmd-2.0.14}/.coveragerc +0 -0
  112. {tabcmd-2.0.7 → tabcmd-2.0.14}/.github/dependabot.yml +0 -0
  113. {tabcmd-2.0.7 → tabcmd-2.0.14}/LICENSE +0 -0
  114. {tabcmd-2.0.7 → tabcmd-2.0.14}/SECURITY.md +0 -0
  115. {tabcmd-2.0.7 → tabcmd-2.0.14}/bin/coverage.sh +0 -0
  116. {tabcmd-2.0.7 → tabcmd-2.0.14}/bin/i18n/makelocalealias.py +0 -0
  117. {tabcmd-2.0.7 → tabcmd-2.0.14}/bin/i18n/msgfmt.py +0 -0
  118. {tabcmd-2.0.7 → tabcmd-2.0.14}/bin/i18n/prop2po.py +0 -0
  119. {tabcmd-2.0.7 → tabcmd-2.0.14}/bin/i18n/pygettext.py +0 -0
  120. {tabcmd-2.0.7 → tabcmd-2.0.14}/bin/license-checker.py +0 -0
  121. {tabcmd-2.0.7 → tabcmd-2.0.14}/bin/pyinstaller.sh +0 -0
  122. {tabcmd-2.0.7 → tabcmd-2.0.14}/dodo.py +0 -0
  123. {tabcmd-2.0.7 → tabcmd-2.0.14}/res/metadata.yml +0 -0
  124. {tabcmd-2.0.7 → tabcmd-2.0.14}/res/tabcmd.icns +0 -0
  125. {tabcmd-2.0.7 → tabcmd-2.0.14}/res/tabcmd.ico +0 -0
  126. {tabcmd-2.0.7 → tabcmd-2.0.14}/res/tabcmd.png +0 -0
  127. {tabcmd-2.0.7 → tabcmd-2.0.14}/setup.cfg +0 -0
  128. {tabcmd-2.0.7 → tabcmd-2.0.14}/setup.py +0 -0
  129. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/__init__.py +0 -0
  130. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/__init__.py +0 -0
  131. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/auth/__init__.py +0 -0
  132. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/auth/logout_command.py +0 -0
  133. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/commands.py +0 -0
  134. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/datasources_and_workbooks/__init__.py +0 -0
  135. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/extracts/__init__.py +0 -0
  136. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/commands/group/__init__.py +0 -0
  137. {tabcmd-2.0.7/tabcmd/commands/help → tabcmd-2.0.14/tabcmd/commands/project}/__init__.py +0 -0
  138. {tabcmd-2.0.7/tabcmd/commands/project → tabcmd-2.0.14/tabcmd/commands/site}/__init__.py +0 -0
  139. {tabcmd-2.0.7/tabcmd/commands/site → tabcmd-2.0.14/tabcmd/commands/user}/__init__.py +0 -0
  140. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/execution/__init__.py +0 -0
  141. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/execution/_version.py +0 -0
  142. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/de/LC_MESSAGES/.gitkeep +0 -0
  143. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/de/LC_MESSAGES/de.po +0 -0
  144. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/de/LC_MESSAGES/shared_wg_de.po +0 -0
  145. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/de/LC_MESSAGES/tabcmd.mo +0 -0
  146. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/de/LC_MESSAGES/tabcmd.po +0 -0
  147. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/de/LC_MESSAGES/tabcmd_messages_de.po +0 -0
  148. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/de/shared_wg_de.properties +0 -0
  149. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/de/tabcmd_messages_de.properties +0 -0
  150. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/en/LC_MESSAGES/en-US.po +0 -0
  151. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/en/LC_MESSAGES/shared_wg_en.po +0 -0
  152. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/en/LC_MESSAGES/tabcmd.mo +0 -0
  153. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/en/LC_MESSAGES/tabcmd_messages_en.po +0 -0
  154. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/en/shared_wg_en.properties +0 -0
  155. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/es/LC_MESSAGES/.gitkeep +0 -0
  156. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/es/LC_MESSAGES/es.po +0 -0
  157. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/es/LC_MESSAGES/shared_wg_es.po +0 -0
  158. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/es/LC_MESSAGES/tabcmd.mo +0 -0
  159. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/es/LC_MESSAGES/tabcmd.po +0 -0
  160. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/es/LC_MESSAGES/tabcmd_messages_es.po +0 -0
  161. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/es/shared_wg_es.properties +0 -0
  162. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/es/tabcmd_messages_es.properties +0 -0
  163. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/fr/LC_MESSAGES/.gitkeep +0 -0
  164. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/fr/LC_MESSAGES/fr.po +0 -0
  165. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/fr/LC_MESSAGES/shared_wg_fr.po +0 -0
  166. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/fr/LC_MESSAGES/tabcmd.mo +0 -0
  167. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/fr/LC_MESSAGES/tabcmd.po +0 -0
  168. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/fr/LC_MESSAGES/tabcmd_messages_fr.po +0 -0
  169. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/fr/shared_wg_fr.properties +0 -0
  170. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/fr/tabcmd_messages_fr.properties +0 -0
  171. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ga/LC_MESSAGES/.gitkeep +0 -0
  172. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ga/LC_MESSAGES/ga.po +0 -0
  173. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ga/LC_MESSAGES/shared_wg_ga.po +0 -0
  174. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ga/LC_MESSAGES/tabcmd.mo +0 -0
  175. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ga/LC_MESSAGES/tabcmd.po +0 -0
  176. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ga/LC_MESSAGES/tabcmd_messages_ga.po +0 -0
  177. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ga/shared_wg_ga.properties +0 -0
  178. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ga/tabcmd_messages_ga.properties +0 -0
  179. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/it/LC_MESSAGES/.gitkeep +0 -0
  180. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/it/LC_MESSAGES/it.po +0 -0
  181. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/it/LC_MESSAGES/shared_wg_it.po +0 -0
  182. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/it/LC_MESSAGES/tabcmd.mo +0 -0
  183. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/it/LC_MESSAGES/tabcmd.po +0 -0
  184. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/it/LC_MESSAGES/tabcmd_messages_it.po +0 -0
  185. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/it/shared_wg_it.properties +0 -0
  186. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/it/tabcmd_messages_it.properties +0 -0
  187. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ja/LC_MESSAGES/.gitkeep +0 -0
  188. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ja/LC_MESSAGES/ja.po +0 -0
  189. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ja/LC_MESSAGES/shared_wg_ja.po +0 -0
  190. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ja/LC_MESSAGES/tabcmd.mo +0 -0
  191. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ja/LC_MESSAGES/tabcmd.po +0 -0
  192. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ja/LC_MESSAGES/tabcmd_messages_ja.po +0 -0
  193. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ja/shared_wg_ja.properties +0 -0
  194. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ja/tabcmd_messages_ja.properties +0 -0
  195. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ko/LC_MESSAGES/.gitkeep +0 -0
  196. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ko/LC_MESSAGES/ko.po +0 -0
  197. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ko/LC_MESSAGES/shared_wg_ko.po +0 -0
  198. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ko/LC_MESSAGES/tabcmd.mo +0 -0
  199. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ko/LC_MESSAGES/tabcmd.po +0 -0
  200. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ko/LC_MESSAGES/tabcmd_messages_ko.po +0 -0
  201. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ko/shared_wg_ko.properties +0 -0
  202. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/ko/tabcmd_messages_ko.properties +0 -0
  203. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/pt/LC_MESSAGES/.gitkeep +0 -0
  204. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/pt/LC_MESSAGES/pt.po +0 -0
  205. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/pt/LC_MESSAGES/shared_wg_pt.po +0 -0
  206. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/pt/LC_MESSAGES/tabcmd.mo +0 -0
  207. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/pt/LC_MESSAGES/tabcmd.po +0 -0
  208. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/pt/LC_MESSAGES/tabcmd_messages_pt.po +0 -0
  209. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/pt/shared_wg_pt.properties +0 -0
  210. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/pt/tabcmd_messages_pt.properties +0 -0
  211. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/sv/LC_MESSAGES/.gitkeep +0 -0
  212. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/sv/LC_MESSAGES/shared_wg_sv.po +0 -0
  213. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/sv/LC_MESSAGES/sv.po +0 -0
  214. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/sv/LC_MESSAGES/tabcmd.mo +0 -0
  215. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/sv/LC_MESSAGES/tabcmd.po +0 -0
  216. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/sv/LC_MESSAGES/tabcmd_messages_sv.po +0 -0
  217. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/sv/shared_wg_sv.properties +0 -0
  218. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/sv/tabcmd_messages_sv.properties +0 -0
  219. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/zh/LC_MESSAGES/.gitkeep +0 -0
  220. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/zh/LC_MESSAGES/shared_wg_zh.po +0 -0
  221. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/zh/LC_MESSAGES/tabcmd.mo +0 -0
  222. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/zh/LC_MESSAGES/tabcmd.po +0 -0
  223. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/zh/LC_MESSAGES/tabcmd_messages_zh.po +0 -0
  224. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/zh/LC_MESSAGES/zh.po +0 -0
  225. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/zh/shared_wg_zh.properties +0 -0
  226. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd/locales/zh/tabcmd_messages_zh.properties +0 -0
  227. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd.egg-info/dependency_links.txt +0 -0
  228. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd.egg-info/entry_points.txt +0 -0
  229. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd.egg-info/top_level.txt +0 -0
  230. {tabcmd-2.0.7 → tabcmd-2.0.14}/tabcmd.py +0 -0
  231. {tabcmd-2.0.7/tabcmd/commands/user → tabcmd-2.0.14/tests}/__init__.py +0 -0
  232. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/assets/World Indicators.tds +0 -0
  233. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/assets/World Indicators.tdsx +0 -0
  234. {tabcmd-2.0.7/tests → tabcmd-2.0.14/tests/commands}/__init__.py +0 -0
  235. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/commands/test_credential_file.txt +0 -0
  236. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/commands/test_projects_utils.py +0 -0
  237. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/commands/test_server_handler.py +0 -0
  238. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/commands/test_user_utils.py +0 -0
  239. {tabcmd-2.0.7/tests/commands → tabcmd-2.0.14/tests/e2e}/__init__.py +0 -0
  240. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/e2e/tests.py +0 -0
  241. {tabcmd-2.0.7/tests/e2e → tabcmd-2.0.14/tests/parsers}/__init__.py +0 -0
  242. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_login_parser.py +0 -0
  243. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_logout_parser.py +0 -0
  244. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_create_extracts.py +0 -0
  245. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_create_group.py +0 -0
  246. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_create_project.py +0 -0
  247. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_create_site.py +0 -0
  248. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_decrypt_extracts.py +0 -0
  249. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_delete.py +0 -0
  250. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_delete_extracts.py +0 -0
  251. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_delete_group.py +0 -0
  252. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_delete_project.py +0 -0
  253. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_delete_site.py +0 -0
  254. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_edit_site.py +0 -0
  255. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_encrypt_extracts.py +0 -0
  256. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_export.py +0 -0
  257. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_get_url.py +0 -0
  258. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_list_sites.py +0 -0
  259. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_login.py +0 -0
  260. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_publish_samples.py +0 -0
  261. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_reencrypt_extracts.py +0 -0
  262. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_refresh_extracts.py +0 -0
  263. {tabcmd-2.0.7 → tabcmd-2.0.14}/tests/parsers/test_parser_runschedule.py +0 -0
@@ -17,10 +17,10 @@ jobs:
17
17
  runs-on: ${{ matrix.os }}
18
18
 
19
19
  steps:
20
- - uses: actions/checkout@v3
20
+ - uses: actions/checkout@v4
21
21
 
22
22
  - name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
23
- uses: actions/setup-python@v4
23
+ uses: actions/setup-python@v5
24
24
  with:
25
25
  python-version: ${{ matrix.python-version }}
26
26
 
@@ -38,11 +38,11 @@ jobs:
38
38
 
39
39
  steps:
40
40
  - name: Checkout repository
41
- uses: actions/checkout@v3
41
+ uses: actions/checkout@v4
42
42
 
43
43
  # Initializes the CodeQL tools for scanning.
44
44
  - name: Initialize CodeQL
45
- uses: github/codeql-action/init@v2
45
+ uses: github/codeql-action/init@v3
46
46
  with:
47
47
  languages: ${{ matrix.language }}
48
48
  # If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,6 +53,6 @@ jobs:
53
53
  # queries: security-extended,security-and-quality
54
54
 
55
55
  - name: Perform CodeQL Analysis
56
- uses: github/codeql-action/analyze@v2
56
+ uses: github/codeql-action/analyze@v3
57
57
  with:
58
58
  category: "/language:${{matrix.language}}"
@@ -11,10 +11,10 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
 
13
13
  steps:
14
- - uses: actions/checkout@v3
14
+ - uses: actions/checkout@v4
15
15
 
16
16
  - name: Set up Python
17
- uses: actions/setup-python@v4
17
+ uses: actions/setup-python@v5
18
18
  with:
19
19
  python-version: '3.7'
20
20
 
@@ -0,0 +1,103 @@
1
+ name: Release-Executable
2
+
3
+ # Pyinstaller requires that executables for each OS are built on that OS
4
+ # This action is intended to build on each of the supported OS's: mac, windows, linux.
5
+ # and then upload all three files to a new release
6
+
7
+ # reference material:
8
+ # https://data-dive.com/multi-os-deployment-in-cloud-using-pyinstaller-and-github-actions
9
+ # https://anshumanfauzdar.medium.com/using-github-actions-to-bundle-python-application-into-a-single-package-and-automatic-release-834bd42e0670
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+ workflow_dispatch:
15
+
16
+ jobs:
17
+
18
+ buildexe:
19
+ name: Build executables and upload them to the existing release
20
+ runs-on: ${{ matrix.os }}
21
+ strategy:
22
+ fail-fast: false
23
+ matrix:
24
+ include:
25
+ - os: windows-latest
26
+ TARGET: windows
27
+ CMD_BUILD: >
28
+ pyinstaller tabcmd-windows.spec --clean --noconfirm --distpath ./dist/windows
29
+ OUT_FILE_NAME: tabcmd.exe
30
+ ASSET_MIME: application/vnd.microsoft.portable-executable
31
+ - os: macos-13
32
+ TARGET: macos
33
+ CMD_BUILD: >
34
+ pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/
35
+ BUNDLE_NAME: tabcmd.app
36
+ OUT_FILE_NAME: tabcmd.app
37
+ APP_BINARY_FILE_NAME: tabcmd
38
+ ASSET_MIME: application/zip
39
+ - os: macos-latest
40
+ TARGET: macos
41
+ CMD_BUILD: >
42
+ pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/
43
+ BUNDLE_NAME: tabcmd_arm64.app
44
+ OUT_FILE_NAME: tabcmd.app
45
+ APP_BINARY_FILE_NAME: tabcmd
46
+ ASSET_MIME: application/zip
47
+ - os: ubuntu-latest
48
+ TARGET: ubuntu
49
+ # https://stackoverflow.com/questions/31259856
50
+ # /how-to-create-an-executable-file-for-linux-machine-using-pyinstaller
51
+ CMD_BUILD: >
52
+ pyinstaller --clean -y --distpath ./dist/ubuntu tabcmd-linux.spec &&
53
+ chown -R --reference=. ./dist/ubuntu
54
+ OUT_FILE_NAME: tabcmd
55
+
56
+ steps:
57
+ - uses: actions/checkout@v4
58
+
59
+ - uses: actions/setup-python@v5
60
+ with:
61
+ python-version: 3.8
62
+
63
+ - name: Install dependencies and build
64
+ run: |
65
+ python --version
66
+ python -m pip install --upgrade pip
67
+ python -m pip install --upgrade build
68
+ pip install .
69
+ pip install .[package]
70
+ doit version
71
+ python -m build
72
+
73
+ - name: Package with pyinstaller for ${{matrix.TARGET}}
74
+ run: ${{matrix.CMD_BUILD}}
75
+
76
+ - name: Validate package for ${{matrix.TARGET}}
77
+ if: matrix.TARGET != 'macos'
78
+ run: ./dist/${{ matrix.TARGET }}/${{matrix.OUT_FILE_NAME}}
79
+
80
+ - name: Validate package for Mac
81
+ if: matrix.TARGET == 'macos'
82
+ run: ./dist/${{ matrix.TARGET }}/${{ matrix.OUT_FILE_NAME }}/Contents/MacOS/${{ matrix.APP_BINARY_FILE_NAME }}
83
+
84
+ - name: Tar app bundle for Mac
85
+ if: matrix.TARGET == 'macos'
86
+ run: |
87
+ rm -f dist/${{ matrix.TARGET }}/${{ matrix.APP_BINARY_FILE_NAME }}
88
+ cd dist/${{ matrix.TARGET }}
89
+ tar -cvf ${{ matrix.BUNDLE_NAME }}.tar ${{ matrix.OUT_FILE_NAME }}
90
+
91
+ - name: Upload artifact
92
+ if: matrix.TARGET != 'macos'
93
+ uses: actions/upload-artifact@v4
94
+ with:
95
+ name: ${{ matrix.OUT_FILE_NAME }}
96
+ path: ./dist/${{ matrix.TARGET }}/${{ matrix.OUT_FILE_NAME }}
97
+
98
+ - name: Upload artifact for Mac
99
+ if: matrix.TARGET == 'macos'
100
+ uses: actions/upload-artifact@v4
101
+ with:
102
+ name: ${{ matrix.BUNDLE_NAME }}
103
+ path: ./dist/${{ matrix.TARGET }}/${{ matrix.BUNDLE_NAME }}.tar
@@ -15,10 +15,10 @@ jobs:
15
15
  name: Build dist files for PyPi
16
16
  runs-on: ubuntu-latest
17
17
  steps:
18
- - uses: actions/checkout@v3
18
+ - uses: actions/checkout@v4
19
19
  with:
20
20
  fetch-depth: 0
21
- - uses: actions/setup-python@v4
21
+ - uses: actions/setup-python@v5
22
22
  with:
23
23
  python-version: 3.8
24
24
  - name: Build dist files
@@ -24,7 +24,7 @@ jobs:
24
24
 
25
25
  steps:
26
26
  - name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
27
- uses: actions/setup-python@v4
27
+ uses: actions/setup-python@v5
28
28
  with:
29
29
  python-version: ${{ matrix.python-version }}
30
30
  - name: pip install Tabcmd
@@ -23,10 +23,10 @@ jobs:
23
23
  runs-on: ${{ matrix.os }}
24
24
 
25
25
  steps:
26
- - uses: actions/checkout@v3
26
+ - uses: actions/checkout@v4
27
27
 
28
28
  - name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
29
- uses: actions/setup-python@v4
29
+ uses: actions/setup-python@v5
30
30
  with:
31
31
  python-version: ${{ matrix.python-version }}
32
32
 
@@ -15,15 +15,15 @@ jobs:
15
15
  fail-fast: true
16
16
  matrix:
17
17
  os: [ubuntu-latest, macos-latest, windows-latest]
18
- python-version: ['3.7', '3.8', '3.9', '3.10', '3']
18
+ python-version: ['3.8', '3.9', '3.10', '3']
19
19
 
20
20
  runs-on: ${{ matrix.os }}
21
21
 
22
22
  steps:
23
- - uses: actions/checkout@v3
23
+ - uses: actions/checkout@v4
24
24
 
25
25
  - name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
26
- uses: actions/setup-python@v4
26
+ uses: actions/setup-python@v5
27
27
  with:
28
28
  python-version: ${{ matrix.python-version }}
29
29
 
@@ -1,7 +1,6 @@
1
1
  # general dev/ide files
2
2
  *.log
3
3
  *.vscode
4
- *.csv
5
4
  .idea
6
5
  *.DS_Store
7
6
 
@@ -24,19 +23,20 @@ workon/
24
23
  .coverage
25
24
  pytest.xml
26
25
 
26
+ *.txt
27
27
  # content
28
28
  # todo probably want to add a workbook and ds in /res for getting started easily
29
29
  *.pdf
30
30
  *.png
31
- *.twbx
32
- *.hyper
33
- *.twb
34
- *.twbr
35
- html
36
31
  *.html
37
- *.twbr
32
+ # *.twbx
33
+ # *.hyper
34
+ # *.twb
35
+ # *.twbr
36
+ # *.tdsx
38
37
  **/credentials.py
39
- *.txt
38
+ # exceptions
39
+ !tests/assets/
40
40
 
41
41
  # doit
42
42
  .doit.*
@@ -47,3 +47,4 @@ site-packages
47
47
  # local
48
48
  tabcmd-dev
49
49
  workon
50
+ test.junit.xml
tabcmd-2.0.14/PKG-INFO ADDED
@@ -0,0 +1,72 @@
1
+ Metadata-Version: 2.1
2
+ Name: tabcmd
3
+ Version: 2.0.14
4
+ Summary: A command line client for working with Tableau Server.
5
+ Author-email: Tableau <github@tableau.com>
6
+ License: The MIT License (MIT)
7
+
8
+ Copyright (c) 2020 Tableau
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+
29
+ Project-URL: repository, https://github.com/tableau/tabcmd
30
+ Classifier: Programming Language :: Python
31
+ Classifier: Programming Language :: Python :: 3
32
+ Classifier: Programming Language :: Python :: 3.8
33
+ Classifier: Programming Language :: Python :: 3.9
34
+ Classifier: Programming Language :: Python :: 3.10
35
+ Classifier: Programming Language :: Python :: 3.11
36
+ Requires-Python: >=3.7
37
+ Description-Content-Type: text/markdown
38
+ License-File: LICENSE
39
+ Requires-Dist: appdirs
40
+ Requires-Dist: doit
41
+ Requires-Dist: ftfy
42
+ Requires-Dist: pyinstaller_versionfile
43
+ Requires-Dist: pytest-order
44
+ Requires-Dist: requests<3.0,>=2.25
45
+ Requires-Dist: setuptools_scm
46
+ Requires-Dist: types-appdirs
47
+ Requires-Dist: types-mock
48
+ Requires-Dist: types-requests
49
+ Requires-Dist: types-setuptools
50
+ Requires-Dist: tableauserverclient==0.31
51
+ Requires-Dist: urllib3
52
+ Provides-Extra: test
53
+ Requires-Dist: black<23,>=22; extra == "test"
54
+ Requires-Dist: mock; extra == "test"
55
+ Requires-Dist: mypy; extra == "test"
56
+ Requires-Dist: pytest>=7.0; extra == "test"
57
+ Requires-Dist: pytest-cov; extra == "test"
58
+ Requires-Dist: pytest-order; extra == "test"
59
+ Requires-Dist: pytest-runner; extra == "test"
60
+ Requires-Dist: requests-mock<2.0,>=1.0; extra == "test"
61
+ Provides-Extra: localize
62
+ Requires-Dist: doit; extra == "localize"
63
+ Requires-Dist: ftfy; extra == "localize"
64
+ Provides-Extra: package
65
+ Requires-Dist: pyinstaller==5.13; extra == "package"
66
+ Requires-Dist: doit; extra == "package"
67
+
68
+
69
+ This program is an executable command-line utility which you can use to automate activity on Tableau Cloud or Tableau Server.
70
+
71
+ For instructions on how to use it, launch the app on a command line with 'tabcmd -h'.
72
+ For updates, bug reports and help, visit https://tableau.github.io/tabcmd/
@@ -5,73 +5,33 @@
5
5
  [![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
6
  [![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)
7
7
 
8
- An open source, cross platform command-line utility which you can use to automate site administration tasks on your Tableau Server site.
8
+ An open source, cross platform command-line utility which you can use to automate activity on Tableau Cloud or Tableau Server.
9
9
 
10
10
 
11
- ## Download exe (or rpm/deb)
12
- * To download the latest release as an executable see https://github.com/tableau/tabcmd/releases
11
+ ## Download the app
12
+ * To download the latest release ready to use see https://github.com/tableau/tabcmd/releases
13
13
  * There is no need to install: open a command line in the same folder as the exe and run
14
- ```shell
15
- tabcmd [command_name] [--flags]
16
- ```
17
- e.g
18
- * `tabcmd login --username [username] --password [password] --server [server_name] --site [site_name]`
19
- * `tabcmd createproject --name [project_name]`
20
- * `tabcmd help`
21
14
 
22
- ###or
23
- ## Install on the command line (requires Python 3.7+)
24
15
 
25
- ```shell
26
- pip install tabcmd
27
- ```
28
-
29
- Or install the current work-in-progress version from Git\
30
- *Only do this if you know you want the development version, no guarantee that we won't break APIs during development*
16
+ > [!TIP]
17
+ > You can also download the current latest release directly on the command line:
18
+ > ```shell
19
+ > pip install tabcmd
20
+ > ```
31
21
 
32
- ```shell
33
- pip install git+https://github.com/tableau/tabcmd.git@development
34
- ```
35
22
 
36
- If you go this route, but want to switch back to the non-development version, you need to run the following command before installing the stable version:
23
+ ### Run tabcmd
37
24
 
25
+ These commands can be run from the folder that you downloaded tabcmd. If you add this folder to your PATH, they can be run from any folder.
38
26
  ```shell
39
- pip uninstall tabcmd
27
+ tabcmd [command_name] [--flags]
40
28
  ```
29
+ e.g
30
+ * `tabcmd login --username [username] --password [password] --server [server_name] --site [site_name]`
31
+ * `tabcmd createproject --name [project_name]`
32
+ * `tabcmd help`
41
33
 
42
- ### Run tabcmd
43
-
44
- To run tabcmd from your local copy, from a console window in the same directory as the file tabcmd.py:
45
-
46
- 1. Clone the repo
47
- 2. Run `pip install .`
48
-
49
- - build
50
- > python setup.py build
51
-
52
- - run tests
53
- > pytest
54
- - run tests against a live server
55
- > python -m tabcmd login {your server info here}
56
- > pytest -q tests\e2e\online_tests.py -r pfE
57
- - with coverage calculation (https://coverage.readthedocs.io/en/6.3.2)
58
- > coverage run -m pytest && coverage report -m
59
-
60
- - autoformat your code with black (https://pypi.org/project/black/)
61
- > black --line-length 120 tabcmd tests [--check]
62
-
63
- - type check with mypy
64
- > mypy tabcmd tests
65
-
66
- - packaging is done with pyinstaller. You can only build an executable for the platform you build on.
67
- > pyinstaller tabcmd\tabcmd.py --clean --noconfirm
68
-
69
- produces dist/tabcmd.exe
70
- To run tabcmd during development, from a console window in the same directory as the file tabcmd.py:
71
-
72
- > dist/tabcmd/tabcmd.exe --help
73
34
 
74
- * `python -m tabcmd.py [command_name] [--flags]`
75
35
  * Examples:
76
36
  * `tabcmd.py login --username [username] --password [password] --server [server_name] --site [site_name]`
77
37
  * `tabcmd.py createproject --name [project_name]`
@@ -82,21 +42,12 @@ see the user documentation at https://tableau.github.io/tabcmd/
82
42
 
83
43
 
84
44
  ## Release Notes
85
- Version 2.0 is the first version of tabcmd built in python.
45
+ Version 2 is the first version of tabcmd built in python.
86
46
  It is specifically targeted to support users of Tableau Online, who are required to have MFA enabled.
87
- (MFA support is not available in tabcmd 2022.2). It does not yet fully replace the existing tabcmd client.\
88
- **Known gaps**
89
- - handling custom views in get/export commands
90
- - several commands that can only be run by a Server Admin:
91
- - editdomain / listdomains
92
- - initialuser
93
- - reset_openid_sub
94
- - runschedule
95
- - set
96
- - syncgroup
97
- - upgradethumbnails
98
- - validateidpmetadata
47
+ (MFA support is not available in the tabcmd program that ships with Tableau Server).
99
48
 
49
+ Version 2 does not yet fully replace the existing tabcmd client, in particular it **does not support most server admin actions**.
50
+ For known gaps in supported functionality, see the latest [release notes](https://github.com/tableau/tabcmd/releases)
100
51
 
101
52
  ## About
102
53
 
@@ -113,3 +64,4 @@ Copies of tabcmd that shipped with Tableau Server are referred to by the version
113
64
  At some point in the future, tabcmd will no longer be included with Tableau Server.
114
65
  *We have no intention of breaking Server install flows.*
115
66
  If you have specific suggestions or concerns on what that will look like, feel free to open an issue here or a thread on the Community Forums.
67
+
@@ -0,0 +1,158 @@
1
+
2
+ # For developers
3
+ * [Install tabcmd](#install-tabcmd)
4
+ * [Contributing](#contributing)
5
+ * [Development](#development)
6
+ * [Dev scripts](#dev-scripts)
7
+ * [Why Python\?](#why-python)
8
+ * [Project structure](#project-structure)
9
+ * [To add a new command](#to-add-a-new-command)
10
+ * [Localization](#localization)
11
+ * [Releases](#releases)
12
+ * [Versioning](#versioning)
13
+ * [Packaging](#packaging)
14
+
15
+
16
+ ## Install Tabcmd
17
+ > [!NOTE]
18
+ > These instructions are for people who want to work with the python code behind tabcmd. If you are interested in tabcmd but not the code, see [here](Readme.md).
19
+
20
+ ####To work with tabcmd, you need to have **Python 3.8+** installed. To propose changes, you must have a Github account.
21
+
22
+ ### To make changes to tabcmd code
23
+
24
+ Fork the tabcmd repo and create a branch off the **development** branch, not the default branch (named main) [(See Github Docs)](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo)
25
+
26
+
27
+ ### As a library that you can use in another application:
28
+
29
+ To install the current release:
30
+ ```shell
31
+ pip install tabcmd
32
+ ```
33
+
34
+ Or install the current work-in-progress version from Git\
35
+ *Only do this if you know you want the development version, no guarantee that we won't break APIs during development*
36
+
37
+ ```shell
38
+ pip install git+https://github.com/tableau/tabcmd.git@development
39
+ ```
40
+
41
+ > [!TIP]
42
+ > If you want to switch back to the non-development version, you need to run the following command before installing the stable version:
43
+ >
44
+ >```shell
45
+ >pip uninstall tabcmd
46
+ >```
47
+
48
+ ## Software design
49
+
50
+ ### Why Python?
51
+
52
+ * Cross-platform
53
+ * Build on our existing Python [Tableau Server Client](https://github.com/tableau/server-client-python/)
54
+
55
+
56
+ ### Project structure
57
+ The core design principles for this app are
58
+ - it must provide the functionality of the instance of tabcmd, with drop-in replacement CLI options
59
+ - it should be able to call [tsc](https://github.com/tableau/server-client-python/) for all server actions
60
+ - architecture is as simple as possible
61
+
62
+ 1. tabcmd.py exists only as a module entry point that calls TabCmdController.
63
+ 2. the 'parsers' module contains only argument and option definitions, no logic.
64
+ 3. the 'commands' module contains the logic required to translate the tabcmd CLI interface into calls to tsc. This is completely dissociated from the parsers, and could theoretically be called from a completely different interface.
65
+ 4. The 'execution' module is the core logic. TabcmdController gets an argparse parser, then attaches all the defined parsers to it and associates one command with each parser.
66
+
67
+ #### To add a new command
68
+ 0. choose the single word that will be used as your command. Let's call this one `dream`
69
+ 1. add parsers/dream_parser.py, and use methods from parent_parser to define the arguments
70
+ 2. add commands/dreams/dream_command.py. It must have a method run_command.py(args) and the args object must contain all information needed from the user.
71
+ 3. in map_of_parsers.py, add an entry for your new parser, like "dreams": DreamParser.dream_parser
72
+ 4. in map_of_commands.py, add an entry for your new command, like "dream": ("dream", DreamCommand, "Think about picnics"),"
73
+ 5. add tests!
74
+
75
+ ## Contributing
76
+
77
+ Code contributions and improvements by the community are welcomed!
78
+
79
+ See the LICENSE file for current open-source licensing and use information.
80
+
81
+ Before we can accept pull requests from contributors, we require a signed [Contributor License Agreement (CLA)](http://tableau.github.io/contributing.html).
82
+
83
+
84
+ ## Developing
85
+ To work on the tabcmd code, use these scripts.
86
+ _(note that running mypy and black with no errors is required before code will be merged into the repo)_
87
+
88
+ - build and run
89
+ > pip install build
90
+ > python setup.py build
91
+ > python -m tabcmd.py [command_name] [--flags]
92
+
93
+ - run tests
94
+ > pytest
95
+
96
+ - run tests against a live server
97
+ > python -m tabcmd login {your server info here}
98
+ > pytest -q tests\e2e\online_tests.py -r pfE
99
+
100
+ - autoformat your code with black (https://pypi.org/project/black/)
101
+ > black .
102
+
103
+ - check types
104
+ > mypy tabcmd tests
105
+
106
+ - do test coverage calculation (https://coverage.readthedocs.io/en/6.3.2)
107
+ > bin/coverage.sh
108
+
109
+
110
+ ### Packaging
111
+ - build an executable package with [pyinstaller](https://github.com/pyinstaller/pyinstaller).
112
+ > [!NOTE]
113
+ > You can only build an executable for the platform you are running pyinstaller on. The spec for each platform is stored in tabcmd-*platform*.spec and the exact build commands for each platform can be checked in [our packaging script](.github/workflows//package.yml).
114
+
115
+ e.g for Windows
116
+ > pyinstaller tabcmd-windows.spec --clean --noconfirm --distpath ./dist/windows
117
+
118
+ produces dist/tabcmd.exe
119
+ To run the newly created executable, from a console window in the same directory as the file tabcmd.py:
120
+
121
+ > dist/tabcmd/tabcmd.exe --help
122
+
123
+
124
+
125
+ ### Localization
126
+
127
+ Strings are stored in /tabcmd/locales/[language]/*.properties by id and referred to in code as
128
+ > string = _("string.id")
129
+
130
+ For runtime execution these files must be converted from .properties -> .po -> .mo files. These .mo files will be bundled in the the package by pyinstaller. The entire conversion action is done by a .doit script:
131
+ > doit mo
132
+
133
+ ### Versioning
134
+
135
+ Versioning is done with setuptools_scm and based on git tags. The version number will be x.y.dev0.dirty except for commits with a new version tag.
136
+ This is pulled from the git state, and to get a clean version like "v2.1.0", you must be on a commit with the tag "v2.1.0" (Creating a Github release also creates a tag on the selected branch.)
137
+ The version reflected in the executable (tabcmd -v) is stored in a metadata file created by a .doit script:
138
+ > doit version
139
+
140
+ ## Release process
141
+
142
+ 1. Create a new Github project release manually: https://docs.github.com/en/repositories/releasing-projects-on-github/about-releases
143
+ - include a useful list of changes since the last release
144
+ - include a clear list of remaining non-server-admin functional gaps
145
+
146
+ 1. This will trigger our github packaging action to run on 3 different OSs.
147
+ - write an updated metadata file with the correct version number.
148
+ - build the python wheel
149
+ - run pyinstaller to create executables
150
+ - save the executable as an artifact on that job.
151
+
152
+ 1. Find the artifacts created by this job and manually copy them to the new release. (Beware! of what the file type is, github does something weird with zipping it if you download with curl etc. TODO: automate workflow with a github action)
153
+
154
+ 1. To trigger publishing to pypi run the manual workflow on main with 'pypi'. (TODO: automate trigger)
155
+
156
+ 1. When the packages are available on pypi, you can run the 'Pypi smoke test action'. This action will also be run every 24 hours to validate doing pip install. (TODO: automate the after-release trigger)
157
+
158
+
@@ -9,7 +9,8 @@ packages = ["tabcmd"]
9
9
  tabcmd = ["tabcmd.locales/**/*.mo"]
10
10
  [tool.black]
11
11
  line-length = 120
12
- target-version = ['py37', 'py38', 'py39', 'py310']
12
+ required-version = 22
13
+ target-version = ['py38', 'py39', 'py310', 'py311']
13
14
  extend-exclude = '^/bin/*'
14
15
  [tool.mypy]
15
16
  disable_error_code = [
@@ -29,35 +30,34 @@ dynamic = ["version"]
29
30
  description="A command line client for working with Tableau Server."
30
31
  authors = [{name="Tableau", email="github@tableau.com"}]
31
32
  license = {file = "LICENSE"}
32
- readme = "README.md"
33
- requires-python = ">=3.7"
33
+ readme = "res/README.md"
34
+ requires-python = ">=3.7" # https://devguide.python.org/versions/
34
35
  classifiers = [
35
36
  "Programming Language :: Python",
36
37
  "Programming Language :: Python :: 3",
37
- "Programming Language :: Python :: 3.7",
38
38
  "Programming Language :: Python :: 3.8",
39
39
  "Programming Language :: Python :: 3.9",
40
- "Programming Language :: Python :: 3.10"
40
+ "Programming Language :: Python :: 3.10",
41
+ "Programming Language :: Python :: 3.11"
41
42
  ]
42
43
  dependencies = [
43
- 'argparse',
44
44
  "appdirs",
45
45
  "doit",
46
46
  "ftfy",
47
- "polling2",
48
47
  "pyinstaller_versionfile",
49
- "requests>=2.11,<3.0",
48
+ "pytest-order",
49
+ "requests>=2.25,<3.0",
50
50
  "setuptools_scm",
51
51
  "types-appdirs",
52
52
  "types-mock",
53
53
  "types-requests",
54
54
  "types-setuptools",
55
- "tableauserverclient>=0.19",
56
- "urllib3>=1.24.3,<2.0",
55
+ "tableauserverclient==0.31",
56
+ "urllib3",
57
57
  ]
58
58
  [project.optional-dependencies]
59
59
  test = [
60
- "black",
60
+ "black>=22,<23",
61
61
  "mock",
62
62
  "mypy",
63
63
  "pytest>=7.0",
@@ -66,7 +66,7 @@ test = [
66
66
  "pytest-runner",
67
67
  "requests-mock>=1.0,<2.0"]
68
68
  localize = ["doit", "ftfy"]
69
- package = ["pyinstaller>=5.1"]
69
+ package = ["pyinstaller==5.13", "doit"]
70
70
  [project.urls]
71
71
  repository = "https://github.com/tableau/tabcmd"
72
72
  [project.scripts]
@@ -0,0 +1,5 @@
1
+
2
+ This program is an executable command-line utility which you can use to automate activity on Tableau Cloud or Tableau Server.
3
+
4
+ For instructions on how to use it, launch the app on a command line with 'tabcmd -h'.
5
+ For updates, bug reports and help, visit https://tableau.github.io/tabcmd/