pyegeria 5.2.0.5__py3-none-any.whl → 5.2.0.7__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.
Files changed (37) hide show
  1. pyegeria/__init__.py +2 -0
  2. pyegeria/_client.py +7 -2
  3. pyegeria/asset_catalog_omvs.py +34 -0
  4. pyegeria/classification_manager_omvs.py +2 -3
  5. pyegeria/collection_manager_omvs.py +83 -39
  6. pyegeria/commands/cat/get_collection.py +22 -13
  7. pyegeria/commands/cat/list_collections.py +10 -5
  8. pyegeria/commands/cat/list_deployed_database_schemas.py +8 -14
  9. pyegeria/commands/cli/egeria.py +31 -38
  10. pyegeria/commands/cli/egeria_cat.py +8 -10
  11. pyegeria/commands/cli/egeria_my.py +1 -5
  12. pyegeria/commands/cli/egeria_ops.py +1 -1
  13. pyegeria/commands/cli/egeria_tech.py +6 -6
  14. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.30.02@2x.png +0 -0
  15. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.31.47@2x.png +0 -0
  16. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.32.11@2x.png +0 -0
  17. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.34.19@2x.png +0 -0
  18. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.36.42@2x.png +0 -0
  19. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.36.55@2x.png +0 -0
  20. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/CleanShot 2024-11-25 at 20.37.07@2x.png +0 -0
  21. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/catalogs 2024-11-25 at 16.28.53@2x.png +0 -0
  22. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-schemas 2024-11-25 at 20.14.50@2x.png +0 -0
  23. pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/deployed-servers 2024-11-25 at 20.21.25@2x.png +0 -0
  24. pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-glossaries 2024-11-25 at 20.30.02.png +0 -0
  25. pyegeria/commands/doc/Visual Command Reference/cat/show/glossary/list-terms 2024-11-25 at 20.32.11.png +0 -0
  26. pyegeria/commands/doc/Visual Command Reference/cat/show/info/asset-types 2024-11-25 at 20.34.19@2x.png +0 -0
  27. pyegeria/commands/doc/Visual Command Reference/cat/show/info/certification-types 2024-11-25 at 20.37.07.png +0 -0
  28. pyegeria/commands/tech/table_tech_templates.py +3 -1
  29. pyegeria/egeria_client.py +2 -0
  30. pyegeria/egeria_tech_client.py +5 -0
  31. pyegeria/metadata_explorer_omvs.py +2086 -0
  32. {pyegeria-5.2.0.5.dist-info → pyegeria-5.2.0.7.dist-info}/METADATA +1 -1
  33. {pyegeria-5.2.0.5.dist-info → pyegeria-5.2.0.7.dist-info}/RECORD +37 -22
  34. /pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/{CleanShot 2024-11-20 at 16.17.43@2x.png → deployed-data-catalogs-2024-11-20 at 16.17.43@2x.png} +0 -0
  35. {pyegeria-5.2.0.5.dist-info → pyegeria-5.2.0.7.dist-info}/LICENSE +0 -0
  36. {pyegeria-5.2.0.5.dist-info → pyegeria-5.2.0.7.dist-info}/WHEEL +0 -0
  37. {pyegeria-5.2.0.5.dist-info → pyegeria-5.2.0.7.dist-info}/entry_points.txt +0 -0
@@ -269,11 +269,7 @@ def show_my_profile(ctx):
269
269
  @my_show.command("my-roles")
270
270
  @click.pass_context
271
271
  def show_my_roles(ctx):
272
- """Display my profiles
273
-
274
- Usage: show my-profile
275
-
276
- """
272
+ """Display my roles"""
277
273
  c = ctx.obj
