pyegeria 0.2.3__py3-none-any.whl → 5.3.0.dev2__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.
- pyegeria/README.md +35 -0
- pyegeria/__init__.py +345 -14
- pyegeria/_client.py +376 -126
- pyegeria/_deprecated_gov_engine.py +451 -0
- pyegeria/_exceptions.py +6 -6
- pyegeria/_globals.py +7 -1
- pyegeria/_validators.py +9 -6
- pyegeria/asset_catalog_omvs.py +807 -0
- pyegeria/automated_curation_omvs.py +3760 -0
- pyegeria/classification_manager_omvs.py +5238 -0
- pyegeria/collection_manager_omvs.py +2727 -0
- pyegeria/commands/README.md +47 -0
- pyegeria/commands/__init__.py +22 -0
- pyegeria/commands/cat/README.md +16 -0
- pyegeria/commands/cat/__init__.py +1 -0
- pyegeria/commands/cat/exp_list_glossaries.py +156 -0
- pyegeria/commands/cat/get_asset_graph.py +319 -0
- pyegeria/commands/cat/get_collection.py +148 -0
- pyegeria/commands/cat/get_project_dependencies.py +168 -0
- pyegeria/commands/cat/get_project_structure.py +168 -0
- pyegeria/commands/cat/get_tech_type_elements.py +174 -0
- pyegeria/commands/cat/glossary_actions.py +362 -0
- pyegeria/commands/cat/list_assets.py +176 -0
- pyegeria/commands/cat/list_cert_types.py +194 -0
- pyegeria/commands/cat/list_collections.py +162 -0
- pyegeria/commands/cat/list_deployed_catalogs.py +217 -0
- pyegeria/commands/cat/list_deployed_database_schemas.py +251 -0
- pyegeria/commands/cat/list_deployed_databases.py +202 -0
- pyegeria/commands/cat/list_glossaries.py +150 -0
- pyegeria/commands/cat/list_projects.py +221 -0
- pyegeria/commands/cat/list_servers_deployed_imp.py +158 -0
- pyegeria/commands/cat/list_tech_type_elements.py +190 -0
- pyegeria/commands/cat/list_tech_types.py +140 -0
- pyegeria/commands/cat/list_terms.py +242 -0
- pyegeria/commands/cat/list_todos.py +189 -0
- pyegeria/commands/cat/list_user_ids.py +145 -0
- pyegeria/commands/cli/__init__.py +13 -0
- pyegeria/commands/cli/egeria.py +1844 -0
- pyegeria/commands/cli/egeria_cat.py +638 -0
- pyegeria/commands/cli/egeria_login_tui.py +313 -0
- pyegeria/commands/cli/egeria_my.py +248 -0
- pyegeria/commands/cli/egeria_ops.py +502 -0
- pyegeria/commands/cli/egeria_tech.py +618 -0
- pyegeria/commands/cli/ops_config.py +45 -0
- pyegeria/commands/cli/txt_custom_v2.tcss +19 -0
- pyegeria/commands/doc/README.md +145 -0
- pyegeria/commands/doc/Visual Command Reference/README.md +511 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/assets/asset-graph 2024-11-20 at 15.56.42.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/assets/assets-in-domain 2024-11-20 at 15.49.55@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/assets/elements-of-type 2024-11-20 at 16.01.35.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/assets/tech-type-elements 2024-11-20 at 16.05.05.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs 2024-12-17 at 15.43.27@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-data-catalogs-2024-11-20 at 16.17.43@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-11-25 at 20.14.50@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-12-17 at 15.48.38@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-11-25 at 20.21.25@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-12-17 at 15.52.16@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed_databases 2024-12-16 at 16.40.31@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-glossaries 2024-11-25 at 20.30.02.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-terms 2024-11-25 at 20.32.11.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/asset-types 2024-11-25 at 20.34.19@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/certification-types 2024-11-25 at 20.37.07.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/collection-graph 2024-12-12 at 11.33.18@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-collections 2024-12-10 at 14.25.51@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-todos 2024-12-12 at 11.46.30@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/list-user-ids 2024-12-12 at 11.51.09@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/info/tech-types 2024-12-12 at 11.37.20@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_dependencies 2024-12-14 at 16.24.39@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/projects/project_structure 2024-12-14 at 16.21.35@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/projects/projects 2024-12-14 at 16.18.10@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/hey_egeria tui 2024-12-16 at 16.58.22@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/my/show/my_profile 2024-12-14 at 16.29.27@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/my/show/my_roles 2024-12-14 at 16.32.10@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/my/show/my_todos 2024-12-15 at 16.24.13@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/my/show/open_todos 2024-12-14 at 16.36.12@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/engines/list_engine_activity compressed 2024-12-15 at 16.48.48@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity 2024-12-15 at 16.32.55@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_activity compressed 2024-12-15 at 16.38.29@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/engines/monitor_engine_status 2024-12-15 at 16.51.26.jpeg +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_daemon_status 2024-12-15 at 16.57.12@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/integrations/monitor_integration_targets 2024-12-15 at 17.02.19@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/platforms/monitor_platform_status 2024-12-15 at 19.53.18@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status 2024-12-15 at 19.59.39@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_server_status full 2024-12-15 at 20.01.57@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/ops/show/servers/monitor_startup_servers 2024-12-15 at 19.56.07@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/get_anchored_elements 2024-12-15 at 21.25.41@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/get_elements_of_om_type 2024-12-16 at 14.39.59@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/info_for_guid 2024-12-16 at 11.35.29@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/list_elements_by_om-type 2024-12-16 at 14.24.18@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/list_elements_by_om-type extended 2024-12-16 at 14.28.46@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/list_elements_of_om_type_by_classification 2024-12-16 at 14.35.26@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/related_elements 2024-12-16 at 14.55.01@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/elements/show_related_specifications 2024-12-16 at 15.04.55@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/asset_types 2024-12-16 at 15.10.16@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/detailed_governance_action_processes 2024-12-16 at 15.16.26@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/governance_action_processes 2024-12-16 at 15.13.01@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/registered_services 2024-12-16 at 16.44.54@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-16 at 16.20.34@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/relationship_types 2024-12-19 at 10.51.54@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-info/valid_metadata_values 2024-12-16 at 15.31.56@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/list_tech_type_template_specs 2024-12-16 at 16.03.22@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/list_technology_types 2024-12-16 at 15.39.20@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_details 2024-12-16 at 15.37.21@2x.png +0 -0
- pyegeria/commands/doc/Visual Command Reference/tech/show/tech-types/tech_type_templates 2024-12-16 at 16.11.48@2x.png +0 -0
- pyegeria/commands/doc/glossary/basic-glossary-tui.md +109 -0
- pyegeria/commands/doc/glossary/images/delete-glossary-step1 2024-11-06 at 15.47.23@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/delete-glossary-step2 2024-11-06 at 15.51.29@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/delete-glossary-step3 2024-11-06 at 15.53.19@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/delete-glossary-step4 2024-11-06 at 15.55.11@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/out-create-glossary example 2024-11-05 at 20.38.04@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/out-create-term 2024-11-06 at 20.48.29.png +0 -0
- pyegeria/commands/doc/glossary/images/out-delete-term 2024-11-07 at 03.57.25.png +0 -0
- pyegeria/commands/doc/glossary/images/out-display-terms-for-glossary-test 2024-11-06 at 20.51.28.png +0 -0
- pyegeria/commands/doc/glossary/images/out-export-example 2024-11-07 at 09.54.57.png +0 -0
- pyegeria/commands/doc/glossary/images/out-exported-terms 2024-11-06 at 21.06.32.png +0 -0
- pyegeria/commands/doc/glossary/images/out-glossary-list example 2024-11-05 at 20.41.02@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/out-import-terms 2024-11-07 at 08.15.18.png +0 -0
- pyegeria/commands/doc/glossary/images/out-list-all-terms 2024-11-06 at 16.22.20@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/out-list-terms-for-example 2024-11-06 at 16.40.12.png +0 -0
- pyegeria/commands/doc/glossary/images/out-list-terms-second 2024-11-06 at 16.45.13.png +0 -0
- pyegeria/commands/doc/glossary/images/out-pipx install pyegeria 2024-11-10 at 18.12.21.png +0 -0
- pyegeria/commands/doc/glossary/images/out-server-status-full 2024-11-10 at 18.25.14.png +0 -0
- pyegeria/commands/doc/glossary/images/out-servers-status 2024-11-10 at 18.15.42.png +0 -0
- pyegeria/commands/doc/glossary/images/out-upsert-import 2024-11-07 at 19.37.00.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-2024-11-10 at 18.26.29.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-create-glossary example 2024-11-05 at 20.34.24@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-create-term 2024-11-06 at 20.46.35.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-delete-term 2024-11-07 at 03.51.57.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-display-terms-for-example 2024-11-06 at 20.56.49.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-export-example 2024-11-07 at 09.52.59.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-hey-egeria 2024-11-10 at 18.31.01.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-import-upsert-example 2024-11-07 at 10.08.37.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-list-terms-second 2024-11-06 at 16.46.34.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-load-archive.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-server-status-full 2024-11-10 at 19.14.36.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-show-glossaries 2024-11-07 at 20.00.05.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-show-glossary-terms 2024-11-05 at 19.37.53@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-upsert 2024-11-07 at 11.49.04.png +0 -0
- pyegeria/commands/doc/glossary/images/upsert-example.om-terms 2024-11-07 at 11.44.05.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/README.md +346 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/CleanShot 2024-11-18 at 21.32.03@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/Xmind 1731421782704.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/Xmind 1731422134920.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/hey_egeria 2024-11-12 at 20.38.43.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/hey_egeria cat 2024-11-12 at 21.41.43.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-integ-status-list 2024-11-12 at 16.45.26.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-integ-status-live 2024-11-12 at 16.44.12@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-server-status 2024-11-10 at 18.15.42@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-server-status-full 2024-11-10 at 18.25.14@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/short-cut commands 2024-11-12 at 22.22.13.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-hey-egeria.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-integration-status-paging.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-load-archive 2024-11-10 at 19.19.09@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-show-server-status 2024-11-10 at 18.52.01@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-show-server-status-full 2024-11-10.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-status-paging 2024-11-12 at 16.26.14@2x.png +0 -0
- pyegeria/commands/my/README.md +17 -0
- pyegeria/commands/my/__init__.py +0 -0
- pyegeria/commands/my/list_my_profile.py +163 -0
- pyegeria/commands/my/list_my_roles.py +151 -0
- pyegeria/commands/my/monitor_my_todos.py +205 -0
- pyegeria/commands/my/monitor_open_todos.py +175 -0
- pyegeria/commands/my/todo_actions.py +242 -0
- pyegeria/commands/ops/README.md +24 -0
- pyegeria/commands/ops/__init__.py +22 -0
- pyegeria/commands/ops/gov_server_actions.py +177 -0
- pyegeria/commands/ops/list_archives.py +161 -0
- pyegeria/commands/ops/list_catalog_targets.py +203 -0
- pyegeria/commands/ops/load_archive.py +75 -0
- pyegeria/commands/ops/monitor_asset_events.py +107 -0
- pyegeria/commands/ops/monitor_engine_activity.py +270 -0
- pyegeria/commands/ops/monitor_engine_activity_c.py +286 -0
- pyegeria/commands/ops/monitor_gov_eng_status.py +288 -0
- pyegeria/commands/ops/monitor_integ_daemon_status.py +319 -0
- pyegeria/commands/ops/monitor_platform_status.py +188 -0
- pyegeria/commands/ops/monitor_server_startup.py +117 -0
- pyegeria/commands/ops/monitor_server_status.py +182 -0
- pyegeria/commands/ops/orig_monitor_server_list.py +140 -0
- pyegeria/commands/ops/orig_monitor_server_status.py +124 -0
- pyegeria/commands/ops/refresh_integration_daemon.py +83 -0
- pyegeria/commands/ops/restart_integration_daemon.py +82 -0
- pyegeria/commands/ops/table_integ_daemon_status.py +237 -0
- pyegeria/commands/ops/x_engine_actions.py +76 -0
- pyegeria/commands/tech/README.md +24 -0
- pyegeria/commands/tech/__init__.py +0 -0
- pyegeria/commands/tech/get_element_info.py +144 -0
- pyegeria/commands/tech/get_guid_info.py +134 -0
- pyegeria/commands/tech/get_tech_details.py +173 -0
- pyegeria/commands/tech/get_tech_type_template.py +166 -0
- pyegeria/commands/tech/list_anchored_elements.py +205 -0
- pyegeria/commands/tech/list_asset_types.py +123 -0
- pyegeria/commands/tech/list_elements.py +168 -0
- pyegeria/commands/tech/list_elements_for_classification.py +171 -0
- pyegeria/commands/tech/list_elements_x.py +191 -0
- pyegeria/commands/tech/list_gov_action_processes.py +139 -0
- pyegeria/commands/tech/list_registered_services.py +180 -0
- pyegeria/commands/tech/list_related_elements.py +207 -0
- pyegeria/commands/tech/list_related_specification.py +169 -0
- pyegeria/commands/tech/list_relationship_types.py +164 -0
- pyegeria/commands/tech/list_relationships.py +179 -0
- pyegeria/commands/tech/list_tech_templates.py +360 -0
- pyegeria/commands/tech/list_valid_metadata_values.py +178 -0
- pyegeria/commands/tech/table_tech_templates.py +238 -0
- pyegeria/commands/tech/x_list_related_elements.py +165 -0
- pyegeria/core_omag_server_config.py +550 -313
- pyegeria/create_tech_guid_lists.py +105 -0
- pyegeria/egeria_cat_client.py +78 -0
- pyegeria/egeria_client.py +117 -0
- pyegeria/egeria_config_client.py +45 -0
- pyegeria/egeria_my_client.py +56 -0
- pyegeria/egeria_tech_client.py +93 -0
- pyegeria/feedback_manager_omvs.py +4573 -0
- pyegeria/full_omag_server_config.py +615 -264
- pyegeria/glossary_browser_omvs.py +2507 -0
- pyegeria/glossary_manager_omvs.py +3597 -0
- pyegeria/mermaid_utilities.py +218 -0
- pyegeria/metadata_explorer_omvs.py +2371 -0
- pyegeria/my_profile_omvs.py +1021 -0
- pyegeria/platform_services.py +259 -218
- pyegeria/project_manager_omvs.py +1854 -0
- pyegeria/registered_info.py +111 -108
- pyegeria/runtime_manager_omvs.py +2299 -0
- pyegeria/server_operations.py +178 -71
- pyegeria/template_manager_omvs.py +1414 -0
- pyegeria/utils.py +75 -85
- pyegeria/valid_metadata_omvs.py +1911 -0
- pyegeria/x_action_author_omvs.py +200 -0
- pyegeria-5.3.0.dev2.dist-info/METADATA +70 -0
- pyegeria-5.3.0.dev2.dist-info/RECORD +232 -0
- {pyegeria-0.2.3.dist-info → pyegeria-5.3.0.dev2.dist-info}/WHEEL +1 -1
- pyegeria-5.3.0.dev2.dist-info/entry_points.txt +81 -0
- pyegeria/_client-orig.py +0 -480
- pyegeria/automated_curation.py +0 -446
- pyegeria/config.toml +0 -11
- pyegeria/curation_omvs.py +0 -458
- pyegeria/exceptions.py +0 -382
- pyegeria/glossary_omvs.py +0 -639
- pyegeria/gov_engine.py +0 -573
- pyegeria-0.2.3.dist-info/METADATA +0 -57
- pyegeria-0.2.3.dist-info/RECORD +0 -22
- {pyegeria-0.2.3.dist-info/licenses → pyegeria-5.3.0.dev2.dist-info}/LICENSE +0 -0
pyegeria/gov_engine.py
DELETED
@@ -1,573 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
SPDX-License-Identifier: Apache-2.0
|
3
|
-
Copyright Contributors to the ODPi Egeria project.
|
4
|
-
|
5
|
-
Governance Engine functions. These functions initiate and manage Governance Actions and Processes
|
6
|
-
"""
|
7
|
-
|
8
|
-
import sys
|
9
|
-
import json
|
10
|
-
from datetime import datetime
|
11
|
-
from ._client import Client
|
12
|
-
from ._globals import enable_ssl_check, is_debug
|
13
|
-
from requests import Response
|
14
|
-
|
15
|
-
|
16
|
-
from .exceptions import (
|
17
|
-
OMAGCommonErrorCode,
|
18
|
-
EgeriaException,
|
19
|
-
InvalidParameterException,
|
20
|
-
OMAGServerInstanceErrorCode,
|
21
|
-
PropertyServerException,
|
22
|
-
UserNotAuthorizedException
|
23
|
-
)
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
def body_slimmer(body:dict)-> dict:
|
28
|
-
""" body_slimmer is a little function to remove unused keys from a dict
|
29
|
-
|
30
|
-
Parameters
|
31
|
-
----------
|
32
|
-
body : the dictionary that you want to slim
|
33
|
-
|
34
|
-
Returns
|
35
|
-
-------
|
36
|
-
dict:
|
37
|
-
a slimmed body
|
38
|
-
"""
|
39
|
-
slimmed = {key: value for key, value in body.items() if value}
|
40
|
-
return slimmed
|
41
|
-
|
42
|
-
|
43
|
-
class GovEng(Client):
|
44
|
-
"""
|
45
|
-
Client to initiate and manage governance actions and processes.
|
46
|
-
|
47
|
-
Attributes:
|
48
|
-
server_name: str
|
49
|
-
Name of the server to configure.
|
50
|
-
platform_url : str
|
51
|
-
URL of the server platform to connect to
|
52
|
-
user_id : str
|
53
|
-
The identity of the user calling the method - this sets a default optionally used by the methods
|
54
|
-
when the user doesn't pass the user_id on a method call.
|
55
|
-
user_pwd: str = None
|
56
|
-
The password associated with the user
|
57
|
-
verify_flag: bool = enable_ssl_check
|
58
|
-
Set true for SSL verification to be enabled, false for disabled. Default behaviour set by the
|
59
|
-
enable_ssl_check attribute from _globals.py
|
60
|
-
|
61
|
-
Methods:
|
62
|
-
__init__(self,
|
63
|
-
platform_url: str,
|
64
|
-
end_user_id: str,
|
65
|
-
)
|
66
|
-
Initializes the connection - throwing an exception if there is a problem
|
67
|
-
|
68
|
-
"""
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
def __init__(
|
73
|
-
self,
|
74
|
-
server_name: str,
|
75
|
-
platform_url: str,
|
76
|
-
user_id: str,
|
77
|
-
user_pwd: str = None,
|
78
|
-
verify_flag: bool = enable_ssl_check,
|
79
|
-
):
|
80
|
-
self.admin_command_root: str
|
81
|
-
Client.__init__(self, server_name, platform_url, user_id,
|
82
|
-
user_pwd, verify_flag)
|
83
|
-
self.engine_command_root = (
|
84
|
-
self.platform_url
|
85
|
-
+ "/servers/" + server_name
|
86
|
-
+ "/open-metadata/framework-services/governance-engine/open-governance-service/users/"
|
87
|
-
+ user_id
|
88
|
-
)
|
89
|
-
# self.engine_info_root = (
|
90
|
-
# self.platform_url
|
91
|
-
# + "/servers/" + server_name
|
92
|
-
# + "/open-metadata/framework-services/governance-engine/users/"
|
93
|
-
# + user_id
|
94
|
-
# )
|
95
|
-
|
96
|
-
def get_engine_actions(self, start_from: str = 0, page_size: str = 0) -> [dict]:
|
97
|
-
""" Get engine actions associated deployed on the server.
|
98
|
-
|
99
|
-
Args:
|
100
|
-
start_from (int, optional): The index to start retrieving processes from. Defaults to 0.
|
101
|
-
page_size (int, optional): The number of processes to retrieve per page. Defaults to 0 (no pagination).
|
102
|
-
|
103
|
-
Returns:
|
104
|
-
List[str]: A list of JSON representations of governance action processes matching the provided name.
|
105
|
-
|
106
|
-
Raises:
|
107
|
-
InvalidParameterException: If the API response indicates an error (non-200 status code),
|
108
|
-
this exception is raised with details from the response content.
|
109
|
-
|
110
|
-
Note:
|
111
|
-
Pagination of 0 defaults to server default.
|
112
|
-
|
113
|
-
"""
|
114
|
-
url = (self.engine_command_root + "/engine-actions?startFrom=" +
|
115
|
-
str(start_from) + "&pageSize=" + str(page_size))
|
116
|
-
response = self.make_request("GET", url)
|
117
|
-
|
118
|
-
if response.status_code != 200:
|
119
|
-
return response.json() # should never get here?
|
120
|
-
|
121
|
-
related_code = response.json().get("relatedHTTPCode")
|
122
|
-
if related_code == 200:
|
123
|
-
governanceActionElements = response.json().get('elements')
|
124
|
-
return governanceActionElements
|
125
|
-
else:
|
126
|
-
raise InvalidParameterException(response.content)
|
127
|
-
|
128
|
-
def get_engine_action(self, engine_action_guid: str) -> str:
|
129
|
-
""" Return the governance action associated with the supplied guid
|
130
|
-
|
131
|
-
Parameters
|
132
|
-
----------
|
133
|
-
engine_action_guid : str
|
134
|
-
The unique identifier of the engine action to retrieve.
|
135
|
-
Returns
|
136
|
-
-------
|
137
|
-
JSON string of the governance action associated with the guid
|
138
|
-
|
139
|
-
Raises
|
140
|
-
------
|
141
|
-
InvalidParameterException
|
142
|
-
PropertyServerException
|
143
|
-
UserNotAuthorizedException
|
144
|
-
"""
|
145
|
-
|
146
|
-
url = self.engine_command_root + "/engine-actions/" + engine_action_guid
|
147
|
-
response = self.make_request("GET", url)
|
148
|
-
|
149
|
-
if response.status_code != 200:
|
150
|
-
return response.json() # should never get here?
|
151
|
-
|
152
|
-
related_code = response.json().get("relatedHTTPCode")
|
153
|
-
if related_code == 200:
|
154
|
-
governanceActionElement = response.json().get('element')
|
155
|
-
return (governanceActionElement)
|
156
|
-
else:
|
157
|
-
raise InvalidParameterException(response.content)
|
158
|
-
|
159
|
-
def get_active_engine_actions(self, start_from:int = 0, page_size:int = 0) -> [str]:
|
160
|
-
""" Get active governance actions associated on the server.
|
161
|
-
|
162
|
-
Args:
|
163
|
-
start_from (int, optional): The index to start retrieving processes from. Defaults to 0.
|
164
|
-
page_size (int, optional): The number of processes to retrieve per page. Defaults to 0 (no pagination).
|
165
|
-
|
166
|
-
Returns:
|
167
|
-
List[str]: A list of JSON representations of governance action processes matching the provided name.
|
168
|
-
|
169
|
-
Raises:
|
170
|
-
InvalidParameterException: If the API response indicates an error (non-200 status code),
|
171
|
-
this exception is raised with details from the response content.
|
172
|
-
|
173
|
-
Note:
|
174
|
-
Pagination of 0 defaults to server default.
|
175
|
-
"""
|
176
|
-
url = (self.engine_command_root + "/engine-actions/active?startFrom=" +
|
177
|
-
str(start_from) + "&pageSize=" + str(page_size))
|
178
|
-
|
179
|
-
response = self.make_request("GET", url)
|
180
|
-
|
181
|
-
if response.status_code != 200:
|
182
|
-
return response.json() # should never get here?
|
183
|
-
|
184
|
-
related_code = response.json().get("relatedHTTPCode")
|
185
|
-
if related_code == 200:
|
186
|
-
governanceActionElements = response.json().get('elements')
|
187
|
-
return governanceActionElements
|
188
|
-
else:
|
189
|
-
raise InvalidParameterException(response.content)
|
190
|
-
|
191
|
-
def get_engine_actions_by_name(self, name: str, startFrom: int = 0, pageSize: int = 0) -> str:
|
192
|
-
""" Retrieve engine actions matching the name string.
|
193
|
-
Args:
|
194
|
-
name (str): The qualified name or display name of the governance action to get.
|
195
|
-
start_from (int, optional): The index to start retrieving processes from. Defaults to 0.
|
196
|
-
page_size (int, optional): The number of processes to retrieve per page. Defaults to 0 (no pagination).
|
197
|
-
|
198
|
-
Returns:
|
199
|
-
List[str]: A list of JSON representations of governance action processes matching the provided name.
|
200
|
-
|
201
|
-
Raises:
|
202
|
-
InvalidParameterException: If the API response indicates an error (non-200 status code),
|
203
|
-
this exception is raised with details from the response content.
|
204
|
-
|
205
|
-
Note:
|
206
|
-
Pagination of 0 defaults to server default.
|
207
|
-
|
208
|
-
"""
|
209
|
-
url = (self.engine_command_root + "/engine-actions/by-name?startFrom=" +
|
210
|
-
str(startFrom) + "&pageSize=" + str(pageSize))
|
211
|
-
body = {
|
212
|
-
"class": "NameRequestBody",
|
213
|
-
"name": name
|
214
|
-
}
|
215
|
-
response = self.make_request("POST", url, body)
|
216
|
-
|
217
|
-
if response.status_code != 200:
|
218
|
-
return response.json() # should never get here?
|
219
|
-
|
220
|
-
related_code = response.json().get("relatedHTTPCode")
|
221
|
-
if related_code == 200:
|
222
|
-
governanceActionElements = response.json().get('elements')
|
223
|
-
return governanceActionElements
|
224
|
-
else:
|
225
|
-
raise InvalidParameterException(response.content)
|
226
|
-
|
227
|
-
def find_engine_actions(self, search_string:str, startFrom: int=0, pageSize:int=0) -> [str]:
|
228
|
-
""" Search for engine actions matching the search string.
|
229
|
-
|
230
|
-
Args:
|
231
|
-
search_string (str): The search string to query for.
|
232
|
-
start_from (int, optional): The index to start retrieving processes from. Defaults to 0.
|
233
|
-
page_size (int, optional): The number of processes to retrieve per page. Defaults to 0 (no pagination).
|
234
|
-
|
235
|
-
Returns:
|
236
|
-
List[str]: A list of JSON representations of governance action processes matching the provided name.
|
237
|
-
|
238
|
-
Raises:
|
239
|
-
InvalidParameterException: If the API response indicates an error (non-200 status code),
|
240
|
-
this exception is raised with details from the response content.
|
241
|
-
|
242
|
-
Note:
|
243
|
-
Pagination of 0 defaults to server default.
|
244
|
-
"""
|
245
|
-
url = (self.engine_command_root + "/engine-actions/by-search-string?startFrom=" +
|
246
|
-
str(startFrom) + "&pageSize=" + str(pageSize))
|
247
|
-
body = {
|
248
|
-
"class": "SearchStringRequestBody",
|
249
|
-
"searchString": search_string
|
250
|
-
}
|
251
|
-
response = self.make_request("POST", url, body)
|
252
|
-
|
253
|
-
if response.status_code != 200:
|
254
|
-
return response.json() # should never get here?
|
255
|
-
|
256
|
-
related_code = response.json().get("relatedHTTPCode")
|
257
|
-
if related_code == 200:
|
258
|
-
governanceActionElements = response.json().get('elements')
|
259
|
-
return governanceActionElements
|
260
|
-
else:
|
261
|
-
raise InvalidParameterException(response.content)
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
def get_governance_action_process_by_guid(self, gov_process_guid: str)->str:
|
266
|
-
"""
|
267
|
-
Retrieves information about a governance action process based on its GUID.
|
268
|
-
|
269
|
-
Args:
|
270
|
-
gov_process_guid (str): The GUID (Globally Unique Identifier) of the governance action process.
|
271
|
-
|
272
|
-
Returns:
|
273
|
-
str: The JSON representation of the governance action process element.
|
274
|
-
|
275
|
-
Raises:
|
276
|
-
InvalidParameterException: If the API response indicates an error (non-200 status code),
|
277
|
-
this exception is raised with details from the response content.
|
278
|
-
PropertyServerException: If the API response indicates a server side error.
|
279
|
-
UserNotAuthorizedException:
|
280
|
-
|
281
|
-
Note:
|
282
|
-
This method assumes that the provided GUID is valid and corresponds to an existing
|
283
|
-
governance action process in the system.
|
284
|
-
|
285
|
-
"""
|
286
|
-
url = self.engine_command_root + "/governance-action-processes/" + gov_process_guid
|
287
|
-
response = self.make_request("GET", url)
|
288
|
-
|
289
|
-
if response.status_code != 200:
|
290
|
-
return response.json() # should never get here?
|
291
|
-
|
292
|
-
related_code = response.json().get("relatedHTTPCode")
|
293
|
-
if related_code == 200:
|
294
|
-
governanceActionElement = response.json().get('element')
|
295
|
-
return(governanceActionElement)
|
296
|
-
else:
|
297
|
-
raise InvalidParameterException(response.content)
|
298
|
-
|
299
|
-
def get_governance_action_processes_by_name(self, name:str, start_from: int=0, page_size: int=0) -> [str]:
|
300
|
-
"""
|
301
|
-
Retrieves governance action processes based on their name only (no wildcards).
|
302
|
-
|
303
|
-
Args:
|
304
|
-
name (str): The qualified name or display name of the governance action to get.
|
305
|
-
start_from (int, optional): The index to start retrieving processes from. Defaults to 0.
|
306
|
-
page_size (int, optional): The number of processes to retrieve per page. Defaults to 0 (no pagination).
|
307
|
-
|
308
|
-
Returns:
|
309
|
-
List[str]: A list of JSON representations of governance action processes matching the provided name.
|
310
|
-
|
311
|
-
Raises:
|
312
|
-
InvalidParameterException: If the API response indicates an error (non-200 status code),
|
313
|
-
this exception is raised with details from the response content.
|
314
|
-
|
315
|
-
Note:
|
316
|
-
Pagination of 0 defaults to server default.
|
317
|
-
|
318
|
-
"""
|
319
|
-
url = (self.engine_command_root + "/governance-action-processes/by-name?startFrom=" + str(start_from)
|
320
|
-
+ "&pageSize=" + str(page_size))
|
321
|
-
body = {
|
322
|
-
"class" : "NameRequestBody",
|
323
|
-
"name" : name
|
324
|
-
}
|
325
|
-
response = self.make_request("POST", url, body)
|
326
|
-
|
327
|
-
if response.status_code != 200:
|
328
|
-
return response.json() # should never get here?
|
329
|
-
|
330
|
-
related_code = response.json().get("relatedHTTPCode")
|
331
|
-
if related_code == 200:
|
332
|
-
governanceActionElements = response.json().get('elements')
|
333
|
-
return governanceActionElements
|
334
|
-
else:
|
335
|
-
raise InvalidParameterException(response.content)
|
336
|
-
|
337
|
-
def find_governance_action_processes(self, search_string: str, start_from: int = 0, page_size: int = 0) -> [str]:
|
338
|
-
''' Return governance action processes that match the search string (with regex).
|
339
|
-
|
340
|
-
Args:
|
341
|
-
search_string (str): The search string to query for.
|
342
|
-
start_from (int, optional): The index to start retrieving processes from. Defaults to 0.
|
343
|
-
page_size (int, optional): The number of processes to retrieve per page. Defaults to 0 (no pagination).
|
344
|
-
|
345
|
-
Returns:
|
346
|
-
List[str]: A list of JSON representations of governance action processes matching the provided name.
|
347
|
-
|
348
|
-
Raises:
|
349
|
-
InvalidParameterException: If the API response indicates an error (non-200 status code),
|
350
|
-
this exception is raised with details from the response content.
|
351
|
-
|
352
|
-
Note:
|
353
|
-
Pagination of 0 defaults to server default.
|
354
|
-
|
355
|
-
'''
|
356
|
-
url = (self.engine_command_root + "/governance-action-processes/by-search-string?startFrom=" + str(start_from)
|
357
|
-
+ "&pageSize=" + str(page_size))
|
358
|
-
body = {
|
359
|
-
"class": "SearchStringRequestBody",
|
360
|
-
"searchString": search_string
|
361
|
-
}
|
362
|
-
response = self.make_request("POST", url, body)
|
363
|
-
|
364
|
-
if response.status_code != 200:
|
365
|
-
return response.json() # should never get here?
|
366
|
-
|
367
|
-
related_code = response.json().get("relatedHTTPCode")
|
368
|
-
if related_code == 200:
|
369
|
-
governanceActionElements = response.json().get('elements')
|
370
|
-
return governanceActionElements
|
371
|
-
else:
|
372
|
-
raise InvalidParameterException(response.content)
|
373
|
-
|
374
|
-
def initiate_governance_action_process(self, qualified_name: str, request_source_guids: [str],
|
375
|
-
action_targets: [str], start_time: datetime, request_parameters: dict,
|
376
|
-
orig_service_name: str, orig_engine_name: str
|
377
|
-
) -> str:
|
378
|
-
""" initiate_gov_action_process
|
379
|
-
|
380
|
-
This method starts a governance action process using the supplied parameters.
|
381
|
-
|
382
|
-
Parameters
|
383
|
-
----------
|
384
|
-
qualified_name: str
|
385
|
-
- unique name for the governance process
|
386
|
-
request_source_guids: [str]
|
387
|
-
- request source elements for the resulting governance action service
|
388
|
-
action_targets: [str]
|
389
|
-
-list of action target names to GUIDs for the resulting governance action service
|
390
|
-
start_time: datetime
|
391
|
-
- time to start the process
|
392
|
-
request_parameters: [str]
|
393
|
-
- parameters passed into the process
|
394
|
-
orig_service_name: str
|
395
|
-
- unique name of the requesting governance service (if initiated by a governance engine)
|
396
|
-
orig_engine_name: str
|
397
|
-
- optional unique name of the governance engine (if initiated by a governance engine).
|
398
|
-
|
399
|
-
Returns
|
400
|
-
-------
|
401
|
-
Unique id (guid) of the newly started governance engine process
|
402
|
-
|
403
|
-
Raises
|
404
|
-
------
|
405
|
-
InvalidParameterException
|
406
|
-
PropertyServerException
|
407
|
-
UserNotAuthorizedException
|
408
|
-
|
409
|
-
"""
|
410
|
-
url = self.engine_command_root + "/governance-action-processes/initiate"
|
411
|
-
body = {
|
412
|
-
"class" :"GovernanceActionProcessRequestBody",
|
413
|
-
"processQualifiedName" : qualified_name,
|
414
|
-
"requestSourceGUIDs" : request_source_guids,
|
415
|
-
"actionTargets" : action_targets,
|
416
|
-
"startTime" : int(start_time.timestamp() * 1000),
|
417
|
-
"requestParameters" : request_parameters,
|
418
|
-
"originatorServiceName" : orig_service_name,
|
419
|
-
"originatorEngineName" : orig_engine_name
|
420
|
-
}
|
421
|
-
new_body = body_slimmer(body)
|
422
|
-
response = self.make_request("POST", url, new_body)
|
423
|
-
|
424
|
-
if response.status_code != 200:
|
425
|
-
return response.json() # should never get here?
|
426
|
-
|
427
|
-
related_code = response.json().get("relatedHTTPCode")
|
428
|
-
if related_code == 200:
|
429
|
-
return response.json().get('guid')
|
430
|
-
else:
|
431
|
-
raise InvalidParameterException(response.content)
|
432
|
-
|
433
|
-
|
434
|
-
def initiate_engine_action (self, qualified_name: str, domain_identifier: int, display_name: str,
|
435
|
-
description: str, request_source_guids: str, action_targets: str,
|
436
|
-
received_guards: [str], start_time: datetime, gov_engine_name: str,
|
437
|
-
request_type: str, request_parameters: dict, process_name: str,
|
438
|
-
request_src_name: str= None, originator_svc_name: str= None,
|
439
|
-
originator_eng_name: str = None) -> str:
|
440
|
-
"""
|
441
|
-
Initiates an engine action with the specified parameters.
|
442
|
-
|
443
|
-
Args:
|
444
|
-
qualified_name (str): The qualified name of the governance action.
|
445
|
-
domain_identifier (int): The domain identifier for the governance action.
|
446
|
-
display_name (str): The display name of the governance action.
|
447
|
-
description (str): The description of the governance action.
|
448
|
-
request_source_guids (str): GUIDs of the sources initiating the request.
|
449
|
-
action_targets (str): Targets of the governance action.
|
450
|
-
received_guards (List[str]): List of guards received for the action.
|
451
|
-
start_time (datetime): The start time for the governance action.
|
452
|
-
gov_engine_name (str): The name of the governance engine associated with the action.
|
453
|
-
request_type (str): The type of the governance action request.
|
454
|
-
request_parameters (dict): Additional parameters for the governance action.
|
455
|
-
process_name (str): The name of the associated governance action process.
|
456
|
-
request_src_name (str, optional): The name of the request source. Defaults to None.
|
457
|
-
originator_svc_name (str, optional): The name of the originator service. Defaults to None.
|
458
|
-
originator_eng_name (str, optional): The name of the originator engine. Defaults to None.
|
459
|
-
|
460
|
-
Returns:
|
461
|
-
str: The GUID (Globally Unique Identifier) of the initiated governance action.
|
462
|
-
|
463
|
-
Raises:
|
464
|
-
InvalidParameterException: If the API response indicates an error (non-200 status code),
|
465
|
-
this exception is raised with details from the response content.
|
466
|
-
|
467
|
-
Note:
|
468
|
-
The `start_time` parameter should be a `datetime` object representing the start time of the governance action.
|
469
|
-
|
470
|
-
|
471
|
-
"""
|
472
|
-
url = self.engine_command_root + ("/governance-engines/" + gov_engine_name +
|
473
|
-
"/engine-actions/initiate")
|
474
|
-
|
475
|
-
body = {
|
476
|
-
"class" : "GovernanceActionRequestBody",
|
477
|
-
"qualifiedName" : qualified_name + str(int(start_time.timestamp())),
|
478
|
-
"domainIdentifier" : domain_identifier,
|
479
|
-
"displayName" : display_name,
|
480
|
-
"description" : description,
|
481
|
-
"requestSourceGUIDs" : request_source_guids,
|
482
|
-
"actionTargets" : action_targets,
|
483
|
-
"receivedGuards" : received_guards,
|
484
|
-
"startTime" : int(start_time.timestamp()*1000),
|
485
|
-
"requestType" : request_type,
|
486
|
-
"requestParameters" : request_parameters,
|
487
|
-
"processName" : process_name,
|
488
|
-
"requestSourceName" : request_src_name,
|
489
|
-
"originatorServiceName" : originator_svc_name,
|
490
|
-
"originatorEngineName" : originator_eng_name
|
491
|
-
}
|
492
|
-
new_body = body_slimmer(body)
|
493
|
-
response = self.make_request("POST", url, new_body)
|
494
|
-
if response.status_code != 200:
|
495
|
-
return response.json() # should never get here?
|
496
|
-
|
497
|
-
related_code = response.json().get("relatedHTTPCode")
|
498
|
-
if related_code == 200:
|
499
|
-
return response.json().get('guid')
|
500
|
-
else:
|
501
|
-
raise InvalidParameterException(response.content)
|
502
|
-
|
503
|
-
|
504
|
-
def print_engine_action_summary(self,governanceAction: dict):
|
505
|
-
""" print_governance_action_summary
|
506
|
-
|
507
|
-
Print all the governance actions with their status, in the server.
|
508
|
-
|
509
|
-
Parameters
|
510
|
-
----------
|
511
|
-
|
512
|
-
Returns
|
513
|
-
-------
|
514
|
-
|
515
|
-
Raises
|
516
|
-
------
|
517
|
-
InvalidParameterException
|
518
|
-
PropertyServerException
|
519
|
-
UserNotAuthorizedException
|
520
|
-
"""
|
521
|
-
if governanceAction:
|
522
|
-
name = governanceAction.get('displayName')
|
523
|
-
if not name:
|
524
|
-
name = governanceAction.get('qualifiedName')
|
525
|
-
actionStatus = governanceAction.get('actionStatus')
|
526
|
-
if governanceAction.get('completionGuards'):
|
527
|
-
completionGuards = governanceAction.get('completionGuards')
|
528
|
-
else:
|
529
|
-
completionGuards = "\t"
|
530
|
-
if governanceAction.get('processName'):
|
531
|
-
processName = governanceAction.get('processName')
|
532
|
-
else:
|
533
|
-
processName = "\t"
|
534
|
-
if governanceAction.get('completionMessage'):
|
535
|
-
completionMessage = governanceAction.get('completionMessage')
|
536
|
-
else:
|
537
|
-
completionMessage = ""
|
538
|
-
print(actionStatus + "\n\t| " + name + "\t| " + processName + "\t| " + '%s' % ', '.join(
|
539
|
-
map(str, completionGuards)) + "\t| " + completionMessage)
|
540
|
-
|
541
|
-
def print_engine_actions(self):
|
542
|
-
""" print_governance_actions
|
543
|
-
|
544
|
-
Print all the governance actions with their status, in the server.
|
545
|
-
|
546
|
-
Parameters
|
547
|
-
----------
|
548
|
-
|
549
|
-
Returns
|
550
|
-
-------
|
551
|
-
|
552
|
-
Raises
|
553
|
-
------
|
554
|
-
InvalidParameterException
|
555
|
-
PropertyServerException
|
556
|
-
UserNotAuthorizedException
|
557
|
-
|
558
|
-
"""
|
559
|
-
governance_actions = self.get_engine_actions(0,0)
|
560
|
-
if governance_actions != None:
|
561
|
-
for x in range(len(governance_actions)):
|
562
|
-
self.print_engine_action_summary(governance_actions[x])
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
@@ -1,57 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: pyegeria
|
3
|
-
Version: 0.2.3
|
4
|
-
Summary: A python client for Egeria
|
5
|
-
Project-URL: Homepage, https://github.com/odpi/egeria-python
|
6
|
-
Project-URL: Issues, https://github.com/odpi/egeria-python/issues
|
7
|
-
Author-email: Dan Wolfson <dan.wolfson@pdr-associates.com>
|
8
|
-
License-File: LICENSE
|
9
|
-
Keywords: egeria,governance,metadata
|
10
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
11
|
-
Classifier: Programming Language :: Python
|
12
|
-
Classifier: Programming Language :: Python :: 3
|
13
|
-
Requires-Python: >=3.10
|
14
|
-
Requires-Dist: httpx~=0.26.0
|
15
|
-
Requires-Dist: pandas~=2.2.0
|
16
|
-
Requires-Dist: pytest~=7.4.2
|
17
|
-
Requires-Dist: requests~=2.31.0
|
18
|
-
Requires-Dist: rich~=13.7.1
|
19
|
-
Requires-Dist: tabulate~=0.9.0
|
20
|
-
Requires-Dist: urllib3~=1.26.15
|
21
|
-
Requires-Dist: validators~=0.22.0
|
22
|
-
Description-Content-Type: text/markdown
|
23
|
-
|
24
|
-
<!-- SPDX-License-Identifier: CC-BY-4.0 -->
|
25
|
-
<!-- Copyright Contributors to the ODPi Egeria project. -->
|
26
|
-
|
27
|
-

|
28
|
-
|
29
|
-
[](LICENSE)
|
30
|
-
|
31
|
-
|
32
|
-
# pyegeria: a python client for Egeria
|
33
|
-
|
34
|
-
This is an experimental package for easily using the Egeria
|
35
|
-
open metadata environment from python. Details about the
|
36
|
-
open source Egeria project can be found at [Egeria Project](https://egeria-project.org).
|
37
|
-
|
38
|
-
This package is in active development. There is initial
|
39
|
-
support for Egeria's platform services and configuration of Open Metadata and Governance servers
|
40
|
-
along with some basic utilities.
|
41
|
-
Next will be additional support to configure and operate servers, followed
|
42
|
-
by glossary support.
|
43
|
-
|
44
|
-
The code is organized to mimic the existing Egeria Java Client structure.
|
45
|
-
|
46
|
-
All feedback is welcome. Please engage via our [community](http://egeria-project.org/guides/community/),
|
47
|
-
team calls, or via github issues in this repo. If interested in contributing,
|
48
|
-
you can engage via the community or directly reach out to
|
49
|
-
[dan.wolfson\@pdr-associates.com](mailto:dan.wolfson@pdr-associates.com?subject=pyegeria).
|
50
|
-
|
51
|
-
This is a learning experience.
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
----
|
56
|
-
License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/),
|
57
|
-
Copyright Contributors to the ODPi Egeria project.
|
pyegeria-0.2.3.dist-info/RECORD
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
pyegeria/__init__.py,sha256=Rd8lF5FOXZWwvzGRxcQalmEW_N3eQh1NOjJI-ayt85w,1220
|
2
|
-
pyegeria/_client-orig.py,sha256=QAnlUY0kEN4ierCHw93Ki982Fs87Osk5aGCJpetR_MQ,18843
|
3
|
-
pyegeria/_client.py,sha256=835PUECHzGSpKigQ54TRwmSj1vqnPrS3wmx64Yb4uJs,20990
|
4
|
-
pyegeria/_exceptions.py,sha256=E4d60USV3A6X7e3WzE0f7o7U7wAntS0ajvXeMrBKRzg,18306
|
5
|
-
pyegeria/_globals.py,sha256=WgJ6O7_ACiAG8CUUHT_AbGgahLhO0APU8Y4rCwv9DRw,558
|
6
|
-
pyegeria/_validators.py,sha256=Gd2BnFYYUWWJ0OBWvlGE3-ENQE22pyKTfsvep8eWaQ8,12701
|
7
|
-
pyegeria/automated_curation.py,sha256=I1j2n4T3vYxBVWElUcZSHMIKT1Cq91hzD5zVBtfUnig,16058
|
8
|
-
pyegeria/config.toml,sha256=2Jp6ozhlVgDLWeG5702dTTAYEUv_jYNAFFWpEyR8xV8,214
|
9
|
-
pyegeria/core_omag_server_config.py,sha256=vDNeOdxN548g5SZUHSTtK8iz0lE8jbcj7XgRllNA5Dk,93098
|
10
|
-
pyegeria/curation_omvs.py,sha256=b_QutK9kAhpdaAjv5zTAneURmsZrMiKZymEeYV9Y1Fg,18952
|
11
|
-
pyegeria/exceptions.py,sha256=LImJPHy7MVgoH17LfqEL4ytLKcOhV7oCe66wZiDBzec,18399
|
12
|
-
pyegeria/full_omag_server_config.py,sha256=tp4eq7bVReUffYWsCDuAU7fWtn0yCX5bZQ0M_RQn_cY,38825
|
13
|
-
pyegeria/glossary_omvs.py,sha256=txe8wMWEGFoglWT1ACgeI9m54fNyP0E1r8T4b8Otbyc,29809
|
14
|
-
pyegeria/gov_engine.py,sha256=gR79hwQsqsteS8m4C22KQqQsUesqhJEqlZ1AUEglrIM,23234
|
15
|
-
pyegeria/platform_services.py,sha256=aAQ5zI7JL3LURDyTZDLr1mP21hfjC6Y-KPfERmWpLD4,41885
|
16
|
-
pyegeria/registered_info.py,sha256=vffGbrb4nD3_mp6MfAan8pC82vRJTRHKGTbF0Giy1PM,7502
|
17
|
-
pyegeria/server_operations.py,sha256=uKQl9ONH3kxPictvNfX4OFSC4y0zqvTL6XZ-mMuwBD0,13107
|
18
|
-
pyegeria/utils.py,sha256=qA9VYct7hf76l9lvgZgMmcygst-_ikUrm08VWO67IGg,5252
|
19
|
-
pyegeria-0.2.3.dist-info/METADATA,sha256=eI1wqBlAkW5ImnQqv7dZO0KYAzofQgoxMTMyJms76u4,2179
|
20
|
-
pyegeria-0.2.3.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
|
21
|
-
pyegeria-0.2.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
22
|
-
pyegeria-0.2.3.dist-info/RECORD,,
|
File without changes
|