pyegeria 5.3.4.12__py3-none-any.whl → 5.3.4.13__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.
@@ -232,7 +232,7 @@ def construct_mermaid_html(mermaid_str: str) -> str:
232
232
  /* Style for the diagram container */
233
233
  .diagram-container {{
234
234
  position: relative;
235
- width: 90%; /* Adjust the diagram container width */
235
+ width: 100%; /* Adjust the diagram container width */
236
236
  height: 500px; /* Set a fixed height for the container */
237
237
  margin: 0 auto;
238
238
  border: 1px solid #ccc; /* Optional border for visualization */
@@ -262,100 +262,85 @@ def construct_mermaid_html(mermaid_str: str) -> str:
262
262
  }}
263
263
  </style>
264
264
 
265
- <script src="https://cdn.jsdelivr.net/npm/svg-pan-zoom@3.6.1/dist/svg-pan-zoom.min.js"></script>
266
- <script>
267
- document.addEventListener("DOMContentLoaded", () => {{
268
- // Define graph ID dynamically passed via Python
269
- const graph_id = "{graph_id}";
270
-
271
- // Function to load external scripts dynamically
272
- function loadScript(url, callback) {{
273
- const script = document.createElement('script');
274
- script.src = url;
275
- script.async = true;
276
- script.onload = callback;
277
- script.onerror = () => console.error("Error loading script:", url);
278
- document.head.appendChild(script);
279
- }}
280
-
281
- // Initialize Mermaid
282
- function initializeMermaid(graph_id) {{
283
- // Look for the container
284
- const containerElement = document.getElementById(`${{graph_id}}-container`);
285
- if (!containerElement) {{
286
- console.error(`Container with ID "${{graph_id}}-container" not found.`);
287
- return;
288
- }}
289
-
290
- // Configure Mermaid
291
- mermaid.initialize({{ startOnLoad: false, logLevel: "debug" }});
292
- mermaid.init(undefined, `#${{graph_id}}`);
293
-
294
- setTimeout(() => {{
295
- const svg = containerElement.querySelector("svg");
296
-
297
- // Ensure SVG exists
298
- if (!svg) {{
299
- console.error(`SVG not rendered for ID "${{graph_id}}".`);
300
- return;
301
- }}
302
-
303
- // Set initial size for SVG
304
- svg.setAttribute("width", "100%");
305
- svg.setAttribute("height", "100%");
306
-
307
- // Ensure the container fits the diagram properly
308
- containerElement.style.overflow = "hidden";
309
-
310
- // Initialize Pan-Zoom
311
- const panZoom = svgPanZoom(svg, {{
312
- zoomEnabled: true,
313
- controlIconsEnabled: false, // Disable default controls
314
- fit: true,
315
- center: true,
316
- minZoom: 0.5,
317
- maxZoom: 10,
318
- contain: true // Ensure diagram stays within view
319
- }});
320
-
321
- // Add custom controls
322
- const controlsContainer = document.createElement("div");
323
- controlsContainer.className = "svg-pan-zoom_controls";
324
- controlsContainer.innerHTML = `
325
- <button id="${{graph_id}}-zoom-in">+</button>
326
- <button id="${{graph_id}}-zoom-out">-</button>
327
- <button id="${{graph_id}}-reset">Reset</button>
328
- `;
329
- containerElement.appendChild(controlsContainer);
330
-
331
- // Handle controls
332
- document.getElementById(`${{graph_id}}-zoom-in`).addEventListener("click", () => panZoom.zoomIn());
333
- document.getElementById(`${{graph_id}}-zoom-out`).addEventListener("click", () => panZoom.zoomOut());
334
- document.getElementById(`${{graph_id}}-reset`).addEventListener("click", () => {{
335
- panZoom.resetZoom();
336
- panZoom.center();
337
- }});
338
- }}, 500); // Delay to ensure Mermaid finishes rendering
339
- }}
340
-
341
- // Load Mermaid.js externally or initialize
342
- if (typeof mermaid === "undefined") {{
343
- loadScript("https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js", () => {{
344
- console.log("Mermaid.js loaded successfully");
345
- initializeMermaid(graph_id);
346
- }});
347
- }} else {{
348
- initializeMermaid(graph_id);
349
- }}
350
- }});
351
- </script>
352
-
353
265
  <div id="{graph_id}-container" class="diagram-container">
