pyegeria 1.5.1.1.6__tar.gz → 1.5.1.1.7__tar.gz

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 (110) hide show
  1. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/PKG-INFO +1 -1
  2. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/glossary_actions.py +67 -2
  3. pyegeria-1.5.1.1.6/commands/cat/list_glossary.py → pyegeria-1.5.1.1.7/commands/cat/list_terms.py +2 -2
  4. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cli/egeria.py +4 -1
  5. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cli/egeria_cat.py +4 -1
  6. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/glossary_manager_omvs.py +12 -11
  7. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyproject.toml +3 -2
  8. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/LICENSE +0 -0
  9. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/README.md +0 -0
  10. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/README.md +0 -0
  11. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/__init__.py +0 -0
  12. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/get_asset_graph.py +0 -0
  13. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/get_collection.py +0 -0
  14. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/get_project_dependencies.py +0 -0
  15. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/get_project_structure.py +0 -0
  16. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/get_tech_type_elements.py +0 -0
  17. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/get_tech_type_template.py +0 -0
  18. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/list_archives.py +0 -0
  19. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/list_assets.py +0 -0
  20. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/list_cert_types.py +0 -0
  21. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/list_deployed_catalogs.py +0 -0
  22. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/list_deployed_database_schemas.py +0 -0
  23. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/list_deployed_databases.py +0 -0
  24. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/list_projects.py +0 -0
  25. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/list_relationships.py +0 -0
  26. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/list_tech_types.py +0 -0
  27. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/list_todos.py +0 -0
  28. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cat/list_user_ids.py +0 -0
  29. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cli/__init__.py +0 -0
  30. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cli/egeria_my.py +0 -0
  31. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cli/egeria_ops.py +0 -0
  32. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cli/egeria_tech.py +0 -0
  33. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/cli/ops_config.py +0 -0
  34. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/my/README.md +0 -0
  35. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/my/__init__.py +0 -0
  36. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/my/list_my_profile.py +0 -0
  37. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/my/list_my_roles.py +0 -0
  38. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/my/monitor_my_todos.py +0 -0
  39. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/my/monitor_open_todos.py +0 -0
  40. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/my/todo_actions.py +0 -0
  41. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/README.md +0 -0
  42. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/__init__.py +0 -0
  43. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/engine_actions.py +0 -0
  44. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/gov_server_actions.py +0 -0
  45. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/list_catalog_targets.py +0 -0
  46. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/load_archive.py +0 -0
  47. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/monitor_asset_events.py +0 -0
  48. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/monitor_engine_activity.py +0 -0
  49. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/monitor_engine_activity_c.py +0 -0
  50. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/monitor_gov_eng_status.py +0 -0
  51. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/monitor_integ_daemon_status.py +0 -0
  52. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/monitor_platform_status.py +0 -0
  53. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/monitor_server_startup.py +0 -0
  54. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/monitor_server_status.py +0 -0
  55. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/orig_monitor_server_list.py +0 -0
  56. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/orig_monitor_server_status.py +0 -0
  57. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/refresh_integration_daemon.py +0 -0
  58. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/restart_integration_daemon.py +0 -0
  59. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/ops/table_integ_daemon_status.py +0 -0
  60. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/README.md +0 -0
  61. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/__init__.py +0 -0
  62. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/get_element_graph.py +0 -0
  63. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/get_element_info.py +0 -0
  64. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/get_guid_info.py +0 -0
  65. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/get_tech_details.py +0 -0
  66. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/list_asset_types.py +0 -0
  67. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/list_elements.py +0 -0
  68. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/list_elements_for_classification.py +0 -0
  69. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/list_elements_x.py +0 -0
  70. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/list_gov_action_processes.py +0 -0
  71. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/list_registered_services.py +0 -0
  72. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/list_related_elements.py +0 -0
  73. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/list_related_specification.py +0 -0
  74. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/list_relationship_types.py +0 -0
  75. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/list_tech_templates.py +0 -0
  76. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/list_valid_metadata_values.py +0 -0
  77. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/table_tech_templates.py +0 -0
  78. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/commands/tech/x_list_related_elements.py +0 -0
  79. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/README.md +0 -0
  80. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/__init__.py +0 -0
  81. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/_client.py +0 -0
  82. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/_deprecated_gov_engine.py +0 -0
  83. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/_exceptions.py +0 -0
  84. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/_globals.py +0 -0
  85. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/_validators.py +0 -0
  86. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/asset_catalog_omvs.py +0 -0
  87. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/automated_curation_omvs.py +0 -0
  88. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/classification_manager_omvs.py +0 -0
  89. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/collection_manager_omvs.py +0 -0
  90. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/core_omag_server_config.py +0 -0
  91. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/create_tech_guid_lists.py +0 -0
  92. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/egeria_cat_client.py +0 -0
  93. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/egeria_client.py +0 -0
  94. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/egeria_config_client.py +0 -0
  95. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/egeria_my_client.py +0 -0
  96. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/egeria_tech_client.py +0 -0
  97. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/feedback_manager_omvs.py +0 -0
  98. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/full_omag_server_config.py +0 -0
  99. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/glossary_browser_omvs.py +0 -0
  100. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/mermaid_utilities.py +0 -0
  101. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/my_profile_omvs.py +0 -0
  102. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/platform_services.py +0 -0
  103. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/project_manager_omvs.py +0 -0
  104. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/registered_info.py +0 -0
  105. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/runtime_manager_omvs.py +0 -0
  106. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/server_operations.py +0 -0
  107. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/template_manager_omvs.py +0 -0
  108. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/utils.py +0 -0
  109. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/valid_metadata_omvs.py +0 -0
  110. {pyegeria-1.5.1.1.6 → pyegeria-1.5.1.1.7}/pyegeria/x_action_author_omvs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 1.5.1.1.6
