pyegeria 1.5.1.1.43__py3-none-any.whl → 1.5.1.1.44__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 (22) hide show
  1. pyegeria/classification_manager_omvs.py +1 -1
  2. pyegeria/commands/cat/glossary_actions.py +1 -1
  3. pyegeria/commands/cat/list_terms.py +10 -7
  4. pyegeria/commands/cli/egeria.py +2 -2
  5. pyegeria/commands/cli/egeria_cat.py +2 -2
  6. pyegeria/commands/doc/glossary/Glossary-list example 2024-11-05 at 20.41.02@2x.png +0 -0
  7. pyegeria/commands/doc/glossary/create-glossary 2024-11-05 at 19.18.19@2x.png +0 -0
  8. pyegeria/commands/doc/glossary/list_glossaries 2024-11-05 at 17.07.21@2x.png +0 -0
  9. pyegeria/commands/doc/glossary/list_glossaries 2024-11-05 at 19.21.50@2x.png +0 -0
  10. pyegeria/commands/doc/glossary/result-create-glossary example 2024-11-05 at 20.38.04@2x.png +0 -0
  11. pyegeria/commands/doc/glossary/show-all-terms 2024-11-05 at 19.43.29@2x.png +0 -0
  12. pyegeria/commands/doc/glossary/tui-create-glossary example 2024-11-05 at 20.34.24@2x.png +0 -0
  13. pyegeria/commands/doc/glossary/tui-show glossaries 2024-11-05 at 19.22.49@2x.png +0 -0
  14. pyegeria/commands/doc/glossary/tui-show-glossary-terms 2024-11-05 at 19.37.53@2x.png +0 -0
  15. pyegeria/commands/doc/glossary/tui-show-glossary-terms-sustainability 2024-11-05 at 19.46.13@2x.png +0 -0
  16. pyegeria/commands/my/monitor_open_todos.py +2 -2
  17. pyegeria/glossary_manager_omvs.py +7 -0
  18. {pyegeria-1.5.1.1.43.dist-info → pyegeria-1.5.1.1.44.dist-info}/METADATA +1 -1
  19. {pyegeria-1.5.1.1.43.dist-info → pyegeria-1.5.1.1.44.dist-info}/RECORD +22 -12
  20. {pyegeria-1.5.1.1.43.dist-info → pyegeria-1.5.1.1.44.dist-info}/LICENSE +0 -0
  21. {pyegeria-1.5.1.1.43.dist-info → pyegeria-1.5.1.1.44.dist-info}/WHEEL +0 -0
  22. {pyegeria-1.5.1.1.43.dist-info → pyegeria-1.5.1.1.44.dist-info}/entry_points.txt +0 -0
@@ -960,7 +960,7 @@ class ClassificationManager(Client):
960
960
  the requesting user is not authorized to issue this request.
961
961
  """
962
962
 
963
- property_name = ["name", "qualifiedName", "title"]
963
+ property_name = ["name", "displayName", "title"]
964
964
  elements = await self._async_get_elements_by_property_value(
965
965
  name, property_name, None
966
966
  )
@@ -256,7 +256,7 @@ def create_term(
256
256
  @click.option("--userid", default=EGERIA_USER, help="Egeria user")
257
257
  @click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
258
258
  @click.option("--timeout", default=60, help="Number of seconds to wait")
259
- def load_terms(
259
+ def import_terms(
260
260
  glossary_name, file_name, verbose, upsert, server, url, userid, password, timeout
261
261
  ):
262
262
  """Load terms from file into the glossary specified"""
@@ -25,7 +25,6 @@ from pyegeria import (
25
25
  UserNotAuthorizedException,
26
26
  EgeriaTech,
27
27
  )
28
- from pyegeria.glossary_browser_omvs import GlossaryBrowser
29
28
 
30
29
  disable_ssl_warnings = True
31
30
 
@@ -84,12 +83,19 @@ def display_glossary_terms(
84
83
  width : int
85
84
  The width of the console output. Defaults to EGERIA_WIDTH.
86
85
  """
86
+
87
+ console = Console(
88
+ style="bold bright_white on black", width=width, force_terminal=not jupyter
89
+ )
87
90
  g_client = EgeriaTech(view_server, view_url, user_id, user_pass)
88
91
  token = g_client.create_egeria_bearer_token()
89
92
  if (glossary_name is not None) and (glossary_name != "*"):
