pyegeria 0.4.0__tar.gz → 0.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyegeria-0.4.0/src/pyegeria.egg-info → pyegeria-0.4.1}/PKG-INFO +1 -1
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/__pycache__/globals.cpython-312.pyc +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDS1.py +7 -8
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDS2.py +8 -8
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDS3.py +14 -14
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDS4.py +15 -15
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDS5.py +11 -11
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDS6.py +15 -15
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDSx.py +18 -18
- pyegeria-0.4.1/examples/Coco_config/config_cocoView1.py +158 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/config_exchangeDL01.py +5 -5
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/globals.py +3 -3
- pyegeria-0.4.1/examples/Coco_config/start_all_coco.py +9 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Jupyter Notebooks/P-egeria-server-config.ipynb +1 -1
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/catalog_user/list_assets.py +1 -1
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/catalog_user/view_asset_graph.py +38 -29
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/operational/view_asset_events.py +10 -15
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/operational/view_coco_status.py +10 -9
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/operational/view_integ_daemon_status.py +45 -23
- {pyegeria-0.4.0 → pyegeria-0.4.1}/pyproject.toml +1 -1
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/core_omag_server_config.py +1 -1
- {pyegeria-0.4.0 → pyegeria-0.4.1/src/pyegeria.egg-info}/PKG-INFO +1 -1
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria.egg-info/SOURCES.txt +1 -1
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_asset_catalog_omvs.py +2 -2
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_automated_curation_omvs.py +6 -5
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_core_omag_server_config.py +2 -2
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_runtime_manager.py +6 -3
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_server_operations.py +5 -5
- pyegeria-0.4.0/examples/Coco_config/config_cocoView1.py +0 -158
- pyegeria-0.4.0/examples/widgets/operational/view_asset_changes.py +0 -82
- {pyegeria-0.4.0 → pyegeria-0.4.1}/LICENSE +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/MANIFEST.in +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/README.md +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/.DS_Store +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/README.md +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/__init__.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/config_governDL01.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/config_monitorDev01.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Coco_config/config_monitorGov01.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Doc_Samples/Create_Collection_Sample.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Doc_Samples/Create_Sustainability_Collection_Sample.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Jupyter Notebooks/README.md +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/P-environment-check.ipynb +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/__init__.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/common-functions.ipynb +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/environment-check.ipynb +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/globals.ipynb +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/globals.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/orig_globals.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/__init__.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/__pycache__/__init__.cpython-312.pyc +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/.DS_Store +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/README.md +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/__init__.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/__pycache__/__init__.cpython-312.pyc +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/__pycache__/server_status_widget.cpython-312-pytest-7.4.4.pyc +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/catalog_user/README.md +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/catalog_user/__init__.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/catalog_user/view_collection.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/catalog_user/view_glossary.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/developer/README.md +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/developer/__init__.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/developer/get_guid_info.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/developer/get_tech_details.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/developer/list_asset_types.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/developer/list_registered_services.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/developer/list_relationship_types.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/developer/list_tech_templates.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/developer/list_tech_types.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/developer/list_valid_metadata_values.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/operational/README.md +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/operational/__init__.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/operational/get_tech_type_elements.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/operational/get_tech_type_template.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/operational/view_eng_action_status.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/operational/view_gov_eng_status.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/operational/view_platform_status.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/operational/view_server_list.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/operational/view_server_status.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/personal_organizer/README.md +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/personal_organizer/__init__.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/personal_organizer/get_my_profile.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/personal_organizer/list_projects.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/personal_organizer/list_todos.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/personal_organizer/view_my_todos.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/examples/widgets/personal_organizer/view_open_todos.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/setup.cfg +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/setup.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/Xfeedback_manager_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/Xloaded_resources_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/__init__.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/_client.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/_deprecated_gov_engine.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/_exceptions.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/_globals.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/_validators.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/action_author_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/asset_catalog_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/automated_curation_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/collection_manager_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/core_guids.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/full_omag_server_config.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/glossary_browser_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/glossary_manager_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/my_profile_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/platform_services.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/project_manager_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/registered_info.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/runtime_manager_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/server_operations.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/utils.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria/valid_metadata_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria.egg-info/dependency_links.txt +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria.egg-info/requires.txt +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/src/pyegeria.egg-info/top_level.txt +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_Xglossary_manager_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_client.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_collection_manager_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_full_omag_server_config.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_glossary_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_loaded_resources.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_my_profile_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_platform_services.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_project_manager_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_registered_info.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_util_exp.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_valid_metadata_omvs.py +0 -0
- {pyegeria-0.4.0 → pyegeria-0.4.1}/tests/test_validators.py +0 -0
Binary file
|
@@ -32,20 +32,20 @@ print("Configuring " + mdr_server + "..." + " @ " + platform_url)
|
|
32
32
|
try:
|
33
33
|
o_client = CoreServerConfig(mdr_server, platform_url, admin_user)
|
34
34
|
|
35
|
-
o_client.set_basic_server_properties(
|
35
|
+
o_client.set_basic_server_properties("Data lake operations",
|
36
36
|
"Coco Pharmaceuticals",
|
37
37
|
platform_url,
|
38
38
|
mdr_server_user_id, mdr_server_password,
|
39
|
-
max_page_size)
|
39
|
+
max_page_size, mdr_server)
|
40
40
|
|
41
41
|
# Can also inherit event bus config from application properties
|
42
42
|
|
43
43
|
event_bus_config = {
|
44
44
|
"producer": {
|
45
|
-
"bootstrap.servers": "
|
45
|
+
"bootstrap.servers": "{{kafkaEndpoint}}"
|
46
46
|
},
|
47
47
|
"consumer": {
|
48
|
-
"bootstrap.servers": "
|
48
|
+
"bootstrap.servers": "{{kafkaEndpoint}}"
|
49
49
|
}
|
50
50
|
}
|
51
51
|
|
@@ -75,7 +75,7 @@ try:
|
|
75
75
|
"SupportedZones": ["quarantine", "clinical-trials", "research", "data-lake", "trash-can"]
|
76
76
|
}
|
77
77
|
|
78
|
-
o_client.configure_access_service("asset-catalog", access_service_options)
|
78
|
+
# o_client.configure_access_service("asset-catalog", access_service_options)
|
79
79
|
o_client.configure_access_service("asset-consumer", access_service_options)
|
80
80
|
|
81
81
|
access_service_options["DefaultZones"] = ["quarantine"]
|
@@ -87,9 +87,8 @@ try:
|
|
87
87
|
o_client.configure_access_service("asset-owner", access_service_options)
|
88
88
|
o_client.configure_access_service("community-profile",
|
89
89
|
{"KarmaPointPlateau": "500"})
|
90
|
-
o_client.configure_access_service("glossary-view", {})
|
91
|
-
o_client.configure_access_service("
|
92
|
-
o_client.configure_access_service("data-engine", access_service_options)
|
90
|
+
# o_client.configure_access_service("glossary-view", {})
|
91
|
+
# o_client.configure_access_service("data-engine", access_service_options)
|
93
92
|
o_client.configure_access_service("data-manager", access_service_options)
|
94
93
|
o_client.configure_access_service("digital-architecture", access_service_options)
|
95
94
|
o_client.configure_access_service("governance-engine", access_service_options)
|
@@ -36,7 +36,7 @@ print("Configuring " + mdr_server + "...")
|
|
36
36
|
try:
|
37
37
|
o_client = CoreServerConfig(mdr_server, platform_url, admin_user)
|
38
38
|
|
39
|
-
o_client.set_basic_server_properties(
|
39
|
+
o_client.set_basic_server_properties("Governance Server",
|
40
40
|
"Coco Pharmaceuticals",
|
41
41
|
platform_url,
|
42
42
|
mdr_server_user_id, mdr_server_password,
|
@@ -46,10 +46,10 @@ try:
|
|
46
46
|
|
47
47
|
event_bus_config = {
|
48
48
|
"producer": {
|
49
|
-
"bootstrap.servers": "
|
49
|
+
"bootstrap.servers": "{{kafkaEndpoint}}"
|
50
50
|
},
|
51
51
|
"consumer": {
|
52
|
-
"bootstrap.servers": "
|
52
|
+
"bootstrap.servers": "{{kafkaEndpoint}}"
|
53
53
|
}
|
54
54
|
}
|
55
55
|
|
@@ -79,20 +79,20 @@ try:
|
|
79
79
|
|
80
80
|
print(f"Configuring {mdr_server} Access Services (OMAS)....")
|
81
81
|
|
82
|
-
o_client.configure_access_service("asset-catalog", {})
|
82
|
+
# o_client.configure_access_service("asset-catalog", {})
|
83
83
|
o_client.configure_access_service("asset-consumer", {})
|
84
84
|
|
85
85
|
o_client.configure_access_service("asset-owner", {})
|
86
86
|
o_client.configure_access_service("community-profile",
|
87
87
|
{"KarmaPointPlateau": "500"})
|
88
|
-
o_client.configure_access_service("glossary-view", {})
|
89
|
-
o_client.configure_access_service("subject-area", {})
|
88
|
+
# o_client.configure_access_service("glossary-view", {})
|
89
|
+
# o_client.configure_access_service("subject-area", {})
|
90
90
|
o_client.configure_access_service("governance-engine", {})
|
91
91
|
o_client.configure_access_service("governance-server", {})
|
92
92
|
o_client.configure_access_service("governance-program", {})
|
93
|
-
o_client.configure_access_service("data-privacy", {})
|
93
|
+
# o_client.configure_access_service("data-privacy", {})
|
94
94
|
o_client.configure_access_service("digital-architecture", {})
|
95
|
-
o_client.configure_access_service("security-
|
95
|
+
o_client.configure_access_service("security-manager", {})
|
96
96
|
o_client.configure_access_service("asset-lineage", {})
|
97
97
|
o_client.configure_access_service("it-infrastructure", {})
|
98
98
|
o_client.configure_access_service("project-management", {})
|
@@ -32,7 +32,7 @@ print("Configuring " + mdr_server + "...")
|
|
32
32
|
try:
|
33
33
|
o_client = CoreServerConfig(mdr_server, platform_url, admin_user)
|
34
34
|
|
35
|
-
o_client.set_basic_server_properties(
|
35
|
+
o_client.set_basic_server_properties("Research Server",
|
36
36
|
"Coco Pharmaceuticals",
|
37
37
|
platform_url,
|
38
38
|
mdr_server_user_id, mdr_server_password,
|
@@ -40,16 +40,16 @@ try:
|
|
40
40
|
|
41
41
|
# Can inherit event bus config
|
42
42
|
|
43
|
-
event_bus_config = {
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
}
|
51
|
-
|
52
|
-
o_client.set_event_bus(event_bus_config)
|
43
|
+
# event_bus_config = {
|
44
|
+
# "producer": {
|
45
|
+
# "bootstrap.servers": "localhost:9092"
|
46
|
+
# },
|
47
|
+
# "consumer": {
|
48
|
+
# "bootstrap.servers": "localhost:9092"
|
49
|
+
# }
|
50
|
+
# }
|
51
|
+
#
|
52
|
+
# o_client.set_event_bus(event_bus_config)
|
53
53
|
|
54
54
|
security_connection_body = {
|
55
55
|
"class": "Connection",
|
@@ -75,7 +75,7 @@ try:
|
|
75
75
|
access_service_options = {
|
76
76
|
"SupportedZones": ["personal-files", "clinical-trials", "research", "data-lake", "trash-can"]
|
77
77
|
}
|
78
|
-
o_client.configure_access_service("asset-catalog", access_service_options)
|
78
|
+
# o_client.configure_access_service("asset-catalog", access_service_options)
|
79
79
|
o_client.configure_access_service("asset-consumer", access_service_options)
|
80
80
|
|
81
81
|
access_service_options["DefaultZones"] = ["personal-files"]
|
@@ -83,9 +83,9 @@ try:
|
|
83
83
|
o_client.configure_access_service("asset-owner", access_service_options)
|
84
84
|
o_client.configure_access_service("community-profile",
|
85
85
|
{"KarmaPointPlateau": "500"})
|
86
|
-
o_client.configure_access_service("glossary-view", {})
|
86
|
+
# o_client.configure_access_service("glossary-view", {})
|
87
87
|
o_client.configure_access_service("data-science", {})
|
88
|
-
o_client.configure_access_service("subject-area", {})
|
88
|
+
# o_client.configure_access_service("subject-area", {})
|
89
89
|
o_client.configure_access_service("asset-manager", access_service_options)
|
90
90
|
o_client.configure_access_service("governance-engine", access_service_options)
|
91
91
|
o_client.configure_access_service("governance-server", access_service_options)
|
@@ -13,7 +13,7 @@ This script creates and configures the cocoMDS4 - Data Lake Users
|
|
13
13
|
|
14
14
|
import json
|
15
15
|
|
16
|
-
from globals import (cocoMDS4Name,
|
16
|
+
from globals import (cocoMDS4Name, dataLakePlatformURL, cocoCohort, max_paging_size)
|
17
17
|
from pyegeria import CoreServerConfig, Platform
|
18
18
|
from pyegeria import (
|
19
19
|
print_exception_response,
|
@@ -22,7 +22,7 @@ from pyegeria import (
|
|
22
22
|
disable_ssl_warnings = True
|
23
23
|
|
24
24
|
mdr_server = cocoMDS4Name
|
25
|
-
platform_url =
|
25
|
+
platform_url = dataLakePlatformURL
|
26
26
|
admin_user = "garygeeke"
|
27
27
|
mdr_server_user_id = "cocoMDS4npa"
|
28
28
|
mdr_server_password = "cocoMDS4passw0rd"
|
@@ -34,7 +34,7 @@ print("Configuring " + mdr_server + "...")
|
|
34
34
|
try:
|
35
35
|
o_client = CoreServerConfig(mdr_server, platform_url, admin_user)
|
36
36
|
|
37
|
-
o_client.set_basic_server_properties(
|
37
|
+
o_client.set_basic_server_properties("Data Lake Users",
|
38
38
|
"Coco Pharmaceuticals",
|
39
39
|
platform_url,
|
40
40
|
mdr_server_user_id, mdr_server_password,
|
@@ -42,16 +42,16 @@ try:
|
|
42
42
|
|
43
43
|
# Inherit event bus config
|
44
44
|
|
45
|
-
event_bus_config = {
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
}
|
53
|
-
|
54
|
-
o_client.set_event_bus(event_bus_config)
|
45
|
+
# event_bus_config = {
|
46
|
+
# "producer": {
|
47
|
+
# "bootstrap.servers": "localhost:9092"
|
48
|
+
# },
|
49
|
+
# "consumer": {
|
50
|
+
# "bootstrap.servers": "localhost:9092"
|
51
|
+
# }
|
52
|
+
# }
|
53
|
+
#
|
54
|
+
# o_client.set_event_bus(event_bus_config)
|
55
55
|
|
56
56
|
security_connection_body = {
|
57
57
|
"class": "Connection",
|
@@ -75,12 +75,12 @@ try:
|
|
75
75
|
"SupportedZones": ["data-lake"]
|
76
76
|
}
|
77
77
|
|
78
|
-
o_client.configure_access_service("asset-catalog", accessServiceOptions)
|
78
|
+
# o_client.configure_access_service("asset-catalog", accessServiceOptions)
|
79
79
|
o_client.configure_access_service("asset-consumer", accessServiceOptions)
|
80
80
|
o_client.configure_access_service("asset-owner", {})
|
81
81
|
o_client.configure_access_service("community-profile",
|
82
82
|
{"KarmaPointPlateau": "500"})
|
83
|
-
o_client.configure_access_service("glossary-view", {})
|
83
|
+
# o_client.configure_access_service("glossary-view", {})
|
84
84
|
o_client.configure_access_service("data-science", accessServiceOptions)
|
85
85
|
|
86
86
|
p_client = Platform(mdr_server, platform_url, admin_user)
|
@@ -43,7 +43,7 @@ print("Configuring " + mdr_server + "...")
|
|
43
43
|
try:
|
44
44
|
o_client = CoreServerConfig(mdr_server, platform_url, admin_user)
|
45
45
|
|
46
|
-
o_client.set_basic_server_properties(
|
46
|
+
o_client.set_basic_server_properties("Business Systems",
|
47
47
|
"Coco Pharmaceuticals",
|
48
48
|
platform_url,
|
49
49
|
mdr_server_user_id, mdr_server_password,
|
@@ -51,16 +51,16 @@ try:
|
|
51
51
|
|
52
52
|
# Inherit event bus config
|
53
53
|
|
54
|
-
event_bus_config = {
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
}
|
62
|
-
|
63
|
-
o_client.set_event_bus(event_bus_config)
|
54
|
+
# event_bus_config = {
|
55
|
+
# "producer": {
|
56
|
+
# "bootstrap.servers": "localhost:9092"
|
57
|
+
# },
|
58
|
+
# "consumer": {
|
59
|
+
# "bootstrap.servers": "localhost:9092"
|
60
|
+
# }
|
61
|
+
# }
|
62
|
+
#
|
63
|
+
# o_client.set_event_bus(event_bus_config)
|
64
64
|
|
65
65
|
security_connection_body = {
|
66
66
|
"class": "Connection",
|
@@ -36,7 +36,7 @@ print("Configuring " + mdr_server + "...")
|
|
36
36
|
try:
|
37
37
|
o_client = CoreServerConfig(mdr_server, platform_url, admin_user)
|
38
38
|
|
39
|
-
o_client.set_basic_server_properties(
|
39
|
+
o_client.set_basic_server_properties("Manufacturing",
|
40
40
|
"Coco Pharmaceuticals",
|
41
41
|
platform_url,
|
42
42
|
mdr_server_user_id, mdr_server_password,
|
@@ -44,16 +44,16 @@ try:
|
|
44
44
|
|
45
45
|
# Can inherit event bus config
|
46
46
|
|
47
|
-
event_bus_config = {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
}
|
55
|
-
|
56
|
-
o_client.set_event_bus(event_bus_config)
|
47
|
+
# event_bus_config = {
|
48
|
+
# "producer": {
|
49
|
+
# "bootstrap.servers": "localhost:9092"
|
50
|
+
# },
|
51
|
+
# "consumer": {
|
52
|
+
# "bootstrap.servers": "localhost:9092"
|
53
|
+
# }
|
54
|
+
# }
|
55
|
+
#
|
56
|
+
# o_client.set_event_bus(event_bus_config)
|
57
57
|
|
58
58
|
security_connection_body = {
|
59
59
|
"class": "Connection",
|
@@ -83,19 +83,19 @@ try:
|
|
83
83
|
"DefaultZones": ["manufacturing"]
|
84
84
|
}
|
85
85
|
|
86
|
-
o_client.configure_access_service("asset-catalog", access_service_options)
|
86
|
+
# o_client.configure_access_service("asset-catalog", access_service_options)
|
87
87
|
o_client.configure_access_service("asset-consumer", access_service_options)
|
88
88
|
o_client.configure_access_service("asset-owner", access_service_options)
|
89
89
|
o_client.configure_access_service("community-profile",
|
90
90
|
{"KarmaPointPlateau": "500"})
|
91
|
-
o_client.configure_access_service("glossary-view", {})
|
91
|
+
# o_client.configure_access_service("glossary-view", {})
|
92
92
|
o_client.configure_access_service("data-science", access_service_options)
|
93
|
-
o_client.configure_access_service("subject-area", {})
|
93
|
+
# o_client.configure_access_service("subject-area", {})
|
94
94
|
o_client.configure_access_service("asset-manager", access_service_options)
|
95
95
|
o_client.configure_access_service("governance-engine", access_service_options)
|
96
96
|
o_client.configure_access_service("governance-server", access_service_options)
|
97
97
|
o_client.configure_access_service("asset-owner", access_service_options)
|
98
|
-
o_client.configure_access_service("data-engine", access_service_options)
|
98
|
+
# o_client.configure_access_service("data-engine", access_service_options)
|
99
99
|
o_client.configure_access_service("data-manager", access_service_options)
|
100
100
|
o_client.configure_access_service("it-infrastructure", access_service_options)
|
101
101
|
o_client.configure_access_service("project-management", access_service_options)
|
@@ -13,7 +13,7 @@ This script creates and configures the cocoMDSx server.
|
|
13
13
|
|
14
14
|
import json
|
15
15
|
|
16
|
-
from globals import (cocoMDSxName,
|
16
|
+
from globals import (cocoMDSxName, devPlatformURL, cocoCohort, iotCohort)
|
17
17
|
from pyegeria import CoreServerConfig, Platform
|
18
18
|
from pyegeria import (
|
19
19
|
print_exception_response,
|
@@ -25,7 +25,7 @@ from pyegeria import (
|
|
25
25
|
disable_ssl_warnings = True
|
26
26
|
|
27
27
|
mdr_server = cocoMDSxName
|
28
|
-
platform_url =
|
28
|
+
platform_url = devPlatformURL
|
29
29
|
admin_user = "garygeeke"
|
30
30
|
mdr_server_user_id = "cocoMDSxnpa"
|
31
31
|
mdr_server_password = "cocoMDSxpassw0rd"
|
@@ -37,7 +37,7 @@ print("Configuring " + mdr_server + "...")
|
|
37
37
|
try:
|
38
38
|
o_client = CoreServerConfig(mdr_server, platform_url, admin_user)
|
39
39
|
|
40
|
-
o_client.set_basic_server_properties(
|
40
|
+
o_client.set_basic_server_properties("Development Server",
|
41
41
|
"Coco Pharmaceuticals",
|
42
42
|
platform_url,
|
43
43
|
mdr_server_user_id, mdr_server_password,
|
@@ -45,16 +45,16 @@ try:
|
|
45
45
|
|
46
46
|
# Can inherit event bus config
|
47
47
|
|
48
|
-
event_bus_config = {
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
}
|
56
|
-
|
57
|
-
o_client.set_event_bus(event_bus_config)
|
48
|
+
# event_bus_config = {
|
49
|
+
# "producer": {
|
50
|
+
# "bootstrap.servers": "localhost:9092"
|
51
|
+
# },
|
52
|
+
# "consumer": {
|
53
|
+
# "bootstrap.servers": "localhost:9092"
|
54
|
+
# }
|
55
|
+
# }
|
56
|
+
#
|
57
|
+
# o_client.set_event_bus(event_bus_config)
|
58
58
|
|
59
59
|
security_connection_body = {
|
60
60
|
"class": "Connection",
|
@@ -83,22 +83,22 @@ try:
|
|
83
83
|
"DefaultZones": ["sdlc", "quarantine"]
|
84
84
|
}
|
85
85
|
|
86
|
-
o_client.configure_access_service("asset-catalog", access_service_options)
|
86
|
+
# o_client.configure_access_service("asset-catalog", access_service_options)
|
87
87
|
o_client.configure_access_service("asset-consumer", access_service_options)
|
88
88
|
o_client.configure_access_service("asset-owner", access_service_options)
|
89
89
|
o_client.configure_access_service("community-profile",
|
90
90
|
{"KarmaPointPlateau": "500"})
|
91
|
-
o_client.configure_access_service("glossary-view", {})
|
91
|
+
# o_client.configure_access_service("glossary-view", {})
|
92
92
|
o_client.configure_access_service("data-science", access_service_options)
|
93
|
-
o_client.configure_access_service("subject-area", {})
|
93
|
+
# o_client.configure_access_service("subject-area", {})
|
94
94
|
o_client.configure_access_service("asset-manager", access_service_options)
|
95
95
|
o_client.configure_access_service("governance-engine", access_service_options)
|
96
96
|
o_client.configure_access_service("governance-server", access_service_options)
|
97
|
-
o_client.configure_access_service("data-manager", access_service_options)
|
97
|
+
# o_client.configure_access_service("data-manager", access_service_options)
|
98
98
|
o_client.configure_access_service("it-infrastructure", access_service_options)
|
99
99
|
o_client.configure_access_service("project-management", access_service_options)
|
100
100
|
o_client.configure_access_service("software-developer", access_service_options)
|
101
|
-
o_client.configure_access_service("devops", access_service_options)
|
101
|
+
# o_client.configure_access_service("devops", access_service_options)
|
102
102
|
o_client.configure_access_service("digital-architecture", access_service_options)
|
103
103
|
o_client.configure_access_service("design-model", access_service_options)
|
104
104
|
|
@@ -0,0 +1,158 @@
|
|
1
|
+
"""
|
2
|
+
SPDX-License-Identifier: Apache-2.0
|
3
|
+
Copyright Contributors to the ODPi Egeria project.
|
4
|
+
|
5
|
+
Egeria Coco Pharmaceutical demonstration labs.
|
6
|
+
|
7
|
+
This script creates and configures the cocoView1 server.
|
8
|
+
|
9
|
+
"""
|
10
|
+
|
11
|
+
|
12
|
+
import json
|
13
|
+
|
14
|
+
from globals import (cocoMDS2Name, corePlatformURL, dataLakePlatformURL, devPlatformURL)
|
15
|
+
from pyegeria import (
|
16
|
+
print_exception_response,
|
17
|
+
)
|
18
|
+
from pyegeria.full_omag_server_config import FullServerConfig
|
19
|
+
from pyegeria.platform_services import Platform
|
20
|
+
|
21
|
+
disable_ssl_warnings = True
|
22
|
+
|
23
|
+
view_server = "cocoView1"
|
24
|
+
|
25
|
+
platform_url = corePlatformURL
|
26
|
+
admin_user = "garygeeke"
|
27
|
+
view_server_user_id = "cocoView1npa"
|
28
|
+
view_server_password = "cocoView1passw0rd"
|
29
|
+
view_server_type = "View Server"
|
30
|
+
remote_platform_url = corePlatformURL
|
31
|
+
remote_server_name = cocoMDS2Name
|
32
|
+
|
33
|
+
|
34
|
+
print("Configuring " + view_server + "...")
|
35
|
+
try:
|
36
|
+
f_client = FullServerConfig(view_server, platform_url, admin_user)
|
37
|
+
|
38
|
+
f_client.set_server_user_id(view_server_user_id)
|
39
|
+
f_client.set_server_user_password(view_server_password)
|
40
|
+
f_client.set_organization_name("Coco Pharmaceuticals")
|
41
|
+
|
42
|
+
f_client.set_server_description("Coco View Server")
|
43
|
+
f_client.set_server_url_root(platform_url)
|
44
|
+
|
45
|
+
# Can inherit event bus config
|
46
|
+
#
|
47
|
+
# event_bus_config = {
|
48
|
+
# "producer": {
|
49
|
+
# "bootstrap.servers": "localhost:9092"
|
50
|
+
# },
|
51
|
+
# "consumer": {
|
52
|
+
# "bootstrap.servers": "localhost:9092"
|
53
|
+
# }
|
54
|
+
# }
|
55
|
+
#
|
56
|
+
# f_client.set_event_bus(event_bus_config)
|
57
|
+
|
58
|
+
security_connection_body = {
|
59
|
+
"class": "Connection",
|
60
|
+
"connectorType": {
|
61
|
+
"class": "ConnectorType",
|
62
|
+
"connectorProviderClassName":
|
63
|
+
"org.odpi.openmetadata.metadatasecurity.samples.CocoPharmaServerSecurityProvider"
|
64
|
+
}
|
65
|
+
}
|
66
|
+
f_client.set_server_security_connection(security_connection_body)
|
67
|
+
|
68
|
+
f_client.add_default_log_destinations()
|
69
|
+
#
|
70
|
+
# view_server_config = {
|
71
|
+
# "class": "ViewServiceRequestBody",
|
72
|
+
# "omagserverPlatformRootURL": remote_platform_url,
|
73
|
+
# "omagserverName": remote_server_name,
|
74
|
+
# "resourceEndpoints": [
|
75
|
+
# {
|
76
|
+
# "class": "ResourceEndpointConfig",
|
77
|
+
# "resourceCategory": "Platform",
|
78
|
+
# "description": "Core Platform",
|
79
|
+
# "platformName": "Core",
|
80
|
+
# "platformRootURL": corePlatformURL
|
81
|
+
# },
|
82
|
+
# {
|
83
|
+
# "class": "ResourceEndpointConfig",
|
84
|
+
# "resourceCategory": "Platform",
|
85
|
+
# "description": "DataLake Platform",
|
86
|
+
# "platformName": "DataLake",
|
87
|
+
# "platformRootURL": dataLakePlatformURL
|
88
|
+
# },
|
89
|
+
# {
|
90
|
+
# "class": "ResourceEndpointConfig",
|
91
|
+
# "resourceCategory": "Platform",
|
92
|
+
# "description": "Development Platform",
|
93
|
+
# "platformName": "Development",
|
94
|
+
# "platformRootURL": devPlatformURL
|
95
|
+
# },
|
96
|
+
# {
|
97
|
+
# "class": "ResourceEndpointConfig",
|
98
|
+
# "resourceCategory": "Server",
|
99
|
+
# "serverInstanceName": "cocoMDS1",
|
100
|
+
# "description": "Data Lake Operations",
|
101
|
+
# "platformName": "DataLake",
|
102
|
+
# "serverName": "cocoMDS1"
|
103
|
+
# },
|
104
|
+
# {
|
105
|
+
# "class": "ResourceEndpointConfig",
|
106
|
+
# "resourceCategory": "Server",
|
107
|
+
# "serverInstanceName": "cocoMDS2",
|
108
|
+
# "description": "Governance",
|
109
|
+
# "platformName": "Core",
|
110
|
+
# "serverName": "cocoMDS2"
|
111
|
+
# },
|
112
|
+
# {
|
113
|
+
# "class": "ResourceEndpointConfig",
|
114
|
+
# "resourceCategory": "Server",
|
115
|
+
# "serverInstanceName": "cocoMDS3",
|
116
|
+
# "description": "Research",
|
117
|
+
# "platformName": "Core",
|
118
|
+
# "serverName": "cocoMDS3"
|
119
|
+
# },
|
120
|
+
# {
|
121
|
+
# "class": "ResourceEndpointConfig",
|
122
|
+
# "resourceCategory": "Server",
|
123
|
+
# "serverInstanceName": "cocoMDS5",
|
124
|
+
# "description": "Business Systems",
|
125
|
+
# "platformName": "Core",
|
126
|
+
# "serverName": "cocoMDS5"
|
127
|
+
# },
|
128
|
+
# {
|
129
|
+
# "class": "ResourceEndpointConfig",
|
130
|
+
# "resourceCategory": "Server",
|
131
|
+
# "serverInstanceName": "cocoMDS6",
|
132
|
+
# "description": "Manufacturing",
|
133
|
+
# "platformName": "Core",
|
134
|
+
# "serverName": "cocoMDS6"
|
135
|
+
# },
|
136
|
+
# {
|
137
|
+
# "class": "ResourceEndpointConfig",
|
138
|
+
# "resourceCategory": "Server",
|
139
|
+
# "serverInstanceName": "cocoMDSx",
|
140
|
+
# "description": "Development",
|
141
|
+
# "platformName": "Development",
|
142
|
+
# "serverName": "cocoMDSx"
|
143
|
+
# },
|
144
|
+
# ]
|
145
|
+
# }
|
146
|
+
|
147
|
+
f_client.config_all_view_services(remote_server_name, platform_url)
|
148
|
+
|
149
|
+
p_client = Platform(view_server, platform_url, admin_user)
|
150
|
+
p_client.activate_server_stored_config()
|
151
|
+
|
152
|
+
config = f_client.get_stored_configuration()
|
153
|
+
print(f"The server stored configuration is {json.dumps(config, indent=4)}")
|
154
|
+
view_config = f_client.get_view_svcs_config()
|
155
|
+
print(f"The view config is {json.dumps(view_config, indent=4)}")
|
156
|
+
|
157
|
+
except Exception as e:
|
158
|
+
print_exception_response(e)
|
@@ -13,7 +13,7 @@ This script creates and configures the exchangeDL01 integration daemon.
|
|
13
13
|
|
14
14
|
import json
|
15
15
|
|
16
|
-
from globals import (corePlatformURL, max_paging_size,
|
16
|
+
from globals import (corePlatformURL, dataLakePlatformURL, max_paging_size,
|
17
17
|
fileSystemRoot, adminUserId)
|
18
18
|
from pyegeria import (
|
19
19
|
print_exception_response,
|
@@ -24,18 +24,18 @@ from pyegeria.platform_services import Platform
|
|
24
24
|
|
25
25
|
daemon_server_name = "exchangeDL01"
|
26
26
|
#
|
27
|
-
daemon_server_platform =
|
27
|
+
daemon_server_platform = dataLakePlatformURL
|
28
28
|
daemon_server_user_id = "exchangeDL01npa"
|
29
29
|
daemon_server_password = "exchangeDL01passw0rd"
|
30
30
|
|
31
31
|
mdr_server = "cocoMDS1"
|
32
32
|
|
33
|
-
platform_url =
|
33
|
+
platform_url = dataLakePlatformURL
|
34
34
|
folder_connector_name = "DropFootClinicalTrialResultsFolderMonitor"
|
35
35
|
folder_connector_user_id = "monitorDL01npa"
|
36
36
|
folder_connector_source_name = "DropFootClinicalTrialResults"
|
37
37
|
folder_connector_folder = fileSystemRoot + '/data-lake/research/clinical-trials/drop-foot/weekly-measurements'
|
38
|
-
folder_connector_connection =
|
38
|
+
folder_connector_connection = {
|
39
39
|
"class": "Connection",
|
40
40
|
"connectorType":
|
41
41
|
{
|
@@ -91,7 +91,7 @@ try:
|
|
91
91
|
f_client.config_integration_service(mdr_server, platform_url, "files-integrator",
|
92
92
|
{}, connector_configs)
|
93
93
|
|
94
|
-
f_client.config_integration_group(
|
94
|
+
f_client.config_integration_group(mdr_server, daemon_server_platform,
|
95
95
|
integration_group_name)
|
96
96
|
|
97
97
|
p_client = Platform(daemon_server_name, daemon_server_platform, adminUserId)
|
@@ -39,13 +39,13 @@ max_paging_size = 1200
|
|
39
39
|
#
|
40
40
|
|
41
41
|
# These are the three main platforms used to run Egeria's OMAG Servers
|
42
|
-
corePlatformURL = os.environ.get('corePlatformURL', 'https://
|
42
|
+
corePlatformURL = os.environ.get('corePlatformURL', 'https://localhost:9443')
|
43
43
|
corePlatformName = "Core Platform"
|
44
44
|
|
45
|
-
dataLakePlatformURL = os.environ.get('dataLakePlatformURL', 'https://
|
45
|
+
dataLakePlatformURL = os.environ.get('dataLakePlatformURL', 'https://localhost:9444')
|
46
46
|
dataLakePlatformName = "Data Lake Platform"
|
47
47
|
|
48
|
-
devPlatformURL = os.environ.get('devPlatformURL', 'https://
|
48
|
+
devPlatformURL = os.environ.get('devPlatformURL', 'https://localhost:9445')
|
49
49
|
devPlatformName = "Dev Platform"
|
50
50
|
|
51
51
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import subprocess
|
2
|
+
|
3
|
+
startup_scripts = ["config_cocoMDS1.py", "config_cocoMDS2.py",
|
4
|
+
"config_cocoMDS3.py", "config_cocoMDS4.py",
|
5
|
+
"config_cocoMDS5.py", "config_cocoMDSx.py",
|
6
|
+
"config_cocoView1.py", "config_exchangeDL01.py",
|
7
|
+
"config_monitorDev01.py", "config_monitorGov01.py"]
|
8
|
+
for script in startup_scripts:
|
9
|
+
subprocess.call(["python",script])
|
@@ -558,7 +558,7 @@
|
|
558
558
|
" \"SupportedZones\": [\"quarantine\", \"clinical-trials\", \"research\", \"data-lake\", \"trash-can\"]\n",
|
559
559
|
" }\n",
|
560
560
|
"\n",
|
561
|
-
"omag_client.configure_access_service(\"asset-catalog\", access_service_options)\n",
|
561
|
+
"# omag_client.configure_access_service(\"asset-catalog\", access_service_options)\n",
|
562
562
|
"omag_client.configure_access_service(\"asset-consumer\", access_service_options)\n",
|
563
563
|
"\n",
|
564
564
|
"access_service_options[\"DefaultZones\"] = [\"quarantine\"]\n",
|
@@ -79,7 +79,7 @@ def display_assets(search_string: str, guid: str=None, server: str = good_server
|
|
79
79
|
table.add_column("Qualified Name")
|
80
80
|
|
81
81
|
|
82
|
-
assets = g_client.find_assets_in_domain(search_string, starts_with=
|
82
|
+
assets = g_client.find_assets_in_domain(search_string, starts_with=True,
|
83
83
|
ends_with=False, ignore_case=True, page_size=10)
|
84
84
|
if type(assets) is str:
|
85
85
|
return table
|