pyegeria 5.3.2__py3-none-any.whl → 5.3.3__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/classification_manager_omvs.py +4 -4
- pyegeria/commands/.DS_Store +0 -0
- pyegeria/commands/cli/egeria.py +200 -65
- pyegeria/commands/cli/egeria_tech.py +249 -139
- pyegeria/commands/doc/.DS_Store +0 -0
- pyegeria/commands/doc/Visual Command Reference/.DS_Store +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/.DS_Store +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/.DS_Store +0 -0
- pyegeria/commands/doc/Visual Command Reference/cat/show/deployed-data/.DS_Store +0 -0
- pyegeria/commands/doc/glossary/.DS_Store +0 -0
- pyegeria/commands/doc/glossary/images/.DS_Store +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/images/.DS_Store +0 -0
- pyegeria/commands/tech/{list_elements.py → list_all_om_type_elements.py} +1 -1
- pyegeria/commands/tech/{list_elements_x.py → list_all_om_type_elements_x.py} +1 -1
- 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_related_elements_with_prop_value.py +207 -0
- pyegeria/valid_metadata_omvs.py +1 -1
- {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.dist-info}/METADATA +1 -1
- {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.dist-info}/RECORD +27 -12
- {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.dist-info}/entry_points.txt +7 -2
- /pyegeria/commands/tech/{list_related_elements.py → list_all_related_elements.py} +0 -0
- {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.dist-info}/LICENSE +0 -0
- {pyegeria-5.3.2.dist-info → pyegeria-5.3.3.dist-info}/WHEEL +0 -0
pyegeria/.DS_Store
ADDED
Binary file
|
@@ -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
|
Binary file
|
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
|
)
|
@@ -392,7 +398,7 @@ def show_guid_info(ctx, guid):
|
|
392
398
|
help="List of properties we are searching",
|
393
399
|
)
|
394
400
|
def list_anchored_elements(ctx, search_string: str, prop_list: str):
|
395
|
-
"""List elements with the specified properties"""
|
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(",")
|
@@ -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="Project",
|
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="Project",
|
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="Project",
|
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="Project",
|
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="Project",
|
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
|
@@ -553,63 +744,7 @@ 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
|
-
|
582
747
|
|
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
748
|
|
614
749
|
|
615
750
|
@show_tech_type.command("template-spec")
|
@@ -699,8 +834,8 @@ def valid_metadata_values(ctx, property, type_name):
|
|
699
834
|
help="If True, feedback information is displayed",
|
700
835
|
)
|
701
836
|
@click.option("--om_type", default="Organization", help="Metadata type to query")
|
702
|
-
def
|
703
|
-
"""Display elements of a specific Open Metadata Type"""
|
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
|
|