90
- glossary_guid = g_client.__get_guid__(
91
- glossary_guid, glossary_name, "qualifiedName", None, "Glossary"
92
- )
93
+ glossary_guid = g_client.get_guid_for_name(glossary_name)
94
+ if glossary_guid == "No elements found":
95
+ console.print(
96
+ f"\nThe glossary name {glossary_name} was not found. Please try using the glossary guid"
97
+ )
98
+ sys.exit(0)
93
99
 
94
100
  def generate_table(search_string: str, glossary_guid: str = None) -> Table:
95
101
  """Make a new table."""
@@ -185,9 +191,6 @@ def display_glossary_terms(
185
191
  return table
186
192
 
187
193
  try:
188
- console = Console(
189
- style="bold bright_white on black", width=width, force_terminal=not jupyter
190
- )
191
194
  with console.pager(styles=True):
192
195
  console.print(generate_table(search_string, glossary_guid))
193
196
 
@@ -42,7 +42,7 @@ from pyegeria.commands.cat.glossary_actions import (
42
42
  create_glossary,
43
43
  delete_glossary,
44
44
  create_term,
45
- load_terms,
45
+ import_terms,
46
46
  delete_term,
47
47
  export_terms,
48
48
  )
@@ -1037,7 +1037,7 @@ tell.add_command(mark_todo_complete)
1037
1037
  tell.add_command(reassign_todo)
1038
1038
  tell.add_command(delete_todo)
1039
1039
  tell.add_command(create_todo)
1040
- tell.add_command(load_terms)
1040
+ tell.add_command(import_terms)
1041
1041
  tell.add_command(delete_term)
1042
1042
  tell.add_command(export_terms)
1043
1043
 
@@ -23,7 +23,7 @@ from pyegeria.commands.cat.glossary_actions import (
23
23
  delete_glossary,
24
24
  create_term,
25
25
  delete_term,
26
- load_terms,
26
+ import_terms,
27
27
  export_terms,
28
28
  )
29
29
  from pyegeria.commands.cat.list_servers_deployed_imp import display_servers_by_dep_imp
@@ -619,7 +619,7 @@ tell.add_command(reassign_todo)
619
619
  tell.add_command(delete_todo)
620
620
  tell.add_command(create_todo)
621
621
  tell.add_command(delete_term)
622
- tell.add_command(load_terms)
622
+ tell.add_command(import_terms)
623
623
  tell.add_command(export_terms)
624
624
 
625
625
 
@@ -114,8 +114,8 @@ def display_todos(
114
114
  if type(assigned_actors) is list:
115
115
  for actor in assigned_actors:
116
116
  actor_guid = actor["guid"]
117
- assigned += f"* {m_client.get_actor_for_guid(actor_guid)}\n"
118
- assigned_out = Markdown(assigned)
117
+ assigned += f"* {m_client.get_actor_for_guid(actor_guid)} "
118
+ assigned_out = Markdown(assigned)
119
119
 
120
120
  if status in ("WAITING", "OPEN"):
121
121
  status = f"[yellow]{status}"
@@ -7,6 +7,7 @@ added in subsequent versions of the glossary_omvs module.
7
7
 
8
8
  """
9
9
  import asyncio
10
+ import os
10
11
  import time
11
12
  import csv
12
13
  from datetime import datetime
@@ -1534,6 +1535,11 @@ class GlossaryManager(GlossaryBrowser):
1534
1535
  self, glossary_name: str, filename: str, upsert: bool = False
1535
1536
  ) -> List[dict]:
1536
1537
  """This method loads glossary terms into the specified glossary from the indicated file."""
1538
+ # check that the file exists
1539
+ if not os.path.exists(filename):
1540
+ raise InvalidParameterException("File not found")
1541
+ sys.exit(1)
1542
+
1537
1543
  # Check that glossary exists and get guid
1538
1544
  glossaries = self.get_glossaries_by_name(glossary_name)
1539
1545
  if type(glossaries) is not list:
@@ -1597,6 +1603,7 @@ class GlossaryManager(GlossaryBrowser):
1597
1603
 
1598
1604
  version = row.get("Version Identifier", "1.0")
1599
1605
  status = row.get("Status", "DRAFT")
1606
+ print(row)
1600
1607
  status = status.upper()
1601
1608
 
1602
1609
  # quality check the row
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 1.5.1.1.43
3
+ Version: 1.5.1.1.44
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -7,7 +7,7 @@ pyegeria/_globals.py,sha256=1Uc8392wjbiVN5L__RzxC1-U97RMXj77_iUsMSgeAjQ,638
7
7
  pyegeria/_validators.py,sha256=rnZelHJnjHaLZ8UhUTDyB59MfIUJifhALtkYoHBaos4,12736
8
8
  pyegeria/asset_catalog_omvs.py,sha256=Bgw5pRO8wUdVlLTRQ9ySd34Rl_FFoeDnEoybBBVNNhU,24576
9
9
  pyegeria/automated_curation_omvs.py,sha256=BwNuF7XQJAV-POvzaWwFh0TS5yRnHZZPhlayvtIMlwY,130243
10
- pyegeria/classification_manager_omvs.py,sha256=trEpViTjjA10md57szMuCr0TSPHT3W2b1euRadGAtuA,187086
10
+ pyegeria/classification_manager_omvs.py,sha256=aQQZGz53PkM3qh88tXiBXK4zHNvbNFDwwiNvQQSlwtw,187084
11
11
  pyegeria/collection_manager_omvs.py,sha256=kye2kjthNnmwxMZhHQKV0xoHbxcNPWjNzRAYOItj_gY,99201
12
12
  pyegeria/commands/README.md,sha256=zNfWZppDxoKqTJeRtcewzku9z1m6_hKacCyQUQw1iq4,1974
13
13
  pyegeria/commands/__init__.py,sha256=IBYAvBbuGneZ06YSFjZsU-Zxx-b-Qo4ZV_Vd4zz4AI0,844
@@ -19,7 +19,7 @@ pyegeria/commands/cat/get_project_dependencies.py,sha256=B0JaMSUi0hzVgos1sTY2uUP
19
19
  pyegeria/commands/cat/get_project_structure.py,sha256=n2GbNd07w1DTo7jTR8b2ewXRyNcat_2BcCBRyDMldwk,5969
20
20
  pyegeria/commands/cat/get_tech_type_elements.py,sha256=-m3Q0BoNqkCtV8h75vMwTcOV-_ymEXmnJcr4Ec7WMAw,6180
21
21
  pyegeria/commands/cat/get_tech_type_template.py,sha256=gMFVcgCIm09GQu1Vsc5ZUVH9XLhItAG1eVGZJrcnHeQ,6174
22
- pyegeria/commands/cat/glossary_actions.py,sha256=BStxoGNS6hdeaws39Y-CT5mdiN7dOfMnvEnAqiOX7IA,12102
22
+ pyegeria/commands/cat/glossary_actions.py,sha256=hYzo7J42zoNM22aeQZ57dW_51x9JRUIiShJlKpdAkO8,12104
23
23
  pyegeria/commands/cat/list_archives.py,sha256=FEZ2XYnQIWo2PztWqnj6unn0pbblPU0-bMbTyI3csv4,5464
24
24
  pyegeria/commands/cat/list_assets.py,sha256=bNwSaBDz661hfnc2Rn4j4HPHAugKvz0XwN9L1m4FVQk,6529
25
25
  pyegeria/commands/cat/list_cert_types.py,sha256=mbCls_EqC5JKG5rvS4o69k7KgZ6aNXlcqoJ3DtHsTFA,7127
@@ -31,23 +31,33 @@ pyegeria/commands/cat/list_projects.py,sha256=Jzs-DtIpPhCH-gY4PYT6mnRBWnEf4m18TF
31
31
  pyegeria/commands/cat/list_relationships.py,sha256=U9f78cOi4HyaacqNaFSMq_7rRxVcEczvwPv468GYw3Q,5869
32
32
  pyegeria/commands/cat/list_servers_deployed_imp.py,sha256=gcfeDzf7QGwa5tU_WYJD4O-dZKQ7XYp_J1BXTnGy3xg,5705
33
33
  pyegeria/commands/cat/list_tech_types.py,sha256=20T4v6L5qeebSsaL1nGkFMDAIsy2W3A3SMm1RcgFoh0,4609
34
- pyegeria/commands/cat/list_terms.py,sha256=R3bp2_7RtXST1rCnzxnrWOfojEgF8N75B-tcazf0iNA,9066
34
+ pyegeria/commands/cat/list_terms.py,sha256=1xHNMgB03OVxskj63vDS7-p1OEhMNyxvlTmg8Bak6dE,9148
35
35
  pyegeria/commands/cat/list_todos.py,sha256=iPxHRyW3X5tiREio4TUOwRPvNPjU0gxm3pVnUI79ir4,6542
36
36
  pyegeria/commands/cat/list_user_ids.py,sha256=7JinL7rknPbGusIb8ikXKEaV1vvbuvx_WWtbmlfS_DY,5093
37
37
  pyegeria/commands/cli/__init__.py,sha256=hpTVSMP2gnPRhcAZPdeUEsQ-eaDySlXlk239dNWYmng,292
38
- pyegeria/commands/cli/egeria.py,sha256=aZ6AM7gdfA8wp4z17URh-QF8sre9GZOPmuh1tNbT67g,33553
39
- pyegeria/commands/cli/egeria_cat.py,sha256=xtn6q4iCKPSE4QxgyPHuprgGHJDzvbY00EIQexldz2I,16336
38
+ pyegeria/commands/cli/egeria.py,sha256=yuzFavVp1GbOQa5fnOTLkctNF-xyPQxHnDzyPpAnEXk,33557
39
+ pyegeria/commands/cli/egeria_cat.py,sha256=LrKXK13Sljvud_zBD0j007f6daodDT1JiEhBxoCz6jQ,16340
40
40
  pyegeria/commands/cli/egeria_my.py,sha256=Memyxzhrn_i3nMNRor-5N40_SKJJMzylA4iQgBW3T4g,6235
41
41
  pyegeria/commands/cli/egeria_ops.py,sha256=p15SOjimPAY8hv_NmsU4Ff2iPEP32p_hVMBwxlnLM_I,12214
42
42
  pyegeria/commands/cli/egeria_tech.py,sha256=o6g_xwP8S-ehwgpkl-0BD_-FyGfyr90bEiKWNvHj9xk,13303
43
43
  pyegeria/commands/cli/ops_config.py,sha256=m4AfPjf-fR4EBTx8Dc2mcgrfWwAxb30YGeV-v79bg4U,1450
44
44
  pyegeria/commands/doc/command-overview.md,sha256=mxZnETYs7DV0sWrsce9xR1Wi8iKzd6Z_i0chW6Or864,6456
45
+ pyegeria/commands/doc/glossary/Glossary-list example 2024-11-05 at 20.41.02@2x.png,sha256=EMo36u3t1Oqr85Crzp61KX9z4P_e5S27HlLHggODfCQ,162298
46
+ pyegeria/commands/doc/glossary/create-glossary 2024-11-05 at 19.18.19@2x.png,sha256=Dp9wktuIQDsMCHqd2DYXh0bxER_bKCSmKG58aXcLU70,327718
47
+ pyegeria/commands/doc/glossary/list_glossaries 2024-11-05 at 17.07.21@2x.png,sha256=Z1EuzITgNkwoKwJeV7lM_nwBU3Xxs4QeGR4SHhSLyGc,162470
48
+ pyegeria/commands/doc/glossary/list_glossaries 2024-11-05 at 19.21.50@2x.png,sha256=KV04xzZcy24V1cmLZ5fK5yaDC06GXOXW0pHdHskVRxw,178695
49
+ pyegeria/commands/doc/glossary/result-create-glossary example 2024-11-05 at 20.38.04@2x.png,sha256=dAdedkZTDsyWR_QsvnXk6XTrvk38oU5yCr50TVWDe_0,49309
50
+ pyegeria/commands/doc/glossary/show-all-terms 2024-11-05 at 19.43.29@2x.png,sha256=LdZGv6Vr2yfMStSN7f_DEuvdANBmtSzeXloAnpzAqLo,398894
51
+ pyegeria/commands/doc/glossary/tui-create-glossary example 2024-11-05 at 20.34.24@2x.png,sha256=TSSCkj7VkRQpaeyH7JiYbGJISPXmidmYZTN7rVpfdik,321074
52
+ pyegeria/commands/doc/glossary/tui-show glossaries 2024-11-05 at 19.22.49@2x.png,sha256=6T-JkXgRWBcTDVP4rEoJb_ZpZWWw2yj2nLb3idw2KUk,345755
53
+ pyegeria/commands/doc/glossary/tui-show-glossary-terms 2024-11-05 at 19.37.53@2x.png,sha256=AAq9De5X-Qf_KPKZlHgaBk0nlSsc7Y3wra72L7vzvjs,326972
54
+ pyegeria/commands/doc/glossary/tui-show-glossary-terms-sustainability 2024-11-05 at 19.46.13@2x.png,sha256=yNTJL5mKHFB7zrA6WHC3szXBZRYv6KcKt_WLKNyXaIM,349530
45
55
  pyegeria/commands/my/README.md,sha256=ZheFhj_VoPMhcWjW3pGchHB0vH_A9PklSmrSkzKdrcQ,844
46
56
  pyegeria/commands/my/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
57
  pyegeria/commands/my/list_my_profile.py,sha256=7oZ-rT1WuRSatlthJP_Qlvlgf66z3PetdLYsiqrYSko,5788
48
58
  pyegeria/commands/my/list_my_roles.py,sha256=ItwkKgweF4NIx_5AqkHFTiNHZlXejCgfd0eq5KaehHE,5176
49
59
  pyegeria/commands/my/monitor_my_todos.py,sha256=Sqvvn5rOQsRquPEHmBigJTvrgfHb03kE18UkrCbXoSw,6598
50
- pyegeria/commands/my/monitor_open_todos.py,sha256=iNC3XWQhbmnhA94w3caV3LxTA4RWQRZsWfNll1hixMY,5898
60
+ pyegeria/commands/my/monitor_open_todos.py,sha256=IlF8Wlj8qSWGcWqKX8H6LyEoihUt6MuJ2bFw505aN2w,5893
51
61
  pyegeria/commands/my/todo_actions.py,sha256=RPdJ-N3nmHU9jMCBYP0CZZWwZdcvAgMPQdWSwMs5MX4,8372
52
62
  pyegeria/commands/ops/README.md,sha256=PJsSDcvMv6E6og6y-cwvxFX5lhCII0UCwgKiM1T17MQ,1595
53
63
  pyegeria/commands/ops/__init__.py,sha256=GyDGBYodxuJ-7k87z2farDs9vhR__RNrYeAe94HWGPM,764
@@ -97,7 +107,7 @@ pyegeria/egeria_tech_client.py,sha256=7NfqpJFft5GR4NPRDVDw22L9caHbXB8fhx0TAf6qEo
97
107
  pyegeria/feedback_manager_omvs.py,sha256=B66e3ZCaC_dirb0mcb2Nz3PYh2ZKsoMAYNOb3euNiro,152931
98
108
  pyegeria/full_omag_server_config.py,sha256=LBnqUiz1ofBdlKBzECFs_pQbdJwcWigAukWHGJRR2nU,47340
99
109
  pyegeria/glossary_browser_omvs.py,sha256=NcitYaZJqwVODBO5zBtWpXPNUJJ3DKzEbRaOFSAyUlg,93554
100
- pyegeria/glossary_manager_omvs.py,sha256=Ok97uDgo2KWfrkkJ2Xjj5uh1_Z_32jCTeRE21Mo6ZMg,129493
110
+ pyegeria/glossary_manager_omvs.py,sha256=d698MQEsl44E9MTlEocURg3pcfH8gQbXOVaTpmp8DRQ,129695
101
111
  pyegeria/mermaid_utilities.py,sha256=GXiS-subb5nJcDqlThZWX2T8WspU1neFfhf4TxRoMh4,8344
102
112
  pyegeria/my_profile_omvs.py,sha256=DyECbUFEcgokrIbzdMMNljC3bqfqKGXAF2wZEpzvRYs,34666
103
113
  pyegeria/platform_services.py,sha256=CJIOYIFEbcIGwdWlApAQcXxZTsdrhFtpJcm4O3p7dG0,41646
@@ -109,8 +119,8 @@ pyegeria/template_manager_omvs.py,sha256=heqbKeum5hPCHap4r1RUZU8YB3QaQlxVNbq4GZi
109
119
  pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
110
120
  pyegeria/valid_metadata_omvs.py,sha256=tfCGXed5LLt59YA8uZNNtd9UJ-lRZfPU_uZxK31Yux0,65069
111
121
  pyegeria/x_action_author_omvs.py,sha256=xu1IQ0YbhIKi17C5a7Aq9u1Az2czwahNPpX9czmyVxE,6454
112
- pyegeria-1.5.1.1.43.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
113
- pyegeria-1.5.1.1.43.dist-info/METADATA,sha256=8ZBQlCC2nyfxn52Aa8U0OkYuUBQg692pFhWahqsuRPA,2998
114
- pyegeria-1.5.1.1.43.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
115
- pyegeria-1.5.1.1.43.dist-info/entry_points.txt,sha256=GDsJt24awMzNAbVAWdMoeZTQb5oMcMCqjvIAemqOwVQ,5105
116
- pyegeria-1.5.1.1.43.dist-info/RECORD,,
122
+ pyegeria-1.5.1.1.44.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
123
+ pyegeria-1.5.1.1.44.dist-info/METADATA,sha256=I-jXz_Fy84v6OVpTw8cmV1Ogtr4I_JX6moYWgUVKRpU,2998
124
+ pyegeria-1.5.1.1.44.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
125
+ pyegeria-1.5.1.1.44.dist-info/entry_points.txt,sha256=GDsJt24awMzNAbVAWdMoeZTQb5oMcMCqjvIAemqOwVQ,5105
126
+ pyegeria-1.5.1.1.44.dist-info/RECORD,,