tabcmd 2.0.13__tar.gz → 2.0.17__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.13 → tabcmd-2.0.17}/.github/workflows/generate-metadata.yml +1 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/.github/workflows/package.yml +45 -10
- {tabcmd-2.0.13 → tabcmd-2.0.17}/.github/workflows/publish-pypi.yml +1 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/.github/workflows/run-e2-tests.yml +1 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/.github/workflows/run-tests.yml +1 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/.gitignore +12 -11
- tabcmd-2.0.17/PKG-INFO +72 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/README.md +15 -58
- {tabcmd-2.0.13 → tabcmd-2.0.17}/bin/i18n/msgfmt.py +5 -4
- {tabcmd-2.0.13 → tabcmd-2.0.17}/bin/i18n/prop2po.py +18 -11
- tabcmd-2.0.17/contributing.md +167 -0
- tabcmd-2.0.17/dodo.py +348 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/pyproject.toml +7 -9
- tabcmd-2.0.17/res/README.md +5 -0
- tabcmd-2.0.17/res/metadata.yml +7 -0
- tabcmd-2.0.17/tabcmd/__main__.py +17 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/constants.py +6 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/datasources_and_workbooks/datasources_and_workbooks_command.py +43 -14
- tabcmd-2.0.17/tabcmd/commands/datasources_and_workbooks/datasources_workbooks_views_url_parser.py +198 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/datasources_and_workbooks/export_command.py +33 -41
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/datasources_and_workbooks/get_url_command.py +43 -114
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/datasources_and_workbooks/publish_command.py +27 -20
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/datasources_and_workbooks/runschedule_command.py +1 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/extracts/create_extracts_command.py +1 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/extracts/refresh_extracts_command.py +2 -5
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/group/create_group_command.py +1 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/group/delete_group_command.py +1 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/project/create_project_command.py +2 -2
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/project/publish_samples_command.py +4 -2
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/server.py +49 -26
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/site/list_command.py +0 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/site/list_sites_command.py +2 -3
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/user/add_users_command.py +1 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/user/create_site_users.py +2 -2
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/user/create_users_command.py +3 -3
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/user/delete_site_users_command.py +1 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/user/remove_users_command.py +1 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/user/user_data.py +16 -10
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/execution/global_options.py +14 -6
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/execution/localize.py +16 -9
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/execution/parent_parser.py +10 -1
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/execution/tabcmd_controller.py +13 -7
- tabcmd-2.0.17/tabcmd/locales/de/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.17/tabcmd/locales/de/extra.properties +23 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/de/shared_wg_de.properties +219 -171
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/de/tabcmd_messages_de.properties +169 -133
- tabcmd-2.0.17/tabcmd/locales/en/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.17/tabcmd/locales/en/extra.properties +22 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/en/shared_wg_en.properties +91 -35
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/en/tabcmd_messages_en.properties +39 -5
- tabcmd-2.0.17/tabcmd/locales/es/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.17/tabcmd/locales/es/extra.properties +23 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/es/shared_wg_es.properties +186 -138
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/es/tabcmd_messages_es.properties +143 -107
- tabcmd-2.0.17/tabcmd/locales/fr/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.17/tabcmd/locales/fr/extra.properties +22 -0
- tabcmd-2.0.17/tabcmd/locales/fr/shared_wg_fr.properties +529 -0
- tabcmd-2.0.17/tabcmd/locales/fr/tabcmd_messages_fr.properties +438 -0
- tabcmd-2.0.17/tabcmd/locales/ga/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.17/tabcmd/locales/ga/extra.properties +23 -0
- tabcmd-2.0.17/tabcmd/locales/ga/shared_wg_ga.properties +529 -0
- tabcmd-2.0.17/tabcmd/locales/ga/tabcmd_messages_ga.properties +438 -0
- tabcmd-2.0.17/tabcmd/locales/it/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.17/tabcmd/locales/it/extra.properties +22 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/it/shared_wg_it.properties +248 -200
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/it/tabcmd_messages_it.properties +211 -175
- tabcmd-2.0.17/tabcmd/locales/ja/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.17/tabcmd/locales/ja/extra.properties +22 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/ja/shared_wg_ja.properties +205 -157
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/ja/tabcmd_messages_ja.properties +152 -116
- tabcmd-2.0.17/tabcmd/locales/ko/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.17/tabcmd/locales/ko/extra.properties +23 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/ko/shared_wg_ko.properties +181 -133
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/ko/tabcmd_messages_ko.properties +135 -99
- tabcmd-2.0.17/tabcmd/locales/pt/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.17/tabcmd/locales/pt/extra.properties +23 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/pt/shared_wg_pt.properties +187 -139
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/pt/tabcmd_messages_pt.properties +136 -100
- tabcmd-2.0.17/tabcmd/locales/sv/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.17/tabcmd/locales/sv/extra.properties +22 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/sv/shared_wg_sv.properties +201 -153
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/sv/tabcmd_messages_sv.properties +190 -154
- tabcmd-2.0.17/tabcmd/locales/zh/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.17/tabcmd/locales/zh/extra.properties +23 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/zh/shared_wg_zh.properties +113 -65
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/zh/tabcmd_messages_zh.properties +98 -62
- tabcmd-2.0.17/tabcmd-linux.spec +61 -0
- tabcmd-2.0.17/tabcmd-mac.spec +60 -0
- tabcmd-2.0.17/tabcmd-windows.spec +60 -0
- tabcmd-2.0.17/tabcmd.egg-info/PKG-INFO +72 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd.egg-info/SOURCES.txt +20 -46
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd.egg-info/requires.txt +3 -4
- tabcmd-2.0.17/tests/assets/EmbeddedCredentials.twb +977 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/assets/SampleDS.tds +1 -1
- tabcmd-2.0.17/tests/assets/WorkbookWithExtract.twbx +0 -0
- tabcmd-2.0.17/tests/assets/WorkbookWithoutExtract.twbx +0 -0
- tabcmd-2.0.17/tests/assets/simple-data.twbx +0 -0
- tabcmd-2.0.17/tests/assets/usernames.csv +1 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/commands/test_datasources_and_workbooks_command.py +18 -3
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/commands/test_execution.py +1 -2
- tabcmd-2.0.17/tests/commands/test_geturl_utils.py +447 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/commands/test_localize.py +19 -8
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/commands/test_projects_utils.py +5 -1
- tabcmd-2.0.17/tests/commands/test_publish_command.py +97 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/commands/test_run_commands.py +10 -10
- tabcmd-2.0.17/tests/commands/test_server.py +113 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/commands/test_session.py +2 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/e2e/online_tests.py +116 -63
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/e2e/setup_e2e.py +2 -2
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_create_site_users.py +20 -0
- tabcmd-2.0.13/PKG-INFO +0 -180
- tabcmd-2.0.13/World Indicators.tdsx +0 -0
- tabcmd-2.0.13/WorldIndicators.tdsx +0 -0
- tabcmd-2.0.13/contributing.md +0 -107
- tabcmd-2.0.13/dodo.py +0 -200
- tabcmd-2.0.13/res/metadata.yml +0 -7
- tabcmd-2.0.13/tabcmd/__main__.py +0 -11
- tabcmd-2.0.13/tabcmd/locales/de/LC_MESSAGES/de.po +0 -68
- tabcmd-2.0.13/tabcmd/locales/de/LC_MESSAGES/shared_wg_de.po +0 -1789
- tabcmd-2.0.13/tabcmd/locales/de/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.13/tabcmd/locales/de/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.13/tabcmd/locales/de/LC_MESSAGES/tabcmd_messages_de.po +0 -1416
- tabcmd-2.0.13/tabcmd/locales/en/LC_MESSAGES/en-US.po +0 -83
- tabcmd-2.0.13/tabcmd/locales/en/LC_MESSAGES/shared_wg_en.po +0 -1789
- tabcmd-2.0.13/tabcmd/locales/en/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.13/tabcmd/locales/en/LC_MESSAGES/tabcmd.po +0 -3278
- tabcmd-2.0.13/tabcmd/locales/en/LC_MESSAGES/tabcmd_messages_en.po +0 -1416
- tabcmd-2.0.13/tabcmd/locales/es/LC_MESSAGES/es.po +0 -68
- tabcmd-2.0.13/tabcmd/locales/es/LC_MESSAGES/shared_wg_es.po +0 -1789
- tabcmd-2.0.13/tabcmd/locales/es/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.13/tabcmd/locales/es/LC_MESSAGES/tabcmd.po +0 -3276
- tabcmd-2.0.13/tabcmd/locales/es/LC_MESSAGES/tabcmd_messages_es.po +0 -1416
- tabcmd-2.0.13/tabcmd/locales/fr/LC_MESSAGES/fr.po +0 -68
- tabcmd-2.0.13/tabcmd/locales/fr/LC_MESSAGES/shared_wg_fr.po +0 -1789
- tabcmd-2.0.13/tabcmd/locales/fr/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.13/tabcmd/locales/fr/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.13/tabcmd/locales/fr/LC_MESSAGES/tabcmd_messages_fr.po +0 -1416
- tabcmd-2.0.13/tabcmd/locales/fr/shared_wg_fr.properties +0 -481
- tabcmd-2.0.13/tabcmd/locales/fr/tabcmd_messages_fr.properties +0 -402
- tabcmd-2.0.13/tabcmd/locales/ga/LC_MESSAGES/ga.po +0 -68
- tabcmd-2.0.13/tabcmd/locales/ga/LC_MESSAGES/shared_wg_ga.po +0 -1792
- tabcmd-2.0.13/tabcmd/locales/ga/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.13/tabcmd/locales/ga/LC_MESSAGES/tabcmd.po +0 -3278
- tabcmd-2.0.13/tabcmd/locales/ga/LC_MESSAGES/tabcmd_messages_ga.po +0 -1416
- tabcmd-2.0.13/tabcmd/locales/ga/shared_wg_ga.properties +0 -481
- tabcmd-2.0.13/tabcmd/locales/ga/tabcmd_messages_ga.properties +0 -402
- tabcmd-2.0.13/tabcmd/locales/it/LC_MESSAGES/it.po +0 -68
- tabcmd-2.0.13/tabcmd/locales/it/LC_MESSAGES/shared_wg_it.po +0 -1789
- tabcmd-2.0.13/tabcmd/locales/it/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.13/tabcmd/locales/it/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.13/tabcmd/locales/it/LC_MESSAGES/tabcmd_messages_it.po +0 -1416
- tabcmd-2.0.13/tabcmd/locales/ja/LC_MESSAGES/ja.po +0 -68
- tabcmd-2.0.13/tabcmd/locales/ja/LC_MESSAGES/shared_wg_ja.po +0 -1789
- tabcmd-2.0.13/tabcmd/locales/ja/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.13/tabcmd/locales/ja/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.13/tabcmd/locales/ja/LC_MESSAGES/tabcmd_messages_ja.po +0 -1416
- tabcmd-2.0.13/tabcmd/locales/ko/LC_MESSAGES/ko.po +0 -70
- tabcmd-2.0.13/tabcmd/locales/ko/LC_MESSAGES/shared_wg_ko.po +0 -1789
- tabcmd-2.0.13/tabcmd/locales/ko/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.13/tabcmd/locales/ko/LC_MESSAGES/tabcmd.po +0 -3277
- tabcmd-2.0.13/tabcmd/locales/ko/LC_MESSAGES/tabcmd_messages_ko.po +0 -1416
- tabcmd-2.0.13/tabcmd/locales/pt/LC_MESSAGES/pt.po +0 -68
- tabcmd-2.0.13/tabcmd/locales/pt/LC_MESSAGES/shared_wg_pt.po +0 -1789
- tabcmd-2.0.13/tabcmd/locales/pt/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.13/tabcmd/locales/pt/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.13/tabcmd/locales/pt/LC_MESSAGES/tabcmd_messages_pt.po +0 -1416
- tabcmd-2.0.13/tabcmd/locales/sv/LC_MESSAGES/shared_wg_sv.po +0 -1789
- tabcmd-2.0.13/tabcmd/locales/sv/LC_MESSAGES/sv.po +0 -68
- tabcmd-2.0.13/tabcmd/locales/sv/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.13/tabcmd/locales/sv/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.13/tabcmd/locales/sv/LC_MESSAGES/tabcmd_messages_sv.po +0 -1416
- tabcmd-2.0.13/tabcmd/locales/zh/LC_MESSAGES/shared_wg_zh.po +0 -1789
- tabcmd-2.0.13/tabcmd/locales/zh/LC_MESSAGES/tabcmd.mo +0 -0
- tabcmd-2.0.13/tabcmd/locales/zh/LC_MESSAGES/tabcmd.po +0 -3275
- tabcmd-2.0.13/tabcmd/locales/zh/LC_MESSAGES/tabcmd_messages_zh.po +0 -1416
- tabcmd-2.0.13/tabcmd/locales/zh/LC_MESSAGES/zh.po +0 -68
- tabcmd-2.0.13/tabcmd-linux.spec +0 -49
- tabcmd-2.0.13/tabcmd-mac.spec +0 -51
- tabcmd-2.0.13/tabcmd-windows.spec +0 -49
- tabcmd-2.0.13/tabcmd.egg-info/PKG-INFO +0 -180
- tabcmd-2.0.13/tests/commands/test_geturl_utils.py +0 -194
- {tabcmd-2.0.13 → tabcmd-2.0.17}/.coverage +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/.coveragerc +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/.github/dependabot.yml +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/.github/workflows/check-coverage.yml +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/.github/workflows/codeql-analysis.yml +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/.github/workflows/python-app.yml +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/LICENSE +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/SECURITY.md +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/bin/coverage.sh +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/bin/i18n/makelocalealias.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/bin/i18n/pygettext.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/bin/license-checker.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/bin/pyinstaller.sh +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/res/tabcmd.icns +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/res/tabcmd.ico +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/res/tabcmd.png +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/setup.cfg +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/setup.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/auth/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/auth/login_command.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/auth/logout_command.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/auth/session.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/commands.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/datasources_and_workbooks/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/datasources_and_workbooks/delete_command.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/extracts/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/extracts/decrypt_extracts_command.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/extracts/delete_extracts_command.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/extracts/encrypt_extracts_command.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/extracts/extracts.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/extracts/reencrypt_extracts_command.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/group/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/project/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/project/delete_project_command.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/site/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/site/create_site_command.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/site/delete_site_command.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/site/edit_site_command.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/commands/user/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/execution/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/execution/_version.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/execution/logger_config.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/execution/map_of_commands.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/de/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/es/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/fr/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/ga/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/it/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/ja/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/ko/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/pt/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/sv/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/locales/zh/LC_MESSAGES/.gitkeep +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/tabcmd.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd/version.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd.egg-info/dependency_links.txt +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd.egg-info/entry_points.txt +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd.egg-info/top_level.txt +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tabcmd.spec +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/assets/World Indicators.tds +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/assets/World Indicators.tdsx +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/assets/detailed_users.csv +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/commands/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/commands/test_credential_file.txt +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/commands/test_listing_commands.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/commands/test_server_handler.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/commands/test_user_utils.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/e2e/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/e2e/language_tests.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/e2e/tests.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/e2e/tests_integration.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/__init__.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/common_setup.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_login_parser.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_logout_parser.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_add_user.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_create_extracts.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_create_group.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_create_project.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_create_site.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_create_user.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_decrypt_extracts.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_delete.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_delete_extracts.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_delete_group.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_delete_project.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_delete_site.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_delete_site_user.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_edit_site.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_encrypt_extracts.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_export.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_get_url.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_list_sites.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_login.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_publish.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_publish_samples.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_reencrypt_extracts.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_refresh_extracts.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_remove_user.py +0 -0
- {tabcmd-2.0.13 → tabcmd-2.0.17}/tests/parsers/test_parser_runschedule.py +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: Package-and-Upload
|
|
2
2
|
|
|
3
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
|
|
4
|
+
# This action is intended to build on each of the supported OS's: mac (x86 and arm), windows, linux.
|
|
5
|
+
# and then upload all four files to a new release
|
|
6
6
|
|
|
7
7
|
# reference material:
|
|
8
8
|
# https://data-dive.com/multi-os-deployment-in-cloud-using-pyinstaller-and-github-actions
|
|
9
9
|
# https://anshumanfauzdar.medium.com/using-github-actions-to-bundle-python-application-into-a-single-package-and-automatic-release-834bd42e0670
|
|
10
10
|
|
|
11
11
|
on:
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
push:
|
|
13
|
+
tags:
|
|
14
|
+
- '*'
|
|
14
15
|
workflow_dispatch:
|
|
15
16
|
|
|
16
17
|
jobs:
|
|
@@ -26,13 +27,27 @@ jobs:
|
|
|
26
27
|
TARGET: windows
|
|
27
28
|
CMD_BUILD: >
|
|
28
29
|
pyinstaller tabcmd-windows.spec --clean --noconfirm --distpath ./dist/windows
|
|
30
|
+
UPLOAD_FILE_NAME: tabcmd.exe
|
|
29
31
|
OUT_FILE_NAME: tabcmd.exe
|
|
30
32
|
ASSET_MIME: application/vnd.microsoft.portable-executable
|
|
33
|
+
- os: macos-13
|
|
34
|
+
TARGET: macos
|
|
35
|
+
CMD_BUILD: >
|
|
36
|
+
pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/
|
|
37
|
+
# the extension .app is not allowed as an upload by github
|
|
38
|
+
UPLOAD_FILE_NAME: tabcmd-x86.app.tar
|
|
39
|
+
# these two names must match the output defined in tabcmd-mac.spec
|
|
40
|
+
OUT_FILE_NAME: tabcmd.app
|
|
41
|
+
APP_BINARY_FILE_NAME: tabcmd
|
|
42
|
+
ASSET_MIME: application/zip
|
|
31
43
|
- os: macos-latest
|
|
44
|
+
# This must match the value set in tabcmd-mac.spec for the output folder
|
|
32
45
|
TARGET: macos
|
|
33
46
|
CMD_BUILD: >
|
|
34
|
-
pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos
|
|
47
|
+
pyinstaller tabcmd-mac.spec --clean --noconfirm --distpath ./dist/macos/
|
|
48
|
+
UPLOAD_FILE_NAME: tabcmd_arm64.app.tar
|
|
35
49
|
OUT_FILE_NAME: tabcmd.app
|
|
50
|
+
APP_BINARY_FILE_NAME: tabcmd
|
|
36
51
|
ASSET_MIME: application/zip
|
|
37
52
|
- os: ubuntu-latest
|
|
38
53
|
TARGET: ubuntu
|
|
@@ -42,13 +57,14 @@ jobs:
|
|
|
42
57
|
pyinstaller --clean -y --distpath ./dist/ubuntu tabcmd-linux.spec &&
|
|
43
58
|
chown -R --reference=. ./dist/ubuntu
|
|
44
59
|
OUT_FILE_NAME: tabcmd
|
|
60
|
+
UPLOAD_FILE_NAME: tabcmd
|
|
45
61
|
|
|
46
62
|
steps:
|
|
47
63
|
- uses: actions/checkout@v4
|
|
48
64
|
|
|
49
65
|
- uses: actions/setup-python@v5
|
|
50
66
|
with:
|
|
51
|
-
python-version: 3.
|
|
67
|
+
python-version: 3.9
|
|
52
68
|
|
|
53
69
|
- name: Install dependencies and build
|
|
54
70
|
run: |
|
|
@@ -64,9 +80,28 @@ jobs:
|
|
|
64
80
|
run: ${{matrix.CMD_BUILD}}
|
|
65
81
|
|
|
66
82
|
- name: Validate package for ${{matrix.TARGET}}
|
|
83
|
+
if: matrix.TARGET != 'macos'
|
|
67
84
|
run: ./dist/${{ matrix.TARGET }}/${{matrix.OUT_FILE_NAME}}
|
|
68
85
|
|
|
69
|
-
-
|
|
86
|
+
- name: Validate package for Mac
|
|
87
|
+
if: matrix.TARGET == 'macos'
|
|
88
|
+
run: ./dist/${{ matrix.TARGET }}/${{ matrix.OUT_FILE_NAME }}/Contents/MacOS/${{ matrix.APP_BINARY_FILE_NAME }}
|
|
89
|
+
|
|
90
|
+
- name: Tar app bundle for Mac
|
|
91
|
+
if: matrix.TARGET == 'macos'
|
|
92
|
+
run: |
|
|
93
|
+
rm -f dist/${{ matrix.TARGET }}/${{ matrix.APP_BINARY_FILE_NAME }}
|
|
94
|
+
cd dist/${{ matrix.TARGET }}
|
|
95
|
+
tar -cvf ${{ matrix.UPLOAD_FILE_NAME }} ${{ matrix.OUT_FILE_NAME }}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
- name: Upload binaries to release for ${{ matrix.TARGET }}
|
|
99
|
+
uses: svenstaro/upload-release-action@v2
|
|
70
100
|
with:
|
|
71
|
-
|
|
72
|
-
|
|
101
|
+
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
102
|
+
asset_name: ${{ matrix.UPLOAD_FILE_NAME }}
|
|
103
|
+
file: ./dist/${{ matrix.TARGET }}/${{ matrix.UPLOAD_FILE_NAME }}
|
|
104
|
+
tag: ${{ github.ref_name }}
|
|
105
|
+
overwrite: true
|
|
106
|
+
promote: true
|
|
107
|
+
|
|
@@ -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,23 +23,27 @@ 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.*
|
|
43
43
|
|
|
44
|
+
# localization intermediate files
|
|
45
|
+
*.po
|
|
46
|
+
|
|
44
47
|
# venv
|
|
45
48
|
site-packages
|
|
46
49
|
|
|
@@ -48,6 +51,4 @@ site-packages
|
|
|
48
51
|
tabcmd-dev
|
|
49
52
|
workon
|
|
50
53
|
test.junit.xml
|
|
51
|
-
|
|
52
|
-
# exceptions
|
|
53
|
-
!tests/assets/detailed_users.csv
|
|
54
|
+
*.out
|
tabcmd-2.0.17/PKG-INFO
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: tabcmd
|
|
3
|
+
Version: 2.0.17
|
|
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.35
|
|
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,76 +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
|
|
24
15
|
|
|
25
|
-
|
|
16
|
+
> [!TIP]
|
|
17
|
+
> You can also download the current latest release directly on the command line:
|
|
18
|
+
> ```shell
|
|
19
|
+
> pip install tabcmd
|
|
20
|
+
> ```
|
|
26
21
|
|
|
27
|
-
```shell
|
|
28
|
-
pip install tabcmd
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Or install the current work-in-progress version from Git\
|
|
32
|
-
*Only do this if you know you want the development version, no guarantee that we won't break APIs during development*
|
|
33
22
|
|
|
34
|
-
|
|
35
|
-
pip install git+https://github.com/tableau/tabcmd.git@development
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
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
|
|
39
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.
|
|
40
26
|
```shell
|
|
41
|
-
|
|
27
|
+
tabcmd [command_name] [--flags]
|
|
42
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`
|
|
43
33
|
|
|
44
|
-
### Run tabcmd
|
|
45
|
-
|
|
46
|
-
To run tabcmd from your local copy, from a console window in the same directory as the file tabcmd.py:
|
|
47
|
-
|
|
48
|
-
1. Clone the repo
|
|
49
|
-
2. Run `pip install .`
|
|
50
|
-
|
|
51
|
-
- build
|
|
52
|
-
> python setup.py build
|
|
53
|
-
|
|
54
|
-
- run tests
|
|
55
|
-
> pytest
|
|
56
|
-
- run tests against a live server
|
|
57
|
-
> python -m tabcmd login {your server info here}
|
|
58
|
-
> pytest -q tests\e2e\online_tests.py -r pfE
|
|
59
|
-
- with coverage calculation (https://coverage.readthedocs.io/en/6.3.2)
|
|
60
|
-
> coverage run -m pytest && coverage report -m
|
|
61
|
-
|
|
62
|
-
- autoformat your code with black (https://pypi.org/project/black/)
|
|
63
|
-
> black --line-length 120 tabcmd tests [--check]
|
|
64
|
-
|
|
65
|
-
- type check with mypy
|
|
66
|
-
> mypy tabcmd tests
|
|
67
|
-
|
|
68
|
-
- packaging is done with pyinstaller. You can only build an executable for the platform you build on.
|
|
69
|
-
- To package a release, we first bump the version with `doit version` and build as 2.x.0 before packaging
|
|
70
|
-
> pyinstaller tabcmd\tabcmd.py --clean --noconfirm
|
|
71
|
-
|
|
72
|
-
produces dist/tabcmd.exe
|
|
73
|
-
To run tabcmd during development, from a console window in the same directory as the file tabcmd.py:
|
|
74
|
-
|
|
75
|
-
> dist/tabcmd/tabcmd.exe --help
|
|
76
34
|
|
|
77
|
-
* `python -m tabcmd.py [command_name] [--flags]`
|
|
78
35
|
* Examples:
|
|
79
36
|
* `tabcmd.py login --username [username] --password [password] --server [server_name] --site [site_name]`
|
|
80
37
|
* `tabcmd.py createproject --name [project_name]`
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#! /usr/bin/env python3
|
|
2
2
|
# Written by Martin v. Löwis <loewis@informatik.hu-berlin.de>
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
"""
|
|
4
|
+
Fetched from https://github.com/python/cpython/blob/main/Tools/i18n/msgfmt.py
|
|
5
|
+
Updated to handle utf-8 files and give better error messages
|
|
5
6
|
TODO contribute back?
|
|
6
7
|
"""
|
|
7
8
|
|
|
@@ -107,7 +108,7 @@ def make(filename, outfile):
|
|
|
107
108
|
CTXT = 3
|
|
108
109
|
|
|
109
110
|
encoding = 'utf-8'
|
|
110
|
-
print("Assumed encoding", encoding)
|
|
111
|
+
print("msgfmt::Assumed encoding", encoding)
|
|
111
112
|
|
|
112
113
|
# Compute .mo name from .po name and arguments
|
|
113
114
|
if filename.endswith('.po'):
|
|
@@ -195,7 +196,7 @@ def make(filename, outfile):
|
|
|
195
196
|
try:
|
|
196
197
|
l = ast.literal_eval(l)
|
|
197
198
|
except:
|
|
198
|
-
print("
|
|
199
|
+
print("\tERROR (skipped)", lno, msgid)
|
|
199
200
|
pass
|
|
200
201
|
if section == CTXT:
|
|
201
202
|
msgctxt += l.encode(encoding)
|
|
@@ -5,7 +5,7 @@ TO DO: contribute changes back and go back to installing from pypi
|
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
import click
|
|
8
|
-
|
|
8
|
+
from datetime import datetime
|
|
9
9
|
|
|
10
10
|
@click.command()
|
|
11
11
|
@click.argument('source', type=click.File('rt', encoding='utf-8'))
|
|
@@ -13,36 +13,43 @@ import click
|
|
|
13
13
|
@click.option('-l', '--language', type=click.STRING, help='The translation language')
|
|
14
14
|
@click.option('-p', '--project', type=click.STRING, help='The name of the project')
|
|
15
15
|
@click.option('-e', '--encoding', type=click.STRING, help='The encoding wanted')
|
|
16
|
-
|
|
16
|
+
@click.option('-c', '--copyright', type=click.STRING, help='The person/organization holding copyright')
|
|
17
|
+
def to_po(source, destination, encoding, language, project, copyright):
|
|
17
18
|
"""Converts a property file to a Gettext PO file.
|
|
18
19
|
|
|
19
20
|
SOURCE is the path of the property file to convert.
|
|
20
21
|
|
|
21
22
|
DESTINATION is the path of the Gettext PO file to create
|
|
22
23
|
"""
|
|
23
|
-
|
|
24
|
+
year = datetime.now().strftime('%Y')
|
|
24
25
|
header = """msgid ""
|
|
25
26
|
msgstr ""
|
|
26
|
-
"MIME-Version: 1.0\\n"
|
|
27
|
-
"Content-Type: text/plain; charset={encoding}\\n"
|
|
27
|
+
"MIME-Version: 1.0\\n\\n"
|
|
28
|
+
"Content-Type: text/plain; charset={encoding}\\n\\n"
|
|
28
29
|
"Content-Transfer-Encoding: 8bit\\n"
|
|
29
30
|
"X-Generator: prop2po\\n"
|
|
30
31
|
"Project-Id-Version: {project}\\n"
|
|
31
32
|
"Language: {language}\\n"
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
# Copyright (C) {year} {copyright}
|
|
34
|
+
"""
|
|
35
|
+
|
|
34
36
|
lines = source.readlines()
|
|
35
|
-
print(lines)
|
|
36
37
|
destination.write(header.format(
|
|
37
38
|
language=language,
|
|
38
39
|
project=project,
|
|
39
|
-
encoding=encoding
|
|
40
|
+
encoding=encoding,
|
|
41
|
+
year=year,
|
|
42
|
+
copyright=copyright
|
|
40
43
|
))
|
|
41
44
|
for line in lines:
|
|
42
45
|
if not line.isspace():
|
|
43
|
-
|
|
46
|
+
# Split only on the first instance of '=' so that the character can also appear in the string
|
|
47
|
+
parts = line.split('=', 1)
|
|
44
48
|
# TODO it fails on comments/lines with less than two parts after splitting
|
|
45
|
-
|
|
49
|
+
try:
|
|
50
|
+
destination.write('#:\n' + 'msgid "' + parts[0] + '"\n' 'msgstr "' + parts[1][:-1] + '"\n\n')
|
|
51
|
+
except IndexError as e:
|
|
52
|
+
print("FAILED on line{}".format(line))
|
|
46
53
|
|
|
47
54
|
|
|
48
55
|
if __name__ == '__main__':
|
|
@@ -0,0 +1,167 @@
|
|
|
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 --distpath .\dist\windows
|
|
117
|
+
|
|
118
|
+
produces dist\windows\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\windows\tabcmd.exe --help
|
|
122
|
+
> dist\windows\tabcmd.exe publish --country FR --language FR cookie.twbx
|
|
123
|
+
|
|
124
|
+
To investigate what's packaged in the executable, use https://pyinstxtractor-web.netlify.app/
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### Localization
|
|
129
|
+
|
|
130
|
+
Strings are stored in /tabcmd/locales/[language]/*.properties by id and referred to in code as
|
|
131
|
+
> string = _("string.id")
|
|
132
|
+
|
|
133
|
+
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:
|
|
134
|
+
> doit properties po mo
|
|
135
|
+
You can also check that there are no malformed/forgotten message keys in the code with
|
|
136
|
+
> doit strings
|
|
137
|
+
|
|
138
|
+
### Versioning
|
|
139
|
+
|
|
140
|
+
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.
|
|
141
|
+
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.)
|
|
142
|
+
The version reflected in the executable (tabcmd -v) is stored in a metadata file created by a .doit script:
|
|
143
|
+
> doit version
|
|
144
|
+
|
|
145
|
+
## Release process
|
|
146
|
+
|
|
147
|
+
1. Create a new Github project release manually: https://docs.github.com/en/repositories/releasing-projects-on-github/about-releases
|
|
148
|
+
- include a useful list of changes since the last release
|
|
149
|
+
- include a clear list of remaining non-server-admin functional gaps
|
|
150
|
+
|
|
151
|
+
1. This will trigger our github packaging action to run on 3 different OSs.
|
|
152
|
+
- write an updated metadata file with the correct version number.
|
|
153
|
+
- build the python wheel
|
|
154
|
+
- run pyinstaller to create executables
|
|
155
|
+
- save the executable as an artifact on that job.
|
|
156
|
+
|
|
157
|
+
1. Find the artifacts created by this job and manually copy them to the new release.
|
|
158
|
+
- manually download. They will all be returned as zips
|
|
159
|
+
- unzip the windows.exe and mac.app.tar files and upload those
|
|
160
|
+
- do not unzip the linux app, github doesn't like it. upload as tabcmd.zip
|
|
161
|
+
(Pay attention to what the file type is, github also sends it as a zip if you download with curl etc. TODO: automate workflow with a github action)
|
|
162
|
+
|
|
163
|
+
1. To trigger publishing to pypi run the manual workflow on main with 'pypi'. (TODO: automate trigger)
|
|
164
|
+
|
|
165
|
+
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)
|
|
166
|
+
|
|
167
|
+
|