278
274
  display_my_roles(
279
275
  c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
@@ -363,8 +359,8 @@ def show_elements(ctx):
363
359
  @show_elements.command("guid-info")
364
360
  @click.argument("guid", nargs=1)
365
361
  @click.pass_context
366
- def show_guid_infos(ctx, guid):
367
- """Display a live status view of known platforms
362
+ def show_guid_info(ctx, guid):
363
+ """Display guid information
368
364
 
369
365
  Usage: show guid-info <a guid>
370
366
 
@@ -470,7 +466,7 @@ def show_tech_type_templates(ctx, tech_type):
470
466
  @show_tech_info.command("asset-types")
471
467
  @click.pass_context
472
468
  def show_asset_types(ctx):
473
- """Display engine-host status information"""
469
+ """Display asset types"""
474
470
  c = ctx.obj
475
471
  display_asset_types(
476
472
  c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
@@ -518,7 +514,7 @@ def show_registered_services(ctx, services):
518
514
  )
519
515
  @click.pass_context
520
516
  def show_relationship_types(ctx, rel_type):
521
- """Show information about the specified relationship type"""
517
+ """Show information about the specified relationship types"""
522
518
  c = ctx.obj
523
519
  display_relationship_types(
524
520
  rel_type,
@@ -545,7 +541,7 @@ def show_relationship_types(ctx, rel_type):
545
541
  )
546
542
  @click.pass_context
547
543
  def show_elements_by_classification(ctx, om_type, classification):
548
- """Show information about the specified relationship type"""
544
+ """Show elements by classification"""
549
545
  c = ctx.obj
550
546
  list_classified_elements(
551
547
  om_type,
@@ -575,8 +571,8 @@ def show_elements_by_classification(ctx, om_type, classification):
575
571
  help="Relationship type to follow.",
576
572
  )
577
573
  @click.pass_context
578
- def show_relationship_types(ctx, element_guid, om_type, rel_type):
579
- """Show information about the specified relationship type"""
574
+ def show_related_elements(ctx, element_guid, om_type, rel_type):
575
+ """Show elements related to specified guid"""
580
576
  c = ctx.obj
581
577
  list_related_elements(
582
578
  element_guid,
@@ -706,7 +702,7 @@ def list_element_info(ctx, om_type, extended):
706
702
  @show_tech_info.command("processes")
707
703
  @click.pass_context
708
704
  def list_element_info(ctx):
709
- """Display the valid metadata values for a property and type"""
705
+ """Display the governance action processes"""
710
706
  c = ctx.obj
711
707
  list_elements(
712
708
  "GovernanceActionProcess",
@@ -723,7 +719,7 @@ def list_element_info(ctx):
723
719
  @click.pass_context
724
720
  @click.option("--om_type", default="Project", help="Metadata type to query")
725
721
  def get_element_info(ctx, om_type):
726
- """Display a table of elements for an Open Metadata Type"""
722
+ """Display a table of elements of an Open Metadata Type"""
727
723
  c = ctx.obj
728
724
  display_elements(
729
725
  om_type,
@@ -776,11 +772,11 @@ def show_tech_types(ctx, tech_type):
776
772
  @show_cat_info.command("collections")
777
773
  @click.option("--collection", default="*", help="Collection to search for")
778
774
  @click.pass_context
779
- def show_collections(ctx, collections):
775
+ def show_collections(ctx, collection):
780
776
  """List Collections"""
781
777
  c = ctx.obj
782
778
  display_collections(
783
- collections, c.view_server, c.view_server_url, c.userid, c.password
779
+ collection, c.view_server, c.view_server_url, c.userid, c.password
784
780
  )
785
781
 
786
782
 
@@ -894,7 +890,7 @@ def show_terms(ctx, search_string, glossary_guid, glossary_name):
894
890
  @click.option("--search_string", default="*", help="Name to search for glossaries")
895
891
  @click.pass_context
896
892
  def glossaries(ctx, search_string):
897
- """Display a tree graph of information about an asset"""
893
+ """Display a list of glossaries"""
898
894
  c = ctx.obj
899
895
  display_glossaries(
900
896
  search_string,
@@ -907,15 +903,15 @@ def glossaries(ctx, search_string):
907
903
  )
908
904
 
909
905
 
910
- @show_cat_info.command("collection")
906
+ @show_cat_info.command("collection-graph")
911
907
  @click.option(
912
908
  "--root_collection",
913
- default="Root Sustainability Collection",
909
+ default="Coco Pharmaceuticals Governance Domains",
914
910
  help="View of tree of collections from a given root",
915
911
  )
916
912
  @click.pass_context
917
- def show_asset_graph(ctx, root_collection):
918
- """Display a tree graph of information about an asset"""
913
+ def show_collection(ctx, root_collection):
914
+ """Display collection graph"""
919
915
  c = ctx.obj
920
916
  collection_viewer(
921
917
  root_collection,
@@ -957,9 +953,7 @@ def show_projects(ctx, search_string):
957
953
  @click.option("--search-string", default="CertificationType", help="")
958
954
  @click.pass_context
959
955
  def show_certification_types(ctx, search_string):
960
- """Show certification types
961
- - generally stay with the default.
962
- """
956
+ """Show certification types"""
963
957
  c = ctx.obj
964
958
  display_certifications(
965
959
  search_string,
@@ -1041,7 +1035,7 @@ def show_project_dependencies(ctx, project):
1041
1035
  )
1042
1036
  @click.pass_context
1043
1037
  def show_todos(ctx, search_string, status):
1044
- """Display a tree graph of information about an asset"""
1038
+ """Display list of To Dost"""
1045
1039
  c = ctx.obj
1046
1040
  list_todos(
1047
1041
  search_string,
@@ -1058,7 +1052,7 @@ def show_todos(ctx, search_string, status):
1058
1052
  @show_cat_info.command("user-ids")
1059
1053
  @click.pass_context
1060
1054
  def show_todos(ctx):
1061
- """Display a list of known user ids"""
1055
+ """Display a list of known user-ids"""
1062
1056
  c = ctx.obj
1063
1057
  list_user_ids(
1064
1058
  c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
@@ -1192,9 +1186,7 @@ def show_tech_types(ctx, tech_type):
1192
1186
  @click.option("--search-string", default="CertificationType", help="")
1193
1187
  @click.pass_context
1194
1188
  def show_certification_types(ctx, search_string):
1195
- """Show certification types
1196
- - generally stay with the default..
1197
- """
1189
+ """Show certification types"""
1198
1190
  c = ctx.obj
1199
1191
  display_certifications(
1200
1192
  search_string,
@@ -1323,12 +1315,12 @@ def show_tech_type_elements(ctx, tech_type):
1323
1315
 
1324
1316
  @show_cat_info.command("collection")
1325
1317
  @click.option(
1326
- "--root_collection",
1327
- default="Root Sustainability Collection",
1318
+ "--root-collection",
1319
+ default="Coco Pharmaceuticals Governance Domains",
1328
1320
  help="View of tree of collections from a given root",
1329
1321
  )
1330
1322
  @click.pass_context
1331
- def show_asset_graph(ctx, root_collection):
1323
+ def show_collection(ctx, root_collection):
1332
1324
  """Display information about a collection"""
1333
1325
  c = ctx.obj
1334
1326
  collection_viewer(
@@ -1374,7 +1366,7 @@ def show_projects(ctx, search_string):
1374
1366
  )
1375
1367
  @click.pass_context
1376
1368
  def show_todos(ctx, search_string, status):
1377
- """Display a tree graph of information about an asset"""
1369
+ """Display a list of To Dos"""
1378
1370
  c = ctx.obj
1379
1371
  list_todos(
1380
1372
  search_string,
@@ -1401,7 +1393,7 @@ def show_user_ids(ctx):
1401
1393
  @show_server.command("archives")
1402
1394
  @click.pass_context
1403
1395
  def archives(ctx):
1404
- """Display a tree graph of information about an asset"""
1396
+ """Display a list of archivest"""
1405
1397
  c = ctx.obj
1406
1398
  display_archive_list(
1407
1399
  c.view_server,
@@ -1422,6 +1414,7 @@ def archives(ctx):
1422
1414
  )
1423
1415
  @click.pass_context
1424
1416
  def show_deployed_servers(ctx, search_string):
1417
+ """Show list of deployed servers"""
1425
1418
  c = ctx.obj
1426
1419
  display_servers_by_dep_imp(
1427
1420
  search_string,
@@ -1440,7 +1433,7 @@ def show_deployed_servers(ctx, search_string):
1440
1433
  )
1441
1434
  @click.pass_context
1442
1435
  def deployed_schemas(ctx, search_catalog):
1443
- """Display a tree graph of information about an asset"""
1436
+ """Display a list of deployed schemas"""
1444
1437
  c = ctx.obj
1445
1438
  list_deployed_database_schemas(
1446
1439
  search_catalog,
@@ -1457,7 +1450,7 @@ def deployed_schemas(ctx, search_catalog):
1457
1450
  @click.option("--search_server", default="*", help="Server to search for catalogs")
1458
1451
  @click.pass_context
1459
1452
  def catalogs(ctx, search_server):
1460
- """Display a tree graph of information about an asset"""
1453
+ """Display a list of deployed catalogs"""
1461
1454
  c = ctx.obj
1462
1455
  list_deployed_catalogs(
1463
1456
  search_server,
@@ -1473,7 +1466,7 @@ def catalogs(ctx, search_server):
1473
1466
  @deployed_data.command("databases")
1474
1467
  @click.pass_context
1475
1468
  def databases(ctx):
1476
- """Display a tree graph of information about an asset"""
1469
+ """Display a list of deployed databases"""
1477
1470
  c = ctx.obj
1478
1471
  list_deployed_databases(
1479
1472
  c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
@@ -1484,7 +1477,7 @@ def databases(ctx):
1484
1477
  @click.option("--search_string", default="*", help="Name to search for glossaries")
1485
1478
  @click.pass_context
1486
1479
  def glossaries(ctx, search_string):
1487
- """Display a tree graph of information about an asset"""
1480
+ """Display a list of glossaries"""
1488
1481
  c = ctx.obj
1489
1482
  display_glossaries(
1490
1483
  search_string,
@@ -222,11 +222,11 @@ def show_tech_types(ctx, tech_type):
222
222
  @info.command("collections")
223
223
  @click.option("--collection", default="*", help="Collection to search for")
224
224
  @click.pass_context
225
- def show_collections(ctx, collections):
225
+ def show_collections(ctx, collection):
226
226
  """List Collections"""
227
227
  c = ctx.obj
228
228
  display_collections(
229
- collections, c.view_server, c.view_server_url, c.userid, c.password
229
+ collection, c.view_server, c.view_server_url, c.userid, c.password
230
230
  )
231
231
 
232
232
 
@@ -340,7 +340,7 @@ def show_terms(ctx, search_string, glossary_guid, glossary_name):
340
340
  @click.option("--search_string", default="*", help="Name to search for glossaries")
341
341
  @click.pass_context
342
342
  def glossaries(ctx, search_string):
343
- """Display information about a collection"""
343
+ """Display a list of glossaries"""
344
344
  c = ctx.obj
345
345
  display_glossaries(
346
346
  search_string,
@@ -356,12 +356,12 @@ def glossaries(ctx, search_string):
356
356
  @info.command("collection")
357
357
  @click.option(
358
358
  "--root_collection",
359
- default="Root Sustainability Collection",
359
+ default="Digital Product Root",
360
360
  help="View of tree of collections from a given root",
361
361
  )
362
362
  @click.pass_context
363
- def show_asset_graph(ctx, root_collection):
364
- """Display a tree graph of information about an asset"""
363
+ def show_collection(ctx, root_collection):
364
+ """Display a collection"""
365
365
  c = ctx.obj
366
366
  collection_viewer(
367
367
  root_collection,
@@ -403,9 +403,7 @@ def show_projects(ctx, search_string):
403
403
  @click.option("--search-string", default="CertificationType", help="")
404
404
  @click.pass_context
405
405
  def show_certification_types(ctx, search_string):
406
- """Show certification types
407
- - generally stay with the default.
408
- """
406
+ """Show certification types"""
409
407
  c = ctx.obj
410
408
  display_certifications(
411
409
  search_string,
@@ -477,7 +475,7 @@ def show_project_dependencies(ctx, project):
477
475
  )
478
476
  @click.pass_context
479
477
  def show_todos(ctx, search_string, status):
480
- """Display a tree graph of information about an asset"""
478
+ """Display a list of To Dos"""
481
479
  c = ctx.obj
482
480
  list_todos(
483
481
  search_string,
@@ -193,11 +193,7 @@ def show_my_profile(ctx):
193
193
  @show.command("my-roles")
194
194
  @click.pass_context
195
195
  def show_my_roles(ctx):
196
- """Display my profiles
197
-
198
- Usage: show my-profile
199
-
200
- """
196
+ """Display my roles"""
201
197
  c = ctx.obj
202
198
  display_my_roles(
203
199
  c.view_server, c.view_server_url, c.userid, c.password, c.jupyter, c.width
@@ -254,7 +254,7 @@ def show_startup_status(ctx):
254
254
  @show_server.command("archives")
255
255
  @click.pass_context
256
256
  def list_archives(ctx):
257
- """Display a tree graph of information about an asset"""
257
+ """Display a list of archives"""
258
258
  c = ctx.obj
259
259
  display_archive_list(
260
260
  c.view_server,
@@ -23,7 +23,7 @@ from pyegeria.commands.tech.list_relationship_types import display_relationship_
23
23
  from pyegeria.commands.tech.list_tech_templates import display_templates_spec
24
24
  from pyegeria.commands.tech.list_valid_metadata_values import display_metadata_values
25
25
  from pyegeria.commands.tech.get_tech_type_template import template_viewer
26
- from pyegeria.commands.tech.list_anchored_elements import display_element_graph
26
+ from pyegeria.commands.tech.list_anchored_elements import display_anchored_elements
27
27
  from pyegeria.commands.tech.list_elements import list_elements
28
28
 
29
29
  from pyegeria.commands.tech.get_element_info import display_elements
@@ -214,7 +214,7 @@ def show_elements(ctx):
214
214
  @click.argument("guid", nargs=1)
215
215
  @click.pass_context
216
216
  def show_guid_infos(ctx, guid):
217
- """Display a live status view of known platforms
217
+ """Display guid information
218
218
 
219
219
  Usage: show guid-info <a guid>
220
220
 
@@ -249,7 +249,7 @@ def show_related_specifications(ctx, element_guid):
249
249
  def list_element_graph(ctx, search_string: str, prop_list: str):
250
250
  """List elements with the specified properties"""
251
251
  c = ctx.obj
252
- display_element_graph(
252
+ display_anchored_elements(
253
253
  search_string,
254
254
  prop_list,
255
255
  c.view_server,
@@ -400,7 +400,7 @@ def show_relationship_types(ctx, rel_type):
400
400
  )
401
401
  @click.pass_context
402
402
  def show_elements_by_classification(ctx, om_type, classification):
403
- """Show information about the specified relationship type"""
403
+ """Show elements by classification"""
404
404
  c = ctx.obj
405
405
  list_classified_elements(
406
406
  om_type,
@@ -430,8 +430,8 @@ def show_elements_by_classification(ctx, om_type, classification):
430
430
  help="Relationship type to follow.",
431
431
  )
432
432
  @click.pass_context
433
- def show_relationship_types(ctx, element_guid, om_type, rel_type):
434
- """Show information about the specified relationship type"""
433
+ def show_related_elements(ctx, element_guid, om_type, rel_type):
434
+ """Show information about related elements"""
435
435
  c = ctx.obj
436
436
  list_related_elements(
437
437
  element_guid,
@@ -181,6 +181,7 @@ def display_templates_spec(
181
181
  sys.exit(1)
182
182
 
183
183
  try:
184
+ start_time = time.perf_counter()
184
185
  if data_table:
185
186
  return generate_table(data_table)
186
187
  else:
@@ -188,7 +189,8 @@ def display_templates_spec(
188
189
 
189
190
  with console.pager(styles=True):
190
191
  console.print(generate_table(data_table))
191
-
192
+ duration = time.perf_counter() - start_time
193
+ print(f"\n\n\t Search string {search_string}\tDuration was {duration:.2f}\n")
192
194
  except (
193
195
  InvalidParameterException,
194
196
  PropertyServerException,
pyegeria/egeria_client.py CHANGED
@@ -28,6 +28,7 @@ from pyegeria import (
28
28
  ValidMetadataManager,
29
29
  FullServerConfig,
30
30
  EgeriaConfig,
31
+ MetadataExplorer,
31
32
  )
32
33
 
33
34
 
@@ -48,6 +49,7 @@ class Egeria(
48
49
  RegisteredInfo,
49
50
  # TemplateManager,
50
51
  ValidMetadataManager,
52
+ MetadataExplorer,
51
53
  ):
52
54
  """
53
55
  Client to issue Runtime status requests.
@@ -23,6 +23,7 @@ from pyegeria import (
23
23
  RuntimeManager,
24
24
  TEMPLATE_GUIDS,
25
25
  INTEGRATION_GUIDS,
26
+ MetadataExplorer,
26
27
  )
27
28
 
28
29
 
@@ -34,6 +35,7 @@ class EgeriaTech(
34
35
  RegisteredInfo,
35
36
  RuntimeManager,
36
37
  ValidMetadataManager,
38
+ MetadataExplorer,
37
39
  ):
38
40
  """
39
41
  Client for technical Egeria users.
@@ -82,6 +84,9 @@ class EgeriaTech(
82
84
  ValidMetadataManager.__init__(
83
85
  self, view_server, platform_url, user_id, user_pwd, token
84
86
  )
87
+ MetadataExplorer.__init__(
88
+ self, view_server, platform_url, user_id, user_pwd, token
89
+ )
85
90
 
86
91
 
87
92
  if __name__ == "__main__":