pyegeria 1.5.1.1.48__py3-none-any.whl → 1.5.1.1.50__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/.DS_Store +0 -0
- pyegeria/commands/.DS_Store +0 -0
- pyegeria/commands/cat/glossary_actions.py +18 -16
- pyegeria/commands/cli/egeria.py +674 -193
- pyegeria/commands/cli/egeria_cat.py +105 -116
- pyegeria/commands/cli/egeria_ops.py +19 -2
- pyegeria/commands/cli/egeria_tech.py +64 -22
- pyegeria/commands/doc/.DS_Store +0 -0
- pyegeria/commands/doc/glossary/.DS_Store +0 -0
- pyegeria/commands/doc/glossary/basic-glossary-tui.md +52 -33
- pyegeria/commands/doc/glossary/images/.DS_Store +0 -0
- pyegeria/commands/doc/glossary/images/out-create-glossary example 2024-11-05 at 20.38.04@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/out-delete-term 2024-11-07 at 03.57.25.png +0 -0
- pyegeria/commands/doc/glossary/images/out-export-example 2024-11-07 at 09.54.57.png +0 -0
- pyegeria/commands/doc/glossary/images/out-glossary-list example 2024-11-05 at 20.41.02@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/out-import-terms 2024-11-07 at 08.15.18.png +0 -0
- pyegeria/commands/doc/glossary/images/out-pipx install pyegeria 2024-11-10 at 18.12.21.png +0 -0
- pyegeria/commands/doc/glossary/images/out-server-status-full 2024-11-10 at 18.25.14.png +0 -0
- pyegeria/commands/doc/glossary/images/out-servers-status 2024-11-10 at 18.15.42.png +0 -0
- pyegeria/commands/doc/glossary/images/out-upsert-import 2024-11-07 at 19.37.00.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-2024-11-10 at 18.26.29.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-create-glossary example 2024-11-05 at 20.34.24@2x.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-delete-term 2024-11-07 at 03.51.57.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-export-example 2024-11-07 at 09.52.59.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-hey-egeria 2024-11-10 at 18.31.01.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-import-upsert-example 2024-11-07 at 10.08.37.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-load-archive.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-server-status-full 2024-11-10 at 19.14.36.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-show-glossaries 2024-11-07 at 20.00.05.png +0 -0
- pyegeria/commands/doc/glossary/images/tui-upsert 2024-11-07 at 11.49.04.png +0 -0
- pyegeria/commands/doc/glossary/images/upsert-example.om-terms 2024-11-07 at 11.44.05.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/.DS_Store +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/hey_egeria: overview.md +164 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-server-status 2024-11-10 at 18.15.42@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/out-server-status-full 2024-11-10 at 18.25.14@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-hey-egeria 2024-11-10 at 18.31.01@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-load-archive 2024-11-10 at 19.19.09@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-show-server-status 2024-11-10 at 18.52.01@2x.png +0 -0
- pyegeria/commands/doc/hey_egeria: a pyegeria command line interface/images/tui-show-server-status-full 2024-11-10.png +0 -0
- pyegeria/glossary_manager_omvs.py +85 -134
- {pyegeria-1.5.1.1.48.dist-info → pyegeria-1.5.1.1.50.dist-info}/METADATA +1 -1
- {pyegeria-1.5.1.1.48.dist-info → pyegeria-1.5.1.1.50.dist-info}/RECORD +62 -51
- {pyegeria-1.5.1.1.48.dist-info → pyegeria-1.5.1.1.50.dist-info}/entry_points.txt +4 -3
- pyegeria/commands/doc/glossary/CleanShot 2024-11-06 at 21.02.16@2x.png +0 -0
- pyegeria/commands/doc/glossary/CleanShot 2024-11-06 at 21.03.24@2x.png +0 -0
- pyegeria/commands/doc/glossary/CleanShot 2024-11-06 at 21.06.32@2x.png +0 -0
- pyegeria/commands/doc/glossary/CleanShot 2024-11-07 at 03.29.18@2x.png +0 -0
- pyegeria/commands/doc/glossary/CleanShot 2024-11-07 at 03.34.41@2x.png +0 -0
- pyegeria/commands/doc/glossary/out-create-glossary example 2024-11-05 at 20.38.04@2x.png +0 -0
- pyegeria/commands/doc/glossary/out-glossary-list example 2024-11-05 at 20.41.02@2x.png +0 -0
- pyegeria/commands/doc/glossary/out-terms-export 2024-11-06 at 21.03.24.png +0 -0
- pyegeria/commands/doc/glossary/out_show-all-terms 2024-11-05 at 19.43.29@2x.png +0 -0
- pyegeria/commands/doc/glossary/shell_list_glossaries 2024-11-05 at 17.07.21@2x.png +0 -0
- pyegeria/commands/doc/glossary/shell_list_glossaries 2024-11-05 at 19.21.50@2x.png +0 -0
- pyegeria/commands/doc/glossary/tui-create-glossary 2024-11-05 at 19.18.19@2x.png +0 -0
- pyegeria/commands/doc/glossary/tui-create-glossary example 2024-11-05 at 20.34.24@2x.png +0 -0
- pyegeria/commands/doc/glossary/tui-delete-term 2024-11-07 at 03.29.18@2x.png +0 -0
- pyegeria/commands/doc/glossary/tui-delete-term 2024-11-07 at 03.34.41.png +0 -0
- pyegeria/commands/doc/glossary/tui-display-terms-for-glossary 2024-11-06 at 20.49.51.png +0 -0
- pyegeria/commands/doc/glossary/tui-export-glossary 2024-11-06 at 21.02.16.png +0 -0
- pyegeria/commands/doc/glossary/tui-list-all-terms 2024-11-06 at 16.19.45@2x.png +0 -0
- pyegeria/commands/doc/glossary/tui-list-terms-from-glossary 2024-11-06 at 16.23.54.png +0 -0
- pyegeria/commands/doc/glossary/tui-load-terms 2024-11-05 at 20.44.20@2x.png +0 -0
- pyegeria/commands/doc/glossary/tui-show glossaries 2024-11-05 at 19.22.49@2x.png +0 -0
- pyegeria/commands/doc/glossary/tui-show-glossary-terms-sustainability 2024-11-05 at 19.46.13@2x.png +0 -0
- /pyegeria/commands/doc/glossary/{delete-glossary-step1 2024-11-06 at 15.47.23@2x.png → images/delete-glossary-step1 2024-11-06 at 15.47.23@2x.png} +0 -0
- /pyegeria/commands/doc/glossary/{delete-glossary-step2 2024-11-06 at 15.51.29@2x.png → images/delete-glossary-step2 2024-11-06 at 15.51.29@2x.png} +0 -0
- /pyegeria/commands/doc/glossary/{delete-glossary-step3 2024-11-06 at 15.53.19@2x.png → images/delete-glossary-step3 2024-11-06 at 15.53.19@2x.png} +0 -0
- /pyegeria/commands/doc/glossary/{delete-glossary-step4 2024-11-06 at 15.55.11@2x.png → images/delete-glossary-step4 2024-11-06 at 15.55.11@2x.png} +0 -0
- /pyegeria/commands/doc/glossary/{out-create-term 2024-11-06 at 20.48.29.png → images/out-create-term 2024-11-06 at 20.48.29.png} +0 -0
- /pyegeria/commands/doc/glossary/{out-display-terms-for-glossary-test 2024-11-06 at 20.51.28.png → images/out-display-terms-for-glossary-test 2024-11-06 at 20.51.28.png} +0 -0
- /pyegeria/commands/doc/glossary/{out-exported-terms 2024-11-06 at 21.06.32.png → images/out-exported-terms 2024-11-06 at 21.06.32.png} +0 -0
- /pyegeria/commands/doc/glossary/{out-list-all-terms 2024-11-06 at 16.22.20@2x.png → images/out-list-all-terms 2024-11-06 at 16.22.20@2x.png} +0 -0
- /pyegeria/commands/doc/glossary/{out-list-terms-for-example 2024-11-06 at 16.40.12.png → images/out-list-terms-for-example 2024-11-06 at 16.40.12.png} +0 -0
- /pyegeria/commands/doc/glossary/{out-list-terms-second 2024-11-06 at 16.45.13.png → images/out-list-terms-second 2024-11-06 at 16.45.13.png} +0 -0
- /pyegeria/commands/doc/glossary/{tui-create-term 2024-11-06 at 20.46.35.png → images/tui-create-term 2024-11-06 at 20.46.35.png} +0 -0
- /pyegeria/commands/doc/glossary/{tui-display-terms-for-example 2024-11-06 at 20.56.49.png → images/tui-display-terms-for-example 2024-11-06 at 20.56.49.png} +0 -0
- /pyegeria/commands/doc/glossary/{tui-list-terms-second 2024-11-06 at 16.46.34.png → images/tui-list-terms-second 2024-11-06 at 16.46.34.png} +0 -0
- /pyegeria/commands/doc/glossary/{tui-show-glossary-terms 2024-11-05 at 19.37.53@2x.png → images/tui-show-glossary-terms 2024-11-05 at 19.37.53@2x.png} +0 -0
- /pyegeria/commands/{cat → ops}/list_archives.py +0 -0
- /pyegeria/commands/{cat → tech}/get_tech_type_template.py +0 -0
- /pyegeria/commands/{cat → tech}/list_relationships.py +0 -0
- {pyegeria-1.5.1.1.48.dist-info → pyegeria-1.5.1.1.50.dist-info}/LICENSE +0 -0
- {pyegeria-1.5.1.1.48.dist-info → pyegeria-1.5.1.1.50.dist-info}/WHEEL +0 -0
pyegeria/.DS_Store
ADDED
Binary file
|
Binary file
|
@@ -248,11 +248,9 @@ def delete_term(server, url, userid, password, timeout, term_guid):
|
|
248
248
|
m_client = EgeriaTech(server, url, user_id=userid, user_pwd=password)
|
249
249
|
token = m_client.create_egeria_bearer_token()
|
250
250
|
try:
|
251
|
-
term_guid = term_guid.
|
251
|
+
term_guid = term_guid.strip()
|
252
252
|
term_info = m_client.get_terms_by_guid(term_guid)
|
253
|
-
|
254
|
-
f"Found term with GUID: {term_guid} and Display Name: {term_info['glossaryTermProperties']['displayName']}"
|
255
|
-
)
|
253
|
+
|
256
254
|
m_client.delete_term(term_guid)
|
257
255
|
|
258
256
|
click.echo(
|
@@ -265,13 +263,13 @@ def delete_term(server, url, userid, password, timeout, term_guid):
|
|
265
263
|
m_client.close_session()
|
266
264
|
|
267
265
|
|
268
|
-
@click.command("
|
266
|
+
@click.command("import-terms")
|
269
267
|
@click.option("--glossary-name", help="Name of Glossary", required=True)
|
270
268
|
@click.option("--file-name", help="Path of CSV file", required=True)
|
271
269
|
@click.option(
|
272
270
|
"--verbose",
|
273
271
|
is_flag=True,
|
274
|
-
default=
|
272
|
+
default=True,
|
275
273
|
help="If set, result descriptions are provided",
|
276
274
|
)
|
277
275
|
@click.option(
|
@@ -288,19 +286,23 @@ def delete_term(server, url, userid, password, timeout, term_guid):
|
|
288
286
|
@click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
|
289
287
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
290
288
|
def import_terms(
|
291
|
-
glossary_name
|
289
|
+
glossary_name: str,
|
290
|
+
file_name: str,
|
291
|
+
verbose: bool,
|
292
|
+
upsert: bool,
|
293
|
+
server: str,
|
294
|
+
url: str,
|
295
|
+
userid: str,
|
296
|
+
password: str,
|
297
|
+
timeout: int,
|
292
298
|
):
|
293
299
|
"""Load terms from file into the glossary specified"""
|
294
300
|
m_client = EgeriaTech(server, url, user_id=userid, user_pwd=password)
|
295
301
|
token = m_client.create_egeria_bearer_token()
|
296
302
|
try:
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
print(f"File not found at: {file_name}\n")
|
301
|
-
sys.exit(0)
|
302
|
-
|
303
|
-
result = m_client.load_terms_from_file(glossary_name, file_name, upsert=upsert)
|
303
|
+
result = m_client.load_terms_from_file(
|
304
|
+
glossary_name, file_name, upsert=upsert, verbose=verbose
|
305
|
+
)
|
304
306
|
|
305
307
|
click.echo(
|
306
308
|
f"Loaded terms from into glossary: {glossary_name} from {file_name}"
|
@@ -314,7 +316,7 @@ def import_terms(
|
|
314
316
|
m_client.close_session()
|
315
317
|
|
316
318
|
|
317
|
-
@click.command("export-terms
|
319
|
+
@click.command("export-terms")
|
318
320
|
@click.option("--glossary-guid", help="GUID of Glossary to export", required=True)
|
319
321
|
@click.option("--file-name", help="Path of CSV file", required=True)
|
320
322
|
@click.option("--server", default=EGERIA_VIEW_SERVER, help="Egeria view server to use")
|
@@ -324,7 +326,7 @@ def import_terms(
|
|
324
326
|
@click.option("--userid", default=EGERIA_USER, help="Egeria user")
|
325
327
|
@click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
|
326
328
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
327
|
-
def export_terms(glossary_guid, file_name, server, url, userid, password, timeout):
|
329
|
+
def export_terms(glossary_guid: str, file_name, server, url, userid, password, timeout):
|
328
330
|
"""Export the glossary specified"""
|
329
331
|
m_client = EgeriaTech(server, url, user_id=userid, user_pwd=password)
|
330
332
|
token = m_client.create_egeria_bearer_token()
|