pyegeria 5.3.8.9__py3-none-any.whl → 5.3.9.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.
pyegeria/__init__.py CHANGED
@@ -63,7 +63,8 @@ from .md_processing_utils import (extract_command, process_glossary_upsert_comma
63
63
  process_solution_component_upsert_command, process_term_list_command,
64
64
  process_glossary_list_command, process_category_list_command,
65
65
  process_term_history_command, process_glossary_structure_command,
66
- process_term_revision_history_command)
66
+ process_term_revision_history_command, process_create_term_term_relationship_command,
67
+ process_term_details_command,)
67
68
 
68
69
  #
69
70
  # The following assignments were generated by the `create_tech_guid_lists.py` utility that uses the pyegeria functions
@@ -14,7 +14,8 @@ from pyegeria import (extract_command, process_glossary_upsert_command, process_
14
14
  process_per_proj_upsert_command, command_list, EgeriaTech, process_blueprint_upsert_command,
15
15
  process_solution_component_upsert_command, dr_egeria_state, process_term_list_command,
16
16
  process_category_list_command, process_glossary_list_command, process_term_history_command,
17
- process_glossary_structure_command, process_term_revision_history_command,)
17
+ process_glossary_structure_command, process_term_revision_history_command,
18
+ process_create_term_term_relationship_command, process_term_details_command)
18
19
 
19
20
  EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
20
21
  EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
@@ -92,8 +93,12 @@ def process_markdown_file(file_path: str, directive: str, server: str, url: str,
92
93
  result = process_category_upsert_command(client, current_block, directive)
93
94
  elif potential_command in ["Create Term", "Update Term"]:
94
95
  result = process_term_upsert_command(client, current_block, directive)
96
+ elif potential_command in ["Create Term-Term Relationship", "Update Term-Term Relationship"]:
97
+ result = process_create_term_term_relationship_command(client, current_block, directive)
95
98
  elif potential_command in ["List Term History", "Term History"]:
96
99
  result = process_term_history_command(client, current_block, directive)
100
+ elif potential_command in ["List Term Details"]:
101
+ result = process_term_details_command(client, current_block, directive)
97
102
  elif potential_command in ["List Term Update History", "List Term Revision History"]:
98
103
  result = process_term_revision_history_command(client, current_block, directive)
99
104
  elif potential_command in ["List Terms", "List Glossary Terms"]:
@@ -147,7 +152,7 @@ def process_markdown_file(file_path: str, directive: str, server: str, url: str,
147
152
  in_h1_block = True
148
153
 
149
154
  # Handle the end of a block (line starts with `---`)
150
- elif line.startswith("---"):
155
+ elif line.startswith("___"):
151
156
  if in_h1_block:
152
157
  # Process the current block when it ends with `---`
153
158
  current_block += f"\n{line}"
@@ -149,7 +149,7 @@ def display_glossary_terms(
149
149
  expand=True,
150
150
  )
151
151
  table.add_column("Term Name / Abbreviation / Version")
152
- table.add_column("Qualified Name / GUID", width=38, no_wrap=True)
152
+ table.add_column("Qualified Name / GUID / Aliases", width=38, no_wrap=True)
153
153
  table.add_column("Summary")
154
154
  table.add_column("Description")
155
155
  table.add_column("Glossary")
@@ -184,8 +184,9 @@ def display_glossary_terms(
184
184
  display_name = props.get("displayName","---")
185
185
  qualified_name = props["qualifiedName"]
186
186
  term_guid = term["elementHeader"]["guid"]
187
+ aliases = props.get("aliases", "---")
187
188
  q_name = Text(
188
- f"{qualified_name}\n&\n{term_guid}", style=style, justify="center"
189
+ f"{qualified_name}\n&\n{term_guid}\n&\n{aliases}", style=style, justify="center"
189
190
  )
190
191
  abbrev = Text(props.get("abbreviation", "---"), style=style, justify="center")
191
192
  summary = Text(props.get("summary", "---"), style=style)