pyegeria 5.4.1__py3-none-any.whl → 5.4.2.1__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 (24) hide show
  1. commands/cat/debug_log.2025-08-29_07-07-27_848189.log.zip +0 -0
  2. commands/cat/debug_log.log +1729 -1714
  3. commands/cat/dr_egeria_command_help.py +9 -10
  4. commands/ops/load_archive.py +0 -1
  5. md_processing/data/commands.json +958 -695
  6. md_processing/dr_egeria_inbox/generated_help_terms.md +842 -0
  7. md_processing/dr_egeria_inbox/glossary_test1.md +4 -4
  8. md_processing/dr_egeria_outbox/friday/processed-2025-08-30 21:15-glossary_test1.md +326 -0
  9. md_processing/dr_egeria_outbox/friday/processed-2025-08-31 13:27-glossary_test1.md +369 -0
  10. md_processing/dr_egeria_outbox/friday/processed-2025-08-31 13:33-glossary_test1.md +392 -0
  11. md_processing/dr_egeria_outbox/processed-2025-08-30 16:56-generated_help_terms.md +795 -0
  12. md_processing/md_commands/glossary_commands.py +9 -2
  13. md_processing/md_processing_utils/common_md_utils.py +1 -0
  14. md_processing/md_processing_utils/debug_log.log +5580 -0
  15. pyegeria/config.py +10 -10
  16. pyegeria/runtime_manager_omvs.py +1 -1
  17. pyegeria/server_operations.py +1 -1
  18. {pyegeria-5.4.1.dist-info → pyegeria-5.4.2.1.dist-info}/METADATA +1 -1
  19. {pyegeria-5.4.1.dist-info → pyegeria-5.4.2.1.dist-info}/RECORD +22 -18
  20. commands/cat/debug_log.2025-08-26_20-04-40_905576.log.zip +0 -0
  21. commands/cat/debug_log.2025-08-27_20-09-41_795022.log.zip +0 -0
  22. {pyegeria-5.4.1.dist-info → pyegeria-5.4.2.1.dist-info}/LICENSE +0 -0
  23. {pyegeria-5.4.1.dist-info → pyegeria-5.4.2.1.dist-info}/WHEEL +0 -0
  24. {pyegeria-5.4.1.dist-info → pyegeria-5.4.2.1.dist-info}/entry_points.txt +0 -0
@@ -534,8 +534,11 @@ def process_term_upsert_command(egeria_client: EgeriaTech, txt: str, directive:
534
534
  prop_body["abbreviation"] = attributes.get('Abbreviation', {}).get('value', None)
535
535
  prop_body["usage"] = attributes.get('Usage', {}).get('value', None)
536
536
  prop_body["user_defined_status"] = attributes.get('UserDefinedStatus', {}).get('value', None)
537
- to_be_collection_guids = [attributes.get("Glossary", {}).get("guid_list", {}),
537
+ to_be_collection_guids = [attributes.get("Glossary", {}).get("guid", {}),
538
538
  attributes.get("Folder", {}).get("guid_list", {})]
539
+ glossary_guid = attributes.get("Glossary", {}).get('guid', None)
540
+ anchor_scope_guid = attributes.get("Anchor Scope", {}).get('guid', None)
541
+
539
542
 
540
543
  get_method = egeria_client.get_term_by_guid
541
544
  collection_types = ["Glossary", "Folder"]
@@ -584,6 +587,9 @@ def process_term_upsert_command(egeria_client: EgeriaTech, txt: str, directive:
584
587
  # if this is a root or folder (maybe more in the future), then make sure that the classification is set.
585
588
 
586
589
  body["properties"] = prop_body
590
+ # If the anchor scope is not already set and a glossary is specified
591
+ if anchor_scope_guid is None and glossary_guid:
592
+ body["anchorScopeGUID"] = glossary_guid
587
593
 
588
594
  guid = egeria_client.create_glossary_term(body = body)
589
595
  if guid:
@@ -594,7 +600,7 @@ def process_term_upsert_command(egeria_client: EgeriaTech, txt: str, directive:
594
600
  })
595
601
  msg = f"Created Element `{display_name}` with GUID {guid}\n\n___"
596
602
  logger.success(msg)
597
- return egeria_client.get_collection_by_guid(guid, obj, output_format='MD')
603
+ return egeria_client.get_term_by_guid(guid, obj, output_format='MD')
598
604
  else:
599
605
  msg = f"Failed to create element `{display_name}` with GUID {guid}\n\n___"
600
606
  logger.error(msg)
@@ -608,6 +614,7 @@ def process_term_upsert_command(egeria_client: EgeriaTech, txt: str, directive:
608
614
  logger.error(f"Error performing {command}: {e}")
609
615
  else:
610
616
  return None
617
+
611
618
  def process_create_term_term_relationship_command(egeria_client: EgeriaTech, txt: str, directive: str = "display") -> Optional[str]:
612
619
  pass
613
620
  # """ Relate two terms through the specified relationship. ."""
@@ -272,6 +272,7 @@ def set_create_body(object_type: str, attributes: dict)->dict:
272
272
  "parentRelationshipTypeName": attributes.get('Parent Relationship Type Name', {}).get('value', None),
273
273
  "parentRelationshipProperties": attributes.get('Parent Relationship Properties', {}).get('value', None),
274
274
  "parentAtEnd1": attributes.get('Parent at End1', {}).get('value', True),
275
+ "anchorScopeGUID": attributes.get('Anchor Scope GUID', {}).get('guid', None),
275
276
  "properties": "",
276
277
  "initialStatus": attributes.get('Status', {}).get('value', "ACTIVE"),
277
278
  "initialClassifications": {}}