pyegeria 5.4.8.6__py3-none-any.whl → 5.4.8.8__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.
Files changed (49) hide show
  1. examples/Coco_config/README.md +19 -0
  2. examples/Coco_config/__init__.py +4 -0
  3. examples/Coco_config/config_cocoMDS1.py +108 -0
  4. examples/Coco_config/config_cocoMDS2.py +126 -0
  5. examples/Coco_config/config_cocoMDS3.py +109 -0
  6. examples/Coco_config/config_cocoMDS4.py +91 -0
  7. examples/Coco_config/config_cocoMDS5.py +116 -0
  8. examples/Coco_config/config_cocoMDS6.py +114 -0
  9. examples/Coco_config/config_cocoMDSx.py +119 -0
  10. examples/Coco_config/config_cocoView1.py +155 -0
  11. examples/Coco_config/config_coco_core.py +255 -0
  12. examples/Coco_config/config_coco_datalake.py +450 -0
  13. examples/Coco_config/config_exchangeDL01.py +106 -0
  14. examples/Coco_config/config_governDL01.py +80 -0
  15. examples/Coco_config/config_monitorDev01.py +60 -0
  16. examples/Coco_config/config_monitorGov01.py +194 -0
  17. examples/Coco_config/globals.py +154 -0
  18. examples/GeoSpatial Products Example.py +535 -0
  19. examples/Jupyter Notebooks/P-egeria-server-config.ipynb +2137 -0
  20. examples/Jupyter Notebooks/README.md +2 -0
  21. examples/Jupyter Notebooks/common/P-environment-check.ipynb +115 -0
  22. examples/Jupyter Notebooks/common/__init__.py +14 -0
  23. examples/Jupyter Notebooks/common/common-functions.ipynb +4694 -0
  24. examples/Jupyter Notebooks/common/environment-check.ipynb +53 -0
  25. examples/Jupyter Notebooks/common/globals.ipynb +184 -0
  26. examples/Jupyter Notebooks/common/globals.py +154 -0
  27. examples/Jupyter Notebooks/common/orig_globals.py +152 -0
  28. examples/format_sets/all_format_sets.json +910 -0
  29. examples/format_sets/custom_format_sets.json +268 -0
  30. examples/format_sets/subset_format_sets.json +187 -0
  31. examples/format_sets_save_load_example.py +294 -0
  32. examples/output_formats_example.py +193 -0
  33. md_processing/__init__.py +6 -0
  34. md_processing/data/commands.json +30640 -59579
  35. md_processing/dr_egeria.py +18 -0
  36. md_processing/md_commands/feedback_commands.py +763 -0
  37. md_processing/md_commands/project_commands.py +1 -1
  38. md_processing/md_processing_utils/md_processing_constants.py +134 -4
  39. pyegeria/__init__.py +1 -1
  40. pyegeria/_client_new.py +109 -12
  41. pyegeria/_globals.py +3 -2
  42. pyegeria/base_report_formats.py +17 -0
  43. pyegeria/format_set_executor.py +5 -2
  44. {pyegeria-5.4.8.6.dist-info → pyegeria-5.4.8.8.dist-info}/METADATA +1 -1
  45. {pyegeria-5.4.8.6.dist-info → pyegeria-5.4.8.8.dist-info}/RECORD +49 -16
  46. {pyegeria-5.4.8.6.dist-info → pyegeria-5.4.8.8.dist-info}/top_level.txt +1 -0
  47. {pyegeria-5.4.8.6.dist-info → pyegeria-5.4.8.8.dist-info}/WHEEL +0 -0
  48. {pyegeria-5.4.8.6.dist-info → pyegeria-5.4.8.8.dist-info}/entry_points.txt +0 -0
  49. {pyegeria-5.4.8.6.dist-info → pyegeria-5.4.8.8.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,53 @@
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": null,
6
+ "metadata": {
7
+ "tags": []
8
+ },
9
+ "outputs": [],
10
+ "source": [
11
+ "\n",
12
+ "#\n",
13
+ "# Perform basic checks to ensure the calling notebook has a good environment to work against.\n",
14
+ "# These are the only calls to run functions defined above.\n",
15
+ "#\n",
16
+ "from pyegeria import Platform, CoreServerConfig, utils\n",
17
+ "print(\"\\nChecking OMAG Server Platform availability...\")\n",
18
+ "\n",
19
+ "activatePlatform(corePlatformName, corePlatformURL, [cocoMDS2Name, cocoMDS3Name, cocoMDS5Name, cocoMDS6Name])\n",
20
+ "activatePlatform(dataLakePlatformName, dataLakePlatformURL, [cocoMDS1Name, cocoMDS4Name, cocoView1Name, cocoOLS1Name])\n",
21
+ "activatePlatform(devPlatformName, devPlatformURL, [cocoMDSxName])\n",
22
+ "\n",
23
+ "print (\"Done.\")\n",
24
+ "print (\" \")\n",
25
+ "\n",
26
+ "\n",
27
+ "def checkServerConfigured(server_name:str, server_platform_name:str, server_platform_url: str) -> bool\n",
28
+ " "
29
+ ]
30
+ }
31
+ ],
32
+ "metadata": {
33
+ "kernelspec": {
34
+ "display_name": "Python 3",
35
+ "language": "python",
36
+ "name": "python3"
37
+ },
38
+ "language_info": {
39
+ "codemirror_mode": {
40
+ "name": "ipython",
41
+ "version": 3
42
+ },
43
+ "file_extension": ".py",
44
+ "mimetype": "text/x-python",
45
+ "name": "python",
46
+ "nbconvert_exporter": "python",
47
+ "pygments_lexer": "ipython3",
48
+ "version": "3.7.3"
49
+ }
50
+ },
51
+ "nbformat": 4,
52
+ "nbformat_minor": 4
53
+ }
@@ -0,0 +1,184 @@
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": null,
6
+ "metadata": {},
7
+ "outputs": [],
8
+ "source": [
9
+ "#\n",
10
+ "# This file contains the common functions and definitions used in all Egeria Hands on\n",
11
+ "# Lab Notebooks. Typically these will be system-wide functions and common environment settings\n",
12
+ "#\n",
13
+ "\n",
14
+ "\n",
15
+ "#\n",
16
+ "# Disable certificate checking for local development use with self-signed certificate \n",
17
+ "#\n",
18
+ "\n",
19
+ "import urllib3\n",
20
+ "urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)\n",
21
+ "\n",
22
+ "import os\n",
23
+ "os.environ['CURL_CA_BUNDLE'] = ''\n",
24
+ "\n",
25
+ "#\n",
26
+ "# This is the location of the file system that is used in the lab. It defaults to a \"data\" subfolder in\n",
27
+ "# the platform's home folder. Here you will finc the runtime files of the platforms and the data files\n",
28
+ "# used in various labs. The default value can be overridden using the \"fileSystemRoot\" environment variable.\n",
29
+ "#\n",
30
+ "fileSystemRoot = os.environ.get('fileSystemRoot', 'data')\n",
31
+ "#\n",
32
+ "# This is directory where the sample data from the Egeria distribution has been unpacked in. The default value\n",
33
+ "# describes its location in an IntelliJ workspace. The default value can be overridden using the \"egeriaDistributionRoot\" \n",
34
+ "# environment variable.\n",
35
+ "#\n",
36
+ "egeriaSampleDataRoot = os.environ.get('egeriaSampleDataRoot', '.')\n",
37
+ "#\n",
38
+ "# Flag to enable debug, this cases extra information to be printed including rest calls request and response details\n",
39
+ "# Switching this flag to True produces a very large amount of output and is not recommended.\n",
40
+ "# A targeted use of this flag is recommended, set this before and reset this after the code you would like to produce debug\n",
41
+ "#\n",
42
+ "isDebug = False\n",
43
+ "#\n",
44
+ "# Definitions of the Coco Pharmaceuticals Environment\n",
45
+ "#\n",
46
+ "\n",
47
+ "# These are the three main platforms used to run Egeria's OMAG Servers\n",
48
+ "corePlatformURL = os.environ.get('corePlatformURL', 'https://localhost:9443')\n",
49
+ "corePlatformName = \"Core Platform\"\n",
50
+ "\n",
51
+ "dataLakePlatformURL = os.environ.get('dataLakePlatformURL', 'https://localhost:9444')\n",
52
+ "dataLakePlatformName = \"Data Lake Platform\"\n",
53
+ "\n",
54
+ "devPlatformURL = os.environ.get('devPlatformURL', 'https://localhost:9445')\n",
55
+ "devPlatformName = \"Dev Platform\"\n",
56
+ "\n",
57
+ "\n",
58
+ "# The OMAG Server Platforms host one to many OMAG Servers. An OMAG Server could be\n",
59
+ "# a metadata server or a specialized governance server. Its behavior is determined\n",
60
+ "# by a configuration document that defines which OMAG services are activated.\n",
61
+ "# All OMAG Server Platforms support the administration md_commands to define a server's\n",
62
+ "# configuration document. It is also possible to create configuration documents\n",
63
+ "# through admin calls to one OMAG Server Platform and then deploy them to the\n",
64
+ "# OMAG Server Platform where they are to run. In the Egeria hands on lab, the\n",
65
+ "# OMAG Server configuration is created on the dev platform and deployed to the\n",
66
+ "# production platforms as needed.\n",
67
+ "\n",
68
+ "adminPlatformURL = devPlatformURL\n",
69
+ "\n",
70
+ "# Gary Geeke is the IT Administration Lead at Coco Pharmaceuticals.\n",
71
+ "# He does all of the configuration for the OMAG Servers. Other users are introduced and make\n",
72
+ "# calls to the server as required\n",
73
+ "\n",
74
+ "adminUserId = \"garygeeke\"\n",
75
+ "petersUserId = \"peterprofile\"\n",
76
+ "erinsUserId = \"erinoverview\"\n",
77
+ "calliesUserId = \"calliequartile\"\n",
78
+ "faithsUserId = \"faithbroker\"\n",
79
+ "harrysUserId = \"harryhopeful\"\n",
80
+ "\n",
81
+ "# These are the names of the metadata servers used by Coco Pharmaceuticals. Each metadata\n",
82
+ "# server runs as an OMAG Server on one of the OMAG Server Platforms\n",
83
+ "\n",
84
+ "cocoMDS1PlatformURL = dataLakePlatformURL\n",
85
+ "cocoMDS1PlatformName = dataLakePlatformName\n",
86
+ "cocoMDS1Name = \"cocoMDS1\"\n",
87
+ "\n",
88
+ "cocoMDS2PlatformURL = corePlatformURL\n",
89
+ "cocoMDS2PlatformName = corePlatformName\n",
90
+ "cocoMDS2Name = \"cocoMDS2\"\n",
91
+ "\n",
92
+ "cocoMDS3PlatformURL = corePlatformURL\n",
93
+ "cocoMDS3PlatformName = corePlatformName\n",
94
+ "cocoMDS3Name = \"cocoMDS3\"\n",
95
+ "\n",
96
+ "cocoMDS4PlatformURL = dataLakePlatformURL\n",
97
+ "cocoMDS4PlatformName = dataLakePlatformName\n",
98
+ "cocoMDS4Name = \"cocoMDS4\"\n",
99
+ "\n",
100
+ "cocoMDS5PlatformURL = corePlatformURL\n",
101
+ "cocoMDS5PlatformName = corePlatformName\n",
102
+ "cocoMDS5Name = \"cocoMDS5\"\n",
103
+ "\n",
104
+ "cocoMDS6PlatformURL = corePlatformURL\n",
105
+ "cocoMDS6PlatformName = corePlatformName\n",
106
+ "cocoMDS6Name = \"cocoMDS6\"\n",
107
+ "\n",
108
+ "cocoMDSxPlatformURL = devPlatformURL\n",
109
+ "cocoMDSxPlatformName = devPlatformName\n",
110
+ "cocoMDSxName = \"cocoMDSx\"\n",
111
+ "\n",
112
+ "cocoOLS1PlatformName = dataLakePlatformName\n",
113
+ "cocoOLS1PlafformURL = dataLakePlatformURL\n",
114
+ "cocoOLS1Name = \"cocoOLS1\"\n",
115
+ "\n",
116
+ "# The open metadata servers are linked together through the following open metadata cohorts.\n",
117
+ "# The servers linked via a cohort can exchange open metadata either through federated\n",
118
+ "# queries or metadata replication.\n",
119
+ "\n",
120
+ "cocoCohort = \"cocoCohort\"\n",
121
+ "devCohort = \"devCohort\"\n",
122
+ "iotCohort = \"iotCohort\"\n",
123
+ "ctsCohort = \"ctsCohort\"\n",
124
+ "\n",
125
+ "# This is the view server that runs the services that support Egeria's user interface.\n",
126
+ "\n",
127
+ "cocoView1PlatformURL = dataLakePlatformURL\n",
128
+ "cocoView1PlatformName = dataLakePlatformName\n",
129
+ "cocoView1Name = \"cocoView1\"\n",
130
+ "\n",
131
+ "# These are the names of the governance servers used in Coco Pharmaceuticals' data lake.\n",
132
+ "# Each governance server runs as an OMAG Server on the Data Lake OMAG Server Platform.\n",
133
+ "# They also connect to a metadata server to retrieve their configuration and store their\n",
134
+ "# results.\n",
135
+ "\n",
136
+ "governDL01PlatformURL = dataLakePlatformURL\n",
137
+ "governDL01PlatformName = dataLakePlatformName\n",
138
+ "governDL01Name = \"governDL01\"\n",
139
+ "governDL01ServerType = \"Engine Host\"\n",
140
+ "governDL01MDS = \"cocoMDS1\"\n",
141
+ "\n",
142
+ "exchangeDL01PlatformURL = dataLakePlatformURL\n",
143
+ "exchangeDL01PlatformName = dataLakePlatformName\n",
144
+ "exchangeDL01Name = \"exchangeDL01\"\n",
145
+ "exchangeDL01ServerType = \"Integration Daemon\"\n",
146
+ "exchangeDL01MDS = \"cocoMDS1\"\n",
147
+ "\n",
148
+ "monitorGov01PlatformURL = dataLakePlatformURL\n",
149
+ "monitorGov01PlatformName = dataLakePlatformName\n",
150
+ "monitorGov01Name = \"monitorGov01\"\n",
151
+ "monitorGov01ServerType = \"Integration Daemon\"\n",
152
+ "monitorGov01MDS = \"cocoMDS1\"\n",
153
+ "\n",
154
+ "monitorDev01PlatformURL = devPlatformURL\n",
155
+ "monitorDev01PlatformName = devPlatformName\n",
156
+ "monitorDev01Name = \"monitorDev01\"\n",
157
+ "monitorDev01ServerType = \"Integration Daemon\"\n",
158
+ "monitorDev01MDS = \"cocoMDSx\"\n",
159
+ "\n"
160
+ ]
161
+ }
162
+ ],
163
+ "metadata": {
164
+ "kernelspec": {
165
+ "display_name": "Python 3",
166
+ "language": "python",
167
+ "name": "python3"
168
+ },
169
+ "language_info": {
170
+ "codemirror_mode": {
171
+ "name": "ipython",
172
+ "version": 3
173
+ },
174
+ "file_extension": ".py",
175
+ "mimetype": "text/x-python",
176
+ "name": "python",
177
+ "nbconvert_exporter": "python",
178
+ "pygments_lexer": "ipython3",
179
+ "version": "3.7.3"
180
+ }
181
+ },
182
+ "nbformat": 4,
183
+ "nbformat_minor": 4
184
+ }
@@ -0,0 +1,154 @@
1
+ #
2
+ # This file contains the common functions and definitions used in all Egeria Hands on
3
+ # Lab Notebooks. Typically these will be system-wide functions and common environment settings
4
+ #
5
+
6
+
7
+ #
8
+ # Disable certificate checking for local development use with self-signed certificate
9
+ #
10
+
11
+ import urllib3
12
+
13
+ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
14
+
15
+ import os
16
+
17
+ os.environ["CURL_CA_BUNDLE"] = ""
18
+
19
+ #
20
+ # This is the location of the file system that is used in the lab. It defaults to a "data" subfolder in
21
+ # the platform's home folder. Here you will finc the runtime files of the platforms and the data files
22
+ # used in various labs. The default value can be overridden using the "fileSystemRoot" environment variable.
23
+ #
24
+ fileSystemRoot = os.environ.get("fileSystemRoot", "data")
25
+ #
26
+ # This is directory where the sample data from the Egeria distribution has been unpacked in. The default value
27
+ # describes its location in an IntelliJ workspace. The default value can be overridden using the "egeriaDistributionRoot"
28
+ # environment variable.
29
+ #
30
+ egeriaSampleDataRoot = os.environ.get("egeriaSampleDataRoot", ".")
31
+ #
32
+ # Flag to enable debug, this cases extra information to be printed including rest calls request and response details
33
+ # Switching this flag to True produces a very large amount of output and is not recommended.
34
+ # A targeted use of this flag is recommended, set this before and reset this after the code you would like to produce debug
35
+ #
36
+ isDebug = False
37
+ disable_ssl_warnings = True
38
+ max_paging_size = 1200
39
+ #
40
+ # Definitions of the Coco Pharmaceuticals Environment
41
+ #
42
+
43
+ # These are the three main platforms used to run Egeria's OMAG Servers
44
+ corePlatformURL = os.environ.get("corePlatformURL", "https://localhost:9443")
45
+ corePlatformName = "Core Platform"
46
+
47
+ dataLakePlatformURL = os.environ.get("dataLakePlatformURL", "https://localhost:9443")
48
+ dataLakePlatformName = "Data Lake Platform"
49
+
50
+ devPlatformURL = os.environ.get("devPlatformURL", "https://localhost:9443")
51
+ devPlatformName = "Dev Platform"
52
+
53
+
54
+ # The OMAG Server Platforms host one to many OMAG Servers. An OMAG Server could be
55
+ # a metadata server or a specialized governance server. Its behavior is determined
56
+ # by a configuration document that defines which OMAG services are activated.
57
+ # All OMAG Server Platforms support the administration md_commands to define a server's
58
+ # configuration document. It is also possible to create configuration documents
59
+ # through admin calls to one OMAG Server Platform and then deploy them to the
60
+ # OMAG Server Platform where they are to run. In the Egeria hands on lab, the
61
+ # OMAG Server configuration is created on the dev platform and deployed to the
62
+ # production platforms as needed.
63
+
64
+ adminPlatformURL = devPlatformURL
65
+
66
+ # Gary Geeke is the IT Administration Lead at Coco Pharmaceuticals.
67
+ # He does all of the configuration for the OMAG Servers. Other users are introduced and make
68
+ # calls to the server as required
69
+
70
+ adminUserId = "garygeeke"
71
+ petersUserId = "peterprofile"
72
+ erinsUserId = "erinoverview"
73
+ calliesUserId = "calliequartile"
74
+ faithsUserId = "faithbroker"
75
+ harrysUserId = "harryhopeful"
76
+
77
+ # These are the names of the metadata servers used by Coco Pharmaceuticals. Each metadata
78
+ # server runs as an OMAG Server on one of the OMAG Server Platforms
79
+
80
+ cocoMDS1PlatformURL = dataLakePlatformURL
81
+ cocoMDS1PlatformName = dataLakePlatformName
82
+ cocoMDS1Name = "cocoMDS1"
83
+
84
+ cocoMDS2PlatformURL = corePlatformURL
85
+ cocoMDS2PlatformName = corePlatformName
86
+ cocoMDS2Name = "cocoMDS2"
87
+
88
+ cocoMDS3PlatformURL = corePlatformURL
89
+ cocoMDS3PlatformName = corePlatformName
90
+ cocoMDS3Name = "cocoMDS3"
91
+
92
+ cocoMDS4PlatformURL = dataLakePlatformURL
93
+ cocoMDS4PlatformName = dataLakePlatformName
94
+ cocoMDS4Name = "cocoMDS4"
95
+
96
+ cocoMDS5PlatformURL = corePlatformURL
97
+ cocoMDS5PlatformName = corePlatformName
98
+ cocoMDS5Name = "cocoMDS5"
99
+
100
+ cocoMDS6PlatformURL = corePlatformURL
101
+ cocoMDS6PlatformName = corePlatformName
102
+ cocoMDS6Name = "cocoMDS6"
103
+
104
+ cocoMDSxPlatformURL = devPlatformURL
105
+ cocoMDSxPlatformName = devPlatformName
106
+ cocoMDSxName = "cocoMDSx"
107
+
108
+ cocoOLS1PlatformName = dataLakePlatformName
109
+ cocoOLS1PlafformURL = dataLakePlatformURL
110
+ cocoOLS1Name = "cocoOLS1"
111
+
112
+ # The open metadata servers are linked together through the following open metadata cohorts.
113
+ # The servers linked via a cohort can exchange open metadata either through federated
114
+ # queries or metadata replication.
115
+
116
+ cocoCohort = "cocoCohort"
117
+ devCohort = "devCohort"
118
+ iotCohort = "iotCohort"
119
+ ctsCohort = "ctsCohort"
120
+
121
+ # This is the view server that runs the services that support Egeria's user interface.
122
+
123
+ cocoView1PlatformURL = dataLakePlatformURL
124
+ cocoView1PlatformName = dataLakePlatformName
125
+ cocoView1Name = "cocoView1"
126
+
127
+ # These are the names of the governance servers used in Coco Pharmaceuticals' data lake.
128
+ # Each governance server runs as an OMAG Server on the Data Lake OMAG Server Platform.
129
+ # They also connect to a metadata server to retrieve their configuration and store their
130
+ # results.
131
+
132
+ governDL01PlatformURL = dataLakePlatformURL
133
+ governDL01PlatformName = dataLakePlatformName
134
+ governDL01Name = "governDL01"
135
+ governDL01ServerType = "Engine Host"
136
+ governDL01MDS = "cocoMDS1"
137
+
138
+ exchangeDL01PlatformURL = dataLakePlatformURL
139
+ exchangeDL01PlatformName = dataLakePlatformName
140
+ exchangeDL01Name = "exchangeDL01"
141
+ exchangeDL01ServerType = "Integration Daemon"
142
+ exchangeDL01MDS = "cocoMDS1"
143
+
144
+ monitorGov01PlatformURL = dataLakePlatformURL
145
+ monitorGov01PlatformName = dataLakePlatformName
146
+ monitorGov01Name = "monitorGov01"
147
+ monitorGov01ServerType = "Integration Daemon"
148
+ monitorGov01MDS = "cocoMDS1"
149
+
150
+ monitorDev01PlatformURL = devPlatformURL
151
+ monitorDev01PlatformName = devPlatformName
152
+ monitorDev01Name = "monitorDev01"
153
+ monitorDev01ServerType = "Integration Daemon"
154
+ monitorDev01MDS = "cocoMDSx"
@@ -0,0 +1,152 @@
1
+ #
2
+ # This file contains the common functions and definitions used in all Egeria Hands on
3
+ # Lab Notebooks. Typically these will be system-wide functions and common environment settings
4
+ #
5
+
6
+
7
+ #
8
+ # Disable certificate checking for local development use with self-signed certificate
9
+ #
10
+
11
+ import urllib3
12
+
13
+ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
14
+
15
+ import os
16
+
17
+ os.environ["CURL_CA_BUNDLE"] = ""
18
+
19
+ #
20
+ # This is the location of the file system that is used in the lab. It defaults to a "data" subfolder in
21
+ # the platform's home folder. Here you will finc the runtime files of the platforms and the data files
22
+ # used in various labs. The default value can be overridden using the "fileSystemRoot" environment variable.
23
+ #
24
+ fileSystemRoot = os.environ.get("fileSystemRoot", "data")
25
+ #
26
+ # This is directory where the sample data from the Egeria distribution has been unpacked in. The default value
27
+ # describes its location in an IntelliJ workspace. The default value can be overridden using the "egeriaDistributionRoot"
28
+ # environment variable.
29
+ #
30
+ egeriaSampleDataRoot = os.environ.get("egeriaSampleDataRoot", ".")
31
+ #
32
+ # Flag to enable debug, this cases extra information to be printed including rest calls request and response details
33
+ # Switching this flag to True produces a very large amount of output and is not recommended.
34
+ # A targeted use of this flag is recommended, set this before and reset this after the code you would like to produce debug
35
+ #
36
+ isDebug = False
37
+ #
38
+ # Definitions of the Coco Pharmaceuticals Environment
39
+ #
40
+
41
+ # These are the three main platforms used to run Egeria's OMAG Servers
42
+ corePlatformURL = os.environ.get("corePlatformURL", "https://localhost:9443")
43
+ corePlatformName = "Core Platform"
44
+
45
+ dataLakePlatformURL = os.environ.get("dataLakePlatformURL", "https://localhost:9444")
46
+ dataLakePlatformName = "Data Lake Platform"
47
+
48
+ devPlatformURL = os.environ.get("devPlatformURL", "https://localhost:9445")
49
+ devPlatformName = "Dev Platform"
50
+
51
+
52
+ # The OMAG Server Platforms host one to many OMAG Servers. An OMAG Server could be
53
+ # a metadata server or a specialized governance server. Its behavior is determined
54
+ # by a configuration document that defines which OMAG services are activated.
55
+ # All OMAG Server Platforms support the administration md_commands to define a server's
56
+ # configuration document. It is also possible to create configuration documents
57
+ # through admin calls to one OMAG Server Platform and then deploy them to the
58
+ # OMAG Server Platform where they are to run. In the Egeria hands on lab, the
59
+ # OMAG Server configuration is created on the dev platform and deployed to the
60
+ # production platforms as needed.
61
+
62
+ adminPlatformURL = devPlatformURL
63
+
64
+ # Gary Geeke is the IT Administration Lead at Coco Pharmaceuticals.
65
+ # He does all of the configuration for the OMAG Servers. Other users are introduced and make
66
+ # calls to the server as required
67
+
68
+ adminUserId = "garygeeke"
69
+ petersUserId = "peterprofile"
70
+ erinsUserId = "erinoverview"
71
+ calliesUserId = "calliequartile"
72
+ faithsUserId = "faithbroker"
73
+ harrysUserId = "harryhopeful"
74
+
75
+ # These are the names of the metadata servers used by Coco Pharmaceuticals. Each metadata
76
+ # server runs as an OMAG Server on one of the OMAG Server Platforms
77
+
78
+ cocoMDS1PlatformURL = dataLakePlatformURL
79
+ cocoMDS1PlatformName = dataLakePlatformName
80
+ cocoMDS1Name = "cocoMDS1"
81
+
82
+ cocoMDS2PlatformURL = corePlatformURL
83
+ cocoMDS2PlatformName = corePlatformName
84
+ cocoMDS2Name = "cocoMDS2"
85
+
86
+ cocoMDS3PlatformURL = corePlatformURL
87
+ cocoMDS3PlatformName = corePlatformName
88
+ cocoMDS3Name = "cocoMDS3"
89
+
90
+ cocoMDS4PlatformURL = dataLakePlatformURL
91
+ cocoMDS4PlatformName = dataLakePlatformName
92
+ cocoMDS4Name = "cocoMDS4"
93
+
94
+ cocoMDS5PlatformURL = corePlatformURL
95
+ cocoMDS5PlatformName = corePlatformName
96
+ cocoMDS5Name = "cocoMDS5"
97
+
98
+ cocoMDS6PlatformURL = corePlatformURL
99
+ cocoMDS6PlatformName = corePlatformName
100
+ cocoMDS6Name = "cocoMDS6"
101
+
102
+ cocoMDSxPlatformURL = devPlatformURL
103
+ cocoMDSxPlatformName = devPlatformName
104
+ cocoMDSxName = "cocoMDSx"
105
+
106
+ cocoOLS1PlatformName = dataLakePlatformName
107
+ cocoOLS1PlafformURL = dataLakePlatformURL
108
+ cocoOLS1Name = "cocoOLS1"
109
+
110
+ # The open metadata servers are linked together through the following open metadata cohorts.
111
+ # The servers linked via a cohort can exchange open metadata either through federated
112
+ # queries or metadata replication.
113
+
114
+ cocoCohort = "cocoCohort"
115
+ devCohort = "devCohort"
116
+ iotCohort = "iotCohort"
117
+ ctsCohort = "ctsCohort"
118
+
119
+ # This is the view server that runs the services that support Egeria's user interface.
120
+
121
+ cocoView1PlatformURL = dataLakePlatformURL
122
+ cocoView1PlatformName = dataLakePlatformName
123
+ cocoView1Name = "cocoView1"
124
+
125
+ # These are the names of the governance servers used in Coco Pharmaceuticals' data lake.
126
+ # Each governance server runs as an OMAG Server on the Data Lake OMAG Server Platform.
127
+ # They also connect to a metadata server to retrieve their configuration and store their
128
+ # results.
129
+
130
+ governDL01PlatformURL = dataLakePlatformURL
131
+ governDL01PlatformName = dataLakePlatformName
132
+ governDL01Name = "governDL01"
133
+ governDL01ServerType = "Engine Host"
134
+ governDL01MDS = "cocoMDS1"
135
+
136
+ exchangeDL01PlatformURL = dataLakePlatformURL
137
+ exchangeDL01PlatformName = dataLakePlatformName
138
+ exchangeDL01Name = "exchangeDL01"
139
+ exchangeDL01ServerType = "Integration Daemon"
140
+ exchangeDL01MDS = "cocoMDS1"
141
+
142
+ monitorGov01PlatformURL = dataLakePlatformURL
143
+ monitorGov01PlatformName = dataLakePlatformName
144
+ monitorGov01Name = "monitorGov01"
145
+ monitorGov01ServerType = "Integration Daemon"
146
+ monitorGov01MDS = "cocoMDS1"
147
+
148
+ monitorDev01PlatformURL = devPlatformURL
149
+ monitorDev01PlatformName = devPlatformName
150
+ monitorDev01Name = "monitorDev01"
151
+ monitorDev01ServerType = "Integration Daemon"
152
+ monitorDev01MDS = "cocoMDSx"