pyegeria 5.3.2__py3-none-any.whl → 5.3.3.dev1__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/classification_manager_omvs.py +4 -4
- pyegeria/commands/__init__.py +6 -0
- pyegeria/commands/cat/list_terms.py +4 -2
- pyegeria/commands/cli/egeria.py +207 -72
- pyegeria/commands/cli/egeria_ops.py +2 -2
- pyegeria/commands/cli/egeria_tech.py +253 -143
- pyegeria/commands/ops/monitor_integ_daemon_status.py +1 -1
- pyegeria/commands/ops/monitor_server_status.py +1 -1
- pyegeria/commands/tech/{list_elements.py → list_all_om_type_elements.py} +2 -2
- pyegeria/commands/tech/{list_elements_x.py → list_all_om_type_elements_x.py} +2 -2
- pyegeria/commands/tech/{list_related_elements.py → list_all_related_elements.py} +1 -1
- pyegeria/commands/tech/list_anchored_elements.py +12 -12
- pyegeria/commands/tech/list_elements_by_classification_by_property_value.py +186 -0
- pyegeria/commands/tech/list_elements_by_property_value.py +175 -0
- pyegeria/commands/tech/list_elements_by_property_value_x.py +196 -0
- pyegeria/commands/tech/list_elements_for_classification.py +1 -1
- pyegeria/commands/tech/list_related_elements_with_prop_value.py +207 -0
- pyegeria/commands/tech/x_list_related_elements.py +1 -1
- pyegeria/valid_metadata_omvs.py +1 -1
- {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.dev1.dist-info}/METADATA +4 -3
- {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.dev1.dist-info}/RECORD +24 -20
- {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.dev1.dist-info}/WHEEL +1 -1
- {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.dev1.dist-info}/entry_points.txt +7 -2
- {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.dev1.dist-info}/LICENSE +0 -0
@@ -802,7 +802,7 @@ class ClassificationManager(Client):
|
|
802
802
|
async def _async_get_element_guid_by_unique_name(
|
803
803
|
self,
|
804
804
|
name: str,
|
805
|
-
property_name: str =
|
805
|
+
property_name: str = 'qualifiedName',
|
806
806
|
for_lineage: bool = False,
|
807
807
|
for_duplicate_processing: bool = False,
|
808
808
|
effective_time: str = None,
|
@@ -816,7 +816,7 @@ class ClassificationManager(Client):
|
|
816
816
|
----------
|
817
817
|
name: str
|
818
818
|
- element name to be searched.
|
819
|
-
property_name: str, optional
|
819
|
+
property_name: str, optional, default = "qualifiedName"
|
820
820
|
- optional name of property to search. If not specified, defaults to qualifiedName
|
821
821
|
for_lineage: bool, default is set by server
|
822
822
|
- determines if elements classified as Memento should be returned - normally false
|
@@ -873,7 +873,7 @@ class ClassificationManager(Client):
|
|
873
873
|
def get_element_guid_by_unique_name(
|
874
874
|
self,
|
875
875
|
name: str,
|
876
|
-
property_name: str =
|
876
|
+
property_name: str = "qualifiedName",
|
877
877
|
for_lineage: bool = None,
|
878
878
|
for_duplicate_processing: bool = None,
|
879
879
|
effective_time: str = None,
|
@@ -887,7 +887,7 @@ class ClassificationManager(Client):
|
|
887
887
|
----------
|
888
888
|
name: str
|
889
889
|
- element name to be searched.
|
890
|
-
property_name: str, optional
|
890
|
+
property_name: str, optional, default = "qualifiedName"
|
891
891
|
- optional name of property to search. If not specified, defaults to qualifiedName
|
892
892
|
for_lineage: bool, default is set by server
|
893
893
|
- determines if elements classified as Memento should be returned - normally false
|
pyegeria/commands/__init__.py
CHANGED
@@ -20,3 +20,9 @@ from .cat.list_terms import display_glossary_terms
|
|
20
20
|
from .cat.list_deployed_catalogs import list_deployed_catalogs
|
21
21
|
from .cat.list_deployed_database_schemas import list_deployed_database_schemas
|
22
22
|
from .cat.list_deployed_databases import list_deployed_databases
|
23
|
+
from .tech.list_elements_by_property_value import EGERIA_WIDTH
|
24
|
+
|
25
|
+
|
26
|
+
def list_integration_daemon_status(search_list:str, width:int=EGERIA_WIDTH, sort:bool = True):
|
27
|
+
table_integ_daemon_status(search_list = search_list, paging=True,
|
28
|
+
width=width, sort=sort)
|
@@ -218,9 +218,11 @@ def main():
|
|
218
218
|
|
219
219
|
args = parser.parse_args()
|
220
220
|
|
221
|
-
server = args.server if args.server is not None else EGERIA_VIEW_SERVER
|
221
|
+
# server = args.server if args.server is not None else EGERIA_VIEW_SERVER
|
222
|
+
server = args.server if args.server is not None else 'qs-view-server'
|
223
|
+
|
222
224
|
url = args.url if args.url is not None else EGERIA_PLATFORM_URL
|
223
|
-
userid = args.userid if args.userid is not None else EGERIA_USER
|
225
|
+
userid = args.userid if args.userid is not None else 'EGERIA_USER'
|
224
226
|
user_pass = args.password if args.password is not None else EGERIA_USER_PASSWORD
|
225
227
|
guid = args.guid if args.guid is not None else EGERIA_HOME_GLOSSARY_GUID
|
226
228
|
|
pyegeria/commands/cli/egeria.py
CHANGED
@@ -29,7 +29,6 @@ from pyegeria.commands.cat.list_cert_types import display_certifications
|
|
29
29
|
from pyegeria.commands.cat.list_terms import display_glossary_terms
|
30
30
|
from pyegeria.commands.cat.list_projects import display_project_list
|
31
31
|
from pyegeria.commands.tech.list_anchored_elements import display_anchored_elements
|
32
|
-
from pyegeria.commands.tech.list_elements_x import list_elements_x
|
33
32
|
from pyegeria.commands.tech.list_relationships import list_relationships
|
34
33
|
from pyegeria.commands.cat.list_tech_types import display_tech_types
|
35
34
|
from pyegeria.commands.cat.list_todos import display_to_dos as list_todos
|
@@ -99,12 +98,19 @@ from pyegeria.commands.tech.list_asset_types import display_asset_types
|
|
99
98
|
from pyegeria.commands.tech.list_elements_for_classification import (
|
100
99
|
list_classified_elements,
|
101
100
|
)
|
102
|
-
from pyegeria.commands.tech.
|
101
|
+
from pyegeria.commands.tech.list_all_om_type_elements import list_elements
|
102
|
+
from pyegeria.commands.tech.list_all_om_type_elements_x import list_elements_x
|
103
|
+
from pyegeria.commands.tech.list_elements_by_classification_by_property_value import find_elements_by_classification_by_prop_value
|
104
|
+
from pyegeria.commands.tech.list_elements_by_property_value import find_elements_by_prop_value
|
105
|
+
from pyegeria.commands.tech.list_elements_by_property_value_x import find_elements_by_prop_value_x
|
106
|
+
from pyegeria.commands.tech.list_related_elements_with_prop_value import list_related_elements_with_prop_value
|
107
|
+
|
108
|
+
|
103
109
|
from pyegeria.commands.tech.list_registered_services import display_registered_svcs
|
104
110
|
from pyegeria.commands.tech.list_related_specification import (
|
105
111
|
display_related_specification,
|
106
112
|
)
|
107
|
-
from pyegeria.commands.tech.
|
113
|
+
from pyegeria.commands.tech.list_all_related_elements import list_related_elements
|
108
114
|
|
109
115
|
from pyegeria.commands.tech.list_relationship_types import display_relationship_types
|
110
116
|
from pyegeria.commands.tech.list_tech_templates import display_templates_spec
|
@@ -382,7 +388,7 @@ def show_guid_info(ctx, guid):
|
|
382
388
|
@show_elements.command("anchored_elements")
|
383
389
|
@click.pass_context
|
384
390
|
@click.option(
|
385
|
-
"--
|
391
|
+
"--property_value",
|
386
392
|
default="DeployedDatabaseSchema",
|
387
393
|
help="value we are searching for",
|
388
394
|
)
|
@@ -391,8 +397,8 @@ def show_guid_info(ctx, guid):
|
|
391
397
|
default="anchorTypeName",
|
392
398
|
help="List of properties we are searching",
|
393
399
|
)
|
394
|
-
def list_anchored_elements(ctx,
|
395
|
-
"""List elements with the specified properties"""
|
400
|
+
def list_anchored_elements(ctx, property_value: str, prop_list: str):
|
401
|
+
"""List anchored elements with the specified properties"""
|
396
402
|
c = ctx.obj
|
397
403
|
if type(prop_list) is str:
|
398
404
|
property_names = prop_list.split(",")
|
@@ -403,7 +409,7 @@ def list_anchored_elements(ctx, search_string: str, prop_list: str):
|
|
403
409
|
print(f"\nError --> Invalid property list - must be a string or list")
|
404
410
|
sys.exit(4)
|
405
411
|
display_anchored_elements(
|
406
|
-
|
412
|
+
property_value,
|
407
413
|
[prop_list],
|
408
414
|
c.view_server,
|
409
415
|
c.view_server_url,
|
@@ -414,6 +420,191 @@ def list_anchored_elements(ctx, search_string: str, prop_list: str):
|
|
414
420
|
c.width,
|
415
421
|
)
|
416
422
|
|
423
|
+
@show_elements.command("elements-by-classification")
|
424
|
+
@click.option(
|
425
|
+
"--om-type",
|
426
|
+
default="Referenceable",
|
427
|
+
help="Open Metadata type to filter by",
|
428
|
+
)
|
429
|
+
@click.option(
|
430
|
+
"--classification",
|
431
|
+
default="GovernanceProject",
|
432
|
+
help="Classification to filter byt",
|
433
|
+
)
|
434
|
+
@click.pass_context
|
435
|
+
def show_elements_by_classification(ctx, om_type, classification):
|
436
|
+
"""Show elements by classification"""
|
437
|
+
c = ctx.obj
|
438
|
+
list_classified_elements(
|
439
|
+
om_type,
|
440
|
+
classification,
|
441
|
+
c.view_server,
|
442
|
+
c.view_server_url,
|
443
|
+
c.userid,
|
444
|
+
c.password,
|
445
|
+
c.jupyter,
|
446
|
+
c.width,
|
447
|
+
)
|
448
|
+
|
449
|
+
@show_elements.command("elements-by-classification-by-prop-value")
|
450
|
+
@click.option(
|
451
|
+
"--classification",
|
452
|
+
default="GovernanceProject",
|
453
|
+
help="Classification to filter by",
|
454
|
+
)
|
455
|
+
@click.option(
|
456
|
+
"--property_value",
|
457
|
+
help="Property value to filter by",
|
458
|
+
)
|
459
|
+
@click.option(
|
460
|
+
"--property_names",
|
461
|
+
help="List of properties to search by",
|
462
|
+
)
|
463
|
+
@click.option(
|
464
|
+
"--om-type",
|
465
|
+
default="Referenceable",
|
466
|
+
help="Open Metadata type to filter by",
|
467
|
+
)
|
468
|
+
@click.pass_context
|
469
|
+
def show_elements_by_classification_by_prop(ctx, classification, property_value, property_names, om_type):
|
470
|
+
"""Show elements by classification and property value"""
|
471
|
+
c = ctx.obj
|
472
|
+
find_elements_by_classification_by_prop_value(
|
473
|
+
om_type,
|
474
|
+
classification,
|
475
|
+
property_value,
|
476
|
+
[property_names],
|
477
|
+
c.view_server,
|
478
|
+
c.view_server_url,
|
479
|
+
c.userid,
|
480
|
+
c.password,
|
481
|
+
c.jupyter,
|
482
|
+
c.width,
|
483
|
+
)
|
484
|
+
|
485
|
+
@show_elements.command("elements-by-prop-value")
|
486
|
+
@click.option(
|
487
|
+
"--property_value",
|
488
|
+
help="Property value to filter by",
|
489
|
+
)
|
490
|
+
@click.option(
|
491
|
+
"--property_names",
|
492
|
+
help="List of properties to search by",
|
493
|
+
)
|
494
|
+
@click.option(
|
495
|
+
"--om-type",
|
496
|
+
default="Referenceable",
|
497
|
+
help="Open Metadata type to filter by",
|
498
|
+
)
|
499
|
+
@click.option(
|
500
|
+
"--extended",
|
501
|
+
is_flag=True,
|
502
|
+
default=False,
|
503
|
+
help="If True, feedback information is displayed",
|
504
|
+
)
|
505
|
+
@click.pass_context
|
506
|
+
def show_elements_by_classification_by_prop(ctx,property_value, property_names, om_type, extended):
|
507
|
+
"""Show elements by classification and property value"""
|
508
|
+
c = ctx.obj
|
509
|
+
if extended:
|
510
|
+
find_elements_by_prop_value_x(
|
511
|
+
om_type,
|
512
|
+
property_value,
|
513
|
+
[property_names],
|
514
|
+
c.view_server,
|
515
|
+
c.view_server_url,
|
516
|
+
c.userid,
|
517
|
+
c.password,
|
518
|
+
c.jupyter,
|
519
|
+
c.width,
|
520
|
+
)
|
521
|
+
else:
|
522
|
+
find_elements_by_prop_value(
|
523
|
+
om_type,
|
524
|
+
property_value,
|
525
|
+
[property_names],
|
526
|
+
c.view_server,
|
527
|
+
c.view_server_url,
|
528
|
+
c.userid,
|
529
|
+
c.password,
|
530
|
+
c.jupyter,
|
531
|
+
c.width,
|
532
|
+
)
|
533
|
+
|
534
|
+
@show_elements.command("related-elements")
|
535
|
+
@click.option(
|
536
|
+
"--element-guid",
|
537
|
+
help="GUID of the Element to navigate from.",
|
538
|
+
)
|
539
|
+
@click.option(
|
540
|
+
"--om-type",
|
541
|
+
default="Referenceable",
|
542
|
+
help="Open metadata type to filter by.",
|
543
|
+
)
|
544
|
+
@click.option(
|
545
|
+
"--rel-type",
|
546
|
+
default="Certification",
|
547
|
+
help="Relationship type to follow.",
|
548
|
+
)
|
549
|
+
@click.pass_context
|
550
|
+
def show_related_elements(ctx, element_guid, om_type, rel_type):
|
551
|
+
"""Show all elements related to specified guid"""
|
552
|
+
c = ctx.obj
|
553
|
+
list_related_elements(
|
554
|
+
element_guid,
|
555
|
+
om_type,
|
556
|
+
rel_type,
|
557
|
+
c.view_server,
|
558
|
+
c.view_server_url,
|
559
|
+
c.userid,
|
560
|
+
c.password,
|
561
|
+
c.jupyter,
|
562
|
+
c.width,
|
563
|
+
)
|
564
|
+
|
565
|
+
|
566
|
+
@show_elements.command("related-elements_by_prop")
|
567
|
+
@click.option(
|
568
|
+
"--element-guid",
|
569
|
+
help="GUID of the Element to navigate from.",
|
570
|
+
)
|
571
|
+
@click.option(
|
572
|
+
"--rel-type",
|
573
|
+
default="Certification",
|
574
|
+
help="Relationship type to follow.",
|
575
|
+
)
|
576
|
+
@click.option(
|
577
|
+
"--property_value",
|
578
|
+
help="Property value to filter by",
|
579
|
+
)
|
580
|
+
@click.option(
|
581
|
+
"--property_names",
|
582
|
+
help="List of properties to search by",
|
583
|
+
)
|
584
|
+
@click.option(
|
585
|
+
"--om-type",
|
586
|
+
default="Referenceable",
|
587
|
+
help="Open metadata type to filter by.",
|
588
|
+
)
|
589
|
+
|
590
|
+
@click.pass_context
|
591
|
+
def show_related_elements(ctx, element_guid, rel_type, property_value, property_names, om_type):
|
592
|
+
"""Show elements related to specified guid and property value"""
|
593
|
+
c = ctx.obj
|
594
|
+
list_related_elements_with_prop_value(
|
595
|
+
element_guid,
|
596
|
+
rel_type,
|
597
|
+
property_value,
|
598
|
+
[property_names],
|
599
|
+
om_type,
|
600
|
+
c.view_server,
|
601
|
+
c.view_server_url,
|
602
|
+
c.userid,
|
603
|
+
c.password,
|
604
|
+
c.jupyter,
|
605
|
+
c.width,
|
606
|
+
)
|
607
|
+
|
417
608
|
|
418
609
|
@show_elements.command("related-specifications")
|
419
610
|
@click.pass_context
|
@@ -534,7 +725,7 @@ def show_registered_services(ctx, services):
|
|
534
725
|
@show_tech_info.command("relationship-types")
|
535
726
|
@click.option(
|
536
727
|
"--om-type",
|
537
|
-
default="
|
728
|
+
default="Referenceable",
|
538
729
|
help="Relationship type to get information about",
|
539
730
|
)
|
540
731
|
@click.pass_context
|
@@ -553,64 +744,8 @@ def show_relationship_types(ctx, om_type):
|
|
553
744
|
)
|
554
745
|
|
555
746
|
|
556
|
-
@show_elements.command("elements-by-classification")
|
557
|
-
@click.option(
|
558
|
-
"--om-type",
|
559
|
-
default="Project",
|
560
|
-
help="Open Metadata type to filter by",
|
561
|
-
)
|
562
|
-
@click.option(
|
563
|
-
"--classification",
|
564
|
-
default="GovernanceProject",
|
565
|
-
help="Classification to filter byt",
|
566
|
-
)
|
567
|
-
@click.pass_context
|
568
|
-
def show_elements_by_classification(ctx, om_type, classification):
|
569
|
-
"""Show elements by classification"""
|
570
|
-
c = ctx.obj
|
571
|
-
list_classified_elements(
|
572
|
-
om_type,
|
573
|
-
classification,
|
574
|
-
c.view_server,
|
575
|
-
c.view_server_url,
|
576
|
-
c.userid,
|
577
|
-
c.password,
|
578
|
-
c.jupyter,
|
579
|
-
c.width,
|
580
|
-
)
|
581
747
|
|
582
748
|
|
583
|
-
@show_elements.command("related-elements")
|
584
|
-
@click.option(
|
585
|
-
"--element-guid",
|
586
|
-
help="GUID of the Element to navigate from.",
|
587
|
-
)
|
588
|
-
@click.option(
|
589
|
-
"--om-type",
|
590
|
-
default="Project",
|
591
|
-
help="Open metadata type to filter by.",
|
592
|
-
)
|
593
|
-
@click.option(
|
594
|
-
"--rel-type",
|
595
|
-
default="Certification",
|
596
|
-
help="Relationship type to follow.",
|
597
|
-
)
|
598
|
-
@click.pass_context
|
599
|
-
def show_related_elements(ctx, element_guid, om_type, rel_type):
|
600
|
-
"""Show elements related to specified guid"""
|
601
|
-
c = ctx.obj
|
602
|
-
list_related_elements(
|
603
|
-
element_guid,
|
604
|
-
om_type,
|
605
|
-
rel_type,
|
606
|
-
c.view_server,
|
607
|
-
c.view_server_url,
|
608
|
-
c.userid,
|
609
|
-
c.password,
|
610
|
-
c.jupyter,
|
611
|
-
c.width,
|
612
|
-
)
|
613
|
-
|
614
749
|
|
615
750
|
@show_tech_type.command("template-spec")
|
616
751
|
@click.pass_context
|
@@ -698,9 +833,9 @@ def valid_metadata_values(ctx, property, type_name):
|
|
698
833
|
default=False,
|
699
834
|
help="If True, feedback information is displayed",
|
700
835
|
)
|
701
|
-
@click.option("--om_type", default="
|
702
|
-
def
|
703
|
-
"""Display elements of a specific Open Metadata Type"""
|
836
|
+
@click.option("--om_type", default="Referenceable", help="Metadata type to query")
|
837
|
+
def list_all_om_type_elements(ctx, om_type, extended):
|
838
|
+
"""Display all elements of a specific Open Metadata Type"""
|
704
839
|
c = ctx.obj
|
705
840
|
if extended:
|
706
841
|
list_elements_x(
|
@@ -710,7 +845,7 @@ def list_element_info(ctx, om_type, extended):
|
|
710
845
|
c.userid,
|
711
846
|
c.password,
|
712
847
|
c.jupyter,
|
713
|
-
c.width
|
848
|
+
c.width
|
714
849
|
)
|
715
850
|
else:
|
716
851
|
list_elements(
|
@@ -720,7 +855,7 @@ def list_element_info(ctx, om_type, extended):
|
|
720
855
|
c.userid,
|
721
856
|
c.password,
|
722
857
|
c.jupyter,
|
723
|
-
c.width
|
858
|
+
c.width
|
724
859
|
)
|
725
860
|
|
726
861
|
|
@@ -742,7 +877,7 @@ def list_element_info(ctx):
|
|
742
877
|
|
743
878
|
@show_elements.command("get-elements")
|
744
879
|
@click.pass_context
|
745
|
-
@click.option("--om_type", default="
|
880
|
+
@click.option("--om_type", default="Referenceable", help="Metadata type to query")
|
746
881
|
def get_element_info(ctx, om_type):
|
747
882
|
"""Display a table of elements of an Open Metadata Type"""
|
748
883
|
c = ctx.obj
|
@@ -1622,12 +1757,12 @@ def engine_host(ctx):
|
|
1622
1757
|
)
|
1623
1758
|
|
1624
1759
|
@click.pass_context
|
1625
|
-
def gov_eng_status(ctx, engine_list,
|
1760
|
+
def gov_eng_status(ctx, engine_list, list):
|
1626
1761
|
"""Display engine-host status information"""
|
1627
1762
|
c = ctx.obj
|
1628
1763
|
display_gov_eng_status(
|
1629
1764
|
[engine_list],
|
1630
|
-
engine_host=engine_host,
|
1765
|
+
engine_host=c.engine_host,
|
1631
1766
|
view_server=c.view_server,
|
1632
1767
|
url=c.view_server_url,
|
1633
1768
|
username=c.userid,
|
@@ -297,12 +297,12 @@ def engine_host(ctx):
|
|
297
297
|
"--list", is_flag=True, default=False, help="If True, a paged list will be shown"
|
298
298
|
)
|
299
299
|
@click.pass_context
|
300
|
-
def gov_eng_status(ctx, engine_list,
|
300
|
+
def gov_eng_status(ctx, engine_list, list):
|
301
301
|
"""Display engine-host status information"""
|
302
302
|
c = ctx.obj
|
303
303
|
display_gov_eng_status(
|
304
304
|
[engine_list],
|
305
|
-
engine_host=engine_host,
|
305
|
+
engine_host=c.engine_host,
|
306
306
|
view_server=c.view_server,
|
307
307
|
url=c.view_server_url,
|
308
308
|
username=c.userid,
|