pyegeria 5.4.4__py3-none-any.whl → 5.4.4.2__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/debug_log.2025-09-10_13-48-37_153090.log.zip +0 -0
- commands/cat/dr_egeria_command_help.py +11 -17
- md_processing/data/commands.json +763 -134
- md_processing/dr-egeria-outbox/Business-Imperative-DrE-2025-09-11-21-21-15.md +33 -0
- md_processing/md_commands/governance_officer_commands.py +5 -2
- md_processing/md_processing_utils/common_md_proc_utils.py +159 -127
- md_processing/md_processing_utils/common_md_utils.py +7 -4
- md_processing/md_processing_utils/debug_log +186 -1
- md_processing/md_processing_utils/debug_log.2025-09-09_11-10-03_528597.zip +0 -0
- md_processing/md_processing_utils/dr-egeria-help-2025-09-10T14:49:49.md +3460 -0
- md_processing/md_processing_utils/dr-egeria-help-2025-09-10T14:57:46.md +472 -0
- md_processing/md_processing_utils/extraction_utils.py +75 -36
- md_processing/md_processing_utils/generate_md_cmd_templates.py +4 -4
- pyegeria/_output_formats.py +1 -1
- pyegeria/glossary_manager.py +2 -2
- pyegeria/governance_officer.py +1 -4
- pyegeria/utils.py +110 -0
- {pyegeria-5.4.4.dist-info → pyegeria-5.4.4.2.dist-info}/METADATA +1 -1
- {pyegeria-5.4.4.dist-info → pyegeria-5.4.4.2.dist-info}/RECORD +22 -22
- commands/cat/debug_log.2025-09-01_07-02-58_818650.log.zip +0 -0
- commands/cat/debug_log.2025-09-02_07-44-39_567276.log.zip +0 -0
- commands/cat/debug_log.2025-09-03_07-45-21_986388.log.zip +0 -0
- commands/cat/debug_log.2025-09-04_08-21-58_788009.log.zip +0 -0
- commands/cat/debug_log.2025-09-05_09-37-53_062579.log.zip +0 -0
- {pyegeria-5.4.4.dist-info → pyegeria-5.4.4.2.dist-info}/LICENSE +0 -0
- {pyegeria-5.4.4.dist-info → pyegeria-5.4.4.2.dist-info}/WHEEL +0 -0
- {pyegeria-5.4.4.dist-info → pyegeria-5.4.4.2.dist-info}/entry_points.txt +0 -0
Binary file
|
@@ -11,6 +11,7 @@ import os
|
|
11
11
|
import sys
|
12
12
|
import time
|
13
13
|
|
14
|
+
from pydantic import ValidationError
|
14
15
|
from rich import box
|
15
16
|
from rich.console import Console
|
16
17
|
from rich.markdown import Markdown
|
@@ -28,8 +29,8 @@ from pyegeria import (
|
|
28
29
|
EgeriaTech,
|
29
30
|
InvalidParameterException,
|
30
31
|
PropertyServerException,
|
31
|
-
UserNotAuthorizedException, NO_CATEGORIES_FOUND,
|
32
|
-
|
32
|
+
UserNotAuthorizedException, NO_CATEGORIES_FOUND, PyegeriaException, print_basic_exception, print_validation_error,
|
33
|
+
)
|
33
34
|
from commands.cat.glossary_actions import EGERIA_HOME_GLOSSARY_GUID
|
34
35
|
from pyegeria._globals import NO_GLOSSARIES_FOUND
|
35
36
|
|
@@ -139,15 +140,7 @@ def display_command_terms(
|
|
139
140
|
try:
|
140
141
|
g_client = EgeriaTech(view_server, view_url, user_id, user_pass)
|
141
142
|
token = g_client.create_egeria_bearer_token(user_id, user_pass)
|
142
|
-
|
143
|
-
glossary_guid = g_client.get_guid_for_name(glossary_name)
|
144
|
-
if glossary_guid == NO_GLOSSARIES_FOUND:
|
145
|
-
console.print(
|
146
|
-
f"\nThe glossary name {glossary_name} was not found. Please try using the glossary guid"
|
147
|
-
)
|
148
|
-
sys.exit(1)
|
149
|
-
elif (glossary_guid is not None) and (len(glossary_guid) < 10):
|
150
|
-
glossary_guid = None
|
143
|
+
|
151
144
|
|
152
145
|
if output_format == "LIST":
|
153
146
|
action = "LIST"
|
@@ -158,7 +151,7 @@ def display_command_terms(
|
|
158
151
|
file_name = f"Command-Help-{time.strftime('%Y-%m-%d-%H-%M-%S')}-{action}.md"
|
159
152
|
full_file_path = os.path.join(file_path, file_name)
|
160
153
|
os.makedirs(os.path.dirname(full_file_path), exist_ok=True)
|
161
|
-
output = g_client.find_glossary_terms(search_string,
|
154
|
+
output = g_client.find_glossary_terms(search_string, output_format=output_format, output_format_set="Help-Terms")
|
162
155
|
if output == "NO_TERMS_FOUND":
|
163
156
|
print(f"\n==> No commands found for search string '{search_string}'")
|
164
157
|
return
|
@@ -168,12 +161,13 @@ def display_command_terms(
|
|
168
161
|
return
|
169
162
|
|
170
163
|
except (
|
171
|
-
|
172
|
-
PropertyServerException,
|
173
|
-
UserNotAuthorizedException,
|
164
|
+
PyegeriaException
|
174
165
|
) as e:
|
175
|
-
|
176
|
-
|
166
|
+
print_basic_exception(e)
|
167
|
+
except ValidationError as e:
|
168
|
+
print_validation_error(e)
|
169
|
+
except Exception as e:
|
170
|
+
console.print_exception(e)
|
177
171
|
|
178
172
|
|
179
173
|
def generate_table(search_string: str, glossary_guid: str) -> Table:
|