pyegeria 0.3.9__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.
Files changed (131) hide show
  1. {pyegeria-0.3.9/src/pyegeria.egg-info → pyegeria-0.4.1}/PKG-INFO +5 -2
  2. {pyegeria-0.3.9 → pyegeria-0.4.1}/README.md +4 -1
  3. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/__pycache__/globals.cpython-312.pyc +0 -0
  4. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDS1.py +7 -8
  5. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDS2.py +8 -8
  6. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDS3.py +14 -14
  7. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDS4.py +15 -15
  8. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDS5.py +11 -11
  9. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDS6.py +15 -15
  10. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/config_cocoMDSx.py +18 -18
  11. pyegeria-0.4.1/examples/Coco_config/config_cocoView1.py +158 -0
  12. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/config_exchangeDL01.py +5 -5
  13. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/globals.py +3 -3
  14. pyegeria-0.4.1/examples/Coco_config/start_all_coco.py +9 -0
  15. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Jupyter Notebooks/P-egeria-server-config.ipynb +1 -1
  16. pyegeria-0.4.1/examples/widgets/README.md +34 -0
  17. pyegeria-0.4.1/examples/widgets/catalog_user/README.md +15 -0
  18. pyegeria-0.4.1/examples/widgets/catalog_user/__init__.py +0 -0
  19. pyegeria-0.4.1/examples/widgets/catalog_user/list_assets.py +138 -0
  20. pyegeria-0.4.1/examples/widgets/catalog_user/view_asset_graph.py +245 -0
  21. pyegeria-0.4.1/examples/widgets/developer/README.md +24 -0
  22. pyegeria-0.4.1/examples/widgets/developer/__init__.py +0 -0
  23. pyegeria-0.4.1/examples/widgets/developer/get_guid_info.py +86 -0
  24. {pyegeria-0.3.9/examples/widgets → pyegeria-0.4.1/examples/widgets/developer}/get_tech_details.py +1 -37
  25. pyegeria-0.3.9/examples/widgets/get_relationship_types.py → pyegeria-0.4.1/examples/widgets/developer/list_relationship_types.py +9 -8
  26. pyegeria-0.4.1/examples/widgets/developer/list_tech_templates.py +134 -0
  27. pyegeria-0.3.9/examples/widgets/get_valid_metadata_values.py → pyegeria-0.4.1/examples/widgets/developer/list_valid_metadata_values.py +1 -1
  28. pyegeria-0.4.1/examples/widgets/operational/README.md +24 -0
  29. pyegeria-0.4.1/examples/widgets/operational/__init__.py +0 -0
  30. pyegeria-0.4.1/examples/widgets/operational/get_tech_type_elements.py +137 -0
  31. pyegeria-0.4.1/examples/widgets/operational/get_tech_type_template.py +137 -0
  32. pyegeria-0.4.1/examples/widgets/operational/view_asset_events.py +77 -0
  33. pyegeria-0.3.9/examples/widgets/coco_status.py → pyegeria-0.4.1/examples/widgets/operational/view_coco_status.py +10 -9
  34. pyegeria-0.3.9/examples/widgets/engine_action_status.py → pyegeria-0.4.1/examples/widgets/operational/view_eng_action_status.py +8 -3
  35. pyegeria-0.4.1/examples/widgets/operational/view_integ_daemon_status.py +140 -0
  36. pyegeria-0.4.1/examples/widgets/operational/view_platform_status.py +123 -0
  37. pyegeria-0.4.1/examples/widgets/personal_organizer/README.md +17 -0
  38. pyegeria-0.4.1/examples/widgets/personal_organizer/__init__.py +0 -0
  39. pyegeria-0.3.9/examples/widgets/project_list_viewer.py → pyegeria-0.4.1/examples/widgets/personal_organizer/list_projects.py +1 -1
  40. pyegeria-0.3.9/examples/widgets/find_todos.py → pyegeria-0.4.1/examples/widgets/personal_organizer/list_todos.py +2 -1
  41. {pyegeria-0.3.9 → pyegeria-0.4.1}/pyproject.toml +1 -1
  42. pyegeria-0.4.1/setup.py +83 -0
  43. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/Xfeedback_manager_omvs.py +2 -15
  44. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/__init__.py +11 -4
  45. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/_globals.py +3 -1
  46. pyegeria-0.3.9/src/pyegeria/Xasset_catalog_omvs.py → pyegeria-0.4.1/src/pyegeria/asset_catalog_omvs.py +242 -109
  47. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/automated_curation_omvs.py +324 -61
  48. pyegeria-0.4.1/src/pyegeria/core_guids.py +128 -0
  49. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/core_omag_server_config.py +1 -1
  50. pyegeria-0.3.9/src/pyegeria/Xglossary_manager_omvs.py → pyegeria-0.4.1/src/pyegeria/glossary_manager_omvs.py +70 -69
  51. pyegeria-0.4.1/src/pyegeria/runtime_manager_omvs.py +967 -0
  52. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/valid_metadata_omvs.py +193 -20
  53. {pyegeria-0.3.9 → pyegeria-0.4.1/src/pyegeria.egg-info}/PKG-INFO +5 -2
  54. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria.egg-info/SOURCES.txt +45 -24
  55. pyegeria-0.4.1/tests/test_asset_catalog_omvs.py +247 -0
  56. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_automated_curation_omvs.py +120 -25
  57. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_core_omag_server_config.py +2 -2
  58. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_my_profile_omvs.py +5 -5
  59. pyegeria-0.4.1/tests/test_runtime_manager.py +226 -0
  60. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_server_operations.py +10 -10
  61. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_valid_metadata_omvs.py +47 -2
  62. pyegeria-0.3.9/examples/Coco_config/config_cocoView1.py +0 -158
  63. pyegeria-0.3.9/examples/widgets/README.md +0 -32
  64. pyegeria-0.3.9/examples/widgets/integration_daemon_status.py +0 -130
  65. pyegeria-0.3.9/examples/widgets/multi-server_status.py +0 -120
  66. pyegeria-0.3.9/setup.py +0 -71
  67. {pyegeria-0.3.9 → pyegeria-0.4.1}/LICENSE +0 -0
  68. {pyegeria-0.3.9 → pyegeria-0.4.1}/MANIFEST.in +0 -0
  69. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/.DS_Store +0 -0
  70. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/README.md +0 -0
  71. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/__init__.py +0 -0
  72. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/config_governDL01.py +0 -0
  73. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/config_monitorDev01.py +0 -0
  74. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Coco_config/config_monitorGov01.py +0 -0
  75. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Doc_Samples/Create_Collection_Sample.py +0 -0
  76. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Doc_Samples/Create_Sustainability_Collection_Sample.py +0 -0
  77. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Jupyter Notebooks/README.md +0 -0
  78. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/P-environment-check.ipynb +0 -0
  79. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/__init__.py +0 -0
  80. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/common-functions.ipynb +0 -0
  81. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/environment-check.ipynb +0 -0
  82. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/globals.ipynb +0 -0
  83. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/globals.py +0 -0
  84. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/Jupyter Notebooks/common/orig_globals.py +0 -0
  85. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/__init__.py +0 -0
  86. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/__pycache__/__init__.cpython-312.pyc +0 -0
  87. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/widgets/.DS_Store +0 -0
  88. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/widgets/__init__.py +0 -0
  89. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/widgets/__pycache__/__init__.cpython-312.pyc +0 -0
  90. {pyegeria-0.3.9 → pyegeria-0.4.1}/examples/widgets/__pycache__/server_status_widget.cpython-312-pytest-7.4.4.pyc +0 -0
  91. /pyegeria-0.3.9/examples/widgets/collection_viewer.py → /pyegeria-0.4.1/examples/widgets/catalog_user/view_collection.py +0 -0
  92. /pyegeria-0.3.9/examples/widgets/glossary_view.py → /pyegeria-0.4.1/examples/widgets/catalog_user/view_glossary.py +0 -0
  93. {pyegeria-0.3.9/examples/widgets → pyegeria-0.4.1/examples/widgets/developer}/list_asset_types.py +0 -0
  94. /pyegeria-0.3.9/examples/widgets/get_registered_services.py → /pyegeria-0.4.1/examples/widgets/developer/list_registered_services.py +0 -0
  95. /pyegeria-0.3.9/examples/widgets/get_tech_types.py → /pyegeria-0.4.1/examples/widgets/developer/list_tech_types.py +0 -0
  96. /pyegeria-0.3.9/examples/widgets/gov_engine_status.py → /pyegeria-0.4.1/examples/widgets/operational/view_gov_eng_status.py +0 -0
  97. /pyegeria-0.3.9/examples/widgets/server_status_widget.py → /pyegeria-0.4.1/examples/widgets/operational/view_server_list.py +0 -0
  98. /pyegeria-0.3.9/examples/widgets/server_status.py → /pyegeria-0.4.1/examples/widgets/operational/view_server_status.py +0 -0
  99. /pyegeria-0.3.9/examples/widgets/view_my_profile.py → /pyegeria-0.4.1/examples/widgets/personal_organizer/get_my_profile.py +0 -0
  100. /pyegeria-0.3.9/examples/widgets/my_todos.py → /pyegeria-0.4.1/examples/widgets/personal_organizer/view_my_todos.py +0 -0
  101. /pyegeria-0.3.9/examples/widgets/open_todos.py → /pyegeria-0.4.1/examples/widgets/personal_organizer/view_open_todos.py +0 -0
  102. {pyegeria-0.3.9 → pyegeria-0.4.1}/setup.cfg +0 -0
  103. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/Xloaded_resources_omvs.py +0 -0
  104. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/_client.py +0 -0
  105. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/_deprecated_gov_engine.py +0 -0
  106. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/_exceptions.py +0 -0
  107. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/_validators.py +0 -0
  108. /pyegeria-0.3.9/src/pyegeria/Xaction_author_omvs.py → /pyegeria-0.4.1/src/pyegeria/action_author_omvs.py +0 -0
  109. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/collection_manager_omvs.py +0 -0
  110. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/full_omag_server_config.py +0 -0
  111. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/glossary_browser_omvs.py +0 -0
  112. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/my_profile_omvs.py +0 -0
  113. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/platform_services.py +0 -0
  114. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/project_manager_omvs.py +0 -0
  115. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/registered_info.py +0 -0
  116. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/server_operations.py +0 -0
  117. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria/utils.py +0 -0
  118. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria.egg-info/dependency_links.txt +0 -0
  119. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria.egg-info/requires.txt +0 -0
  120. {pyegeria-0.3.9 → pyegeria-0.4.1}/src/pyegeria.egg-info/top_level.txt +0 -0
  121. /pyegeria-0.3.9/tests/test_glossary_manager_omvs.py → /pyegeria-0.4.1/tests/test_Xglossary_manager_omvs.py +0 -0
  122. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_client.py +0 -0
  123. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_collection_manager_omvs.py +0 -0
  124. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_full_omag_server_config.py +0 -0
  125. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_glossary_omvs.py +0 -0
  126. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_loaded_resources.py +0 -0
  127. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_platform_services.py +0 -0
  128. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_project_manager_omvs.py +0 -0
  129. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_registered_info.py +0 -0
  130. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_util_exp.py +0 -0
  131. {pyegeria-0.3.9 → pyegeria-0.4.1}/tests/test_validators.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.3.9
