pyegeria 5.4.0.23__py3-none-any.whl → 5.4.0.24__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 +2046 -465
- commands/cat/debug_log.2025-08-15_09-14-07_444802.zip +0 -0
- commands/cat/debug_log.2025-08-16_10-21-59_388912.zip +0 -0
- commands/cat/dr_egeria_md.py +16 -3
- md_processing/__init__.py +5 -3
- md_processing/data/commands.json +8310 -903
- md_processing/dr_egeria_inbox/gov_def.md +76 -18
- md_processing/dr_egeria_inbox/img.png +0 -0
- md_processing/dr_egeria_inbox/product.md +132 -20
- md_processing/dr_egeria_outbox/monday/processed-2025-08-17 21:04-product.md +97 -0
- md_processing/md_commands/governance_officer_commands.py +291 -150
- md_processing/md_commands/product_manager_commands.py +309 -401
- md_processing/md_processing_utils/common_md_proc_utils.py +110 -7
- md_processing/md_processing_utils/common_md_utils.py +112 -26
- md_processing/md_processing_utils/md_processing_constants.py +8 -5
- pyegeria/__init__.py +1 -1
- pyegeria/_client_new.py +3 -2
- pyegeria/_exceptions_new.py +6 -0
- pyegeria/_output_formats.py +17 -2
- pyegeria/governance_officer.py +1 -3
- pyegeria/load_config.py +1 -1
- pyegeria/models.py +28 -1
- pyegeria/utils.py +1 -1
- {pyegeria-5.4.0.23.dist-info → pyegeria-5.4.0.24.dist-info}/METADATA +1 -1
- {pyegeria-5.4.0.23.dist-info → pyegeria-5.4.0.24.dist-info}/RECORD +28 -30
- commands/cat/logs/pyegeria.log +0 -136
- md_processing/dr_egeria_outbox/friday/processed-2025-07-18 15:00-product.md +0 -62
- md_processing/dr_egeria_outbox/friday/processed-2025-07-18 15:13-product.md +0 -62
- md_processing/dr_egeria_outbox/friday/processed-2025-07-20 13:23-product.md +0 -47
- md_processing/dr_egeria_outbox/friday/processed-2025-08-01 11:55-data_test3.md +0 -503
- md_processing/dr_egeria_outbox/processed-2025-08-03 16:05-glossary_list.md +0 -37
- {pyegeria-5.4.0.23.dist-info → pyegeria-5.4.0.24.dist-info}/LICENSE +0 -0
- {pyegeria-5.4.0.23.dist-info → pyegeria-5.4.0.24.dist-info}/WHEEL +0 -0
- {pyegeria-5.4.0.23.dist-info → pyegeria-5.4.0.24.dist-info}/entry_points.txt +0 -0
Binary file
|
Binary file
|
commands/cat/dr_egeria_md.py
CHANGED
@@ -6,6 +6,7 @@ import sys
|
|
6
6
|
from datetime import datetime
|
7
7
|
|
8
8
|
from loguru import logger
|
9
|
+
from pydantic import ValidationError
|
9
10
|
|
10
11
|
log_format = "{time} | {level} | {function} | {line} | {message} | {extra}"
|
11
12
|
logger.remove()
|
@@ -31,7 +32,8 @@ from md_processing import (extract_command, process_glossary_upsert_command, pro
|
|
31
32
|
process_collection_list_command, process_collection_upsert_command, process_link_agreement_item_command,
|
32
33
|
process_gov_definition_upsert_command, GOV_COM_LIST, GOV_LINK_LIST,
|
33
34
|
process_gov_def_link_detach_command, process_gov_definition_list_command,
|
34
|
-
process_gov_def_context_command,
|
35
|
+
process_gov_def_context_command, process_supporting_gov_def_link_detach_command,
|
36
|
+
COLLECTIONS_LIST, SIMPLE_COLLECTIONS, GOV_LINK_LIST,)
|
35
37
|
from md_processing.md_commands.data_designer_commands import (process_data_spec_upsert_command,
|
36
38
|
process_data_dict_upsert_command,
|
37
39
|
process_data_collection_list_command,
|
@@ -41,7 +43,8 @@ from md_processing.md_commands.data_designer_commands import (process_data_spec_
|
|
41
43
|
process_data_field_upsert_command,
|
42
44
|
process_data_structure_upsert_command,
|
43
45
|
process_data_class_upsert_command)
|
44
|
-
|
46
|
+
|
47
|
+
from pyegeria import EgeriaTech, PyegeriaException, print_basic_exception, print_validation_error
|
45
48
|
|
46
49
|
EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
|
47
50
|
EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
|
@@ -112,7 +115,7 @@ def process_markdown_file(input_file: str, output_folder:str, directive: str, se
|
|
112
115
|
return # No block to process
|
113
116
|
|
114
117
|
potential_command = extract_command(current_block) # Extract object_action
|
115
|
-
if potential_command in cmd_list:
|
118
|
+
if (potential_command in cmd_list):
|
116
119
|
# Process the block based on the object_action
|
117
120
|
if potential_command == "Provenance":
|
118
121
|
result = process_provenance_command(input_file, current_block)
|
@@ -198,6 +201,12 @@ def process_markdown_file(input_file: str, output_folder:str, directive: str, se
|
|
198
201
|
elif potential_command in ['View Governance Definitions', 'List Governance Definitions',
|
199
202
|
'View Gov Definitions', 'List Gov Definitions']:
|
200
203
|
result = process_gov_definition_list_command(client, current_block, directive)
|
204
|
+
elif potential_command in GOV_LINK_LIST:
|
205
|
+
result = process_gov_def_link_detach_command(client, current_block, directive)
|
206
|
+
elif potential_command in ['Link Governance Mechanism', 'Detach Governance Mechanism',
|
207
|
+
'Link Governance Response', 'Detach Governance Response',]:
|
208
|
+
result = process_supporting_gov_def_link_detach_command(client, current_block, directive)
|
209
|
+
|
201
210
|
elif potential_command in COLLECTIONS_LIST:
|
202
211
|
result = process_collection_list_command(client, current_block, directive)
|
203
212
|
|
@@ -283,6 +292,10 @@ def process_markdown_file(input_file: str, output_folder:str, directive: str, se
|
|
283
292
|
click.echo("\nNo updates detected. New File not created.")
|
284
293
|
logger.error("===> Unknown Command? <===")
|
285
294
|
|
295
|
+
except PyegeriaException as e:
|
296
|
+
print_basic_exception(e)
|
297
|
+
except ValidationError as e:
|
298
|
+
print_validation_error(e)
|
286
299
|
except (Exception):
|
287
300
|
console.print_exception(show_locals=True)
|
288
301
|
|
md_processing/__init__.py
CHANGED
@@ -3,8 +3,10 @@ This package contains functions to parse and process Egeria Markdown (Freddie)
|
|
3
3
|
"""
|
4
4
|
from md_processing.md_commands.governance_officer_commands import (process_gov_definition_upsert_command,
|
5
5
|
process_gov_def_link_detach_command,
|
6
|
+
process_supporting_gov_def_link_detach_command,
|
6
7
|
process_gov_definition_list_command,
|
7
|
-
process_gov_def_context_command
|
8
|
+
process_gov_def_context_command,
|
9
|
+
)
|
8
10
|
|
9
11
|
|
10
12
|
from md_processing.md_commands.product_manager_commands import (process_digital_product_upsert_command,
|
@@ -45,11 +47,11 @@ from md_processing.md_processing_utils.common_md_utils import (render_markdown,
|
|
45
47
|
console, debug_level, get_element_dictionary,
|
46
48
|
update_element_dictionary, clear_element_dictionary,
|
47
49
|
is_present, find_key_with_value,
|
48
|
-
process_provenance_command,
|
50
|
+
process_provenance_command, set_delete_request_body,
|
49
51
|
set_rel_request_body, set_filter_request_body,
|
50
52
|
set_update_body, set_peer_gov_def_request_body,
|
51
53
|
set_gov_prop_body, set_prop_body, set_create_body,
|
52
|
-
|
54
|
+
GOVERNANCE_POLICIES, GOVERNANCE_CONTROLS, GOVERNANCE_DRIVERS
|
53
55
|
)
|
54
56
|
from md_processing.md_processing_utils.extraction_utils import (extract_command_plus, extract_command,
|
55
57
|
extract_attribute, process_simple_attribute,
|