pyegeria 1.5.1.1.12__py3-none-any.whl → 1.5.1.1.14__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 +27 -0
- commands/cli/egeria.py +2 -0
- commands/cli/egeria_cat.py +2 -0
- pyegeria/glossary_manager_omvs.py +2 -1
- {pyegeria-1.5.1.1.12.dist-info → pyegeria-1.5.1.1.14.dist-info}/METADATA +1 -1
- {pyegeria-1.5.1.1.12.dist-info → pyegeria-1.5.1.1.14.dist-info}/RECORD +9 -9
- {pyegeria-1.5.1.1.12.dist-info → pyegeria-1.5.1.1.14.dist-info}/entry_points.txt +1 -0
- {pyegeria-1.5.1.1.12.dist-info → pyegeria-1.5.1.1.14.dist-info}/LICENSE +0 -0
- {pyegeria-1.5.1.1.12.dist-info → pyegeria-1.5.1.1.14.dist-info}/WHEEL +0 -0
commands/cat/glossary_actions.py
CHANGED
@@ -329,3 +329,30 @@ def load_terms(
|
|
329
329
|
print_exception_response(e)
|
330
330
|
finally:
|
331
331
|
m_client.close_session()
|
332
|
+
|
333
|
+
|
334
|
+
@click.command("export-terms-to-file")
|
335
|
+
@click.option("--glossary-guid", help="GUID of Glossary to export", required=True)
|
336
|
+
@click.option("--file-name", help="Path of CSV file", required=True)
|
337
|
+
@click.option("--server", default=EGERIA_VIEW_SERVER, help="Egeria view server to use")
|
338
|
+
@click.option(
|
339
|
+
"--url", default=EGERIA_VIEW_SERVER_URL, help="URL of Egeria platform to connect to"
|
340
|
+
)
|
341
|
+
@click.option("--userid", default=EGERIA_USER, help="Egeria user")
|
342
|
+
@click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria user password")
|
343
|
+
@click.option("--timeout", default=60, help="Number of seconds to wait")
|
344
|
+
def export_terms(glossary_guid, file_name, server, url, userid, password, timeout):
|
345
|
+
"""Delete the glossary specified"""
|
346
|
+
m_client = EgeriaTech(server, url, user_id=userid, user_pwd=password)
|
347
|
+
token = m_client.create_egeria_bearer_token()
|
348
|
+
try:
|
349
|
+
result = m_client.export_glossary_to_csv(glossary_guid, file_name)
|
350
|
+
|
351
|
+
click.echo(
|
352
|
+
f"Exported {result} terms from glossary: {glossary_guid} into {file_name}"
|
353
|
+
)
|
354
|
+
|
355
|
+
except (InvalidParameterException, PropertyServerException) as e:
|
356
|
+
print_exception_response(e)
|
357
|
+
finally:
|
358
|
+
m_client.close_session()
|
commands/cli/egeria.py
CHANGED
@@ -43,6 +43,7 @@ from commands.cat.glossary_actions import (
|
|
43
43
|
list_glossaries,
|
44
44
|
create_term,
|
45
45
|
load_terms,
|
46
|
+
export_terms,
|
46
47
|
)
|
47
48
|
from commands.my.todo_actions import (
|
48
49
|
mark_todo_complete,
|
@@ -993,6 +994,7 @@ tell.add_command(reassign_todo)
|
|
993
994
|
tell.add_command(delete_todo)
|
994
995
|
tell.add_command(create_todo)
|
995
996
|
tell.add_command(load_terms)
|
997
|
+
tell.add_command(export_terms)
|
996
998
|
|
997
999
|
|
998
1000
|
@tell.group("survey")
|
commands/cli/egeria_cat.py
CHANGED
@@ -24,6 +24,7 @@ from commands.cat.glossary_actions import (
|
|
24
24
|
create_term,
|
25
25
|
load_terms,
|
26
26
|
list_glossaries,
|
27
|
+
export_terms,
|
27
28
|
)
|
28
29
|
from commands.cat.list_archives import display_archive_list
|
29
30
|
from commands.cat.list_assets import display_assets
|
@@ -575,6 +576,7 @@ tell.add_command(reassign_todo)
|
|
575
576
|
tell.add_command(delete_todo)
|
576
577
|
tell.add_command(create_todo)
|
577
578
|
tell.add_command(load_terms)
|
579
|
+
tell.add_command(export_terms)
|
578
580
|
|
579
581
|
|
580
582
|
@tell.group("survey")
|
@@ -1585,7 +1585,8 @@ class GlossaryManager(GlossaryBrowser):
|
|
1585
1585
|
examples = row.get("Examples", None)
|
1586
1586
|
usage = row.get("Usage", None)
|
1587
1587
|
version = row.get("Version Identifier", "1.0")
|
1588
|
-
status = row.get("Status", "DRAFT")
|
1588
|
+
status = row.get("Status", "DRAFT")
|
1589
|
+
status = status.upper()
|
1589
1590
|
|
1590
1591
|
# quality check the row
|
1591
1592
|
if len(term_name) < 2:
|
@@ -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=0JzXv1D7bOEiVZYaSgUJ4aKx6ZeYf-R_dmVwvL4COlM,13109
|
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
|
@@ -20,8 +20,8 @@ commands/cat/list_terms.py,sha256=8aS_TwQefU7FCqQiMIuX7BHRAcPRhyKosULEAOLfhyw,67
|
|
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
|
23
|
-
commands/cli/egeria.py,sha256=
|
24
|
-
commands/cli/egeria_cat.py,sha256=
|
23
|
+
commands/cli/egeria.py,sha256=l475S6iix6PlFcry-mOcSa_ne3XDnm1mKuVvgRFQVq0,31429
|
24
|
+
commands/cli/egeria_cat.py,sha256=7BSdRFWB5AMQC726fQZIBMEti5s469pA9HJ8mESaTCE,14964
|
25
25
|
commands/cli/egeria_my.py,sha256=9zIpUDLeA_R-0rgCSQfEZTtVmkxPcEAsYcCTn1wQFrE,6181
|
26
26
|
commands/cli/egeria_ops.py,sha256=fxDXYWXRhexx06PdSLCp2FhgUtS13NdDpyg7ea775fc,11531
|
27
27
|
commands/cli/egeria_tech.py,sha256=eTDHTHDVEYmr6gUPGfido_Uf7Fec0Nuyxlkhg4KAMAw,13160
|
@@ -92,7 +92,7 @@ pyegeria/egeria_tech_client.py,sha256=7NfqpJFft5GR4NPRDVDw22L9caHbXB8fhx0TAf6qEo
|
|
92
92
|
pyegeria/feedback_manager_omvs.py,sha256=B66e3ZCaC_dirb0mcb2Nz3PYh2ZKsoMAYNOb3euNiro,152931
|
93
93
|
pyegeria/full_omag_server_config.py,sha256=LBnqUiz1ofBdlKBzECFs_pQbdJwcWigAukWHGJRR2nU,47340
|
94
94
|
pyegeria/glossary_browser_omvs.py,sha256=NcitYaZJqwVODBO5zBtWpXPNUJJ3DKzEbRaOFSAyUlg,93554
|
95
|
-
pyegeria/glossary_manager_omvs.py,sha256=
|
95
|
+
pyegeria/glossary_manager_omvs.py,sha256=s9BxAa2UJk5kinS6-U9H6xKqZUG-lp7aqHdNdStaGLs,126294
|
96
96
|
pyegeria/mermaid_utilities.py,sha256=GXiS-subb5nJcDqlThZWX2T8WspU1neFfhf4TxRoMh4,8344
|
97
97
|
pyegeria/my_profile_omvs.py,sha256=DyECbUFEcgokrIbzdMMNljC3bqfqKGXAF2wZEpzvRYs,34666
|
98
98
|
pyegeria/platform_services.py,sha256=CJIOYIFEbcIGwdWlApAQcXxZTsdrhFtpJcm4O3p7dG0,41646
|
@@ -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.14.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
108
|
+
pyegeria-1.5.1.1.14.dist-info/METADATA,sha256=P4eRgum7zlrCNc2qYU6R05YcN8iqrlpg5nCRU7Sb1gQ,2998
|
109
|
+
pyegeria-1.5.1.1.14.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
110
|
+
pyegeria-1.5.1.1.14.dist-info/entry_points.txt,sha256=bmxD0DvBAXMQRU74qf5Jm-lZT6mSonssv_ZFK_uCP2c,4250
|
111
|
+
pyegeria-1.5.1.1.14.dist-info/RECORD,,
|
@@ -5,6 +5,7 @@ create_term=commands.cat.glossary_actions:create_term
|
|
5
5
|
create_todo=commands.my.todo_actions:create_todo
|
6
6
|
delete_glossary=commands.cat.glossary_actions:delete_glossary
|
7
7
|
delete_todo=commands.my.todo_actions:delete_todo
|
8
|
+
export_terms_to_file=commands.cat.glossary_actions:export_terms
|
8
9
|
get_asset_graph=commands.cat.get_asset_graph:main
|
9
10
|
get_collection=commands.cat.get_collection:main
|
10
11
|
get_element_info=commands.tech.get_element_info:main
|
File without changes
|
File without changes
|