pyegeria 1.5.1.1.49__py3-none-any.whl → 1.5.1.1.51__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 +16 -12
- pyegeria/commands/cli/egeria.py +689 -208
- 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-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.49.dist-info → pyegeria-1.5.1.1.51.dist-info}/METADATA +1 -1
- {pyegeria-1.5.1.1.49.dist-info → pyegeria-1.5.1.1.51.dist-info}/RECORD +62 -53
- {pyegeria-1.5.1.1.49.dist-info → pyegeria-1.5.1.1.51.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/CleanShot 2024-11-07 at 03.51.57@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-delete-term 2024-11-07 at 03.51.57.png → images/tui-delete-term 2024-11-07 at 03.51.57.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.49.dist-info → pyegeria-1.5.1.1.51.dist-info}/LICENSE +0 -0
- {pyegeria-1.5.1.1.49.dist-info → pyegeria-1.5.1.1.51.dist-info}/WHEEL +0 -0
pyegeria/.DS_Store
ADDED
Binary file
|
Binary file
|
@@ -263,13 +263,13 @@ def delete_term(server, url, userid, password, timeout, term_guid):
|
|
263
263
|
m_client.close_session()
|
264
264
|
|
265
265
|
|
266
|
-
@click.command("
|
266
|
+
@click.command("import-terms")
|
267
267
|
@click.option("--glossary-name", help="Name of Glossary", required=True)
|
268
268
|
@click.option("--file-name", help="Path of CSV file", required=True)
|
269
269
|
@click.option(
|
270
270
|
"--verbose",
|
271
271
|
is_flag=True,
|
272
|
-
default=
|
272
|
+
default=True,
|
273
273
|
help="If set, result descriptions are provided",
|
274
274
|
)
|
275
275
|
@click.option(
|
@@ -286,19 +286,23 @@ def delete_term(server, url, userid, password, timeout, term_guid):
|
|
286
286
|
@click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
|
287
287
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
288
288
|
def import_terms(
|
289
|
-
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,
|
290
298
|
):
|
291
299
|
"""Load terms from file into the glossary specified"""
|
292
300
|
m_client = EgeriaTech(server, url, user_id=userid, user_pwd=password)
|
293
301
|
token = m_client.create_egeria_bearer_token()
|
294
302
|
try:
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
print(f"File not found at: {file_name}\n")
|
299
|
-
sys.exit(0)
|
300
|
-
|
301
|
-
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
|
+
)
|
302
306
|
|
303
307
|
click.echo(
|
304
308
|
f"Loaded terms from into glossary: {glossary_name} from {file_name}"
|
@@ -312,7 +316,7 @@ def import_terms(
|
|
312
316
|
m_client.close_session()
|
313
317
|
|
314
318
|
|
315
|
-
@click.command("export-terms
|
319
|
+
@click.command("export-terms")
|
316
320
|
@click.option("--glossary-guid", help="GUID of Glossary to export", required=True)
|
317
321
|
@click.option("--file-name", help="Path of CSV file", required=True)
|
318
322
|
@click.option("--server", default=EGERIA_VIEW_SERVER, help="Egeria view server to use")
|
@@ -322,7 +326,7 @@ def import_terms(
|
|
322
326
|
@click.option("--userid", default=EGERIA_USER, help="Egeria user")
|
323
327
|
@click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
|
324
328
|
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
325
|
-
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):
|
326
330
|
"""Export the glossary specified"""
|
327
331
|
m_client = EgeriaTech(server, url, user_id=userid, user_pwd=password)
|
328
332
|
token = m_client.create_egeria_bearer_token()
|