pyegeria 1.5.1.1.19__py3-none-any.whl → 1.5.1.1.21__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.
Binary file
@@ -88,12 +88,22 @@ def create_glossary(
88
88
 
89
89
  existing_glossary = m_client.find_glossaries(name)
90
90
  if type(existing_glossary) is list:
91
- click.echo(f"\nFound {len(existing_glossary)} existing Glossaries\n")
91
+ click.echo(
92
+ f"\nFound {len(existing_glossary)} existing Glossaries with a similar name!\n"
93
+ )
92
94
  for glossary in existing_glossary:
93
- click.echo(
94
- f"\tFound glossary: {glossary['glossaryProperties']['qualifiedName']} with id of {glossary['elementHeader']['guid']}\n"
95
- )
96
- sys.exit(0)
95
+ if (
96
+ glossary["glossaryProperties"]["qualifiedName"]
97
+ == "Glossary:" + name
98
+ ):
99
+ click.echo(
100
+ f"\tFound existing glossary: {glossary['glossaryProperties']['qualifiedName']} with id of {glossary['elementHeader']['guid']}\n"
101
+ )
102
+ sys.exit(0)
103
+ else:
104
+ click.echo(
105
+ "Found glossaries with similar names but different qualifiedNames...proceeding\n"
106
+ )
97
107
 
98
108
  glossary_guid = m_client.create_glossary(name, description, language, usage)
99
109
  print(f"New glossary {name} created with id of {glossary_guid}")
@@ -103,7 +103,7 @@ class GlossaryManager(GlossaryBrowser):
103
103
  "class": "ReferenceableRequestBody",
104
104
  "elementProperties": {
105
105
  "class": "GlossaryProperties",
106
- "qualifiedName": f"Glossary:{display_name}-{time.asctime()}",
106
+ "qualifiedName": f"Glossary:{display_name}",
107
107
  "displayName": display_name,
108
108
  "description": description,
109
109
  "language": language,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 1.5.1.1.19
3
+ Version: 1.5.1.1.21
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -9,6 +9,7 @@ pyegeria/asset_catalog_omvs.py,sha256=NUF9C3s_zs9pTfIZyRJlqMCKrhZASJPH08EXzzjki7
9
9
  pyegeria/automated_curation_omvs.py,sha256=BwNuF7XQJAV-POvzaWwFh0TS5yRnHZZPhlayvtIMlwY,130243
10
10
  pyegeria/classification_manager_omvs.py,sha256=3yInuRy7Cf43oSFZ8BuzcIgtGSm5BfvlKYqtWKRMlPU,186678
11
11
  pyegeria/collection_manager_omvs.py,sha256=kye2kjthNnmwxMZhHQKV0xoHbxcNPWjNzRAYOItj_gY,99201
12
+ pyegeria/commands/.DS_Store,sha256=nBgW7MKJ6b4wSWyEEeGYHWwC8QJAiteQaWKM9PoNRzY,6148
12
13
  pyegeria/commands/README.md,sha256=zNfWZppDxoKqTJeRtcewzku9z1m6_hKacCyQUQw1iq4,1974
13
14
  pyegeria/commands/__init__.py,sha256=7y3p5oQ2c0C1465oIgSA_123W1uo7Wqwk91LXccUgrw,17
14
15
  pyegeria/commands/cat/README.md,sha256=-aaAnIT2fcfU63vajgB-RzQk4l4yFdhkyVfSaTPiqRY,967
@@ -19,7 +20,7 @@ pyegeria/commands/cat/get_project_dependencies.py,sha256=B0JaMSUi0hzVgos1sTY2uUP
19
20
  pyegeria/commands/cat/get_project_structure.py,sha256=n2GbNd07w1DTo7jTR8b2ewXRyNcat_2BcCBRyDMldwk,5969
20
21
  pyegeria/commands/cat/get_tech_type_elements.py,sha256=-m3Q0BoNqkCtV8h75vMwTcOV-_ymEXmnJcr4Ec7WMAw,6180
21
22
  pyegeria/commands/cat/get_tech_type_template.py,sha256=gMFVcgCIm09GQu1Vsc5ZUVH9XLhItAG1eVGZJrcnHeQ,6174
22
- pyegeria/commands/cat/glossary_actions.py,sha256=Tcpa9wCFo4D_fsfMilnbVoRerr_8f6Bqtw3hAJdcUvw,13493
23
+ pyegeria/commands/cat/glossary_actions.py,sha256=7DT4yMYMpNl8G6vYYGCunrRZx16402-Udn06ElWM6oA,13905
23
24
  pyegeria/commands/cat/list_archives.py,sha256=FEZ2XYnQIWo2PztWqnj6unn0pbblPU0-bMbTyI3csv4,5464
24
25
  pyegeria/commands/cat/list_assets.py,sha256=bNwSaBDz661hfnc2Rn4j4HPHAugKvz0XwN9L1m4FVQk,6529
25
26
  pyegeria/commands/cat/list_cert_types.py,sha256=mbCls_EqC5JKG5rvS4o69k7KgZ6aNXlcqoJ3DtHsTFA,7127
@@ -94,7 +95,7 @@ pyegeria/egeria_tech_client.py,sha256=7NfqpJFft5GR4NPRDVDw22L9caHbXB8fhx0TAf6qEo
94
95
  pyegeria/feedback_manager_omvs.py,sha256=B66e3ZCaC_dirb0mcb2Nz3PYh2ZKsoMAYNOb3euNiro,152931
95
96
  pyegeria/full_omag_server_config.py,sha256=LBnqUiz1ofBdlKBzECFs_pQbdJwcWigAukWHGJRR2nU,47340
96
97
  pyegeria/glossary_browser_omvs.py,sha256=NcitYaZJqwVODBO5zBtWpXPNUJJ3DKzEbRaOFSAyUlg,93554
97
- pyegeria/glossary_manager_omvs.py,sha256=s9BxAa2UJk5kinS6-U9H6xKqZUG-lp7aqHdNdStaGLs,126294
98
+ pyegeria/glossary_manager_omvs.py,sha256=GZyudT2zCeJNH6aGBEYRqA5U1puPEPtfMpgFOTuc_fQ,126277
98
99
  pyegeria/mermaid_utilities.py,sha256=GXiS-subb5nJcDqlThZWX2T8WspU1neFfhf4TxRoMh4,8344
99
100
  pyegeria/my_profile_omvs.py,sha256=DyECbUFEcgokrIbzdMMNljC3bqfqKGXAF2wZEpzvRYs,34666
100
101
  pyegeria/platform_services.py,sha256=CJIOYIFEbcIGwdWlApAQcXxZTsdrhFtpJcm4O3p7dG0,41646
@@ -106,8 +107,8 @@ pyegeria/template_manager_omvs.py,sha256=heqbKeum5hPCHap4r1RUZU8YB3QaQlxVNbq4GZi
106
107
  pyegeria/utils.py,sha256=1h6bwveadd6GpbnGLTmqPBmBk68QvxdjGTI9RfbrgKY,5415
107
108
  pyegeria/valid_metadata_omvs.py,sha256=tfCGXed5LLt59YA8uZNNtd9UJ-lRZfPU_uZxK31Yux0,65069
108
109
  pyegeria/x_action_author_omvs.py,sha256=xu1IQ0YbhIKi17C5a7Aq9u1Az2czwahNPpX9czmyVxE,6454
109
- pyegeria-1.5.1.1.19.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
110
- pyegeria-1.5.1.1.19.dist-info/METADATA,sha256=OoLOd-kJQbZ0WU79fSXM9V4SrXVjoReUeWxiClYAPhQ,2998
111
- pyegeria-1.5.1.1.19.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
112
- pyegeria-1.5.1.1.19.dist-info/entry_points.txt,sha256=49rVcJuuKXUSC-9ZNzr-ybsaUL-wm6xrUodCZeKJdGc,4898
113
- pyegeria-1.5.1.1.19.dist-info/RECORD,,
110
+ pyegeria-1.5.1.1.21.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
111
+ pyegeria-1.5.1.1.21.dist-info/METADATA,sha256=TmOUUKk56OgTctP9SaZevPAAj6ANRdOxRXtH-4S63j8,2998
112
+ pyegeria-1.5.1.1.21.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
113
+ pyegeria-1.5.1.1.21.dist-info/entry_points.txt,sha256=49rVcJuuKXUSC-9ZNzr-ybsaUL-wm6xrUodCZeKJdGc,4898
114
+ pyegeria-1.5.1.1.21.dist-info/RECORD,,