354
266
  <!-- Mermaid diagram will be dynamically rendered here -->
355
267
  <div id="{graph_id}" class="mermaid">
356
268
  {mermaid_code}
357
269
  </div>
358
270
  </div>
271
+
272
+ <script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
273
+ <script src="https://cdn.jsdelivr.net/npm/svg-pan-zoom@3.6.1/dist/svg-pan-zoom.min.js"></script>
274
+ <script>
275
+ document.addEventListener("DOMContentLoaded", () => {{
276
+ // Initialize Mermaid and Pan-Zoom functionality
277
+ const graph_id = "{graph_id}";
278
+
279
+ function initializeMermaid(graph_id) {{
280
+ const containerElement = document.getElementById(`${{graph_id}}-container`);
281
+
282
+ if (!containerElement) {{
283
+ console.error(`Container with ID "${{graph_id}}-container" not found.`);
284
+ return;
285
+ }}
286
+
287
+ // Configure Mermaid
288
+ mermaid.initialize({{ startOnLoad: false, logLevel: "debug" }});
289
+ mermaid.init(undefined, `#${{graph_id}}`);
290
+
291
+ setTimeout(() => {{
292
+ const svg = containerElement.querySelector("svg");
293
+ if (!svg) {{
294
+ console.error(`SVG not rendered for ID "${{graph_id}}".`);
295
+ return;
296
+ }}
297
+
298
+ // Set initial size
299
+ svg.setAttribute("width", "100%");
300
+ svg.setAttribute("height", "100%");
301
+
302
+ // Initialize Pan-Zoom
303
+ const panZoom = svgPanZoom(svg, {{
304
+ zoomEnabled: true,
305
+ controlIconsEnabled: false,
306
+ fit: true,
307
+ center: true,
308
+ minZoom: 0.5,
309
+ maxZoom: 10,
310
+ contain: true
311
+ }});
312
+
313
+ // Add custom controls
314
+ const controlsContainer = document.createElement("div");
315
+ controlsContainer.className = "svg-pan-zoom_controls";
316
+ controlsContainer.innerHTML = `
317
+ <button id="${{graph_id}}-zoom-in">+</button>
318
+ <button id="${{graph_id}}-zoom-out">-</button>
319
+ <button id="${{graph_id}}-reset">Reset</button>
320
+ `;
321
+ containerElement.appendChild(controlsContainer);
322
+
323
+ // Handle controls
324
+ document.getElementById(`${{graph_id}}-zoom-in`).addEventListener("click", () => panZoom.zoomIn());
325
+ document.getElementById(`${{graph_id}}-zoom-out`).addEventListener("click", () => panZoom.zoomOut());
326
+ document.getElementById(`${{graph_id}}-reset`).addEventListener("click", () => {{
327
+ panZoom.resetZoom();
328
+ panZoom.center();
329
+ }});
330
+ }}, 500);
331
+ }}
332
+
333
+ if (typeof mermaid === "undefined") {{
334
+ const script = document.createElement('script');
335
+ script.src = "https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js";
336
+ script.onload = () => initializeMermaid(graph_id);
337
+ document.head.appendChild(script);
338
+ }} else {{
339
+ initializeMermaid(graph_id);
340
+ }}
341
+ }});
342
+ </script>
343
+
359
344
  """
360
345
 
361
346
  return html_content
pyegeria/test_m.html CHANGED
@@ -3,7 +3,7 @@
3
3
  /* Style for the diagram container */
4
4
  .diagram-container {
5
5
  position: relative;
6
- width: 90%; /* Adjust the diagram container width */
6
+ width: 100%; /* Adjust the diagram container width */
7
7
  height: 500px; /* Set a fixed height for the container */
8
8
  margin: 0 auto;
9
9
  border: 1px solid #ccc; /* Optional border for visualization */
@@ -33,94 +33,6 @@
33
33
  }
34
34
  </style>
35
35
 
36
- <script src="https://cdn.jsdelivr.net/npm/svg-pan-zoom@3.6.1/dist/svg-pan-zoom.min.js"></script>
37
- <script>
38
- document.addEventListener("DOMContentLoaded", () => {
39
- // Define graph ID dynamically passed via Python
40
- const graph_id = "mermaid-graph-c4f8d707-7c85-4125-b5fd-c3257a2ef2ef";
41
-
42
- // Function to load external scripts dynamically
43
- function loadScript(url, callback) {
44
- const script = document.createElement('script');
45
- script.src = url;
46
- script.async = true;
47
- script.onload = callback;
48
- script.onerror = () => console.error("Error loading script:", url);
49
- document.head.appendChild(script);
50
- }
51
-
52
- // Initialize Mermaid
53
- function initializeMermaid(graph_id) {
54
- // Look for the container
55
- const containerElement = document.getElementById(`${graph_id}-container`);
56
- if (!containerElement) {
57
- console.error(`Container with ID "${graph_id}-container" not found.`);
58
- return;
59
- }
60
-
61
- // Configure Mermaid
62
- mermaid.initialize({ startOnLoad: false, logLevel: "debug" });
63
- mermaid.init(undefined, `#${graph_id}`);
64
-
65
- setTimeout(() => {
66
- const svg = containerElement.querySelector("svg");
67
-
68
- // Ensure SVG exists
69
- if (!svg) {
70
- console.error(`SVG not rendered for ID "${graph_id}".`);
71
- return;
72
- }
73
-
74
- // Set initial size for SVG
75
- svg.setAttribute("width", "100%");
76
- svg.setAttribute("height", "100%");
77
-
78
- // Ensure the container fits the diagram properly
79
- containerElement.style.overflow = "hidden";
80
-
81
- // Initialize Pan-Zoom
82
- const panZoom = svgPanZoom(svg, {
83
- zoomEnabled: true,
84
- controlIconsEnabled: false, // Disable default controls
85
- fit: true,
86
- center: true,
87
- minZoom: 0.5,
88
- maxZoom: 10,
89
- contain: true // Ensure diagram stays within view
90
- });
91
-
92
- // Add custom controls
93
- const controlsContainer = document.createElement("div");
94
- controlsContainer.className = "svg-pan-zoom_controls";
95
- controlsContainer.innerHTML = `
96
- <button id="${graph_id}-zoom-in">+</button>
97
- <button id="${graph_id}-zoom-out">-</button>
98
- <button id="${graph_id}-reset">Reset</button>
99
- `;
100
- containerElement.appendChild(controlsContainer);
101
-
102
- // Handle controls
103
- document.getElementById(`${graph_id}-zoom-in`).addEventListener("click", () => panZoom.zoomIn());
104
- document.getElementById(`${graph_id}-zoom-out`).addEventListener("click", () => panZoom.zoomOut());
105
- document.getElementById(`${graph_id}-reset`).addEventListener("click", () => {
106
- panZoom.resetZoom();
107
- panZoom.center();
108
- });
109
- }, 500); // Delay to ensure Mermaid finishes rendering
110
- }
111
-
112
- // Load Mermaid.js externally or initialize
113
- if (typeof mermaid === "undefined") {
114
- loadScript("https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js", () => {
115
- console.log("Mermaid.js loaded successfully");
116
- initializeMermaid(graph_id);
117
- });
118
- } else {
119
- initializeMermaid(graph_id);
120
- }
121
- });
122
- </script>
123
-
124
36
  <div id="mermaid-graph-c4f8d707-7c85-4125-b5fd-c3257a2ef2ef-container" class="diagram-container">
125
37
  <!-- Mermaid diagram will be dynamically rendered here -->
126
38
  <div id="mermaid-graph-c4f8d707-7c85-4125-b5fd-c3257a2ef2ef" class="mermaid">
@@ -227,3 +139,76 @@ style f37f3735-28a1-4e03-9ff5-3fe2f137f661 color:#FFFFFF, fill:#AA00FF, stroke:#
227
139
  style fb32bef2-e79f-4893-b500-2e547f24d482 color:#FFFFFF, fill:#838cc7, stroke:#3079ab
228
140
  </div>
229
141
  </div>
142
+
143
+ <script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
144
+ <script src="https://cdn.jsdelivr.net/npm/svg-pan-zoom@3.6.1/dist/svg-pan-zoom.min.js"></script>
145
+ <script>
146
+ document.addEventListener("DOMContentLoaded", () => {
147
+ // Initialize Mermaid and Pan-Zoom functionality
148
+ const graph_id = "mermaid-graph-c4f8d707-7c85-4125-b5fd-c3257a2ef2ef";
149
+
150
+ function initializeMermaid(graph_id) {
151
+ const containerElement = document.getElementById(`${graph_id}-container`);
152
+
153
+ if (!containerElement) {
154
+ console.error(`Container with ID "${graph_id}-container" not found.`);
155
+ return;
156
+ }
157
+
158
+ // Configure Mermaid
159
+ mermaid.initialize({ startOnLoad: false, logLevel: "debug" });
160
+ mermaid.init(undefined, `#${graph_id}`);
161
+
162
+ setTimeout(() => {
163
+ const svg = containerElement.querySelector("svg");
164
+ if (!svg) {
165
+ console.error(`SVG not rendered for ID "${graph_id}".`);
166
+ return;
167
+ }
168
+
169
+ // Set initial size
170
+ svg.setAttribute("width", "100%");
171
+ svg.setAttribute("height", "100%");
172
+
173
+ // Initialize Pan-Zoom
174
+ const panZoom = svgPanZoom(svg, {
175
+ zoomEnabled: true,
176
+ controlIconsEnabled: false,
177
+ fit: true,
178
+ center: true,
179
+ minZoom: 0.5,
180
+ maxZoom: 10,
181
+ contain: true
182
+ });
183
+
184
+ // Add custom controls
185
+ const controlsContainer = document.createElement("div");
186
+ controlsContainer.className = "svg-pan-zoom_controls";
187
+ controlsContainer.innerHTML = `
188
+ <button id="${graph_id}-zoom-in">+</button>
189
+ <button id="${graph_id}-zoom-out">-</button>
190
+ <button id="${graph_id}-reset">Reset</button>
191
+ `;
192
+ containerElement.appendChild(controlsContainer);
193
+
194
+ // Handle controls
195
+ document.getElementById(`${graph_id}-zoom-in`).addEventListener("click", () => panZoom.zoomIn());
196
+ document.getElementById(`${graph_id}-zoom-out`).addEventListener("click", () => panZoom.zoomOut());
197
+ document.getElementById(`${graph_id}-reset`).addEventListener("click", () => {
198
+ panZoom.resetZoom();
199
+ panZoom.center();
200
+ });
201
+ }, 500);
202
+ }
203
+
204
+ if (typeof mermaid === "undefined") {
205
+ const script = document.createElement('script');
206
+ script.src = "https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js";
207
+ script.onload = () => initializeMermaid(graph_id);
208
+ document.head.appendChild(script);
209
+ } else {
210
+ initializeMermaid(graph_id);
211
+ }
212
+ });
213
+ </script>
214
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyegeria
3
- Version: 5.3.4.12
3
+ Version: 5.3.4.13
4
4
  Summary: A python client for Egeria
5
5
  License: Apache 2.0
6
6
  Keywords: egeria,metadata,governance
@@ -245,7 +245,7 @@ pyegeria/full_omag_server_config.py,sha256=CQqLCy_3DZFvJZEOcGf50HWdFaWpiAIs6z-kK
245
245
  pyegeria/glossary_browser_omvs.py,sha256=ci57LXFjIAXWw6XXFu8pIbeR_3y4hl_x4F2-HHdy7VM,93585
246
246
  pyegeria/glossary_manager_omvs.py,sha256=GJQo5E3bxv8JL84wTGqJKMrMo7QqNAPtyJJgvGpI_lU,132558
247
247
  pyegeria/m_test.py,sha256=BDKRLsHsAWnwCbzHkkvfsc8ZIJ0k-jmwPPNuTSgW6Qo,7659
248
- pyegeria/mermaid_utilities.py,sha256=zuGag6ffjkO22kiJtarhy_x18Yx5x_t4DSgbsC0SxKU,34433
248
+ pyegeria/mermaid_utilities.py,sha256=uhMiE9OjLWb6fJ7KQqUHgcJ7FdcVaG0rciAcrX8nioE,34009
249
249
  pyegeria/metadata_explorer_omvs.py,sha256=xHnZTQKbd6XwOhYia-RiIisrvZcqHi0SL1l6OCf04Gk,86911
250
250
  pyegeria/my_profile_omvs.py,sha256=d0oJYCJG7pS9BINPuGciVa00ac0jwPHNANXDCLginEc,34720
251
251
  pyegeria/platform_services.py,sha256=xlF5p5HPKDGTFFDsuxm2RLhr8vjZPv4T7e2qCkDgKXE,41654
@@ -255,14 +255,14 @@ pyegeria/runtime_manager_omvs.py,sha256=Z5wY9ignNjil8O6yjihZftxkGoh9A4PQDcXhoIsO
255
255
  pyegeria/server_operations.py,sha256=vmiUDU_Xa0U8pa0Fdb-QKkoeSqs7WfMwIpG_XU3xgeI,16784
256
256
  pyegeria/solution_architect_omvs.py,sha256=x6CfPTyn1l2DFYVEFP0t_rT9uVjoFr596hBBeuVaMRg,22093
257
257
  pyegeria/template_manager_omvs.py,sha256=PfJ9dOfmBvf59DgRdZ9Dl1Kl_UYqjF-JncXVnbCqLZU,42408
258
- pyegeria/test_m.html,sha256=YAGz3VoCvEydXuRJMwoajOWkuB7sJO6WTZKNkCfXzgw,12239
258
+ pyegeria/test_m.html,sha256=Jbc9D5xWa1paVQV2l4HRQ23oJTraw21crd3RgB4-CBw,11819
259
259
  pyegeria/test_m1.html,sha256=XS_1IAtfG4ZlZk45QTkrFWWpjQMVlO21ScDMX2Frl3g,14086
260
260
  pyegeria/test_mer.ipynb,sha256=G7hpHn07IXnt_VKvnTDvljwwHB7RfC0etOMyZKt1icQ,30809
261
261
  pyegeria/utils.py,sha256=GCt1C0bp0Xng1ahzbZhzV9qQwH7Dj93IaCt2dvWb-sg,5417
262
262
  pyegeria/valid_metadata_omvs.py,sha256=kL3bEkoBtNCaQKjziFwRAqQyleu-i2ua_REIogfulFw,65031
263
263
  pyegeria/x_action_author_omvs.py,sha256=6b725SPsC52AI7ols7Qq8MsBlZuAXr_BgJ_-ychVRCw,6386
264
- pyegeria-5.3.4.12.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
265
- pyegeria-5.3.4.12.dist-info/METADATA,sha256=PDGeRm1VV0p86nMWqtX-0MXYdRZ4UKI7eYYgPY_ZWN0,2736
266
- pyegeria-5.3.4.12.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
267
- pyegeria-5.3.4.12.dist-info/entry_points.txt,sha256=LS9g5JPSBL0whnyAcGhLZCAyUp6PkPU6fjHP9Aso1V4,6176
268
- pyegeria-5.3.4.12.dist-info/RECORD,,
264
+ pyegeria-5.3.4.13.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
265
+ pyegeria-5.3.4.13.dist-info/METADATA,sha256=iPsKrIUbYAo4puVSk3C7n3m-zFNXqa2YjI20UlZuKF0,2736
266
+ pyegeria-5.3.4.13.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
267
+ pyegeria-5.3.4.13.dist-info/entry_points.txt,sha256=LS9g5JPSBL0whnyAcGhLZCAyUp6PkPU6fjHP9Aso1V4,6176
268
+ pyegeria-5.3.4.13.dist-info/RECORD,,