3
+ Version: 0.4.1
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://egeria-project.org/egeria-python
6
6
  Author: Dan Wolfson
@@ -38,13 +38,16 @@ open metadata environment from python. Details about the
38
38
  open source Egeria project can be found at [Egeria Project](https://egeria-project.org).
39
39
 
40
40
  This package is in active development. There is initial
41
- support for many of Egeria's services including configuraiton, operation, and use. This client depends on
41
+ support for many of Egeria's services including configuration and operation. This client depends on
42
42
  Egeria 4.4 Snapshot and above - although most of the functions may work on earlier versions of Egeria as well.
43
43
 
44
44
  The code is organized to mimic the existing Egeria Java Client structure.
45
45
 
46
46
  A new examples folder holds some useful text widgets that help to visualize the status of an Egeria deployment.
47
47
 
48
+ WARNING: files that start with "X" are in-progress placeholders that are not meant to be used..they will mature and
49
+ evolve.
50
+
48
51
  All feedback is welcome. Please engage via our [community](http://egeria-project.org/guides/community/),
49
52
  team calls, or via github issues in this repo. If interested in contributing,
50
53
  you can engage via the community or directly reach out to
@@ -13,13 +13,16 @@ open metadata environment from python. Details about the
13
13
  open source Egeria project can be found at [Egeria Project](https://egeria-project.org).
14
14
 
15
15
  This package is in active development. There is initial
16
- support for many of Egeria's services including configuraiton, operation, and use. This client depends on
16
+ support for many of Egeria's services including configuration and operation. This client depends on
17
17
  Egeria 4.4 Snapshot and above - although most of the functions may work on earlier versions of Egeria as well.
18
18
 
19
19
  The code is organized to mimic the existing Egeria Java Client structure.
20
20
 
21
21
  A new examples folder holds some useful text widgets that help to visualize the status of an Egeria deployment.
22
22
 
23
+ WARNING: files that start with "X" are in-progress placeholders that are not meant to be used..they will mature and
24
+ evolve.
25
+
23
26
  All feedback is welcome. Please engage via our [community](http://egeria-project.org/guides/community/),
24
27
  team calls, or via github issues in this repo. If interested in contributing,
25
28
  you can engage via the community or directly reach out to
@@ -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(metadataCollectionName,
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": "localhost:9092"
45
+ "bootstrap.servers": "{{kafkaEndpoint}}"
46
46
  },
47
47
  "consumer": {
48
- "bootstrap.servers": "localhost:9092"
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("asset-owner", access_service_options)
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(metadataCollectionName,
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": "localhost:9092"
49
+ "bootstrap.servers": "{{kafkaEndpoint}}"
50
50
  },
51
51
  "consumer": {
52
- "bootstrap.servers": "localhost:9092"
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-officer", {})
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(metadataCollectionName,
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
- "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)
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, corePlatformURL, cocoCohort, max_paging_size)
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 = corePlatformURL
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(metadataCollectionName,
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
- "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)
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(metadataCollectionName,
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
- "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)
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(metadataCollectionName,
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
- "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)
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, corePlatformURL, cocoCohort, iotCohort)
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 = corePlatformURL
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(metadataCollectionName,
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
- "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)
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 = corePlatformURL
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 = corePlatformURL
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(daemon_server_name, daemon_server_platform,
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://laz.local:9443')
42
+ corePlatformURL = os.environ.get('corePlatformURL', 'https://localhost:9443')
43
43
  corePlatformName = "Core Platform"
44
44
 
45
- dataLakePlatformURL = os.environ.get('dataLakePlatformURL', 'https://laz.local:9444')
45
+ dataLakePlatformURL = os.environ.get('dataLakePlatformURL', 'https://localhost:9444')
46
46
  dataLakePlatformName = "Data Lake Platform"
47
47
 
48
- devPlatformURL = os.environ.get('devPlatformURL', 'https://laz.local:9445')
48
+ devPlatformURL = os.environ.get('devPlatformURL', 'https://localhost:9445')
49
49
  devPlatformName = "Dev Platform"
50
50
 
51
51