3
+ Version: 1.5.1.1.7
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -13,10 +13,15 @@ import os
13
13
  import sys
14
14
  import time
15
15
  from datetime import datetime
16
+ from rich import box
17
+ from rich.console import Console
18
+ from rich.prompt import Prompt
19
+ from rich.table import Table
20
+ from rich.text import Text
16
21
 
17
22
  import click
18
23
 
19
- # from ops_config import Config, pass_config
24
+
20
25
  from pyegeria import EgeriaTech, body_slimmer
21
26
  from pyegeria._exceptions import (
22
27
  InvalidParameterException,
@@ -40,6 +45,8 @@ EGERIA_ADMIN_USER = os.environ.get("ADMIN_USER", "garygeeke")
40
45
  EGERIA_ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "secret")
41
46
  EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
42
47
  EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
48
+ EGERIA_WIDTH = os.environ.get("EGERIA_WIDTH", 200)
49
+ EGERIA_JUPYTER = os.environ.get("EGERIA_JUPYTER", False)
43
50
 
44
51
 
45
52
  @click.command("create-glossary")
@@ -88,7 +95,7 @@ def create_glossary(
88
95
  )
89
96
  sys.exit(0)
90
97
 
91
- glossary_guid = m_client.create_glossary(name, language, description, usage)
98
+ glossary_guid = m_client.create_glossary(name, description, language, usage)
92
99
  print(f"New glossary {name} created with id of {glossary_guid}")
93
100
 
94
101
  except (InvalidParameterException, PropertyServerException) as e:
