pyegeria 5.3.4.26__py3-none-any.whl → 5.3.5.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
@@ -27,6 +27,7 @@ from ._globals import (
27
27
  NO_TERMS_FOUND,
28
28
  NO_CATEGORIES_FOUND,
29
29
  NO_ELEMENT_FOUND,
30
+ NO_PROJECTS_FOUND,
30
31
  )
31
32
 
32
33
  if disable_ssl_warnings:
pyegeria/_globals.py CHANGED
@@ -42,4 +42,5 @@ NO_CATALOGS_FOUND = "No catalogs found"
42
42
  NO_GLOSSARIES_FOUND = "No glossaries found"
43
43
  NO_TERMS_FOUND = "No terms found"
44
44
  NO_CATEGORIES_FOUND = "No categories found"
45
- NO_ELEMENT_FOUND = "No element found"
45
+ NO_ELEMENT_FOUND = "No element found"
46
+ NO_PROJECTS_FOUND = "No projects found"
@@ -138,7 +138,7 @@ def display_glossary_terms(
138
138
  print(f"No terms found! - {search_string} : {glossary_guid} ")
139
139
  sys.exit(0)
140
140
  sorted_terms = sorted(
141
- terms, key=lambda k: k["glossaryTermProperties"]["displayName"]
141
+ terms, key=lambda k: k["glossaryTermProperties"].get("displayName","---")
142
142
  )
143
143
  style = "bright_white on black"
144
144
  if type(terms) is str:
@@ -149,7 +149,7 @@ def display_glossary_terms(
149
149
  if props == "None":
150
150
  return table
151
151
 
152
- display_name = Text(props["displayName"], style=style, justify="center")
152
+ display_name = Text(props.get("displayName","---"), style=style, justify="center")
153
153
  qualified_name = props["qualifiedName"]
154
154
  term_guid = term["elementHeader"]["guid"]
155
155
  q_name = Text(
@@ -180,7 +180,7 @@ def display_glossary_terms(
180
180
  else:
181
181
  glossary_name = "---"
182
182
 
183
- term_status = term["elementHeader"]["status"]
183
+ term_status = term["elementHeader"].get("status","---")
184
184
  table.add_row(
185
185
  display_name,
186
186
  q_name,
@@ -14,7 +14,7 @@ import time
14
14
  from pyegeria._client import Client
15
15
  from pyegeria._validators import validate_guid, validate_search_string
16
16
  from pyegeria.utils import body_slimmer
17
- from pyegeria._globals import NO_ELEMENTS_FOUND
17
+ from pyegeria._globals import NO_ELEMENTS_FOUND, NO_PROJECTS_FOUND
18
18
 
19
19
  class ProjectManager(Client):
20
20
  """
@@ -586,7 +586,7 @@ class ProjectManager(Client):
586
586
  )
587
587
 
588
588
  resp = await self._async_make_request("POST", url, body_s)
589
- return resp.json().get("elements", NO_ELEMENTS_FOUND)
589
+ return resp.json().get("elements", NO_PROJECTS_FOUND)
590
590
 
591
591
  def get_projects_by_name(
592
592
  self,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyegeria
3
- Version: 5.3.4.26
3
+ Version: 5.3.5.1
4
4
  Summary: A python client for Egeria
5
5
  License: Apache 2.0
6
6
  Keywords: egeria,metadata,governance
@@ -1,9 +1,9 @@
1
1
  pyegeria/README.md,sha256=PwX5OC7-YSZUCIsoyHh1O-WBM2hE84sm3Bd4O353NOk,1464
2
- pyegeria/__init__.py,sha256=XwjE-iGvextqOG-HhS78AWyGWENL0q36GAnfED3MHPo,29876
2
+ pyegeria/__init__.py,sha256=AYS0IpQrtlb5uKmOn-bGaL3iPYzdpg1on3CSquenyPM,29899
3
3
  pyegeria/_client.py,sha256=aeyB27WFxswxcIj_Ky88F2Q4S5zn7ofmux65aen5mW0,31130
4
4
  pyegeria/_deprecated_gov_engine.py,sha256=dWNcwVsE5__dF2u4QiIyQrssozzzOjBbLld8MdpmVCQ,17264
5
5
  pyegeria/_exceptions.py,sha256=1SrnV194V4_YJNnNAU0myTHQ3dhLn4GF2B2gZcj1u90,18153
6
- pyegeria/_globals.py,sha256=3eH8Rf27HQg2fOub1HD7p4NFyyhZoO50iBLd7TLaSrU,951
6
+ pyegeria/_globals.py,sha256=a_irI6oGuBLks2LzQHkSdK6xWbPdJCPRjqxK7PKxwgw,991
7
7
  pyegeria/_validators.py,sha256=vP9nuZwucnCo_LrPU7hkitpWzaych5bTZEKE58TaTnQ,12726
8
8
  pyegeria/asset_catalog_omvs.py,sha256=MOg_s12ve0yT7tPd1M87YN70nKdkP-JAxgtYeU5qh-c,25688
9
9
  pyegeria/automated_curation_omvs.py,sha256=tzwCyXL0Hx8UjryBBWcPoEuBRajXZpLuwPQ1vuOg2yc,130349
@@ -31,7 +31,7 @@ pyegeria/commands/cat/list_glossaries.py,sha256=zh76g-zKwhNYlUJWsBLXYG3qyDNCOa72
31
31
  pyegeria/commands/cat/list_projects.py,sha256=NzWTuepTGUEyxK-eWvuUxtBgCtNWubVwmz2eqm2UN1c,7997
32
32
  pyegeria/commands/cat/list_tech_type_elements.py,sha256=-9omj5en9dSP1xMSljYVHyfXsuhuE1bO2IFj_bZPhAs,6873
33
33
  pyegeria/commands/cat/list_tech_types.py,sha256=uqZcXHCzAznhEG6WWeM5j-spwUh8ycygFqpVDeXOG-0,4653
34
- pyegeria/commands/cat/list_terms.py,sha256=wve4BaQ2zbnL484p_3RZ4LwnTlM18ps1yCOJmIuL3XM,9721
34
+ pyegeria/commands/cat/list_terms.py,sha256=AO92WfGy6fySjBKpnLYrzFDdWzORF2vbsN1SHzWRo34,9751
35
35
  pyegeria/commands/cat/list_todos.py,sha256=NitCw0uyVVjmN1hxb1W-I4FbOsa8wQxW2ICyOElHyc8,6556
36
36
  pyegeria/commands/cat/list_user_ids.py,sha256=X5Q-YNEp38saPYDuy9VwdQC5Qpa4HyC3WvAdbyp_P6M,5108
37
37
  pyegeria/commands/cli/__init__.py,sha256=hpTVSMP2gnPRhcAZPdeUEsQ-eaDySlXlk239dNWYmng,292
@@ -226,7 +226,7 @@ pyegeria/mermaid_utilities.py,sha256=sQqdFUWdNpHu9d3Tk9UVe80M-5bOzses0XcFYX5FF-E
226
226
  pyegeria/metadata_explorer_omvs.py,sha256=xHnZTQKbd6XwOhYia-RiIisrvZcqHi0SL1l6OCf04Gk,86911
227
227
  pyegeria/my_profile_omvs.py,sha256=d0oJYCJG7pS9BINPuGciVa00ac0jwPHNANXDCLginEc,34720
228
228
  pyegeria/platform_services.py,sha256=YEpZsGGsbSdesN8ceyFhV0OMzKG6znTZrREMTRimLps,41701
229
- pyegeria/project_manager_omvs.py,sha256=JZ19fYvVNU6ltK831S1v8MD4KZ5t8f3df04cznNbaj0,67528
229
+ pyegeria/project_manager_omvs.py,sha256=X64JK8Z_jNBX0sxcWoPp8g_iF52ynD_baLN5TGveTAA,67547
230
230
  pyegeria/registered_info.py,sha256=y0-LgDIQXpph0lEWxIOG3_HsqX_Z2iAIb3xu4Aa4B70,6344
231
231
  pyegeria/runtime_manager_omvs.py,sha256=Z5wY9ignNjil8O6yjihZftxkGoh9A4PQDcXhoIsOIT8,79698
232
232
  pyegeria/server_operations.py,sha256=5k0KVz3u8qRLwtz16zT3J86LZY3pkUrMDcps8srmq1A,16831
@@ -240,8 +240,8 @@ pyegeria/test_w.html,sha256=q9HCstV2Ar-QiAqswte6hQ8EJuKqr5s99MUuXSxs7a8,11461
240
240
  pyegeria/utils.py,sha256=GCt1C0bp0Xng1ahzbZhzV9qQwH7Dj93IaCt2dvWb-sg,5417
241
241
  pyegeria/valid_metadata_omvs.py,sha256=Xq9DqBQvBFFJzaFIRKcVZ2k4gJvSh9yeXs_j-O3vn1w,65050
242
242
  pyegeria/x_action_author_omvs.py,sha256=RcqSzahUKCtvb_3u_wyintAlc9WFkC_2v0E12TZs8lQ,6433
243
- pyegeria-5.3.4.26.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
244
- pyegeria-5.3.4.26.dist-info/METADATA,sha256=xMEHMSGiLV7ZyWRL8WTQraSJXge5e9vcfUIAyVS6Wsk,2688
245
- pyegeria-5.3.4.26.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
246
- pyegeria-5.3.4.26.dist-info/entry_points.txt,sha256=LS9g5JPSBL0whnyAcGhLZCAyUp6PkPU6fjHP9Aso1V4,6176
247
- pyegeria-5.3.4.26.dist-info/RECORD,,
243
+ pyegeria-5.3.5.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
244
+ pyegeria-5.3.5.1.dist-info/METADATA,sha256=x5MGbqPZb2u5DYRz5yblu7hCkblZt-Tzg3EOHXLg9tE,2687
245
+ pyegeria-5.3.5.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
246
+ pyegeria-5.3.5.1.dist-info/entry_points.txt,sha256=LS9g5JPSBL0whnyAcGhLZCAyUp6PkPU6fjHP9Aso1V4,6176
247
+ pyegeria-5.3.5.1.dist-info/RECORD,,