pyegeria 1.5.1.1.7__py3-none-any.whl → 1.5.1.1.9__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.
- commands/cat/glossary_actions.py +20 -5
- commands/cat/list_terms.py +16 -4
- {pyegeria-1.5.1.1.7.dist-info → pyegeria-1.5.1.1.9.dist-info}/METADATA +1 -1
- {pyegeria-1.5.1.1.7.dist-info → pyegeria-1.5.1.1.9.dist-info}/RECORD +7 -7
- {pyegeria-1.5.1.1.7.dist-info → pyegeria-1.5.1.1.9.dist-info}/LICENSE +0 -0
- {pyegeria-1.5.1.1.7.dist-info → pyegeria-1.5.1.1.9.dist-info}/WHEEL +0 -0
- {pyegeria-1.5.1.1.7.dist-info → pyegeria-1.5.1.1.9.dist-info}/entry_points.txt +0 -0
commands/cat/glossary_actions.py
CHANGED
@@ -113,7 +113,22 @@ def create_glossary(
|
|
113
113
|
@click.option("--userid", default=EGERIA_USER, help="Egeria user")
|
114
114
|
@click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
|
115
115
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
116
|
-
|
116
|
+
@click.option(
|
117
|
+
"--jupyter",
|
118
|
+
is_flag=True,
|
119
|
+
default=False,
|
120
|
+
envvar="EGERIA_JUPYTER",
|
121
|
+
help="Enable for rendering in a Jupyter terminal",
|
122
|
+
)
|
123
|
+
@click.option(
|
124
|
+
"--width",
|
125
|
+
default=200,
|
126
|
+
envvar="EGERIA_WIDTH",
|
127
|
+
help="Screen width, in characters, to use",
|
128
|
+
)
|
129
|
+
def list_glossaries(
|
130
|
+
search_string, server, url, userid, password, timeout, jupyter, width
|
131
|
+
):
|
117
132
|
"""List all glossaries"""
|
118
133
|
m_client = EgeriaTech(server, url, user_id=userid, user_pwd=password)
|
119
134
|
token = m_client.create_egeria_bearer_token()
|
@@ -151,8 +166,8 @@ def list_glossaries(search_string, server, url, userid, password, timeout):
|
|
151
166
|
table.add_row(display_name, q_name, language, description, usage)
|
152
167
|
console = Console(
|
153
168
|
style="bold bright_white on black",
|
154
|
-
width=
|
155
|
-
force_terminal=not
|
169
|
+
width=width,
|
170
|
+
force_terminal=not jupyter,
|
156
171
|
)
|
157
172
|
console.print(table)
|
158
173
|
|
@@ -284,9 +299,9 @@ def create_term(
|
|
284
299
|
@click.option("--file-name", help="Path of CSV file", required=True)
|
285
300
|
@click.option(
|
286
301
|
"--verbose",
|
287
|
-
|
302
|
+
is_flag=True,
|
288
303
|
default=False,
|
289
|
-
help="If
|
304
|
+
help="If set, result descriptions are provided",
|
290
305
|
)
|
291
306
|
@click.option("--server", default=EGERIA_VIEW_SERVER, help="Egeria view server to use")
|
292
307
|
@click.option(
|
commands/cat/list_terms.py
CHANGED
@@ -72,11 +72,13 @@ def display_glossary_terms(
|
|
72
72
|
expand=True,
|
73
73
|
)
|
74
74
|
table.add_column("Term Name")
|
75
|
-
table.add_column("Qualified Name")
|
76
|
-
|
75
|
+
table.add_column("Qualified Name / GUID")
|
76
|
+
table.add_column("Glossary")
|
77
77
|
table.add_column("Abbreviation")
|
78
78
|
table.add_column("Summary")
|
79
79
|
table.add_column("Description")
|
80
|
+
table.add_column("Version Id")
|
81
|
+
# table.add_column("Status")
|
80
82
|
|
81
83
|
terms = g_client.find_glossary_terms(
|
82
84
|
search_string,
|
@@ -103,17 +105,27 @@ def display_glossary_terms(
|
|
103
105
|
return table
|
104
106
|
|
105
107
|
display_name = Text(props["displayName"], style=style)
|
106
|
-
qualified_name =
|
108
|
+
qualified_name = props["qualifiedName"]
|
109
|
+
term_guid = term["elementHeader"]["guid"]
|
110
|
+
q_name = Text(f"{qualified_name}\n\t\t\t&\n{term_guid}", style=style)
|
107
111
|
abbrev = Text(props.get("abbreviation", " "), style=style)
|
108
112
|
summary = Text(props.get("summary", " "), style=style)
|
109
113
|
description = Text(props.get("description", " "), style=style)
|
114
|
+
version = Text(props.get("publishVersionIdentifier", " "), style=style)
|
115
|
+
|
116
|
+
glossary_info = g_client.get_glossary_for_term(term_guid)
|
117
|
+
|
118
|
+
glossary_name = glossary_info["glossaryProperties"].get("displayName", " ")
|
110
119
|
|
111
120
|
table.add_row(
|
112
121
|
display_name,
|
113
|
-
|
122
|
+
q_name,
|
123
|
+
glossary_name,
|
114
124
|
abbrev,
|
115
125
|
summary,
|
116
126
|
description,
|
127
|
+
version,
|
128
|
+
# status,
|
117
129
|
style="bold white on black",
|
118
130
|
)
|
119
131
|
|
@@ -6,7 +6,7 @@ commands/cat/get_project_dependencies.py,sha256=B0JaMSUi0hzVgos1sTY2uUPGy1DzKEJM
|
|
6
6
|
commands/cat/get_project_structure.py,sha256=n2GbNd07w1DTo7jTR8b2ewXRyNcat_2BcCBRyDMldwk,5969
|
7
7
|
commands/cat/get_tech_type_elements.py,sha256=-m3Q0BoNqkCtV8h75vMwTcOV-_ymEXmnJcr4Ec7WMAw,6180
|
8
8
|
commands/cat/get_tech_type_template.py,sha256=gMFVcgCIm09GQu1Vsc5ZUVH9XLhItAG1eVGZJrcnHeQ,6174
|
9
|
-
commands/cat/glossary_actions.py,sha256=
|
9
|
+
commands/cat/glossary_actions.py,sha256=wj6kooUTm8aZkfoVkFXlSM90awhniGgCdZxiSMq1axo,11891
|
10
10
|
commands/cat/list_archives.py,sha256=FEZ2XYnQIWo2PztWqnj6unn0pbblPU0-bMbTyI3csv4,5464
|
11
11
|
commands/cat/list_assets.py,sha256=bNwSaBDz661hfnc2Rn4j4HPHAugKvz0XwN9L1m4FVQk,6529
|
12
12
|
commands/cat/list_cert_types.py,sha256=mbCls_EqC5JKG5rvS4o69k7KgZ6aNXlcqoJ3DtHsTFA,7127
|
@@ -16,7 +16,7 @@ commands/cat/list_deployed_databases.py,sha256=HE8nG-mIlxa9iSUEH-n71o-G2a4ss1Zza
|
|
16
16
|
commands/cat/list_projects.py,sha256=Jzs-DtIpPhCH-gY4PYT6mnRBWnEf4m18TFfcw8UymNU,8011
|
17
17
|
commands/cat/list_relationships.py,sha256=U9f78cOi4HyaacqNaFSMq_7rRxVcEczvwPv468GYw3Q,5869
|
18
18
|
commands/cat/list_tech_types.py,sha256=20T4v6L5qeebSsaL1nGkFMDAIsy2W3A3SMm1RcgFoh0,4609
|
19
|
-
commands/cat/list_terms.py,sha256=
|
19
|
+
commands/cat/list_terms.py,sha256=gpjE_Wyzg7WDhh9numPPTiQCiLF6awjGqvpBFaXuRF8,6353
|
20
20
|
commands/cat/list_todos.py,sha256=iPxHRyW3X5tiREio4TUOwRPvNPjU0gxm3pVnUI79ir4,6542
|
21
21
|
commands/cat/list_user_ids.py,sha256=7JinL7rknPbGusIb8ikXKEaV1vvbuvx_WWtbmlfS_DY,5093
|
22
22
|
commands/cli/__init__.py,sha256=hpTVSMP2gnPRhcAZPdeUEsQ-eaDySlXlk239dNWYmng,292
|
@@ -104,8 +104,8 @@ pyegeria/template_manager_omvs.py,sha256=heqbKeum5hPCHap4r1RUZU8YB3QaQlxVNbq4GZi
|
|
104
104
|
pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
|
105
105
|
pyegeria/valid_metadata_omvs.py,sha256=tfCGXed5LLt59YA8uZNNtd9UJ-lRZfPU_uZxK31Yux0,65069
|
106
106
|
pyegeria/x_action_author_omvs.py,sha256=xu1IQ0YbhIKi17C5a7Aq9u1Az2czwahNPpX9czmyVxE,6454
|
107
|
-
pyegeria-1.5.1.1.
|
108
|
-
pyegeria-1.5.1.1.
|
109
|
-
pyegeria-1.5.1.1.
|
110
|
-
pyegeria-1.5.1.1.
|
111
|
-
pyegeria-1.5.1.1.
|
107
|
+
pyegeria-1.5.1.1.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
108
|
+
pyegeria-1.5.1.1.9.dist-info/METADATA,sha256=QK-axtaGKY3Ycm2TFqdw6i0VstKKWpIZ7XwN09eIFkw,2997
|
109
|
+
pyegeria-1.5.1.1.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
110
|
+
pyegeria-1.5.1.1.9.dist-info/entry_points.txt,sha256=aSpiaOuOEL1QBfuIGOaATzDCihpVOyvIK1XCQHK3uRc,4186
|
111
|
+
pyegeria-1.5.1.1.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|