pyegeria 5.4.0.14__py3-none-any.whl → 5.4.0.16__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.
- commands/cat/.DS_Store +0 -0
- commands/cat/.env +8 -0
- commands/cat/debug_log +550 -0
- commands/cat/debug_log.log +0 -0
- commands/cat/list_format_set.py +10 -4
- commands/cat/logs/pyegeria.log +0 -0
- commands/cli/debug_log.log +0 -0
- commands/ops/load_archive.py +26 -22
- commands/ops/logs/pyegeria.log +0 -0
- md_processing/.DS_Store +0 -0
- md_processing/dr_egeria_inbox/Derive-Dr-Gov-Defs.md +8 -0
- md_processing/dr_egeria_inbox/Dr.Egeria Templates.md +873 -0
- md_processing/dr_egeria_inbox/arch_test.md +57 -0
- md_processing/dr_egeria_inbox/archive/dr_egeria_intro.md +254 -0
- md_processing/dr_egeria_inbox/archive/dr_egeria_intro_more_terms.md +696 -0
- md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part1.md +254 -0
- md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part2.md +298 -0
- md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part3.md +608 -0
- md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part4.md +94 -0
- md_processing/dr_egeria_inbox/archive/freddie_intro.md +284 -0
- md_processing/dr_egeria_inbox/archive/freddie_intro_orig.md +275 -0
- md_processing/dr_egeria_inbox/archive/test-term.md +110 -0
- md_processing/dr_egeria_inbox/cat_test.md +100 -0
- md_processing/dr_egeria_inbox/collections.md +39 -0
- md_processing/dr_egeria_inbox/data_designer_debug.log +6 -0
- md_processing/dr_egeria_inbox/data_designer_out.md +60 -0
- md_processing/dr_egeria_inbox/data_designer_search_test.md +11 -0
- md_processing/dr_egeria_inbox/data_field.md +54 -0
- md_processing/dr_egeria_inbox/data_spec.md +77 -0
- md_processing/dr_egeria_inbox/data_spec_test.md +2406 -0
- md_processing/dr_egeria_inbox/data_test.md +179 -0
- md_processing/dr_egeria_inbox/data_test2.md +429 -0
- md_processing/dr_egeria_inbox/data_test3.md +462 -0
- md_processing/dr_egeria_inbox/dr_egeria_data_designer_1.md +124 -0
- md_processing/dr_egeria_inbox/dr_egeria_intro_categories.md +168 -0
- md_processing/dr_egeria_inbox/dr_egeria_intro_part1.md +280 -0
- md_processing/dr_egeria_inbox/dr_egeria_intro_part2.md +313 -0
- md_processing/dr_egeria_inbox/dr_egeria_intro_part3.md +1073 -0
- md_processing/dr_egeria_inbox/dr_egeria_isc1.md +44 -0
- md_processing/dr_egeria_inbox/generated_help_report.md +9 -0
- md_processing/dr_egeria_inbox/glossary_list.md +5 -0
- md_processing/dr_egeria_inbox/glossary_search_test.md +40 -0
- md_processing/dr_egeria_inbox/glossary_test1.md +324 -0
- md_processing/dr_egeria_inbox/gov_def.md +424 -0
- md_processing/dr_egeria_inbox/gov_def2.md +447 -0
- md_processing/dr_egeria_inbox/product.md +50 -0
- md_processing/dr_egeria_inbox/rel.md +8 -0
- md_processing/dr_egeria_inbox/sb.md +119 -0
- md_processing/dr_egeria_inbox/solution-components.md +136 -0
- md_processing/dr_egeria_inbox/solution_blueprints.md +118 -0
- md_processing/dr_egeria_inbox/synonym_test.md +42 -0
- md_processing/dr_egeria_inbox/t2.md +268 -0
- md_processing/dr_egeria_outbox/.obsidian/app.json +1 -0
- md_processing/dr_egeria_outbox/.obsidian/appearance.json +1 -0
- md_processing/dr_egeria_outbox/.obsidian/community-plugins.json +6 -0
- md_processing/dr_egeria_outbox/.obsidian/core-plugins.json +31 -0
- md_processing/dr_egeria_outbox/.obsidian/plugins/calendar/data.json +10 -0
- md_processing/dr_egeria_outbox/.obsidian/plugins/calendar/main.js +4459 -0
- md_processing/dr_egeria_outbox/.obsidian/plugins/calendar/manifest.json +10 -0
- md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-kanban/data.json +3 -0
- md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-kanban/main.js +153 -0
- md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-kanban/manifest.json +11 -0
- md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-kanban/styles.css +1 -0
- md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-tasks-plugin/main.js +500 -0
- md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-tasks-plugin/manifest.json +12 -0
- md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-tasks-plugin/styles.css +1 -0
- md_processing/dr_egeria_outbox/.obsidian/plugins/templater-obsidian/main.js +37 -0
- md_processing/dr_egeria_outbox/.obsidian/plugins/templater-obsidian/manifest.json +11 -0
- md_processing/dr_egeria_outbox/.obsidian/plugins/templater-obsidian/styles.css +220 -0
- md_processing/dr_egeria_outbox/.obsidian/types.json +28 -0
- md_processing/dr_egeria_outbox/.obsidian/workspace.json +220 -0
- md_processing/dr_egeria_outbox/Untitled.canvas +1 -0
- md_processing/dr_egeria_outbox/friday/processed-2025-07-18 15:00-product.md +62 -0
- md_processing/dr_egeria_outbox/friday/processed-2025-07-18 15:13-product.md +62 -0
- md_processing/dr_egeria_outbox/friday/processed-2025-07-20 13:23-product.md +47 -0
- md_processing/dr_egeria_outbox/friday/processed-2025-08-01 11:55-data_test3.md +503 -0
- md_processing/dr_egeria_outbox/monday/processed-2025-07-14 12:38-data_designer_out.md +663 -0
- md_processing/dr_egeria_outbox/monday/processed-2025-07-21 10:52-generated_help_report.md +2744 -0
- md_processing/dr_egeria_outbox/monday/processed-2025-07-21 18:38-collections.md +62 -0
- md_processing/dr_egeria_outbox/monday/processed-2025-08-01 11:34-gov_def.md +444 -0
- md_processing/dr_egeria_outbox/processed-2025-08-03 16:05-glossary_list.md +37 -0
- md_processing/dr_egeria_outbox/sunday/processed-2025-07-20 14:55-product.md +77 -0
- md_processing/dr_egeria_outbox/sunday/processed-2025-07-20 15:05-product.md +75 -0
- md_processing/dr_egeria_outbox/sunday/processed-2025-07-20 15:11-product.md +74 -0
- md_processing/dr_egeria_outbox/sunday/processed-2025-07-20 20:40-collections.md +49 -0
- md_processing/dr_egeria_outbox/thursday/processed-2025-07-17 15:00-Derive-Dr-Gov-Defs.md +719 -0
- md_processing/dr_egeria_outbox/thursday/processed-2025-07-17 20:13-Derive-Dr-Gov-Defs.md +41 -0
- md_processing/dr_egeria_outbox/thursday/processed-2025-07-17 20:14-Derive-Dr-Gov-Defs.md +33 -0
- md_processing/dr_egeria_outbox/thursday/processed-2025-07-17 20:50-Derive-Dr-Gov-Defs.md +192 -0
- md_processing/dr_egeria_outbox/thursday/processed-2025-07-17 22:08-gov_def2.md +486 -0
- md_processing/dr_egeria_outbox/thursday/processed-2025-07-17 22:10-gov_def2.md +486 -0
- md_processing/dr_egeria_outbox/thursday/processed-2025-07-18 08:53-gov_def2.md +486 -0
- md_processing/dr_egeria_outbox/thursday/processed-2025-07-18 08:54-gov_def2.md +486 -0
- md_processing/dr_egeria_outbox/thursday/processed-2025-07-18 09:03-gov_def2.md +486 -0
- md_processing/dr_egeria_outbox/thursday/processed-2025-07-18 09:06-gov_def2.md +486 -0
- md_processing/dr_egeria_outbox/thursday/processed-2025-07-18 09:10-gov_def2.md +486 -0
- md_processing/dr_egeria_outbox/tuesday/processed-2025-07-16 19:15-gov_def2.md +527 -0
- md_processing/dr_egeria_outbox/tuesday/processed-2025-07-17 12:08-gov_def2.md +527 -0
- md_processing/dr_egeria_outbox/tuesday/processed-2025-07-17 14:27-gov_def2.md +485 -0
- md_processing/md_processing_utils/debug_log.log +0 -0
- md_processing/md_processing_utils/solution_architect_log.log +0 -0
- pyegeria/.DS_Store +0 -0
- pyegeria/_client_new.py +31 -1
- pyegeria/_output_format_models.py +373 -0
- pyegeria/_output_formats.py +501 -190
- pyegeria/collection_manager_omvs.py +1 -1
- pyegeria/glossary_browser_omvs.py +178 -65
- pyegeria/governance_officer_omvs.py +2 -2
- pyegeria/load_config.py +38 -13
- pyegeria/logging_configuration.py +2 -2
- {pyegeria-5.4.0.14.dist-info → pyegeria-5.4.0.16.dist-info}/METADATA +1 -1
- {pyegeria-5.4.0.14.dist-info → pyegeria-5.4.0.16.dist-info}/RECORD +115 -17
- md_processing/dr-egeria-outbox/DataStruct-2025-07-29-20-49-16.py +0 -8
- md_processing/dr-egeria-outbox/Mandy-DataStruct-2025-07-29-15-54-45.md +0 -19
- pyegeria/dr.egeria spec.md +0 -9
- {pyegeria-5.4.0.14.dist-info → pyegeria-5.4.0.16.dist-info}/LICENSE +0 -0
- {pyegeria-5.4.0.14.dist-info → pyegeria-5.4.0.16.dist-info}/WHEEL +0 -0
- {pyegeria-5.4.0.14.dist-info → pyegeria-5.4.0.16.dist-info}/entry_points.txt +0 -0
commands/cat/list_format_set.py
CHANGED
@@ -38,7 +38,7 @@ import argparse
|
|
38
38
|
import json
|
39
39
|
import os
|
40
40
|
import time
|
41
|
-
|
41
|
+
|
42
42
|
from loguru import logger
|
43
43
|
from rich import box
|
44
44
|
from rich.console import Console
|
@@ -204,6 +204,8 @@ def execute_format_set_action(
|
|
204
204
|
file_name = f"{format_set_name}-{time.strftime('%Y-%m-%d-%H-%M-%S')}.json"
|
205
205
|
elif output_format == "DICT":
|
206
206
|
file_name = f"{format_set_name}-{time.strftime('%Y-%m-%d-%H-%M-%S')}.py"
|
207
|
+
elif output_format == "MERMAID":
|
208
|
+
file_name = f"{format_set_name}-{time.strftime('%Y-%m-%d-%H-%M-%S')}.md"
|
207
209
|
else:
|
208
210
|
file_name = f"{format_set_name}-{time.strftime('%Y-%m-%d-%H-%M-%S')}.md"
|
209
211
|
full_file_path = os.path.join(file_path, file_name)
|
@@ -231,12 +233,16 @@ def execute_format_set_action(
|
|
231
233
|
return
|
232
234
|
elif isinstance(output, (str, list)) and output_format == "DICT":
|
233
235
|
output = json.dumps(output, indent=4)
|
234
|
-
elif isinstance(output, (str, list)) and output_format
|
236
|
+
elif isinstance(output, (str, list)) and output_format in[ "REPORT" ]:
|
235
237
|
output = preamble + output
|
238
|
+
elif isinstance(output, (str, list)) and output_format == "HTML":
|
239
|
+
pass
|
236
240
|
|
237
241
|
with open(full_file_path, 'w') as f:
|
238
242
|
f.write(output)
|
239
|
-
print(f"\n==> Output written to
|
243
|
+
print(f"\n==> Output written to {full_file_path}")
|
244
|
+
if output_format == "HTML":
|
245
|
+
print(f"\n==> Web link: [{file_name}]({app_config.pyegeria_publishing_root}/{file_name}")
|
240
246
|
return
|
241
247
|
|
242
248
|
# For TABLE output, add output_format to params
|
@@ -355,7 +361,7 @@ def main():
|
|
355
361
|
parser.add_argument("--userid", help="User Id")
|
356
362
|
parser.add_argument("--password", help="User Password")
|
357
363
|
parser.add_argument("--output-format", help="Output format (TABLE, DICT, FORM, REPORT, HTML, LIST)",
|
358
|
-
choices=["TABLE", "DICT", "FORM", "REPORT", "HTML", "LIST"], default="TABLE")
|
364
|
+
choices=["TABLE", "DICT", "FORM", "REPORT", "HTML", "LIST", "MERMAID"], default="TABLE")
|
359
365
|
|
360
366
|
|
361
367
|
|
File without changes
|
File without changes
|
commands/ops/load_archive.py
CHANGED
@@ -11,29 +11,33 @@ This script refreshed an integration daemon.
|
|
11
11
|
import os
|
12
12
|
|
13
13
|
import click
|
14
|
-
|
15
|
-
from pyegeria import AutomatedCuration, EgeriaTech
|
16
|
-
from pyegeria.
|
17
|
-
|
18
|
-
PropertyServerException,
|
19
|
-
UserNotAuthorizedException,
|
20
|
-
print_exception_response,
|
14
|
+
from loguru import logger
|
15
|
+
from pyegeria import AutomatedCuration, EgeriaTech, config_logging, get_app_config
|
16
|
+
from pyegeria._exceptions_new import (
|
17
|
+
PyegeriaException, print_exception_response, print_basic_exception
|
21
18
|
)
|
22
19
|
|
23
|
-
EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
|
24
|
-
EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
|
25
|
-
EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
|
26
|
-
EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "view-server")
|
27
|
-
EGERIA_VIEW_SERVER_URL = os.environ.get(
|
28
|
-
|
29
|
-
)
|
30
|
-
EGERIA_INTEGRATION_DAEMON = os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon")
|
31
|
-
EGERIA_INTEGRATION_DAEMON_URL = os.environ.get(
|
32
|
-
|
33
|
-
)
|
20
|
+
# EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
|
21
|
+
# EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
|
22
|
+
# EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
|
23
|
+
# EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "view-server")
|
24
|
+
# EGERIA_VIEW_SERVER_URL = os.environ.get(
|
25
|
+
# "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
|
26
|
+
# )
|
27
|
+
# EGERIA_INTEGRATION_DAEMON = os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon")
|
28
|
+
# EGERIA_INTEGRATION_DAEMON_URL = os.environ.get(
|
29
|
+
# "EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"
|
30
|
+
# )
|
31
|
+
|
32
|
+
|
33
|
+
|
34
34
|
EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
|
35
35
|
EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
|
36
|
+
app_settings = get_app_config()
|
37
|
+
app_config = app_settings.Environment
|
38
|
+
config_logging()
|
36
39
|
|
40
|
+
print(f"Console width is {app_config.console_width}")
|
37
41
|
|
38
42
|
@click.command("load-archive")
|
39
43
|
@click.option(
|
@@ -42,13 +46,13 @@ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
|
|
42
46
|
help="Full path on the Metadata Server to the archive file to load",
|
43
47
|
)
|
44
48
|
@click.option(
|
45
|
-
"--server_name", default=
|
49
|
+
"--server_name", default=app_config.egeria_metadata_store, help="Egeria metadata store to load"
|
46
50
|
)
|
47
51
|
@click.option(
|
48
|
-
"--view-server", default=
|
52
|
+
"--view-server", default=app_config.egeria_view_server, help="Egeria view server to connect to"
|
49
53
|
)
|
50
54
|
@click.option(
|
51
|
-
"--url", default=
|
55
|
+
"--url", default=app_config.egeria_platform_url, help="URL of Egeria platform to connect to"
|
52
56
|
)
|
53
57
|
@click.option("--userid", default=EGERIA_USER, help="Egeria admin user")
|
54
58
|
@click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria admin password")
|
@@ -65,7 +69,7 @@ def load_archive(file_name, server_name, view_server, url, userid, password, tim
|
|
65
69
|
|
66
70
|
click.echo(f"Loaded archive: {file_name}")
|
67
71
|
|
68
|
-
except (
|
72
|
+
except (PyegeriaException) as e:
|
69
73
|
print(
|
70
74
|
f"Perhaps there was a timeout? If so, the command will complete despite the exception\n"
|
71
75
|
f"===> You can check by rerunning the command in a few minutes"
|
File without changes
|
md_processing/.DS_Store
ADDED
Binary file
|