pyegeria 1.5.1.1.12__tar.gz → 1.5.1.1.14__tar.gz

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.
Files changed (110) hide show
  1. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/PKG-INFO +1 -1
  2. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/glossary_actions.py +27 -0
  3. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cli/egeria.py +2 -0
  4. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cli/egeria_cat.py +2 -0
  5. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/glossary_manager_omvs.py +2 -1
  6. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyproject.toml +2 -1
  7. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/LICENSE +0 -0
  8. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/README.md +0 -0
  9. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/README.md +0 -0
  10. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/__init__.py +0 -0
  11. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/get_asset_graph.py +0 -0
  12. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/get_collection.py +0 -0
  13. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/get_project_dependencies.py +0 -0
  14. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/get_project_structure.py +0 -0
  15. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/get_tech_type_elements.py +0 -0
  16. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/get_tech_type_template.py +0 -0
  17. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/list_archives.py +0 -0
  18. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/list_assets.py +0 -0
  19. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/list_cert_types.py +0 -0
  20. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/list_deployed_catalogs.py +0 -0
  21. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/list_deployed_database_schemas.py +0 -0
  22. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/list_deployed_databases.py +0 -0
  23. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/list_projects.py +0 -0
  24. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/list_relationships.py +0 -0
  25. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/list_tech_types.py +0 -0
  26. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/list_terms.py +0 -0
  27. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/list_todos.py +0 -0
  28. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cat/list_user_ids.py +0 -0
  29. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cli/__init__.py +0 -0
  30. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cli/egeria_my.py +0 -0
  31. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cli/egeria_ops.py +0 -0
  32. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cli/egeria_tech.py +0 -0
  33. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/cli/ops_config.py +0 -0
  34. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/my/README.md +0 -0
  35. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/my/__init__.py +0 -0
  36. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/my/list_my_profile.py +0 -0
  37. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/my/list_my_roles.py +0 -0
  38. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/my/monitor_my_todos.py +0 -0
  39. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/my/monitor_open_todos.py +0 -0
  40. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/my/todo_actions.py +0 -0
  41. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/README.md +0 -0
  42. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/__init__.py +0 -0
  43. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/engine_actions.py +0 -0
  44. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/gov_server_actions.py +0 -0
  45. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/list_catalog_targets.py +0 -0
  46. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/load_archive.py +0 -0
  47. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/monitor_asset_events.py +0 -0
  48. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/monitor_engine_activity.py +0 -0
  49. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/monitor_engine_activity_c.py +0 -0
  50. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/monitor_gov_eng_status.py +0 -0
  51. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/monitor_integ_daemon_status.py +0 -0
  52. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/monitor_platform_status.py +0 -0
  53. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/monitor_server_startup.py +0 -0
  54. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/monitor_server_status.py +0 -0
  55. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/orig_monitor_server_list.py +0 -0
  56. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/orig_monitor_server_status.py +0 -0
  57. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/refresh_integration_daemon.py +0 -0
  58. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/restart_integration_daemon.py +0 -0
  59. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/ops/table_integ_daemon_status.py +0 -0
  60. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/README.md +0 -0
  61. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/__init__.py +0 -0
  62. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/get_element_graph.py +0 -0
  63. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/get_element_info.py +0 -0
  64. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/get_guid_info.py +0 -0
  65. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/get_tech_details.py +0 -0
  66. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/list_asset_types.py +0 -0
  67. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/list_elements.py +0 -0
  68. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/list_elements_for_classification.py +0 -0
  69. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/list_elements_x.py +0 -0
  70. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/list_gov_action_processes.py +0 -0
  71. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/list_registered_services.py +0 -0
  72. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/list_related_elements.py +0 -0
  73. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/list_related_specification.py +0 -0
  74. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/list_relationship_types.py +0 -0
  75. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/list_tech_templates.py +0 -0
  76. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/list_valid_metadata_values.py +0 -0
  77. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/table_tech_templates.py +0 -0
  78. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/commands/tech/x_list_related_elements.py +0 -0
  79. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/README.md +0 -0
  80. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/__init__.py +0 -0
  81. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/_client.py +0 -0
  82. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/_deprecated_gov_engine.py +0 -0
  83. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/_exceptions.py +0 -0
  84. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/_globals.py +0 -0
  85. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/_validators.py +0 -0
  86. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/asset_catalog_omvs.py +0 -0
  87. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/automated_curation_omvs.py +0 -0
  88. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/classification_manager_omvs.py +0 -0
  89. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/collection_manager_omvs.py +0 -0
  90. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/core_omag_server_config.py +0 -0
  91. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/create_tech_guid_lists.py +0 -0
  92. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/egeria_cat_client.py +0 -0
  93. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/egeria_client.py +0 -0
  94. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/egeria_config_client.py +0 -0
  95. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/egeria_my_client.py +0 -0
  96. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/egeria_tech_client.py +0 -0
  97. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/feedback_manager_omvs.py +0 -0
  98. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/full_omag_server_config.py +0 -0
  99. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/glossary_browser_omvs.py +0 -0
  100. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/mermaid_utilities.py +0 -0
  101. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/my_profile_omvs.py +0 -0
  102. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/platform_services.py +0 -0
  103. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/project_manager_omvs.py +0 -0
  104. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/registered_info.py +0 -0
  105. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/runtime_manager_omvs.py +0 -0
  106. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/server_operations.py +0 -0
  107. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/template_manager_omvs.py +0 -0
  108. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/utils.py +0 -0
  109. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/valid_metadata_omvs.py +0 -0
  110. {pyegeria-1.5.1.1.12 → pyegeria-1.5.1.1.14}/pyegeria/x_action_author_omvs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 1.5.1.1.12
3
+ Version: 1.5.1.1.14
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -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()
@@ -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")
@@ -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").upper()
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:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyegeria"
3
- version = "1.5.1.1.12"
3
+ version = "1.5.1.1.14"
4
4
  license = 'Apache 2.0'
5
5
  authors = ["Dan Wolfson <dan.wolfson@pdr-associates.com>"]
6
6
  readme = "README.md"
@@ -75,6 +75,7 @@ pytest = "^8.2.2"
75
75
  create_term = "commands.cat.glossary_actions:create_term"
76
76
  list_glossaries = "commands.cat.glossary_actions:list_glossaries"
77
77
  load_terms_from_file = "commands.cat.glossary_actions:load_terms"
78
+ export_terms_to_file = "commands.cat.glossary_actions:export_terms"
78
79
 
79
80
  monitor_asset_events = "commands.ops.monitor_asset_events:main"
80
81
  monitor_coco_status = "commands.ops.monitor_coco_status:main"
File without changes
File without changes