pyegeria 5.4.0.dev13__py3-none-any.whl → 5.4.0.dev14__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 (109) hide show
  1. commands/cat/debug_log +2802 -2
  2. commands/cat/debug_log.2025-07-15_14-28-38_087378.zip +0 -0
  3. commands/cat/debug_log.2025-07-16_15-48-50_037087.zip +0 -0
  4. commands/cat/dr_egeria_md.py +30 -6
  5. md_processing/__init__.py +16 -3
  6. md_processing/data/commands.json +18541 -171
  7. md_processing/dr_egeria_outbox-pycharm/.obsidian/app.json +1 -0
  8. md_processing/dr_egeria_outbox-pycharm/.obsidian/appearance.json +1 -0
  9. md_processing/dr_egeria_outbox-pycharm/.obsidian/core-plugins.json +31 -0
  10. md_processing/dr_egeria_outbox-pycharm/.obsidian/workspace.json +177 -0
  11. md_processing/dr_egeria_outbox-pycharm/monday/processed-2025-07-14 12:38-data_designer_out.md +663 -0
  12. md_processing/dr_egeria_outbox-pycharm/thursday/processed-2025-07-17 15:00-Derive-Dr-Gov-Defs.md +719 -0
  13. md_processing/dr_egeria_outbox-pycharm/thursday/processed-2025-07-17 20:13-Derive-Dr-Gov-Defs.md +41 -0
  14. md_processing/dr_egeria_outbox-pycharm/thursday/processed-2025-07-17 20:14-Derive-Dr-Gov-Defs.md +33 -0
  15. md_processing/dr_egeria_outbox-pycharm/thursday/processed-2025-07-17 20:50-Derive-Dr-Gov-Defs.md +192 -0
  16. md_processing/dr_egeria_outbox-pycharm/tuesday/processed-2025-07-16 19:15-gov_def2.md +527 -0
  17. md_processing/dr_egeria_outbox-pycharm/tuesday/processed-2025-07-17 12:08-gov_def2.md +527 -0
  18. md_processing/dr_egeria_outbox-pycharm/tuesday/processed-2025-07-17 14:27-gov_def2.md +474 -0
  19. md_processing/family_docs/Data Designer/Create_Data_Class.md +164 -0
  20. md_processing/family_docs/Data Designer/Create_Data_Dictionary.md +30 -0
  21. md_processing/family_docs/Data Designer/Create_Data_Field.md +162 -0
  22. md_processing/family_docs/Data Designer/Create_Data_Specification.md +36 -0
  23. md_processing/family_docs/Data Designer/Create_Data_Structure.md +38 -0
  24. md_processing/family_docs/Data Designer/View_Data_Classes.md +78 -0
  25. md_processing/family_docs/Data Designer/View_Data_Dictionaries.md +78 -0
  26. md_processing/family_docs/Data Designer/View_Data_Fields.md +78 -0
  27. md_processing/family_docs/Data Designer/View_Data_Specifications.md +78 -0
  28. md_processing/family_docs/Data Designer/View_Data_Structures.md +78 -0
  29. md_processing/family_docs/Data Designer.md +842 -0
  30. md_processing/family_docs/Digital Product Manager/Add_Member->Collection.md +42 -0
  31. md_processing/family_docs/Digital Product Manager/Attach_Collection->Resource.md +36 -0
  32. md_processing/family_docs/Digital Product Manager/Create_Agreement.md +96 -0
  33. md_processing/family_docs/Digital Product Manager/Create_Data_Sharing_Agreement.md +72 -0
  34. md_processing/family_docs/Digital Product Manager/Create_DigitalSubscription.md +102 -0
  35. md_processing/family_docs/Digital Product Manager/Create_Digital_Product.md +134 -0
  36. md_processing/family_docs/Digital Product Manager/Link_Agreement_Items.md +60 -0
  37. md_processing/family_docs/Digital Product Manager/Link_Contracts.md +26 -0
  38. md_processing/family_docs/Digital Product Manager/Link_Digital_Product_-_Digital_Product.md +30 -0
  39. md_processing/family_docs/Digital Product Manager/Link_Subscribers.md +48 -0
  40. md_processing/family_docs/Digital Product Manager.md +668 -0
  41. md_processing/family_docs/Glossary/Attach_Category_Parent.md +18 -0
  42. md_processing/family_docs/Glossary/Attach_Term-Term_Relationship.md +26 -0
  43. md_processing/family_docs/Glossary/Create_Category.md +38 -0
  44. md_processing/family_docs/Glossary/Create_Glossary.md +42 -0
  45. md_processing/family_docs/Glossary/Create_Term.md +70 -0
  46. md_processing/family_docs/Glossary.md +206 -0
  47. md_processing/family_docs/Governance Officer/Create_Business_Imperative.md +106 -0
  48. md_processing/family_docs/Governance Officer/Create_Certification_Type.md +112 -0
  49. md_processing/family_docs/Governance Officer/Create_Governance_Approach.md +114 -0
  50. md_processing/family_docs/Governance Officer/Create_Governance_Obligation.md +114 -0
  51. md_processing/family_docs/Governance Officer/Create_Governance_Principle.md +114 -0
  52. md_processing/family_docs/Governance Officer/Create_Governance_Procedure.md +128 -0
  53. md_processing/family_docs/Governance Officer/Create_Governance_Process.md +122 -0
  54. md_processing/family_docs/Governance Officer/Create_Governance_Processing_Purpose.md +106 -0
  55. md_processing/family_docs/Governance Officer/Create_Governance_Responsibility.md +122 -0
  56. md_processing/family_docs/Governance Officer/Create_Governance_Rule.md +122 -0
  57. md_processing/family_docs/Governance Officer/Create_Governance_Strategy.md +106 -0
  58. md_processing/family_docs/Governance Officer/Create_License_Type.md +112 -0
  59. md_processing/family_docs/Governance Officer/Create_Naming_Standard_Rule.md +122 -0
  60. md_processing/family_docs/Governance Officer/Create_Regulation_Article.md +106 -0
  61. md_processing/family_docs/Governance Officer/Create_Regulation_Definition.md +118 -0
  62. md_processing/family_docs/Governance Officer/Create_Security_Access_Control.md +114 -0
  63. md_processing/family_docs/Governance Officer/Create_Security_Group.md +120 -0
  64. md_processing/family_docs/Governance Officer/Create_Service_Level_Objectives.md +122 -0
  65. md_processing/family_docs/Governance Officer/Create_Threat_Definition.md +106 -0
  66. md_processing/family_docs/Governance Officer/Link_Governance_Controls.md +32 -0
  67. md_processing/family_docs/Governance Officer/Link_Governance_Drivers.md +32 -0
  68. md_processing/family_docs/Governance Officer/Link_Governance_Policies.md +32 -0
  69. md_processing/family_docs/Governance Officer/View_Governance_Definitions.md +82 -0
  70. md_processing/family_docs/Governance Officer.md +2412 -0
  71. md_processing/family_docs/Solution Architect/Create_Information_Supply_Chain.md +70 -0
  72. md_processing/family_docs/Solution Architect/Create_Solution_Blueprint.md +44 -0
  73. md_processing/family_docs/Solution Architect/Create_Solution_Component.md +96 -0
  74. md_processing/family_docs/Solution Architect/Create_Solution_Role.md +66 -0
  75. md_processing/family_docs/Solution Architect/Link_Information_Supply_Chain_Peers.md +32 -0
  76. md_processing/family_docs/Solution Architect/Link_Solution_Component_Peers.md +32 -0
  77. md_processing/family_docs/Solution Architect/View_Information_Supply_Chains.md +32 -0
  78. md_processing/family_docs/Solution Architect/View_Solution_Blueprints.md +32 -0
  79. md_processing/family_docs/Solution Architect/View_Solution_Components.md +32 -0
  80. md_processing/family_docs/Solution Architect/View_Solution_Roles.md +32 -0
  81. md_processing/family_docs/Solution Architect.md +490 -0
  82. md_processing/md_commands/data_designer_commands.py +9 -10
  83. md_processing/md_commands/glossary_commands.py +16 -2
  84. md_processing/md_commands/governance_officer_commands.py +420 -0
  85. md_processing/md_commands/product_manager_commands.py +186 -752
  86. md_processing/md_commands/project_commands.py +5 -2
  87. md_processing/md_commands/solution_architect_commands.py +9 -8
  88. md_processing/md_processing_utils/common_md_proc_utils.py +15 -10
  89. md_processing/md_processing_utils/common_md_utils.py +194 -2
  90. md_processing/md_processing_utils/debug_log +574 -0
  91. md_processing/md_processing_utils/dr-egeria-help-2025-07-17T17:22:09.md +2065 -0
  92. md_processing/md_processing_utils/extraction_utils.py +1 -1
  93. md_processing/md_processing_utils/generate_dr_help.py +20 -5
  94. md_processing/md_processing_utils/generate_md_cmd_templates.py +143 -0
  95. md_processing/md_processing_utils/md_processing_constants.py +56 -4
  96. pyegeria/governance_officer_omvs.py +14 -99
  97. pyegeria/output_formatter.py +3 -2
  98. pyegeria/utils.py +7 -0
  99. {pyegeria-5.4.0.dev13.dist-info → pyegeria-5.4.0.dev14.dist-info}/METADATA +1 -1
  100. {pyegeria-5.4.0.dev13.dist-info → pyegeria-5.4.0.dev14.dist-info}/RECORD +103 -29
  101. commands/cat/debug_log.2025-07-01_15-22-20_102237.zip +0 -0
  102. commands/cat/debug_log.2025-07-04_15-43-28_460900.zip +0 -0
  103. commands/cat/debug_log.2025-07-06_20-48-04_338314.zip +0 -0
  104. commands/cat/debug_log.2025-07-09_10-17-09_526262.zip +0 -0
  105. commands/cat/debug_log.2025-07-10_10-25-47_958331.zip +0 -0
  106. pyegeria/m_test.py +0 -118
  107. {pyegeria-5.4.0.dev13.dist-info → pyegeria-5.4.0.dev14.dist-info}/LICENSE +0 -0
  108. {pyegeria-5.4.0.dev13.dist-info → pyegeria-5.4.0.dev14.dist-info}/WHEEL +0 -0
  109. {pyegeria-5.4.0.dev13.dist-info → pyegeria-5.4.0.dev14.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,490 @@
1
+
2
+ # Family: Solution Architect
3
+
4
+ ## **Create Information Supply Chain**
5
+ > The flow of a particular type of data across a digital landscape.
6
+ ### **Display Name**
7
+ > **Input Required**: True
8
+
9
+ > **Description**: Name of the Information Supply Chain
10
+
11
+ > **Alternative Labels**: Name; Display Name; Supply Chain; Supply Chain Name
12
+
13
+
14
+ ### **Description**
15
+ > **Input Required**: False
16
+
17
+ > **Description**: A description of the data structure.
18
+
19
+
20
+ ### **Scope**
21
+ > **Input Required**: False
22
+
23
+ > **Description**: Scope of the supply chain.
24
+
25
+
26
+ ### **Purposes**
27
+ > **Input Required**: False
28
+
29
+ > **Description**: A list of purposes.
30
+
31
+ > **Alternative Labels**: Purpose, Purposes
32
+
33
+
34
+ ### **Nested Information Supply Chains**
35
+ > **Input Required**: False
36
+
37
+ > **Description**: A list of supply chains that compose this supply chain.
38
+
39
+ > **Alternative Labels**: Nested Supply Chains
40
+
41
+
42
+ ### **In Information Supply Chain**
43
+ > **Input Required**: False
44
+
45
+ > **Description**: Supply chains that this supply chain is in.
46
+
47
+ > **Alternative Labels**: In Supply Chain; In Supply Chains; In Information Supply Chains
48
+
49
+
50
+ ### **Qualified Name**
51
+ > **Input Required**: False
52
+
53
+ > **Description**: A unique qualified name for the element. Generated using the qualified name pattern if not user specified.
54
+
55
+
56
+ ### **GUID**
57
+ > **Input Required**: False
58
+
59
+ > **Description**: A system generated unique identifier.
60
+
61
+ > **Alternative Labels**: Guid; guid
62
+
63
+
64
+ ### **Merge Update**
65
+ > **Input Required**: False
66
+
67
+ > **Description**: If true, only those attributes specified in the update will be updated; If false, any attributes not provided during the update will be set to None.
68
+
69
+ > **Alternative Labels**: Merge
70
+
71
+ > **Default Value**: True
72
+
73
+
74
+ ___
75
+
76
+ ## **Create Solution Blueprint**
77
+ > A solution blueprint describes the architecture of a digital service in terms of solution components.
78
+ ### **Display Name**
79
+ > **Input Required**: True
80
+
81
+ > **Description**: Name of the Information Supply Chain
82
+
83
+ > **Alternative Labels**: Name; Display Name; Blueprint; Blueprint Name
84
+
85
+
86
+ ### **Description**
87
+ > **Input Required**: False
88
+
89
+ > **Description**: A description of the data structure.
90
+
91
+
92
+ ### **Version Identifier**
93
+ > **Input Required**: False
94
+
95
+ > **Description**: A user supplied version identifier.
96
+
97
+
98
+ ### **Solution Components**
99
+ > **Input Required**: False
100
+
101
+ > **Description**: Solution components that make up the blueprint.
102
+
103
+ > **Alternative Labels**: Components; Solution Component; Component
104
+
105
+
106
+ ### **Qualified Name**
107
+ > **Input Required**: False
108
+
109
+ > **Description**: A unique qualified name for the element. Generated using the qualified name pattern if not user specified.
110
+
111
+
112
+ ### **GUID**
113
+ > **Input Required**: False
114
+
115
+ > **Description**: A system generated unique identifier.
116
+
117
+ > **Alternative Labels**: Guid; guid
118
+
119
+
120
+ ___
121
+
122
+ ## **Create Solution Component**
123
+ > A reusable solution component.
124
+ ### **Display Name**
125
+ > **Input Required**: True
126
+
127
+ > **Description**: Name of the solution component.
128
+
129
+ > **Alternative Labels**: Name; Display Name; Solution Component Name; Component Name
130
+
131
+
132
+ ### **Qualified Name**
133
+ > **Input Required**: False
134
+
135
+ > **Description**: A unique qualified name for the element. Generated using the qualified name pattern if not user specified.
136
+
137
+
138
+ ### **Description**
139
+ > **Input Required**: False
140
+
141
+ > **Description**: A description of the data structure.
142
+
143
+
144
+ ### **Solution Component Type**
145
+ > **Input Required**: False
146
+
147
+ > **Description**: Type of solution component.
148
+
149
+ > **Alternative Labels**: Soln Component Type
150
+
151
+
152
+ ### **Planned Deployed Implementation Type**
153
+ > **Input Required**: False
154
+
155
+ > **Description**: The planned implementation type for deployment.
156
+
157
+ > **Alternative Labels**: Planned Deployed Impl Type
158
+
159
+
160
+ ### **Initial Status**
161
+ > **Input Required**: False
162
+
163
+ > **Description**: Optional lifecycle status. If not specified, set to ACTIVE. If set to Other then the value in User Defined Status will be used.
164
+
165
+ > **Valid Values**: DRAFT; PREPARED; PROPOSED; APPROVED; REJECTED; ACTIVE; DISABLED; DEPRECATED; OTHER
166
+
167
+ > **Default Value**: ACTIVE
168
+
169
+
170
+ ### **In Solution Components**
171
+ > **Input Required**: False
172
+
173
+ > **Description**: Solution components that include this one.
174
+
175
+ > **Alternative Labels**: In Solution Component; In Component
176
+
177
+
178
+ ### **In Solution Blueprints**
179
+ > **Input Required**: False
180
+
181
+ > **Description**: Solution Blueprints that contain this component.
182
+
183
+ > **Alternative Labels**: In Solution Blueprints
184
+
185
+
186
+ ### **In Information Supply Chains**
187
+ > **Input Required**: False
188
+
189
+ > **Description**: The Information Supply Chains that this component is a member of.
190
+
191
+ > **Alternative Labels**: In Supply Chains; In Supply Chain; In Information Supply Chain
192
+
193
+
194
+ ### **Actors**
195
+ > **Input Required**: False
196
+
197
+ > **Description**: Actors associated with this component.
198
+
199
+
200
+ ### **GUID**
201
+ > **Input Required**: False
202
+
203
+ > **Description**: A system generated unique identifier.
204
+
205
+ > **Alternative Labels**: Guid; guid
206
+
207
+
208
+ ### **Merge Update**
209
+ > **Input Required**: False
210
+
211
+ > **Description**: If true, only those attributes specified in the update will be updated; If false, any attributes not provided during the update will be set to None.
212
+
213
+ > **Alternative Labels**: Merge
214
+
215
+ > **Default Value**: True
216
+
217
+
218
+ ___
219
+
220
+ ## **Create Solution Role**
221
+ > A collection of data fields that for a data specification for a data source.
222
+ ### **Name**
223
+ > **Input Required**: True
224
+
225
+ > **Description**: Name of the role.
226
+
227
+ > **Alternative Labels**: Role; Solution Role; Solution Role Name; Role Name
228
+
229
+
230
+ ### **Description**
231
+ > **Input Required**: False
232
+
233
+ > **Description**: A description of the data structure.
234
+
235
+
236
+ ### **Title**
237
+ > **Input Required**: False
238
+
239
+ > **Description**: Title of the role.
240
+
241
+
242
+ ### **Scope**
243
+ > **Input Required**: False
244
+
245
+ > **Description**: Scope of the role.
246
+
247
+
248
+ ### **identifier**
249
+ > **Input Required**: False
250
+
251
+ > **Description**: role identifier
252
+
253
+
254
+ ### **Domain Identifier**
255
+ > **Input Required**: False
256
+
257
+ > **Description**: Governance domain identifier
258
+
259
+ > **Default Value**: 0
260
+
261
+
262
+ ### **Role Type**
263
+ > **Input Required**: False
264
+
265
+ > **Description**: Type of the role. Currently must be GovernanceRole.
266
+
267
+ > **Alternative Labels**: Role Type Name
268
+
269
+ > **Default Value**: GovernanceRole
270
+
271
+
272
+ ### **Qualified Name**
273
+ > **Input Required**: False
274
+
275
+ > **Description**: A unique qualified name for the element. Generated using the qualified name pattern if not user specified.
276
+
277
+
278
+ ### **GUID**
279
+ > **Input Required**: False
280
+
281
+ > **Description**: A system generated unique identifier.
282
+
283
+ > **Alternative Labels**: Guid; guid
284
+
285
+
286
+ ___
287
+
288
+ ## **Link Information Supply Chain Peers**
289
+ > This command can be used to link or unlink information supply chain segments.
290
+ ### **Segment1**
291
+ > **Input Required**: True
292
+
293
+ > **Description**: The first segment to link.
294
+
295
+ > **Alternative Labels**: Segment 1; Information Supply Chain Segment 1; Info Supply Chain Segment 1
296
+
297
+
298
+ ### **Segment2**
299
+ > **Input Required**: True
300
+
301
+ > **Description**: The second segment to link.
302
+
303
+ > **Alternative Labels**: Segment 2; Information Supply Chain Segment 2; Info Supply Chain Segment 2
304
+
305
+
306
+ ### **Link Label**
307
+ > **Input Required**: False
308
+
309
+ > **Description**: Labels the link between two information supply chain segments.
310
+
311
+ > **Alternative Labels**: Label
312
+
313
+
314
+ ### **Description**
315
+ > **Input Required**: False
316
+
317
+ > **Description**: A description of the data structure.
318
+
319
+
320
+ ___
321
+
322
+ ## **Link Solution Component Peers**
323
+ > This command can be used to link or unlink wires between components.
324
+ ### **Component1**
325
+ > **Input Required**: True
326
+
327
+ > **Description**: The first component to link.
328
+
329
+ > **Alternative Labels**: Solution Component 1; Comp 1
330
+
331
+
332
+ ### **Component2**
333
+ > **Input Required**: True
334
+
335
+ > **Description**: The second component to link.
336
+
337
+ > **Alternative Labels**: Solution Component 2; Comp 2
338
+
339
+
340
+ ### **Wire Label**
341
+ > **Input Required**: False
342
+
343
+ > **Description**: Labels the link between two components.
344
+
345
+ > **Alternative Labels**: Label
346
+
347
+
348
+ ### **Description**
349
+ > **Input Required**: False
350
+
351
+ > **Description**: A description of the wire.
352
+
353
+
354
+ ___
355
+
356
+ ## **View Information Supply Chains**
357
+ > Return information supply chains filtered by the search string.
358
+ ### **Search String**
359
+ > **Input Required**: False
360
+
361
+ > **Description**: An optional search string to filter results by.
362
+
363
+ > **Alternative Labels**: Filter
364
+
365
+ > **Default Value**: *
366
+
367
+
368
+ ### **Output Format**
369
+ > **Input Required**: False
370
+
371
+ > **Description**: Optional specification of output format for the query.
372
+
373
+ > **Alternative Labels**: Format
374
+
375
+ > **Valid Values**: LIST; FORM; MD; REPORT; MERMAID; LIST; DICT; HTML
376
+
377
+ > **Default Value**: List
378
+
379
+
380
+ ### **Detailed**
381
+ > **Input Required**: False
382
+
383
+ > **Description**: If true a more detailed set of attributes will be returned.
384
+
385
+ > **Default Value**: True
386
+
387
+
388
+ ___
389
+
390
+ ## **View Solution Blueprints**
391
+ > Return the data structure details, optionally filtered by the search string.
392
+ ### **Search String**
393
+ > **Input Required**: False
394
+
395
+ > **Description**: An optional search string to filter results by.
396
+
397
+ > **Alternative Labels**: Filter
398
+
399
+ > **Default Value**: *
400
+
401
+
402
+ ### **Output Format**
403
+ > **Input Required**: False
404
+
405
+ > **Description**: Optional specification of output format for the query.
406
+
407
+ > **Alternative Labels**: Format
408
+
409
+ > **Valid Values**: List; Form; Report; Dict
410
+
411
+ > **Default Value**: List
412
+
413
+
414
+ ### **Detailed**
415
+ > **Input Required**: False
416
+
417
+ > **Description**: If true a more detailed set of attributes will be returned.
418
+
419
+ > **Default Value**: True
420
+
421
+
422
+ ___
423
+
424
+ ## **View Solution Components**
425
+ > Return the data structure details, optionally filtered by the search string.
426
+ ### **Search String**
427
+ > **Input Required**: False
428
+
429
+ > **Description**: An optional search string to filter results by.
430
+
431
+ > **Alternative Labels**: Filter
432
+
433
+ > **Default Value**: *
434
+
435
+
436
+ ### **Output Format**
437
+ > **Input Required**: False
438
+
439
+ > **Description**: Optional specification of output format for the query.
440
+
441
+ > **Alternative Labels**: Format
442
+
443
+ > **Valid Values**: List; Form; Report; Dict
444
+
445
+ > **Default Value**: List
446
+
447
+
448
+ ### **Detailed**
449
+ > **Input Required**: False
450
+
451
+ > **Description**: If true a more detailed set of attributes will be returned.
452
+
453
+ > **Default Value**: True
454
+
455
+
456
+ ___
457
+
458
+ ## **View Solution Roles**
459
+ > Return the data structure details, optionally filtered by the search string.
460
+ ### **Search String**
461
+ > **Input Required**: False
462
+
463
+ > **Description**: An optional search string to filter results by.
464
+
465
+ > **Alternative Labels**: Filter
466
+
467
+ > **Default Value**: *
468
+
469
+
470
+ ### **Output Format**
471
+ > **Input Required**: False
472
+
473
+ > **Description**: Optional specification of output format for the query.
474
+
475
+ > **Alternative Labels**: Format
476
+
477
+ > **Valid Values**: List; Form; Report; Dict
478
+
479
+ > **Default Value**: List
480
+
481
+
482
+ ### **Detailed**
483
+ > **Input Required**: False
484
+
485
+ > **Description**: If true a more detailed set of attributes will be returned.
486
+
487
+ > **Default Value**: True
488
+
489
+
490
+ ___
@@ -12,7 +12,7 @@ from rich.console import Console
12
12
  from rich.markdown import Markdown
13
13
 
14
14
  from md_processing.md_processing_utils.common_md_proc_utils import (parse_upsert_command, parse_view_command)
15
- from md_processing.md_processing_utils.common_md_utils import update_element_dictionary
15
+ from md_processing.md_processing_utils.common_md_utils import update_element_dictionary, setup_log
16
16
  from md_processing.md_processing_utils.extraction_utils import (extract_command_plus, update_a_command)
17
17
  from md_processing.md_processing_utils.md_processing_constants import (load_commands, ERROR)
18
18
  from pyegeria import DEBUG_LEVEL, body_slimmer
@@ -41,15 +41,7 @@ load_commands('commands.json')
41
41
  debug_level = DEBUG_LEVEL
42
42
 
43
43
  console = Console(width=int(200))
44
-
45
- log_format = "D {time} | {level} | {function} | {line} | {message} | {extra}"
46
- logger.remove()
47
- logger.add(sys.stderr, level="INFO", format=log_format, colorize=True)
48
- full_file_path = os.path.join(EGERIA_ROOT_PATH, EGERIA_INBOX_PATH, "data_designer_debug.log")
49
- # logger.add(full_file_path, rotation="1 day", retention="1 week", compression="zip", level="TRACE", format=log_format,
50
- # colorize=True)
51
- logger.add("debug_log", rotation="1 day", retention="1 week", compression="zip", level="TRACE", format=log_format,
52
- colorize=True)
44
+ setup_log()
53
45
 
54
46
 
55
47
  #
@@ -669,6 +661,7 @@ def process_data_structure_upsert_command(egeria_client: EgeriaTech, txt: str, d
669
661
  set_debug_level(directive)
670
662
 
671
663
  command, object_type, object_action = extract_command_plus(txt)
664
+ print(Markdown(f"# {command}\n"))
672
665
 
673
666
  parsed_output = parse_upsert_command(egeria_client, object_type, object_action, txt, directive)
674
667
 
@@ -866,6 +859,7 @@ def process_data_field_upsert_command(egeria_client: EgeriaTech, txt: str, direc
866
859
  set_debug_level(directive)
867
860
 
868
861
  command, object_type, object_action = extract_command_plus(txt)
862
+ print(Markdown(f"# {command}\n"))
869
863
 
870
864
  parsed_output = parse_upsert_command(egeria_client, object_type, object_action, txt, directive)
871
865
  attributes = parsed_output['attributes']
@@ -1140,6 +1134,7 @@ def process_data_class_upsert_command(egeria_client: EgeriaTech, txt: str, direc
1140
1134
  """
1141
1135
 
1142
1136
  command, object_type, object_action = extract_command_plus(txt)
1137
+ print(Markdown(f"# {command}\n"))
1143
1138
 
1144
1139
  parsed_output = parse_upsert_command(egeria_client, object_type, object_action, txt, directive)
1145
1140
 
@@ -1392,6 +1387,7 @@ def process_data_collection_list_command(egeria_client: EgeriaTech, txt: str, di
1392
1387
  :return: A string summarizing the outcome of the processing.
1393
1388
  """
1394
1389
  command, object_type, object_action = extract_command_plus(txt)
1390
+ print(Markdown(f"# {command}\n"))
1395
1391
  if object_type in ["Data Dictionary", "Data Dictionaries", "DataDict", "DataDictionary"]:
1396
1392
  col_type = "DataDictionary"
1397
1393
  elif object_type in ["Data Specification", "Data Specifications", "Data Specs"]:
@@ -1478,6 +1474,7 @@ def process_data_structure_list_command(egeria_client: EgeriaTech, txt: str, dir
1478
1474
  :return: A string summarizing the outcome of the processing.
1479
1475
  """
1480
1476
  command, object_type, object_action = extract_command_plus(txt)
1477
+ print(Markdown(f"# {command}\n"))
1481
1478
 
1482
1479
  parsed_output = parse_view_command(egeria_client, object_type, object_action, txt, directive)
1483
1480
 
@@ -1539,6 +1536,7 @@ def process_data_field_list_command(egeria_client: EgeriaTech, txt: str, directi
1539
1536
  :return: A string summarizing the outcome of the processing.
1540
1537
  """
1541
1538
  command, object_type, object_action = extract_command_plus(txt)
1539
+ print(Markdown(f"# {command}\n"))
1542
1540
 
1543
1541
  parsed_output = parse_view_command(egeria_client, object_type, object_action, txt, directive)
1544
1542
 
@@ -1615,6 +1613,7 @@ def process_data_class_list_command(egeria_client: EgeriaTech, txt: str, directi
1615
1613
  :return: A string summarizing the outcome of the processing.
1616
1614
  """
1617
1615
  command, object_type, object_action = extract_command_plus(txt)
1616
+ print(Markdown(f"# {command}\n"))
1618
1617
 
1619
1618
  parsed_output = parse_view_command(egeria_client, object_type, object_action, txt, directive)
1620
1619
 
@@ -12,7 +12,8 @@ from rich.console import Console
12
12
  from rich.markdown import Markdown
13
13
 
14
14
  from md_processing.md_processing_utils.common_md_utils import (debug_level, print_msg, set_debug_level,
15
- get_element_dictionary, update_element_dictionary)
15
+ get_element_dictionary, update_element_dictionary,
16
+ setup_log)
16
17
  from md_processing.md_processing_utils.extraction_utils import (extract_command_plus, extract_command,
17
18
  process_simple_attribute, process_element_identifiers,
18
19
  update_a_command, extract_attribute,
@@ -29,7 +30,7 @@ from pyegeria.egeria_tech_client import EgeriaTech
29
30
 
30
31
  EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "170"))
31
32
  console = Console(width=EGERIA_WIDTH)
32
-
33
+ setup_log()
33
34
 
34
35
  def update_term_categories(egeria_client: EgeriaTech, term_guid: str, categories_exist: bool,
35
36
  categories_list: List[str]) -> None:
@@ -107,6 +108,7 @@ def process_glossary_upsert_command(egeria_client: EgeriaTech, txt: str, directi
107
108
  """
108
109
 
109
110
  command, object_type, object_action = extract_command_plus(txt)
111
+ print(Markdown(f"# {command}\n"))
110
112
  set_debug_level(directive)
111
113
 
112
114
  glossary_name = process_simple_attribute(txt, GLOSSARY_NAME_LABELS, ERROR)
@@ -239,6 +241,7 @@ def process_category_upsert_command(egeria_client: EgeriaTech, txt: str, directi
239
241
  set_debug_level(directive)
240
242
 
241
243
  command, object_type, object_action = extract_command_plus(txt)
244
+ print(Markdown(f"# {command}\n"))
242
245
 
243
246
  category_name = process_simple_attribute(txt, ['Category Name', 'category_name', 'Cat'])
244
247
  print(Markdown(f"{pre_command} `{command}` for category: `\'{category_name}\'` with directive: `{directive}` "))
@@ -484,6 +487,8 @@ def process_term_upsert_command(egeria_client: EgeriaTech, txt: str, directive:
484
487
  set_debug_level(directive)
485
488
  known_q_name = None
486
489
  command = extract_command(txt)
490
+ print(Markdown(f"# {command}\n"))
491
+
487
492
  object_type = command.split(' ')[1].strip()
488
493
  object_action = command.split(' ')[0].strip()
489
494
 
@@ -678,6 +683,8 @@ Optional[str]:
678
683
  set_debug_level(directive)
679
684
  valid = True
680
685
  command = extract_command(txt)
686
+ print(Markdown(f"# {command}\n"))
687
+
681
688
  object_type = command.split(' ')[1].strip()
682
689
  object_action = command.split(' ')[0].strip()
683
690
  term1_guid = None
@@ -735,6 +742,7 @@ def process_term_list_command(egeria_client: EgeriaTech, txt: str, directive: st
735
742
  set_debug_level(directive)
736
743
  valid = True
737
744
  command = extract_command(txt)
745
+ print(Markdown(f"# {command}\n"))
738
746
 
739
747
  search_string = process_simple_attribute(txt, SEARCH_LABELS)
740
748
  if search_string is None:
@@ -802,6 +810,7 @@ def process_category_list_command(egeria_client: EgeriaTech, txt: str, directive
802
810
  set_debug_level(directive)
803
811
  valid = True
804
812
  command = extract_command(txt)
813
+ print(Markdown(f"# {command}\n"))
805
814
 
806
815
  search_string = process_simple_attribute(txt, SEARCH_LABELS, "INFO")
807
816
  if search_string is None:
@@ -854,6 +863,7 @@ def process_glossary_structure_command(egeria_client: EgeriaTech, txt: str, dire
854
863
  set_debug_level(directive)
855
864
  valid = True
856
865
  command = extract_command(txt)
866
+ print(Markdown(f"# {command}\n"))
857
867
 
858
868
  known_glossary_guid = ""
859
869
 
@@ -909,6 +919,7 @@ def process_glossary_list_command(egeria_client: EgeriaTech, txt: str, directive
909
919
  set_debug_level(directive)
910
920
  valid = True
911
921
  command = extract_command(txt)
922
+ print(Markdown(f"# {command}\n"))
912
923
 
913
924
  search_string = process_simple_attribute(txt, SEARCH_LABELS, "INFO")
914
925
  if search_string is None:
@@ -961,6 +972,7 @@ def process_term_details_command(egeria_client: EgeriaTech, txt: str, directive:
961
972
  set_debug_level(directive)
962
973
  valid = True
963
974
  command = extract_command(txt)
975
+ print(Markdown(f"# {command}\n"))
964
976
  object_type = command.split(' ')[1].strip()
965
977
  object_action = command.split(' ')[0].strip()
966
978
 
@@ -1011,6 +1023,7 @@ def process_term_history_command(egeria_client: EgeriaTech, txt: str, directive:
1011
1023
  set_debug_level(directive)
1012
1024
  valid = True
1013
1025
  command = extract_command(txt)
1026
+ print(Markdown(f"# {command}\n"))
1014
1027
  object_type = command.split(' ')[1].strip()
1015
1028
  object_action = command.split(' ')[0].strip()
1016
1029
 
@@ -1068,6 +1081,7 @@ def process_term_revision_history_command(egeria_client: EgeriaTech, txt: str, d
1068
1081
  set_debug_level(directive)
1069
1082
  valid = True
1070
1083
  command = extract_command(txt)
1084
+ print(Markdown(f"# {command}\n"))
1071
1085
  object_type = command.split(' ')[1].strip()
1072
1086
  object_action = command.split(' ')[0].strip()
1073
1087
  known_q_name = None