tabcmd 2.0.8__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.
- {tabcmd-2.0.8 → tabcmd-2.0.14}/.github/workflows/check-coverage.yml +2 -2
- {tabcmd-2.0.8 → tabcmd-2.0.14}/.github/workflows/codeql-analysis.yml +3 -3
- {tabcmd-2.0.8 → tabcmd-2.0.14}/.github/workflows/generate-metadata.yml +2 -2
- {tabcmd-2.0.8 → tabcmd-2.0.14}/.github/workflows/package.yml +45 -17
- {tabcmd-2.0.8 → tabcmd-2.0.14}/.github/workflows/publish-pypi.yml +2 -2
- {tabcmd-2.0.8 → tabcmd-2.0.14}/.github/workflows/python-app.yml +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/.github/workflows/run-e2-tests.yml +2 -2
- {tabcmd-2.0.8 → tabcmd-2.0.14}/.github/workflows/run-tests.yml +3 -3
- {tabcmd-2.0.8 → tabcmd-2.0.14}/.gitignore +8 -8
- tabcmd-2.0.14/PKG-INFO +72 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/README.md +19 -69
- tabcmd-2.0.14/contributing.md +158 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/pyproject.toml +12 -12
- tabcmd-2.0.14/res/README.md +5 -0
- tabcmd-2.0.14/tabcmd/__main__.py +11 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/auth/login_command.py +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/auth/session.py +197 -86
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/constants.py +32 -28
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/datasources_and_workbooks/datasources_and_workbooks_command.py +36 -22
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/datasources_and_workbooks/delete_command.py +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/datasources_and_workbooks/export_command.py +26 -26
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/datasources_and_workbooks/get_url_command.py +50 -32
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/datasources_and_workbooks/publish_command.py +50 -22
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/datasources_and_workbooks/runschedule_command.py +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/extracts/create_extracts_command.py +19 -16
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/extracts/decrypt_extracts_command.py +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/extracts/delete_extracts_command.py +15 -9
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/extracts/encrypt_extracts_command.py +1 -1
- tabcmd-2.0.14/tabcmd/commands/extracts/extracts.py +30 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/extracts/reencrypt_extracts_command.py +1 -1
- tabcmd-2.0.14/tabcmd/commands/extracts/refresh_extracts_command.py +67 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/group/create_group_command.py +2 -2
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/group/delete_group_command.py +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/project/create_project_command.py +7 -3
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/project/delete_project_command.py +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/project/publish_samples_command.py +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/server.py +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/site/create_site_command.py +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/site/delete_site_command.py +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/site/edit_site_command.py +1 -1
- tabcmd-2.0.14/tabcmd/commands/site/list_command.py +66 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/site/list_sites_command.py +3 -3
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/user/add_users_command.py +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/user/create_site_users.py +18 -6
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/user/create_users_command.py +16 -4
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/user/delete_site_users_command.py +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/user/remove_users_command.py +1 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/user/user_data.py +46 -5
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/execution/global_options.py +81 -59
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/execution/localize.py +6 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/execution/parent_parser.py +4 -16
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/execution/tabcmd_controller.py +14 -11
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/en/LC_MESSAGES/tabcmd.po +0 -24
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/tabcmd.py +9 -4
- tabcmd-2.0.14/tabcmd/version.py +9 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd-linux.spec +3 -3
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd-mac.spec +9 -8
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd-windows.spec +7 -2
- tabcmd-2.0.14/tabcmd.egg-info/PKG-INFO +72 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd.egg-info/SOURCES.txt +12 -1
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd.egg-info/requires.txt +6 -7
- tabcmd-2.0.14/tests/assets/EmbeddedCredentials.twb +977 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/assets/SampleDS.tds +1 -1
- tabcmd-2.0.14/tests/assets/WorkbookWithExtract.twbx +0 -0
- tabcmd-2.0.14/tests/assets/WorkbookWithoutExtract.twbx +0 -0
- tabcmd-2.0.14/tests/assets/detailed_users.csv +1 -0
- tabcmd-2.0.14/tests/assets/simple-data.twbx +0 -0
- tabcmd-2.0.14/tests/assets/usernames.csv +1 -0
- tabcmd-2.0.14/tests/commands/test_datasources_and_workbooks_command.py +93 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/commands/test_execution.py +1 -2
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/commands/test_geturl_utils.py +29 -7
- tabcmd-2.0.14/tests/commands/test_listing_commands.py +58 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/commands/test_localize.py +19 -1
- tabcmd-2.0.14/tests/commands/test_publish_command.py +92 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/commands/test_run_commands.py +37 -13
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/commands/test_session.py +189 -105
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/e2e/online_tests.py +181 -96
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/e2e/setup_e2e.py +3 -3
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/e2e/tests_integration.py +2 -2
- tabcmd-2.0.14/tests/parsers/test_parser_publish.py +107 -0
- tabcmd-2.0.8/PKG-INFO +0 -159
- tabcmd-2.0.8/World Indicators.tdsx +0 -0
- tabcmd-2.0.8/contributing.md +0 -95
- tabcmd-2.0.8/tabcmd/__main__.py +0 -11
- tabcmd-2.0.8/tabcmd/commands/extracts/refresh_extracts_command.py +0 -110
- tabcmd-2.0.8/tabcmd/commands/site/list_command.py +0 -46
- tabcmd-2.0.8/tabcmd.egg-info/PKG-INFO +0 -159
- tabcmd-2.0.8/tests/parsers/test_parser_publish.py +0 -40
- {tabcmd-2.0.8 → tabcmd-2.0.14}/.coverage +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/.coveragerc +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/.github/dependabot.yml +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/LICENSE +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/SECURITY.md +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/bin/coverage.sh +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/bin/i18n/makelocalealias.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/bin/i18n/msgfmt.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/bin/i18n/prop2po.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/bin/i18n/pygettext.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/bin/license-checker.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/bin/pyinstaller.sh +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/dodo.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/res/metadata.yml +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/res/tabcmd.icns +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/res/tabcmd.ico +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/res/tabcmd.png +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/setup.cfg +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/setup.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/auth/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/auth/logout_command.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/commands.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/datasources_and_workbooks/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/extracts/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/group/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/project/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/site/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/commands/user/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/execution/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/execution/_version.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/execution/logger_config.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/execution/map_of_commands.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/de/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/de/LC_MESSAGES/de.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/de/LC_MESSAGES/shared_wg_de.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/de/LC_MESSAGES/tabcmd.mo +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/de/LC_MESSAGES/tabcmd.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/de/LC_MESSAGES/tabcmd_messages_de.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/de/shared_wg_de.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/de/tabcmd_messages_de.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/en/LC_MESSAGES/en-US.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/en/LC_MESSAGES/shared_wg_en.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/en/LC_MESSAGES/tabcmd.mo +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/en/LC_MESSAGES/tabcmd_messages_en.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/en/shared_wg_en.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/en/tabcmd_messages_en.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/es/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/es/LC_MESSAGES/es.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/es/LC_MESSAGES/shared_wg_es.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/es/LC_MESSAGES/tabcmd.mo +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/es/LC_MESSAGES/tabcmd.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/es/LC_MESSAGES/tabcmd_messages_es.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/es/shared_wg_es.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/es/tabcmd_messages_es.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/fr/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/fr/LC_MESSAGES/fr.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/fr/LC_MESSAGES/shared_wg_fr.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/fr/LC_MESSAGES/tabcmd.mo +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/fr/LC_MESSAGES/tabcmd.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/fr/LC_MESSAGES/tabcmd_messages_fr.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/fr/shared_wg_fr.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/fr/tabcmd_messages_fr.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ga/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ga/LC_MESSAGES/ga.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ga/LC_MESSAGES/shared_wg_ga.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ga/LC_MESSAGES/tabcmd.mo +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ga/LC_MESSAGES/tabcmd.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ga/LC_MESSAGES/tabcmd_messages_ga.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ga/shared_wg_ga.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ga/tabcmd_messages_ga.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/it/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/it/LC_MESSAGES/it.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/it/LC_MESSAGES/shared_wg_it.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/it/LC_MESSAGES/tabcmd.mo +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/it/LC_MESSAGES/tabcmd.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/it/LC_MESSAGES/tabcmd_messages_it.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/it/shared_wg_it.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/it/tabcmd_messages_it.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ja/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ja/LC_MESSAGES/ja.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ja/LC_MESSAGES/shared_wg_ja.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ja/LC_MESSAGES/tabcmd.mo +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ja/LC_MESSAGES/tabcmd.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ja/LC_MESSAGES/tabcmd_messages_ja.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ja/shared_wg_ja.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ja/tabcmd_messages_ja.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ko/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ko/LC_MESSAGES/ko.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ko/LC_MESSAGES/shared_wg_ko.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ko/LC_MESSAGES/tabcmd.mo +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ko/LC_MESSAGES/tabcmd.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ko/LC_MESSAGES/tabcmd_messages_ko.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ko/shared_wg_ko.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/ko/tabcmd_messages_ko.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/pt/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/pt/LC_MESSAGES/pt.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/pt/LC_MESSAGES/shared_wg_pt.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/pt/LC_MESSAGES/tabcmd.mo +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/pt/LC_MESSAGES/tabcmd.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/pt/LC_MESSAGES/tabcmd_messages_pt.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/pt/shared_wg_pt.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/pt/tabcmd_messages_pt.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/sv/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/sv/LC_MESSAGES/shared_wg_sv.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/sv/LC_MESSAGES/sv.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/sv/LC_MESSAGES/tabcmd.mo +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/sv/LC_MESSAGES/tabcmd.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/sv/LC_MESSAGES/tabcmd_messages_sv.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/sv/shared_wg_sv.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/sv/tabcmd_messages_sv.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/zh/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/zh/LC_MESSAGES/shared_wg_zh.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/zh/LC_MESSAGES/tabcmd.mo +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/zh/LC_MESSAGES/tabcmd.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/zh/LC_MESSAGES/tabcmd_messages_zh.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/zh/LC_MESSAGES/zh.po +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/zh/shared_wg_zh.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd/locales/zh/tabcmd_messages_zh.properties +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd.egg-info/dependency_links.txt +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd.egg-info/entry_points.txt +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd.egg-info/top_level.txt +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tabcmd.spec +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/assets/World Indicators.tds +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/assets/World Indicators.tdsx +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/commands/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/commands/test_credential_file.txt +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/commands/test_projects_utils.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/commands/test_server_handler.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/commands/test_user_utils.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/e2e/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/e2e/language_tests.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/e2e/tests.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/__init__.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/common_setup.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_login_parser.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_logout_parser.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_add_user.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_create_extracts.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_create_group.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_create_project.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_create_site.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_create_site_users.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_create_user.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_decrypt_extracts.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_delete.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_delete_extracts.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_delete_group.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_delete_project.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_delete_site.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_delete_site_user.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_edit_site.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_encrypt_extracts.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_export.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_get_url.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_list_sites.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_login.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_publish_samples.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_reencrypt_extracts.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_refresh_extracts.py +0 -0
- {tabcmd-2.0.8 → tabcmd-2.0.14}/tests/parsers/test_parser_remove_user.py +0 -0
- {tabcmd-2.0.8 → 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@
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
21
|
|
|
22
22
|
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
|
|
23
|
-
uses: actions/setup-python@
|
|
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@
|
|
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@
|
|
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@
|
|
56
|
+
uses: github/codeql-action/analyze@v3
|
|
57
57
|
with:
|
|
58
58
|
category: "/language:${{matrix.language}}"
|
|
@@ -26,28 +26,37 @@ jobs:
|
|
|
26
26
|
TARGET: windows
|
|
27
27
|
CMD_BUILD: >
|
|
28
28
|
pyinstaller tabcmd-windows.spec --clean --noconfirm --distpath ./dist/windows
|
|
29
|
-
OUT_FILE_NAME: tabcmd
|
|
29
|
+
OUT_FILE_NAME: tabcmd.exe
|
|
30
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
|
|
31
39
|
- os: macos-latest
|
|
32
40
|
TARGET: macos
|
|
33
41
|
CMD_BUILD: >
|
|
34
|
-
pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos
|
|
35
|
-
|
|
36
|
-
OUT_FILE_NAME: tabcmd
|
|
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
|
|
37
46
|
ASSET_MIME: application/zip
|
|
38
47
|
- os: ubuntu-latest
|
|
39
48
|
TARGET: ubuntu
|
|
40
49
|
# https://stackoverflow.com/questions/31259856
|
|
41
50
|
# /how-to-create-an-executable-file-for-linux-machine-using-pyinstaller
|
|
42
51
|
CMD_BUILD: >
|
|
43
|
-
pyinstaller --clean -y --distpath ./dist/
|
|
44
|
-
chown -R --reference=. ./dist/
|
|
45
|
-
OUT_FILE_NAME:
|
|
52
|
+
pyinstaller --clean -y --distpath ./dist/ubuntu tabcmd-linux.spec &&
|
|
53
|
+
chown -R --reference=. ./dist/ubuntu
|
|
54
|
+
OUT_FILE_NAME: tabcmd
|
|
46
55
|
|
|
47
56
|
steps:
|
|
48
|
-
- uses: actions/checkout@
|
|
57
|
+
- uses: actions/checkout@v4
|
|
49
58
|
|
|
50
|
-
- uses: actions/setup-python@
|
|
59
|
+
- uses: actions/setup-python@v5
|
|
51
60
|
with:
|
|
52
61
|
python-version: 3.8
|
|
53
62
|
|
|
@@ -64,12 +73,31 @@ jobs:
|
|
|
64
73
|
- name: Package with pyinstaller for ${{matrix.TARGET}}
|
|
65
74
|
run: ${{matrix.CMD_BUILD}}
|
|
66
75
|
|
|
67
|
-
- name:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
|
72
101
|
with:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
name: ${{ matrix.OUT_FILE_NAME}} # name pattern to upload the file as
|
|
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@
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
19
|
with:
|
|
20
20
|
fetch-depth: 0
|
|
21
|
-
- uses: actions/setup-python@
|
|
21
|
+
- uses: actions/setup-python@v5
|
|
22
22
|
with:
|
|
23
23
|
python-version: 3.8
|
|
24
24
|
- name: Build dist files
|
|
@@ -23,10 +23,10 @@ jobs:
|
|
|
23
23
|
runs-on: ${{ matrix.os }}
|
|
24
24
|
|
|
25
25
|
steps:
|
|
26
|
-
- uses: actions/checkout@
|
|
26
|
+
- uses: actions/checkout@v4
|
|
27
27
|
|
|
28
28
|
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
|
|
29
|
-
uses: actions/setup-python@
|
|
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.
|
|
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@
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
24
|
|
|
25
25
|
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
|
|
26
|
-
uses: actions/setup-python@
|
|
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
|
-
*.
|
|
32
|
+
# *.twbx
|
|
33
|
+
# *.hyper
|
|
34
|
+
# *.twb
|
|
35
|
+
# *.twbr
|
|
36
|
+
# *.tdsx
|
|
38
37
|
**/credentials.py
|
|
39
|
-
|
|
38
|
+
# exceptions
|
|
39
|
+
!tests/assets/
|
|
40
40
|
|
|
41
41
|
# doit
|
|
42
42
|
.doit.*
|
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,74 +5,33 @@
|
|
|
5
5
|
[](https://github.com/tableau/tabcmd/actions/workflows/run-tests.yml)
|
|
6
6
|
[](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
|
|
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
|
|
12
|
-
* To download the latest release
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
```
|
|
16
|
+
> [!TIP]
|
|
17
|
+
> You can also download the current latest release directly on the command line:
|
|
18
|
+
> ```shell
|
|
19
|
+
> pip install tabcmd
|
|
20
|
+
> ```
|
|
28
21
|
|
|
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*
|
|
31
22
|
|
|
32
|
-
|
|
33
|
-
pip install git+https://github.com/tableau/tabcmd.git@development
|
|
34
|
-
```
|
|
35
|
-
|
|
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
|
-
|
|
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
|
-
- To package a release, we first bump the version with `doit version` and build as 2.x.0 before packaging
|
|
68
|
-
> pyinstaller tabcmd\tabcmd.py --clean --noconfirm
|
|
69
|
-
|
|
70
|
-
produces dist/tabcmd.exe
|
|
71
|
-
To run tabcmd during development, from a console window in the same directory as the file tabcmd.py:
|
|
72
|
-
|
|
73
|
-
> dist/tabcmd/tabcmd.exe --help
|
|
74
34
|
|
|
75
|
-
* `python -m tabcmd.py [command_name] [--flags]`
|
|
76
35
|
* Examples:
|
|
77
36
|
* `tabcmd.py login --username [username] --password [password] --server [server_name] --site [site_name]`
|
|
78
37
|
* `tabcmd.py createproject --name [project_name]`
|
|
@@ -83,21 +42,12 @@ see the user documentation at https://tableau.github.io/tabcmd/
|
|
|
83
42
|
|
|
84
43
|
|
|
85
44
|
## Release Notes
|
|
86
|
-
Version 2
|
|
45
|
+
Version 2 is the first version of tabcmd built in python.
|
|
87
46
|
It is specifically targeted to support users of Tableau Online, who are required to have MFA enabled.
|
|
88
|
-
(MFA support is not available in tabcmd
|
|
89
|
-
**Known gaps**
|
|
90
|
-
- handling custom views in get/export commands
|
|
91
|
-
- several commands that can only be run by a Server Admin:
|
|
92
|
-
- editdomain / listdomains
|
|
93
|
-
- initialuser
|
|
94
|
-
- reset_openid_sub
|
|
95
|
-
- runschedule
|
|
96
|
-
- set
|
|
97
|
-
- syncgroup
|
|
98
|
-
- upgradethumbnails
|
|
99
|
-
- validateidpmetadata
|
|
47
|
+
(MFA support is not available in the tabcmd program that ships with Tableau Server).
|
|
100
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)
|
|
101
51
|
|
|
102
52
|
## About
|
|
103
53
|
|
|
@@ -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
|
-
|
|
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
|
-
"
|
|
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
|
|
56
|
-
"urllib3
|
|
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
|
|
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/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
|
|
3
|
+
try:
|
|
4
|
+
from tabcmd.tabcmd import main
|
|
5
|
+
except ImportError as e:
|
|
6
|
+
print("Exception thrown running program: `{}`, `{}`".format(e, e.__context__), file=sys.stderr)
|
|
7
|
+
print("[Possible cause: Tabcmd needs to be run as a module, try running `python -m tabcmd`]", file=sys.stderr)
|
|
8
|
+
sys.exit(1)
|
|
9
|
+
|
|
10
|
+
if __name__ == "__main__":
|
|
11
|
+
main()
|