@@ -97,6 +104,64 @@ def create_glossary(
97
104
  m_client.close_session()
98
105
 
99
106
 
107
+ @click.command("list-glossaries")
108
+ @click.option("--search-string", default="*", help="Glossaries to search for")
109
+ @click.option("--server", default=EGERIA_VIEW_SERVER, help="Egeria view server to use")
110
+ @click.option(
111
+ "--url", default=EGERIA_VIEW_SERVER_URL, help="URL of Egeria platform to connect to"
112
+ )
113
+ @click.option("--userid", default=EGERIA_USER, help="Egeria user")
114
+ @click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
115
+ @click.option("--timeout", default=60, help="Number of seconds to wait")
116
+ def list_glossaries(search_string, server, url, userid, password, timeout):
117
+ """List all glossaries"""
118
+ m_client = EgeriaTech(server, url, user_id=userid, user_pwd=password)
119
+ token = m_client.create_egeria_bearer_token()
120
+ try:
121
+ table = Table(
122
+ title=f"Glossary List @ {time.asctime()}",
123
+ style="bright_white on black",
124
+ header_style="bright_white on dark_blue",
125
+ title_style="bold white on black",
126
+ caption_style="white on black",
127
+ show_lines=True,
128
+ box=box.ROUNDED,
129
+ caption=f"View Server '{server}' @ Platform - {url}",
130
+ expand=True,
131
+ )
132
+ table.add_column("Glossary Name")
133
+ table.add_column("Qualified Name / GUID")
134
+ table.add_column("Language")
135
+ table.add_column("Description")
136
+ table.add_column("Usage")
137
+
138
+ glossaries = m_client.find_glossaries(search_string)
139
+ if type(glossaries) is list:
140
+ sorted_glossary_list = sorted(
141
+ glossaries, key=lambda k: k["glossaryProperties"]["displayName"]
142
+ )
143
+ for glossary in sorted_glossary_list:
144
+ display_name = glossary["glossaryProperties"]["displayName"]
145
+ qualified_name = glossary["glossaryProperties"]["qualifiedName"]
146
+ guid = glossary["elementHeader"]["guid"]
147
+ q_name = f"{qualified_name}\n\n{guid}"
148
+ language = glossary["glossaryProperties"]["language"]
149
+ description = glossary["glossaryProperties"]["description"]
150
+ usage = glossary["glossaryProperties"]["usage"]
151
+ table.add_row(display_name, q_name, language, description, usage)
152
+ console = Console(
153
+ style="bold bright_white on black",
154
+ width=EGERIA_WIDTH,
155
+ force_terminal=not EGERIA_JUPYTER,
156
+ )
157
+ console.print(table)
158
+
159
+ except (InvalidParameterException, PropertyServerException) as e:
160
+ print_exception_response(e)
161
+ finally:
162
+ m_client.close_session()
163
+
164
+
100
165
  @click.command("delete-glossary")
101
166
  @click.option("--server", default=EGERIA_VIEW_SERVER, help="Egeria view server to use")
102
167
  @click.option(
@@ -68,10 +68,10 @@ def display_glossary_terms(
68
68
  caption_style="white on black",
69
69
  show_lines=True,
70
70
  box=box.ROUNDED,
71
- caption=f"Glossary View Server '{server}' @ Platform - {url}",
71
+ caption=f"View Server '{server}' @ Platform - {url}",
72
72
  expand=True,
73
73
  )
74
- table.add_column("Display Name")
74
+ table.add_column("Term Name")
75
75
  table.add_column("Qualified Name")
76
76
 
77
77
  table.add_column("Abbreviation")
@@ -20,7 +20,7 @@ from commands.cat.get_tech_type_elements import tech_viewer
20
20
  from commands.cat.get_tech_type_template import template_viewer
21
21
  from commands.cat.list_assets import display_assets
22
22
  from commands.cat.list_cert_types import display_certifications
23
- from commands.cat.list_glossary import display_glossary_terms
23
+ from commands.cat.list_terms import display_glossary_terms
24
24
  from commands.cat.list_projects import display_project_list
25
25
  from commands.cat.list_relationships import list_relationships
26
26
  from commands.cat.list_tech_types import display_tech_types
@@ -40,6 +40,7 @@ from commands.cat.list_deployed_databases import list_deployed_databases
40
40
  from commands.cat.glossary_actions import (
41
41
  create_glossary,
42
42
  delete_glossary,
43
+ list_glossaries,
43
44
  create_term,
44
45
  load_terms,
45
46
  )
@@ -970,6 +971,8 @@ def list_databases(ctx):
970
971
  )
971
972
 
972
973
 
974
+ show.add_command(list_glossaries)
975
+
973
976
  #
974
977
  # Catalog User: Tell
975
978
  #
@@ -23,6 +23,7 @@ from commands.cat.glossary_actions import (
23
23
  delete_glossary,
24
24
  create_term,
25
25
  load_terms,
26
+ list_glossaries,
26
27
  )
27
28
  from commands.cat.list_archives import display_archive_list
28
29
  from commands.cat.list_assets import display_assets
@@ -32,7 +33,7 @@ from commands.cat.list_deployed_database_schemas import (
32
33
  list_deployed_database_schemas,
33
34
  )
34
35
  from commands.cat.list_deployed_databases import list_deployed_databases
35
- from commands.cat.list_glossary import display_glossary_terms
36
+ from commands.cat.list_terms import display_glossary_terms
36
37
  from commands.cat.list_projects import display_project_list
37
38
  from commands.cat.list_relationships import list_relationships
38
39
  from commands.cat.list_tech_types import display_tech_types
@@ -552,6 +553,8 @@ def list_databases(ctx):
552
553
  )
553
554
 
554
555
 
556
+ show.add_command(list_glossaries)
557
+
555
558
  #
556
559
  # Tell
557
560
  #
