pyegeria 5.3.9.9.3__py3-none-any.whl → 5.5.3.3__py3-none-any.whl
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.
Potentially problematic release.
This version of pyegeria might be problematic. Click here for more details.
- commands/__init__.py +24 -0
- commands/cat/Dr-Egeria_md-orig.py +2 -2
- commands/cat/__init__.py +1 -17
- commands/cat/collection_actions.py +197 -0
- commands/cat/dr_egeria_command_help.py +372 -0
- commands/cat/dr_egeria_jupyter.py +7 -7
- commands/cat/dr_egeria_md.py +27 -182
- commands/cat/exp_list_glossaries.py +11 -14
- commands/cat/get_asset_graph.py +37 -267
- commands/cat/{get_collection.py → get_collection_tree.py} +10 -18
- commands/cat/get_project_dependencies.py +14 -14
- commands/cat/get_project_structure.py +15 -14
- commands/cat/get_tech_type_elements.py +16 -116
- commands/cat/glossary_actions.py +145 -298
- commands/cat/list_assets.py +3 -11
- commands/cat/list_cert_types.py +17 -63
- commands/cat/list_collections.py +46 -138
- commands/cat/list_deployed_catalogs.py +15 -27
- commands/cat/list_deployed_database_schemas.py +27 -43
- commands/cat/list_deployed_databases.py +16 -31
- commands/cat/list_deployed_servers.py +35 -54
- commands/cat/list_glossaries.py +18 -17
- commands/cat/list_projects.py +10 -12
- commands/cat/list_tech_type_elements.py +21 -37
- commands/cat/list_tech_types.py +13 -25
- commands/cat/list_terms.py +38 -79
- commands/cat/list_todos.py +4 -11
- commands/cat/list_user_ids.py +3 -10
- commands/cat/my_reports.py +559 -0
- commands/cat/run_report.py +394 -0
- commands/cat/run_report_orig.py +528 -0
- commands/cli/egeria.py +222 -247
- commands/cli/egeria_cat.py +68 -81
- commands/cli/egeria_my.py +13 -0
- commands/cli/egeria_ops.py +69 -74
- commands/cli/egeria_tech.py +17 -93
- commands/cli/ops_config.py +3 -6
- commands/{cat/list_categories.py → deprecated/list_data_designer.py} +53 -64
- commands/{cat/list_data_structures.py → deprecated/list_data_structures_full.py} +3 -6
- commands/deprecated/old_get_asset_graph.py +315 -0
- commands/my/__init__.py +0 -2
- commands/my/list_my_profile.py +27 -34
- commands/my/list_my_roles.py +1 -7
- commands/my/monitor_my_todos.py +1 -7
- commands/my/monitor_open_todos.py +6 -7
- commands/my/todo_actions.py +4 -5
- commands/ops/__init__.py +0 -2
- commands/ops/gov_server_actions.py +17 -21
- commands/ops/list_archives.py +17 -38
- commands/ops/list_catalog_targets.py +33 -40
- commands/ops/load_archive.py +35 -26
- commands/ops/{monitor_engine_activity_c.py → monitor_active_engine_activity.py} +51 -82
- commands/ops/{monitor_integ_daemon_status.py → monitor_daemon_status.py} +35 -55
- commands/ops/monitor_engine_activity.py +79 -77
- commands/ops/{monitor_gov_eng_status.py → monitor_engine_status.py} +10 -7
- commands/ops/monitor_platform_status.py +38 -50
- commands/ops/monitor_server_startup.py +6 -11
- commands/ops/monitor_server_status.py +7 -11
- commands/ops/orig_monitor_server_list.py +8 -8
- commands/ops/orig_monitor_server_status.py +1 -5
- commands/ops/refresh_integration_daemon.py +5 -5
- commands/ops/restart_integration_daemon.py +5 -5
- commands/ops/table_integ_daemon_status.py +6 -6
- commands/ops/x_engine_actions.py +7 -7
- commands/tech/__init__.py +0 -2
- commands/tech/{generic_actions.py → element_actions.py} +6 -11
- commands/tech/get_element_info.py +20 -29
- commands/tech/get_guid_info.py +23 -42
- commands/tech/get_tech_details.py +20 -35
- commands/tech/get_tech_type_template.py +28 -39
- commands/tech/list_all_om_type_elements.py +24 -30
- commands/tech/list_all_om_type_elements_x.py +22 -28
- commands/tech/list_all_related_elements.py +19 -28
- commands/tech/list_anchored_elements.py +22 -30
- commands/tech/list_asset_types.py +19 -24
- commands/tech/list_elements_by_classification_by_property_value.py +26 -32
- commands/tech/list_elements_by_property_value.py +19 -25
- commands/tech/list_elements_by_property_value_x.py +20 -28
- commands/tech/list_elements_for_classification.py +28 -41
- commands/tech/list_gov_action_processes.py +16 -27
- commands/tech/list_information_supply_chains.py +22 -30
- commands/tech/list_registered_services.py +14 -26
- commands/tech/list_related_elements_with_prop_value.py +15 -25
- commands/tech/list_related_specification.py +1 -4
- commands/tech/list_relationship_types.py +15 -25
- commands/tech/list_relationships.py +20 -36
- commands/tech/list_solution_blueprints.py +28 -33
- commands/tech/list_solution_components.py +23 -29
- commands/tech/list_solution_roles.py +21 -32
- commands/tech/list_tech_templates.py +51 -54
- commands/tech/list_valid_metadata_values.py +5 -9
- commands/tech/table_tech_templates.py +2 -6
- commands/tech/x_list_related_elements.py +1 -4
- examples/GeoSpatial Products Example.py +524 -0
- examples/Jupyter Notebooks/P-egeria-server-config.ipynb +2137 -0
- examples/Jupyter Notebooks/README.md +2 -0
- examples/Jupyter Notebooks/common/P-environment-check.ipynb +115 -0
- examples/Jupyter Notebooks/common/__init__.py +14 -0
- examples/Jupyter Notebooks/common/common-functions.ipynb +4694 -0
- examples/Jupyter Notebooks/common/environment-check.ipynb +52 -0
- examples/Jupyter Notebooks/common/globals.ipynb +184 -0
- examples/Jupyter Notebooks/common/globals.py +154 -0
- examples/Jupyter Notebooks/common/orig_globals.py +152 -0
- examples/format_sets/all_format_sets.json +910 -0
- examples/format_sets/custom_format_sets.json +268 -0
- examples/format_sets/subset_format_sets.json +187 -0
- examples/format_sets_save_load_example.py +291 -0
- examples/jacquard_data_sets.py +129 -0
- examples/output_formats_example.py +193 -0
- examples/test_jacquard_data_sets.py +54 -0
- examples/test_jacquard_data_sets_scenarios.py +94 -0
- md_processing/__init__.py +90 -0
- md_processing/command_dispatcher.py +33 -0
- md_processing/command_mapping.py +221 -0
- md_processing/data/commands/commands_data_designer.json +537 -0
- md_processing/data/commands/commands_external_reference.json +733 -0
- md_processing/data/commands/commands_feedback.json +155 -0
- md_processing/data/commands/commands_general.json +204 -0
- md_processing/data/commands/commands_glossary.json +218 -0
- md_processing/data/commands/commands_governance.json +3678 -0
- md_processing/data/commands/commands_product_manager.json +865 -0
- md_processing/data/commands/commands_project.json +642 -0
- md_processing/data/commands/commands_solution_architect.json +366 -0
- md_processing/data/commands.json +17568 -0
- md_processing/data/commands_working.json +30641 -0
- md_processing/data/gened_report_specs.py +6584 -0
- md_processing/data/generated_format_sets.json +6533 -0
- md_processing/data/generated_format_sets_old.json +4137 -0
- md_processing/data/generated_format_sets_old.py +45 -0
- md_processing/dr_egeria.py +182 -0
- md_processing/md_commands/__init__.py +3 -0
- md_processing/md_commands/data_designer_commands.py +1276 -0
- md_processing/md_commands/ext_ref_commands.py +530 -0
- md_processing/md_commands/feedback_commands.py +726 -0
- md_processing/md_commands/glossary_commands.py +684 -0
- md_processing/md_commands/governance_officer_commands.py +600 -0
- md_processing/md_commands/product_manager_commands.py +1266 -0
- md_processing/md_commands/project_commands.py +383 -0
- md_processing/md_commands/solution_architect_commands.py +1184 -0
- md_processing/md_commands/view_commands.py +295 -0
- md_processing/md_processing_utils/__init__.py +4 -0
- md_processing/md_processing_utils/common_md_proc_utils.py +1249 -0
- md_processing/md_processing_utils/common_md_utils.py +578 -0
- md_processing/md_processing_utils/determine_width.py +103 -0
- md_processing/md_processing_utils/extraction_utils.py +547 -0
- md_processing/md_processing_utils/gen_report_specs.py +643 -0
- md_processing/md_processing_utils/generate_dr_help.py +193 -0
- md_processing/md_processing_utils/generate_md_cmd_templates.py +144 -0
- md_processing/md_processing_utils/generate_md_templates.py +83 -0
- md_processing/md_processing_utils/md_processing_constants.py +1228 -0
- md_processing/md_processing_utils/message_constants.py +19 -0
- pyegeria/__init__.py +201 -443
- pyegeria/core/__init__.py +40 -0
- pyegeria/core/_base_platform_client.py +574 -0
- pyegeria/core/_base_server_client.py +573 -0
- pyegeria/core/_exceptions.py +457 -0
- pyegeria/core/_globals.py +60 -0
- pyegeria/core/_server_client.py +6073 -0
- pyegeria/core/_validators.py +257 -0
- pyegeria/core/config.py +654 -0
- pyegeria/{create_tech_guid_lists.py → core/create_tech_guid_lists.py} +0 -1
- pyegeria/core/load_config.py +37 -0
- pyegeria/core/logging_configuration.py +207 -0
- pyegeria/core/mcp_adapter.py +144 -0
- pyegeria/core/mcp_server.py +212 -0
- pyegeria/core/utils.py +405 -0
- pyegeria/deprecated/__init__.py +0 -0
- pyegeria/{_client.py → deprecated/_client.py} +62 -24
- pyegeria/{_deprecated_gov_engine.py → deprecated/_deprecated_gov_engine.py} +16 -16
- pyegeria/{classification_manager_omvs.py → deprecated/classification_manager_omvs.py} +1988 -1878
- pyegeria/deprecated/output_formatter_with_machine_keys.py +1127 -0
- pyegeria/{runtime_manager_omvs.py → deprecated/runtime_manager_omvs.py} +216 -229
- pyegeria/{valid_metadata_omvs.py → deprecated/valid_metadata_omvs.py} +93 -93
- pyegeria/{x_action_author_omvs.py → deprecated/x_action_author_omvs.py} +2 -3
- pyegeria/egeria_cat_client.py +25 -51
- pyegeria/egeria_client.py +140 -98
- pyegeria/egeria_config_client.py +48 -24
- pyegeria/egeria_tech_client.py +170 -83
- pyegeria/models/__init__.py +150 -0
- pyegeria/models/collection_models.py +168 -0
- pyegeria/models/models.py +654 -0
- pyegeria/omvs/__init__.py +84 -0
- pyegeria/omvs/action_author.py +342 -0
- pyegeria/omvs/actor_manager.py +5980 -0
- pyegeria/omvs/asset_catalog.py +842 -0
- pyegeria/omvs/asset_maker.py +2736 -0
- pyegeria/omvs/automated_curation.py +4403 -0
- pyegeria/omvs/classification_manager.py +11213 -0
- pyegeria/omvs/collection_manager.py +5780 -0
- pyegeria/omvs/community_matters_omvs.py +468 -0
- pyegeria/{core_omag_server_config.py → omvs/core_omag_server_config.py} +157 -157
- pyegeria/{data_designer_omvs.py → omvs/data_designer.py} +1991 -1691
- pyegeria/omvs/data_discovery.py +869 -0
- pyegeria/omvs/data_engineer.py +372 -0
- pyegeria/omvs/digital_business.py +1133 -0
- pyegeria/omvs/external_links.py +1752 -0
- pyegeria/omvs/feedback_manager.py +834 -0
- pyegeria/{full_omag_server_config.py → omvs/full_omag_server_config.py} +73 -69
- pyegeria/omvs/glossary_manager.py +3231 -0
- pyegeria/omvs/governance_officer.py +3009 -0
- pyegeria/omvs/lineage_linker.py +314 -0
- pyegeria/omvs/location_arena.py +1525 -0
- pyegeria/omvs/metadata_expert.py +668 -0
- pyegeria/omvs/metadata_explorer_omvs.py +2943 -0
- pyegeria/omvs/my_profile.py +1042 -0
- pyegeria/omvs/notification_manager.py +358 -0
- pyegeria/omvs/people_organizer.py +394 -0
- pyegeria/{platform_services.py → omvs/platform_services.py} +113 -193
- pyegeria/omvs/product_manager.py +1825 -0
- pyegeria/omvs/project_manager.py +1907 -0
- pyegeria/omvs/reference_data.py +1140 -0
- pyegeria/omvs/registered_info.py +334 -0
- pyegeria/omvs/runtime_manager.py +2817 -0
- pyegeria/omvs/schema_maker.py +446 -0
- pyegeria/{server_operations.py → omvs/server_operations.py} +27 -26
- pyegeria/omvs/solution_architect.py +6490 -0
- pyegeria/omvs/specification_properties.py +37 -0
- pyegeria/omvs/subject_area.py +1042 -0
- pyegeria/omvs/template_manager_omvs.py +236 -0
- pyegeria/omvs/time_keeper.py +1761 -0
- pyegeria/omvs/valid_metadata.py +3221 -0
- pyegeria/omvs/valid_metadata_lists.py +37 -0
- pyegeria/omvs/valid_type_lists.py +37 -0
- pyegeria/view/__init__.py +28 -0
- pyegeria/view/_output_format_models.py +514 -0
- pyegeria/view/_output_formats.py +14 -0
- pyegeria/view/base_report_formats.py +2719 -0
- pyegeria/view/dr_egeria_reports.py +56 -0
- pyegeria/view/format_set_executor.py +397 -0
- pyegeria/{md_processing_utils.py → view/md_processing_utils.py} +5 -5
- pyegeria/{mermaid_utilities.py → view/mermaid_utilities.py} +2 -154
- pyegeria/view/output_formatter.py +1297 -0
- pyegeria-5.5.3.3.dist-info/METADATA +218 -0
- pyegeria-5.5.3.3.dist-info/RECORD +241 -0
- {pyegeria-5.3.9.9.3.dist-info → pyegeria-5.5.3.3.dist-info}/WHEEL +2 -1
- pyegeria-5.5.3.3.dist-info/entry_points.txt +103 -0
- pyegeria-5.5.3.3.dist-info/top_level.txt +4 -0
- commands/cat/.DS_Store +0 -0
- commands/cat/README.md +0 -16
- commands/cli/txt_custom_v2.tcss +0 -19
- commands/my/README.md +0 -17
- commands/ops/README.md +0 -24
- commands/ops/monitor_asset_events.py +0 -108
- commands/tech/README.md +0 -24
- pyegeria/.DS_Store +0 -0
- pyegeria/README.md +0 -35
- pyegeria/_globals.py +0 -47
- pyegeria/_validators.py +0 -385
- pyegeria/asset_catalog_omvs.py +0 -864
- pyegeria/automated_curation_omvs.py +0 -3765
- pyegeria/collection_manager_omvs.py +0 -2744
- pyegeria/dr.egeria spec.md +0 -9
- pyegeria/egeria_my_client.py +0 -56
- pyegeria/feedback_manager_omvs.py +0 -4573
- pyegeria/glossary_browser_omvs.py +0 -3728
- pyegeria/glossary_manager_omvs.py +0 -2440
- pyegeria/m_test.py +0 -118
- pyegeria/md_processing_helpers.py +0 -58
- pyegeria/md_processing_utils_orig.py +0 -1103
- pyegeria/metadata_explorer_omvs.py +0 -2326
- pyegeria/my_profile_omvs.py +0 -1022
- pyegeria/output_formatter.py +0 -389
- pyegeria/project_manager_omvs.py +0 -1933
- pyegeria/registered_info.py +0 -167
- pyegeria/solution_architect_omvs.py +0 -2156
- pyegeria/template_manager_omvs.py +0 -1414
- pyegeria/utils.py +0 -197
- pyegeria-5.3.9.9.3.dist-info/METADATA +0 -72
- pyegeria-5.3.9.9.3.dist-info/RECORD +0 -143
- pyegeria-5.3.9.9.3.dist-info/entry_points.txt +0 -99
- /pyegeria/{_exceptions.py → deprecated/_exceptions.py} +0 -0
- {pyegeria-5.3.9.9.3.dist-info → pyegeria-5.5.3.3.dist-info/licenses}/LICENSE +0 -0
commands/cli/egeria.py
CHANGED
|
@@ -14,9 +14,14 @@ import sys
|
|
|
14
14
|
|
|
15
15
|
import click
|
|
16
16
|
from trogon import tui
|
|
17
|
+
from loguru import logger
|
|
17
18
|
|
|
19
|
+
from pyegeria import config_logging, settings
|
|
20
|
+
|
|
21
|
+
from commands.cat.my_reports import start_exp2
|
|
22
|
+
from commands.cat.run_report import list_generic
|
|
18
23
|
from commands.cat.get_asset_graph import asset_viewer
|
|
19
|
-
from commands.cat.
|
|
24
|
+
from commands.cat.get_collection_tree import collection_viewer
|
|
20
25
|
from commands.cat.get_project_dependencies import project_dependency_viewer
|
|
21
26
|
from commands.cat.get_project_structure import project_structure_viewer
|
|
22
27
|
from commands.cat.get_tech_type_elements import tech_viewer
|
|
@@ -27,14 +32,18 @@ from commands.cat.glossary_actions import (
|
|
|
27
32
|
delete_term,
|
|
28
33
|
export_terms_csv,
|
|
29
34
|
import_terms_csv,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
update_term,
|
|
36
|
+
update_term_status,
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
from commands.cat.collection_actions import (
|
|
40
|
+
create_collection,
|
|
41
|
+
delete_collection,
|
|
42
|
+
update_collection,
|
|
43
|
+
add_element_to_collection,
|
|
44
|
+
remove_element_from_collection
|
|
35
45
|
)
|
|
36
46
|
|
|
37
|
-
from commands.cat.list_categories import display_categories
|
|
38
47
|
from commands.cat.list_assets import display_assets
|
|
39
48
|
from commands.cat.list_cert_types import display_certifications
|
|
40
49
|
from commands.cat.list_collections import display_collections
|
|
@@ -77,10 +86,10 @@ from commands.ops.gov_server_actions import (
|
|
|
77
86
|
from commands.ops.list_archives import display_archive_list
|
|
78
87
|
from commands.ops.list_catalog_targets import display_catalog_targets
|
|
79
88
|
from commands.ops.load_archive import load_archive
|
|
80
|
-
from commands.ops.
|
|
81
|
-
from commands.ops.
|
|
82
|
-
from commands.ops.
|
|
83
|
-
from commands.ops.
|
|
89
|
+
from commands.ops.monitor_active_engine_activity import display_engine_activity
|
|
90
|
+
from commands.ops.monitor_engine_activity import display_engine_activity_c
|
|
91
|
+
from commands.ops.monitor_engine_status import display_gov_eng_status
|
|
92
|
+
from commands.ops.monitor_daemon_status import (
|
|
84
93
|
display_integration_daemon_status,
|
|
85
94
|
)
|
|
86
95
|
from commands.ops.monitor_platform_status import (
|
|
@@ -129,70 +138,83 @@ from commands.tech.list_solution_components import solution_component_list
|
|
|
129
138
|
from commands.tech.list_solution_roles import solution_role_list
|
|
130
139
|
from commands.tech.list_tech_templates import display_templates_spec
|
|
131
140
|
from commands.tech.list_valid_metadata_values import display_metadata_values
|
|
132
|
-
from commands.tech.
|
|
141
|
+
from commands.tech.element_actions import delete_element
|
|
142
|
+
|
|
143
|
+
import sys
|
|
144
|
+
|
|
145
|
+
# Enable remote debugging (set to True when debugging)
|
|
146
|
+
ENABLE_DEBUG = False
|
|
147
|
+
#
|
|
148
|
+
# if ENABLE_DEBUG:
|
|
149
|
+
# try:
|
|
150
|
+
# import pydevd_pycharm
|
|
151
|
+
#
|
|
152
|
+
# pydevd_pycharm.settrace('localhost', port=5678, stdout_to_server=True, stderr_to_server=True)
|
|
153
|
+
# except ImportError:
|
|
154
|
+
# print("pydevd-pycharm not installed. Install with: pip install pydevd-pycharm")
|
|
155
|
+
# except Exception as e:
|
|
156
|
+
# print(f"Could not connect to debugger: {e}")
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
|
|
160
|
+
EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
|
|
161
|
+
app_settings = settings
|
|
162
|
+
app_config = app_settings.Environment
|
|
163
|
+
# config_logging()
|
|
133
164
|
|
|
134
165
|
@tui()
|
|
135
166
|
# @tui('menu', 'menu', 'A textual object_action line interface')
|
|
136
|
-
@click.version_option("
|
|
167
|
+
@click.version_option("5.4 ", prog_name="hey_egeria")
|
|
137
168
|
@click.group()
|
|
138
169
|
@click.option(
|
|
139
170
|
"--server",
|
|
140
|
-
default=
|
|
171
|
+
default=app_config.egeria_metadata_store,
|
|
141
172
|
help="Egeria metadata store to work with",
|
|
142
173
|
)
|
|
143
174
|
@click.option(
|
|
144
175
|
"--url",
|
|
145
|
-
default=
|
|
176
|
+
default=app_config.egeria_platform_url,
|
|
146
177
|
help="URL of Egeria metadata store platform to connect to",
|
|
147
178
|
)
|
|
148
179
|
@click.option(
|
|
149
180
|
"--integration_daemon",
|
|
150
|
-
default=
|
|
181
|
+
default=app_config.egeria_integration_daemon,
|
|
151
182
|
help="Egeria integration daemon to work with",
|
|
152
183
|
)
|
|
153
184
|
@click.option(
|
|
154
185
|
"--integration_daemon_url",
|
|
155
|
-
default=
|
|
186
|
+
default=app_config.egeria_integration_daemon_url,
|
|
156
187
|
help="URL of Egeria integration daemon platform to connect to",
|
|
157
188
|
)
|
|
158
189
|
@click.option(
|
|
159
190
|
"--view_server",
|
|
160
|
-
default=
|
|
191
|
+
default=app_config.egeria_view_server,
|
|
161
192
|
help="Egeria view server to work with",
|
|
162
193
|
)
|
|
163
194
|
@click.option(
|
|
164
195
|
"--view_server_url",
|
|
165
|
-
default=
|
|
196
|
+
default=app_config.egeria_view_server_url,
|
|
166
197
|
help="URL of Egeria view server platform to connect to",
|
|
167
198
|
)
|
|
168
199
|
@click.option(
|
|
169
200
|
"--engine_host",
|
|
170
|
-
default=
|
|
201
|
+
default=app_config.egeria_engine_host,
|
|
171
202
|
help="Egeria engine host to work with",
|
|
172
203
|
)
|
|
173
204
|
@click.option(
|
|
174
205
|
"--engine_host_url",
|
|
175
|
-
default=
|
|
206
|
+
default=app_config.egeria_engine_host_url,
|
|
176
207
|
help="URL of Egeria engine host platform to connect to",
|
|
177
208
|
)
|
|
178
|
-
|
|
179
|
-
"--admin_user",
|
|
180
|
-
default=os.environ.get("EGERIA_ADMIN_USER", "garygeeke"),
|
|
181
|
-
help="Egeria admin user",
|
|
182
|
-
)
|
|
183
|
-
@click.option(
|
|
184
|
-
"--admin_user_password",
|
|
185
|
-
default=os.environ.get("EGERIA_ADMIN_PASSWORD", "secret"),
|
|
186
|
-
help="Egeria admin password",
|
|
187
|
-
)
|
|
209
|
+
|
|
188
210
|
@click.option(
|
|
189
211
|
"--userid",
|
|
190
|
-
default=
|
|
212
|
+
default=EGERIA_USER,
|
|
191
213
|
help="Egeria user",
|
|
192
214
|
)
|
|
193
215
|
@click.option(
|
|
194
216
|
"--password",
|
|
195
|
-
default=
|
|
217
|
+
default=EGERIA_USER_PASSWORD,
|
|
196
218
|
help="Egeria user password",
|
|
197
219
|
)
|
|
198
220
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
|
@@ -200,40 +222,40 @@ from commands.tech.generic_actions import delete_element
|
|
|
200
222
|
"--jupyter",
|
|
201
223
|
is_flag=True,
|
|
202
224
|
type=bool,
|
|
203
|
-
default=
|
|
225
|
+
default=app_config.egeria_jupyter,
|
|
204
226
|
help="Enable for rendering in a Jupyter terminal",
|
|
205
227
|
)
|
|
206
228
|
@click.option(
|
|
207
229
|
"--width",
|
|
208
|
-
default=
|
|
230
|
+
default=app_config.console_width,
|
|
209
231
|
type=int,
|
|
210
232
|
help="Screen width, in characters, to use",
|
|
211
233
|
)
|
|
212
234
|
@click.option(
|
|
213
|
-
"--
|
|
214
|
-
default=
|
|
215
|
-
help="Glossary
|
|
235
|
+
"--home_glossary_name",
|
|
236
|
+
default=app_settings.User_Profile.egeria_home_glossary_name,
|
|
237
|
+
help="Glossary name to use as the home glossary",
|
|
216
238
|
)
|
|
217
239
|
@click.option(
|
|
218
240
|
"--glossary_path",
|
|
219
|
-
default=
|
|
241
|
+
default=app_config.egeria_glossary_path,
|
|
220
242
|
help="Path to glossary import/export files",
|
|
221
243
|
)
|
|
222
244
|
|
|
223
245
|
@click.option(
|
|
224
246
|
"--root_path",
|
|
225
|
-
default=
|
|
247
|
+
default=app_config.pyegeria_root,
|
|
226
248
|
help="Root path to use for file operations",
|
|
227
249
|
)
|
|
228
250
|
|
|
229
251
|
@click.option(
|
|
230
252
|
"--inbox_path",
|
|
231
|
-
default=
|
|
232
|
-
help="Path to
|
|
253
|
+
default=app_config.dr_egeria_inbox,
|
|
254
|
+
help="Path to inbox files",
|
|
233
255
|
)
|
|
234
256
|
@click.option(
|
|
235
257
|
"--outbox_path",
|
|
236
|
-
default=
|
|
258
|
+
default=app_config.dr_egeria_outbox,
|
|
237
259
|
help="Path to outbox files",
|
|
238
260
|
)
|
|
239
261
|
|
|
@@ -248,14 +270,12 @@ def cli(
|
|
|
248
270
|
integration_daemon_url,
|
|
249
271
|
engine_host,
|
|
250
272
|
engine_host_url,
|
|
251
|
-
admin_user,
|
|
252
|
-
admin_user_password,
|
|
253
273
|
userid,
|
|
254
274
|
password,
|
|
255
275
|
timeout,
|
|
256
276
|
jupyter,
|
|
257
277
|
width,
|
|
258
|
-
|
|
278
|
+
home_glossary_name,
|
|
259
279
|
glossary_path,
|
|
260
280
|
root_path,
|
|
261
281
|
inbox_path,
|
|
@@ -271,20 +291,18 @@ def cli(
|
|
|
271
291
|
integration_daemon_url,
|
|
272
292
|
engine_host,
|
|
273
293
|
engine_host_url,
|
|
274
|
-
admin_user,
|
|
275
|
-
admin_user_password,
|
|
276
294
|
userid,
|
|
277
295
|
password,
|
|
278
296
|
timeout,
|
|
279
297
|
jupyter,
|
|
280
298
|
width,
|
|
281
|
-
|
|
299
|
+
home_glossary_name,
|
|
282
300
|
glossary_path,
|
|
283
301
|
root_path,
|
|
284
302
|
inbox_path,
|
|
285
303
|
outbox_path
|
|
286
304
|
)
|
|
287
|
-
ctx.max_content_width =
|
|
305
|
+
ctx.max_content_width = 300
|
|
288
306
|
ctx.ensure_object(Config)
|
|
289
307
|
|
|
290
308
|
|
|
@@ -305,6 +323,19 @@ def my_show(ctx):
|
|
|
305
323
|
pass
|
|
306
324
|
|
|
307
325
|
|
|
326
|
+
@my_show.command("my-reports")
|
|
327
|
+
@click.pass_context
|
|
328
|
+
def show_my_reports(ctx):
|
|
329
|
+
"""Display my profiles
|
|
330
|
+
|
|
331
|
+
Usage: show my-profile
|
|
332
|
+
|
|
333
|
+
"""
|
|
334
|
+
c = ctx.obj
|
|
335
|
+
start_exp2(
|
|
336
|
+
# c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
|
|
337
|
+
)
|
|
338
|
+
|
|
308
339
|
@my_show.command("my-profile")
|
|
309
340
|
@click.pass_context
|
|
310
341
|
def show_my_profile(ctx):
|
|
@@ -566,17 +597,8 @@ def show_elements_by_classification_by_prop(
|
|
|
566
597
|
"""Show elements by classification and property value"""
|
|
567
598
|
c = ctx.obj
|
|
568
599
|
if extended:
|
|
569
|
-
find_elements_by_prop_value_x(
|
|
570
|
-
|
|
571
|
-
property_value,
|
|
572
|
-
[property_names],
|
|
573
|
-
c.view_server,
|
|
574
|
-
c.view_server_url,
|
|
575
|
-
c.userid,
|
|
576
|
-
c.password,
|
|
577
|
-
c.jupyter,
|
|
578
|
-
c.width,
|
|
579
|
-
)
|
|
600
|
+
find_elements_by_prop_value_x(om_type, property_value, [property_names], c.view_server, c.view_server_url,
|
|
601
|
+
c.userid, c.password, c.jupyter, c.width)
|
|
580
602
|
else:
|
|
581
603
|
find_elements_by_prop_value(
|
|
582
604
|
om_type,
|
|
@@ -610,17 +632,8 @@ def show_elements_by_classification_by_prop(
|
|
|
610
632
|
def show_related_elements(ctx, element_guid, om_type, rel_type):
|
|
611
633
|
"""Show all elements related to specified guid"""
|
|
612
634
|
c = ctx.obj
|
|
613
|
-
list_related_elements(
|
|
614
|
-
|
|
615
|
-
om_type,
|
|
616
|
-
rel_type,
|
|
617
|
-
c.view_server,
|
|
618
|
-
c.view_server_url,
|
|
619
|
-
c.userid,
|
|
620
|
-
c.password,
|
|
621
|
-
c.jupyter,
|
|
622
|
-
c.width,
|
|
623
|
-
)
|
|
635
|
+
list_related_elements(element_guid, om_type, rel_type, c.view_server, c.view_server_url, c.userid, c.password,
|
|
636
|
+
c.jupyter, c.width)
|
|
624
637
|
|
|
625
638
|
|
|
626
639
|
@show_elements.command("related-elements_by_prop")
|
|
@@ -697,9 +710,7 @@ def show_tech_types(ctx, search_string):
|
|
|
697
710
|
"""
|
|
698
711
|
|
|
699
712
|
c = ctx.obj
|
|
700
|
-
display_tech_types(
|
|
701
|
-
search_string, c.view_server, c.view_server_url, c.userid, c.password
|
|
702
|
-
)
|
|
713
|
+
display_tech_types(search_string, c.view_server, c.view_server_url, c.userid, c.password)
|
|
703
714
|
|
|
704
715
|
|
|
705
716
|
@show_tech_type.command("details")
|
|
@@ -708,15 +719,7 @@ def show_tech_types(ctx, search_string):
|
|
|
708
719
|
def show_tech_details(ctx, tech_name):
|
|
709
720
|
"""Show technology type details"""
|
|
710
721
|
c = ctx.obj
|
|
711
|
-
tech_details_viewer(
|
|
712
|
-
tech_name,
|
|
713
|
-
c.view_server,
|
|
714
|
-
c.view_server_url,
|
|
715
|
-
c.userid,
|
|
716
|
-
c.password,
|
|
717
|
-
c.jupyter,
|
|
718
|
-
c.width,
|
|
719
|
-
)
|
|
722
|
+
tech_details_viewer(tech_name, c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width)
|
|
720
723
|
|
|
721
724
|
|
|
722
725
|
@show_tech_type.command("templates")
|
|
@@ -753,7 +756,7 @@ def show_asset_types(ctx):
|
|
|
753
756
|
@show_tech_info.command("registered-services")
|
|
754
757
|
@click.option(
|
|
755
758
|
"--services",
|
|
756
|
-
|
|
759
|
+
type_name = click.Choice(
|
|
757
760
|
[
|
|
758
761
|
"all",
|
|
759
762
|
"access-services",
|
|
@@ -772,15 +775,7 @@ def show_asset_types(ctx):
|
|
|
772
775
|
def show_registered_services(ctx, services):
|
|
773
776
|
"""Show information about a registered services"""
|
|
774
777
|
c = ctx.obj
|
|
775
|
-
display_registered_svcs(
|
|
776
|
-
services,
|
|
777
|
-
c.view_server,
|
|
778
|
-
c.view_server_url,
|
|
779
|
-
c.userid,
|
|
780
|
-
c.password,
|
|
781
|
-
c.jupyter,
|
|
782
|
-
c.width,
|
|
783
|
-
)
|
|
778
|
+
display_registered_svcs(services, c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width)
|
|
784
779
|
|
|
785
780
|
|
|
786
781
|
@show_tech_info.command("relationship-types")
|
|
@@ -793,16 +788,8 @@ def show_registered_services(ctx, services):
|
|
|
793
788
|
def show_relationship_types(ctx, om_type):
|
|
794
789
|
"""Show information about the specified relationship types"""
|
|
795
790
|
c = ctx.obj
|
|
796
|
-
display_relationship_types(
|
|
797
|
-
|
|
798
|
-
c.view_server,
|
|
799
|
-
c.view_server_url,
|
|
800
|
-
c.userid,
|
|
801
|
-
c.password,
|
|
802
|
-
False,
|
|
803
|
-
c.jupyter,
|
|
804
|
-
c.width,
|
|
805
|
-
)
|
|
791
|
+
display_relationship_types(om_type, c.view_server, c.view_server_url, c.userid, c.password, False, c.jupyter,
|
|
792
|
+
c.width)
|
|
806
793
|
|
|
807
794
|
|
|
808
795
|
@show_tech_type.command("template-spec")
|
|
@@ -939,15 +926,7 @@ def list_element_info(ctx):
|
|
|
939
926
|
def get_element_info(ctx, om_type):
|
|
940
927
|
"""Display a table of elements of an Open Metadata Type"""
|
|
941
928
|
c = ctx.obj
|
|
942
|
-
display_elements(
|
|
943
|
-
om_type,
|
|
944
|
-
c.view_server,
|
|
945
|
-
c.view_server_url,
|
|
946
|
-
c.userid,
|
|
947
|
-
c.password,
|
|
948
|
-
c.jupyter,
|
|
949
|
-
c.width,
|
|
950
|
-
)
|
|
929
|
+
display_elements(om_type, c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width)
|
|
951
930
|
|
|
952
931
|
|
|
953
932
|
@show_supply_chains.command("supply-chains")
|
|
@@ -956,15 +935,7 @@ def get_element_info(ctx, om_type):
|
|
|
956
935
|
def list_supply_chains(ctx, search_string):
|
|
957
936
|
"""Display supply chains"""
|
|
958
937
|
c = ctx.obj
|
|
959
|
-
supply_chain_viewer(
|
|
960
|
-
search_string,
|
|
961
|
-
c.view_server,
|
|
962
|
-
c.view_server_url,
|
|
963
|
-
c.userid,
|
|
964
|
-
c.password,
|
|
965
|
-
c.jupyter,
|
|
966
|
-
c.width,
|
|
967
|
-
)
|
|
938
|
+
supply_chain_viewer(search_string, c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width)
|
|
968
939
|
|
|
969
940
|
|
|
970
941
|
@show_supply_chains.command("blueprints")
|
|
@@ -973,15 +944,7 @@ def list_supply_chains(ctx, search_string):
|
|
|
973
944
|
def list_blueprints(ctx, search_string):
|
|
974
945
|
"""Display solution blueprints"""
|
|
975
946
|
c = ctx.obj
|
|
976
|
-
blueprint_list(
|
|
977
|
-
search_string,
|
|
978
|
-
c.view_server,
|
|
979
|
-
c.view_server_url,
|
|
980
|
-
c.userid,
|
|
981
|
-
c.password,
|
|
982
|
-
c.jupyter,
|
|
983
|
-
c.width,
|
|
984
|
-
)
|
|
947
|
+
blueprint_list(search_string, c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width)
|
|
985
948
|
|
|
986
949
|
|
|
987
950
|
@show_supply_chains.command("solution-roles")
|
|
@@ -1007,15 +970,7 @@ def list_solution_roles(ctx, search_string):
|
|
|
1007
970
|
def list_solution_components(ctx, search_string):
|
|
1008
971
|
"""Display solution componentss"""
|
|
1009
972
|
c = ctx.obj
|
|
1010
|
-
solution_component_list(
|
|
1011
|
-
search_string,
|
|
1012
|
-
c.view_server,
|
|
1013
|
-
c.view_server_url,
|
|
1014
|
-
c.userid,
|
|
1015
|
-
c.password,
|
|
1016
|
-
c.jupyter,
|
|
1017
|
-
c.width,
|
|
1018
|
-
)
|
|
973
|
+
solution_component_list(search_string, c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width)
|
|
1019
974
|
|
|
1020
975
|
|
|
1021
976
|
#
|
|
@@ -1036,6 +991,81 @@ def show_cat(ctx):
|
|
|
1036
991
|
"""Display an Egeria Object"""
|
|
1037
992
|
pass
|
|
1038
993
|
|
|
994
|
+
@show_cat.group("data_designer")
|
|
995
|
+
@click.pass_context
|
|
996
|
+
def show_cat_design(ctx):
|
|
997
|
+
"""Group of commands for Egeria Data Designer"""
|
|
998
|
+
pass
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
@show_cat_design.command("data-fields")
|
|
1002
|
+
@click.option("--output-format", default = "TABLE", help="Output format type")
|
|
1003
|
+
@click.option('--search-string', default="*", help="Search string")
|
|
1004
|
+
@click.pass_context
|
|
1005
|
+
def show_data_fields(ctx, output_format, search_string):
|
|
1006
|
+
"""Report on Data Fields"""
|
|
1007
|
+
c = ctx.obj
|
|
1008
|
+
logger.info(f"Hey Egeria: view server @ {c.view_server_url}")
|
|
1009
|
+
list_generic(
|
|
1010
|
+
"Data-Fields", output_format = output_format, view_server = c.view_server, view_url= c.view_server_url,
|
|
1011
|
+
user = c.userid, user_pass = c.password, params = {"search_string": search_string}, render_table = True
|
|
1012
|
+
)
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
@show_cat_design.command("data-structures")
|
|
1016
|
+
@click.option("--output-format", default = "TABLE", help="Output format type")
|
|
1017
|
+
@click.option('--search-string', default="*", help="Search string")
|
|
1018
|
+
@click.pass_context
|
|
1019
|
+
def show_data_structures(ctx, output_format, search_string):
|
|
1020
|
+
"""Reporton Data Structures"""
|
|
1021
|
+
c = ctx.obj
|
|
1022
|
+
logger.info(f"Hey Egeria: view server @ {c.view_server_url}")
|
|
1023
|
+
list_generic(
|
|
1024
|
+
"Data-Structures", output_format = output_format, view_server = c.view_server, view_url= c.view_server_url,
|
|
1025
|
+
user = c.userid, user_pass = c.password, params = {"search_string": search_string}, render_table = True
|
|
1026
|
+
)
|
|
1027
|
+
|
|
1028
|
+
@show_cat_design.command("data-classes")
|
|
1029
|
+
@click.option("--output-format", default = "TABLE", help="Output format type")
|
|
1030
|
+
@click.option('--search-string', default="*", help="Search string")
|
|
1031
|
+
@click.pass_context
|
|
1032
|
+
def show_data_classes(ctx, output_format, search_string):
|
|
1033
|
+
"""Dynamically generate output based on a format set"""
|
|
1034
|
+
c = ctx.obj
|
|
1035
|
+
logger.info(f"Hey Egeria: view server @ {c.view_server_url}")
|
|
1036
|
+
list_generic(
|
|
1037
|
+
"Data-Classes", output_format = output_format, view_server = c.view_server, view_url= c.view_server_url,
|
|
1038
|
+
user = c.userid, user_pass = c.password, params = {"search_string": search_string}, render_table = True
|
|
1039
|
+
)
|
|
1040
|
+
|
|
1041
|
+
@show_cat_design.command("data-dictionaries")
|
|
1042
|
+
@click.option("--output-format", default = "TABLE", help="Output format type")
|
|
1043
|
+
@click.option('--search-string', default="*", help="Search string")
|
|
1044
|
+
@click.pass_context
|
|
1045
|
+
def show_data_dictionaries(ctx, output_format, search_string):
|
|
1046
|
+
"""Report on Data Dictionaries"""
|
|
1047
|
+
c = ctx.obj
|
|
1048
|
+
logger.info(f"Hey Egeria: view server @ {c.view_server_url}")
|
|
1049
|
+
list_generic(
|
|
1050
|
+
"Data-Dictionaries", output_format = output_format, view_server = c.view_server, view_url= c.view_server_url,
|
|
1051
|
+
user = c.userid, user_pass = c.password, params = {"search_string": search_string}, render_table = True
|
|
1052
|
+
)
|
|
1053
|
+
|
|
1054
|
+
@show_cat_design.command("data-specifications")
|
|
1055
|
+
@click.option("--output-format", default = "TABLE", help="Output format type")
|
|
1056
|
+
@click.option('--search-string', default="*", help="Search string")
|
|
1057
|
+
@click.pass_context
|
|
1058
|
+
def show_data_specs(ctx, output_format, search_string):
|
|
1059
|
+
"""Report on Data Specifications"""
|
|
1060
|
+
c = ctx.obj
|
|
1061
|
+
logger.info(f"Hey Egeria: view server @ {c.view_server_url}")
|
|
1062
|
+
list_generic(
|
|
1063
|
+
"Data-Specifications", output_format = output_format, view_server = c.view_server, view_url= c.view_server_url,
|
|
1064
|
+
user = c.userid, user_pass = c.password, params = {"search_string": search_string}, render_table = True
|
|
1065
|
+
)
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
|
|
1039
1069
|
|
|
1040
1070
|
@show_cat.group("info")
|
|
1041
1071
|
@click.pass_context
|
|
@@ -1043,6 +1073,20 @@ def show_cat_info(ctx):
|
|
|
1043
1073
|
"""Group of md_commands to show information about various Egeria objects"""
|
|
1044
1074
|
pass
|
|
1045
1075
|
|
|
1076
|
+
@show_cat_info.command("Run Report")
|
|
1077
|
+
@click.option("--report", help="Report to output", default="Digital-Products")
|
|
1078
|
+
@click.option("--output-format", default = "TABLE", help="Output format type")
|
|
1079
|
+
@click.option('--search-string', default="*", help="Search string")
|
|
1080
|
+
@click.pass_context
|
|
1081
|
+
def show_format_set(ctx, report, output_format, search_string):
|
|
1082
|
+
"""Dynamically generate output based on a format set"""
|
|
1083
|
+
c = ctx.obj
|
|
1084
|
+
logger.info(f"Hey Egeria: view server @ {c.view_server_url}")
|
|
1085
|
+
list_generic(
|
|
1086
|
+
report, output_format = output_format, view_server = c.view_server, view_url = c.view_server_url,
|
|
1087
|
+
user = c.userid, user_pass = c.password, params = {"search_string": search_string},render_table = True
|
|
1088
|
+
)
|
|
1089
|
+
|
|
1046
1090
|
|
|
1047
1091
|
@show_cat_info.command("tech-types")
|
|
1048
1092
|
@click.option("--tech_type", default="*", help="Tech type to search for")
|
|
@@ -1050,9 +1094,7 @@ def show_cat_info(ctx):
|
|
|
1050
1094
|
def show_tech_types(ctx, tech_type):
|
|
1051
1095
|
"""List deployed technology types"""
|
|
1052
1096
|
c = ctx.obj
|
|
1053
|
-
display_tech_types(
|
|
1054
|
-
tech_type, c.view_server, c.view_server_url, c.userid, c.password
|
|
1055
|
-
)
|
|
1097
|
+
display_tech_types(tech_type, c.view_server, c.view_server_url, c.userid, c.password)
|
|
1056
1098
|
|
|
1057
1099
|
|
|
1058
1100
|
@show_cat_info.command("collections")
|
|
@@ -1157,7 +1199,7 @@ def glossary_group(ctx):
|
|
|
1157
1199
|
)
|
|
1158
1200
|
@click.option(
|
|
1159
1201
|
"--output-format",
|
|
1160
|
-
|
|
1202
|
+
type_name = click.Choice(["FORM", "REPORT", "TABLE"]),
|
|
1161
1203
|
default="TABLE",
|
|
1162
1204
|
help="Display on screen as table, or as FORM or REPORT file",
|
|
1163
1205
|
)
|
|
@@ -1165,47 +1207,16 @@ def glossary_group(ctx):
|
|
|
1165
1207
|
def show_terms(ctx, search_string, glossary_guid, glossary_name, output_format):
|
|
1166
1208
|
"""Find and display glossary terms"""
|
|
1167
1209
|
c = ctx.obj
|
|
1168
|
-
display_glossary_terms(
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
glossary_name,
|
|
1172
|
-
c.view_server,
|
|
1173
|
-
c.view_server_url,
|
|
1174
|
-
c.userid,
|
|
1175
|
-
c.password,
|
|
1176
|
-
c.jupyter,
|
|
1177
|
-
c.width,
|
|
1178
|
-
output_format,
|
|
1179
|
-
)
|
|
1210
|
+
display_glossary_terms(search_string, glossary_guid, glossary_name, c.view_server, c.view_server_url, c.userid,
|
|
1211
|
+
c.password, c.jupyter, c.width, output_format)
|
|
1212
|
+
|
|
1180
1213
|
|
|
1181
|
-
@glossary_group.command("glossary-categories")
|
|
1182
|
-
@click.option("--search_string", default="*", help="Name to search for categories")
|
|
1183
|
-
@click.option(
|
|
1184
|
-
"--output-format",
|
|
1185
|
-
type=click.Choice(["FORM", "REPORT", "TABLE"]),
|
|
1186
|
-
default="TABLE",
|
|
1187
|
-
help="Display on screen as table, or as FORM or REPORT file",
|
|
1188
|
-
)
|
|
1189
|
-
@click.pass_context
|
|
1190
|
-
def categories(ctx, search_string, output_format):
|
|
1191
|
-
"""Display a list of categories"""
|
|
1192
|
-
c = ctx.obj
|
|
1193
|
-
display_categories(
|
|
1194
|
-
search_string,
|
|
1195
|
-
c.view_server,
|
|
1196
|
-
c.view_server_url,
|
|
1197
|
-
c.userid,
|
|
1198
|
-
c.password,
|
|
1199
|
-
c.jupyter,
|
|
1200
|
-
c.width,
|
|
1201
|
-
output_format,
|
|
1202
|
-
)
|
|
1203
1214
|
|
|
1204
1215
|
@glossary_group.command("glossaries")
|
|
1205
1216
|
@click.option("--search_string", default="*", help="Name to search for glossaries")
|
|
1206
1217
|
@click.option(
|
|
1207
1218
|
"--output-format",
|
|
1208
|
-
|
|
1219
|
+
type_name = click.Choice(["FORM", "REPORT", "TABLE"]),
|
|
1209
1220
|
default="TABLE",
|
|
1210
1221
|
help="Display on screen as table, or as FORM or REPORT file",
|
|
1211
1222
|
)
|
|
@@ -1277,16 +1288,7 @@ def show_projects(ctx, search_string):
|
|
|
1277
1288
|
def show_certification_types(ctx, search_string):
|
|
1278
1289
|
"""Show certification types"""
|
|
1279
1290
|
c = ctx.obj
|
|
1280
|
-
display_certifications(
|
|
1281
|
-
search_string,
|
|
1282
|
-
c.view_server,
|
|
1283
|
-
c.view_server_url,
|
|
1284
|
-
c.userid,
|
|
1285
|
-
c.password,
|
|
1286
|
-
c.timeout,
|
|
1287
|
-
c.jupyter,
|
|
1288
|
-
c.width,
|
|
1289
|
-
)
|
|
1291
|
+
display_certifications(search_string, c.view_server, c.view_server_url, c.userid, c.password, c.timeout, c.jupyter)
|
|
1290
1292
|
|
|
1291
1293
|
|
|
1292
1294
|
@show_cat_info.command("asset-types")
|
|
@@ -1347,7 +1349,7 @@ def show_project_dependencies(ctx, project):
|
|
|
1347
1349
|
@click.option("--search-string", default="*", help="View the list of To-Do items")
|
|
1348
1350
|
@click.option(
|
|
1349
1351
|
"--status",
|
|
1350
|
-
|
|
1352
|
+
type_name = click.Choice(
|
|
1351
1353
|
["OPEN", "IN_PROGRESS", "WAITING", "COMPLETE", "ABANDONED", "None"],
|
|
1352
1354
|
case_sensitive=False,
|
|
1353
1355
|
),
|
|
@@ -1398,15 +1400,8 @@ def deployed_data(ctx):
|
|
|
1398
1400
|
def show_deployed_servers(ctx, search_string):
|
|
1399
1401
|
"""Display deployed servers"""
|
|
1400
1402
|
c = ctx.obj
|
|
1401
|
-
display_servers_by_dep_imp(
|
|
1402
|
-
|
|
1403
|
-
c.view_server,
|
|
1404
|
-
c.view_server_url,
|
|
1405
|
-
c.userid,
|
|
1406
|
-
c.password,
|
|
1407
|
-
c.jupyter,
|
|
1408
|
-
c.width,
|
|
1409
|
-
)
|
|
1403
|
+
display_servers_by_dep_imp(search_string, c.view_server, c.view_server_url, c.userid, c.password, c.jupyter,
|
|
1404
|
+
c.width)
|
|
1410
1405
|
|
|
1411
1406
|
|
|
1412
1407
|
@deployed_data.command("deployed-schemas")
|
|
@@ -1448,9 +1443,7 @@ def list_catalogs(ctx, search_server):
|
|
|
1448
1443
|
def list_databases(ctx):
|
|
1449
1444
|
"""Display deployed databases"""
|
|
1450
1445
|
c = ctx.obj
|
|
1451
|
-
list_deployed_databases(
|
|
1452
|
-
c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
|
|
1453
|
-
)
|
|
1446
|
+
list_deployed_databases(c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width)
|
|
1454
1447
|
|
|
1455
1448
|
|
|
1456
1449
|
#
|
|
@@ -1490,11 +1483,21 @@ tell_glossary.add_command(delete_term)
|
|
|
1490
1483
|
tell_glossary.add_command(create_term)
|
|
1491
1484
|
tell_glossary.add_command(import_terms_csv)
|
|
1492
1485
|
tell_glossary.add_command(export_terms_csv)
|
|
1493
|
-
tell_glossary.add_command(
|
|
1494
|
-
tell_glossary.add_command(
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1486
|
+
tell_glossary.add_command(update_term)
|
|
1487
|
+
tell_glossary.add_command(update_term_status )
|
|
1488
|
+
|
|
1489
|
+
@tell_cat.group("collection")
|
|
1490
|
+
@click.pass_context
|
|
1491
|
+
def tell_collections(ctx):
|
|
1492
|
+
"""Perform actions on collections"""
|
|
1493
|
+
pass
|
|
1494
|
+
|
|
1495
|
+
tell_collections.add_command(create_collection)
|
|
1496
|
+
tell_collections.add_command(delete_collection)
|
|
1497
|
+
tell_collections.add_command(update_collection)
|
|
1498
|
+
tell_collections.add_command(add_element_to_collection)
|
|
1499
|
+
tell_collections.add_command(remove_element_from_collection)
|
|
1500
|
+
|
|
1498
1501
|
|
|
1499
1502
|
@tell_cat.group("todo")
|
|
1500
1503
|
@click.pass_context
|
|
@@ -1515,9 +1518,7 @@ tell_cat_todo.add_command(create_todo)
|
|
|
1515
1518
|
def show_tech_types(ctx, tech_type):
|
|
1516
1519
|
"""List deployed technology types"""
|
|
1517
1520
|
c = ctx.obj
|
|
1518
|
-
display_tech_types(
|
|
1519
|
-
tech_type, c.view_server, c.view_server_url, c.userid, c.password
|
|
1520
|
-
)
|
|
1521
|
+
display_tech_types(tech_type, c.view_server, c.view_server_url, c.userid, c.password)
|
|
1521
1522
|
|
|
1522
1523
|
|
|
1523
1524
|
@show_cat_info.command("certification-types")
|
|
@@ -1526,16 +1527,7 @@ def show_tech_types(ctx, tech_type):
|
|
|
1526
1527
|
def show_certification_types(ctx, search_string):
|
|
1527
1528
|
"""Show certification types"""
|
|
1528
1529
|
c = ctx.obj
|
|
1529
|
-
display_certifications(
|
|
1530
|
-
search_string,
|
|
1531
|
-
c.view_server,
|
|
1532
|
-
c.view_server_url,
|
|
1533
|
-
c.userid,
|
|
1534
|
-
c.password,
|
|
1535
|
-
c.timeout,
|
|
1536
|
-
c.jupyter,
|
|
1537
|
-
c.width,
|
|
1538
|
-
)
|
|
1530
|
+
display_certifications(search_string, c.view_server, c.view_server_url, c.userid, c.password, c.timeout, c.jupyter)
|
|
1539
1531
|
|
|
1540
1532
|
|
|
1541
1533
|
@show_project_group.command("project-structure")
|
|
@@ -1643,7 +1635,7 @@ def show_projects(ctx, search_string):
|
|
|
1643
1635
|
@click.option("--search-string", default="*", help="View the list of To-Do items")
|
|
1644
1636
|
@click.option(
|
|
1645
1637
|
"--status",
|
|
1646
|
-
|
|
1638
|
+
type_name = click.Choice(
|
|
1647
1639
|
["OPEN", "IN_PROGRESS", "WAITING", "COMPLETE", "ABANDONED", "None"],
|
|
1648
1640
|
case_sensitive=False,
|
|
1649
1641
|
),
|
|
@@ -1687,15 +1679,8 @@ def show_user_ids(ctx):
|
|
|
1687
1679
|
def show_deployed_servers(ctx, search_string):
|
|
1688
1680
|
"""Show list of deployed servers"""
|
|
1689
1681
|
c = ctx.obj
|
|
1690
|
-
display_servers_by_dep_imp(
|
|
1691
|
-
|
|
1692
|
-
c.view_server,
|
|
1693
|
-
c.view_server_url,
|
|
1694
|
-
c.userid,
|
|
1695
|
-
c.password,
|
|
1696
|
-
c.jupyter,
|
|
1697
|
-
c.width,
|
|
1698
|
-
)
|
|
1682
|
+
display_servers_by_dep_imp(search_string, c.view_server, c.view_server_url, c.userid, c.password, c.jupyter,
|
|
1683
|
+
c.width)
|
|
1699
1684
|
|
|
1700
1685
|
|
|
1701
1686
|
@deployed_data.command("deployed-schemas")
|
|
@@ -1739,9 +1724,7 @@ def catalogs(ctx, search_server):
|
|
|
1739
1724
|
def databases(ctx):
|
|
1740
1725
|
"""Display a list of deployed databases"""
|
|
1741
1726
|
c = ctx.obj
|
|
1742
|
-
list_deployed_databases(
|
|
1743
|
-
c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
|
|
1744
|
-
)
|
|
1727
|
+
list_deployed_databases(c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width)
|
|
1745
1728
|
|
|
1746
1729
|
|
|
1747
1730
|
# @tell_cat.group("survey")
|
|
@@ -1821,7 +1804,7 @@ def show_platform_status(ctx):
|
|
|
1821
1804
|
"""Display a live status view of known platforms"""
|
|
1822
1805
|
c = ctx.obj
|
|
1823
1806
|
p_display_status(
|
|
1824
|
-
c.view_server, c.view_server_url, c.
|
|
1807
|
+
c.view_server, c.view_server_url, c.userid, c.password
|
|
1825
1808
|
)
|
|
1826
1809
|
|
|
1827
1810
|
|
|
@@ -1929,8 +1912,8 @@ def eng_activity_status(ctx, rowlimit: int, list: bool, compressed: bool):
|
|
|
1929
1912
|
rowlimit,
|
|
1930
1913
|
c.view_server,
|
|
1931
1914
|
c.view_server_url,
|
|
1932
|
-
c.
|
|
1933
|
-
c.
|
|
1915
|
+
c.userid,
|
|
1916
|
+
c.password,
|
|
1934
1917
|
list,
|
|
1935
1918
|
c.jupyter,
|
|
1936
1919
|
c.width,
|
|
@@ -1940,8 +1923,8 @@ def eng_activity_status(ctx, rowlimit: int, list: bool, compressed: bool):
|
|
|
1940
1923
|
rowlimit,
|
|
1941
1924
|
c.view_server,
|
|
1942
1925
|
c.view_server_url,
|
|
1943
|
-
c.
|
|
1944
|
-
c.
|
|
1926
|
+
c.userid,
|
|
1927
|
+
c.password,
|
|
1945
1928
|
list,
|
|
1946
1929
|
c.jupyter,
|
|
1947
1930
|
c.width,
|
|
@@ -1992,15 +1975,7 @@ def integrations_status(ctx, connector_list, list, sorted):
|
|
|
1992
1975
|
def integrations_status(ctx, connector):
|
|
1993
1976
|
"""Display Catalog Targets for a connector"""
|
|
1994
1977
|
c = ctx.obj
|
|
1995
|
-
display_catalog_targets(
|
|
1996
|
-
connector,
|
|
1997
|
-
c.view_server,
|
|
1998
|
-
c.view_server_url,
|
|
1999
|
-
c.userid,
|
|
2000
|
-
c.password,
|
|
2001
|
-
c.jupyter,
|
|
2002
|
-
c.width,
|
|
2003
|
-
)
|
|
1978
|
+
display_catalog_targets(connector, c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width)
|
|
2004
1979
|
|
|
2005
1980
|
|
|
2006
1981
|
#
|