@@ -10,6 +10,7 @@ import asyncio
10
10
  import time
11
11
  import csv
12
12
  from datetime import datetime
13
+ from typing import List
13
14
 
14
15
  from pyegeria import InvalidParameterException
15
16
 
@@ -1417,7 +1418,7 @@ class GlossaryManager(GlossaryBrowser):
1417
1418
 
1418
1419
  def load_terms_from_file(
1419
1420
  self, glossary_name: str, filename: str, upsert: bool = False
1420
- ) -> [dict]:
1421
+ ) -> List[dict]:
1421
1422
  """This method loads glossary terms into the specified glossary from the indicated file."""
1422
1423
  # Check that glossary exists and get guid
1423
1424
  glossaries = self.get_glossaries_by_name(glossary_name)
@@ -1437,7 +1438,6 @@ class GlossaryManager(GlossaryBrowser):
1437
1438
 
1438
1439
  # Now we know we have a single glossary so we can get the guid
1439
1440
  glossary_guid = glossaries[0]["elementHeader"]["guid"]
1440
- term_info = []
1441
1441
 
1442
1442
  term_properties = {
1443
1443
  "Term Name",
@@ -1455,6 +1455,7 @@ class GlossaryManager(GlossaryBrowser):
1455
1455
  # Create a CSV reader object
1456
1456
  csv_reader = csv.DictReader(file)
1457
1457
  headers = csv_reader.fieldnames
1458
+ term_info = []
1458
1459
  # check that the column headers are known
1459
1460
  if all(header in term_properties for header in headers) is False:
1460
1461
  raise InvalidParameterException("Invalid headers in CSV File")
@@ -1473,23 +1474,23 @@ class GlossaryManager(GlossaryBrowser):
1473
1474
  status = row.get("Status", "DRAFT").upper()
1474
1475
 
1475
1476
  # process the row
1476
- if term_name is None:
1477
+ if len(term_name) < 2:
1477
1478
  term_info.append(
1478
1479
  {
1479
- {"term_name": "---"},
1480
- {"qualified_name": "---"},
1481
- {"term_guid": "---"},
1482
- {"error": "missing term names - skipping"},
1480
+ "term_name": "---",
1481
+ "qualified_name": "---",
1482
+ "term_guid": "---",
1483
+ "error": "missing or invalid term names - skipping",
1483
1484
  }
1484
1485
  )
1485
1486
  continue
1486
1487
  if self.__validate_term_status__(status) is False:
1487
1488
  term_info.append(
1488
1489
  {
1489
- {"term_name": "---"},
1490
- {"qualified_name": "---"},
1491
- {"term_guid": "---"},
1492
- {"error": "invalid term status"},
1490
+ "term_name": "---",
1491
+ "qualified_name": "---",
1492
+ "term_guid": "---",
1493
+ "error": "invalid term status",
1493
1494
  }
1494
1495
  )
1495
1496
  continue
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyegeria"
3
- version = "1.5.1.1.6"
3
+ version = "1.5.1.1.7"
4
4
  license = 'Apache 2.0'
5
5
  authors = ["Dan Wolfson <dan.wolfson@pdr-associates.com>"]
6
6
  readme = "README.md"
@@ -56,7 +56,7 @@ pytest = "^8.2.2"
56
56
  list_tech_types = "commands.cat.list_tech_types:main"
57
57
  get_asset_graph = "commands.cat.get_asset_graph:main"
58
58
  get_collection = "commands.cat.get_collection:main"
59
- list_terms = "commands.cat.list_glossary:main"
59
+ list_terms = "commands.cat.list_terms:main"
60
60
  get_tech_type_elements = "commands.cat.get_tech_type_elements:main"
61
61
  get_tech_type_template = "commands.cat.get_tech_type_template:main"
62
62
  list_projects = "commands.cat.list_projects:main"
@@ -73,6 +73,7 @@ pytest = "^8.2.2"
73
73
  create_glossary = "commands.cat.glossary_actions:create_glossary"
74
74
  delete_glossary = "commands.cat.glossary_actions:delete_glossary"
75
75
  create_term = "commands.cat.glossary_actions:create_term"
76
+ list_glossaries = "commands.cat.glossary_actions:list_glossaries"
76
77
  load_terms_from_file = "commands.cat.glossary_actions:load_terms"
77
78
 
78
79
  monitor_asset_events = "commands.ops.monitor_asset_events:main"
File without changes
File without changes