pyegeria 5.3.9.8__py3-none-any.whl → 5.3.9.9.1__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.
commands/cat/.DS_Store ADDED
Binary file
commands/cat/__init__.py CHANGED
@@ -20,3 +20,4 @@ from pyegeria import (
20
20
  NO_ELEMENT_FOUND,
21
21
  )
22
22
 
23
+ import md_processing
pyegeria/.DS_Store ADDED
Binary file
@@ -1103,7 +1103,7 @@ class CollectionManager(Client):
1103
1103
  parent_at_end1_s = str(parent_at_end1).lower()
1104
1104
  url = f"{self.collection_command_root}/data-spec-collection"
1105
1105
  if qualified_name is None:
1106
- qualified_name = self.__create_qualified_name__("DataDict", display_name)
1106
+ qualified_name = self.__create_qualified_name__("DataSpec", display_name)
1107
1107
 
1108
1108
  body = {
1109
1109
  "anchorGUID": anchor_guid, "anchorScopeGUID": anchor_scope_guid, "isOwnAnchor": is_own_anchor_s,
@@ -2158,7 +2158,9 @@ class CollectionManager(Client):
2158
2158
 
2159
2159
  if page_size is None:
2160
2160
  page_size = self.page_size
2161
- collection_guid = self.__get_guid__(collection_guid, collection_name, "name", collection_qname, None, )
2161
+ if collection_guid is None:
2162
+ collection_guid = self.__get_guid__(collection_guid, collection_name, "name", collection_qname, None, )
2163
+
2162
2164
  url = (f"{self.collection_command_root}/{collection_guid}/"
2163
2165
  f"members?startFrom={start_from}&pageSize={page_size}")
2164
2166
 
@@ -2535,9 +2537,12 @@ class CollectionManager(Client):
2535
2537
  # finally, construct a list of member information
2536
2538
  for member_rel in members:
2537
2539
  member_guid = member_rel["elementHeader"]["guid"]
2538
- member_resp = await self._async_get_collection(member_guid)
2539
- member = member_resp.get("element", None)
2540
- if member is None:
2540
+ member_resp = await self._async_get_collection_by_guid(member_guid)
2541
+ if isinstance(member_resp,(dict,list)):
2542
+ member = member_resp.get("element", None)
2543
+ if member is None:
2544
+ continue
2545
+ else:
2541
2546
  continue
2542
2547
  # print(json.dumps(member, indent = 4))
2543
2548
 
@@ -1126,10 +1126,15 @@ r replace_all_properties: bool, default = False
1126
1126
  """
1127
1127
 
1128
1128
  body = {"filter": filter}
1129
+ starts_with_s = str(starts_with).lower()
1130
+ ends_with_s = str(ends_with).lower()
1131
+ ignore_case_s = str(ignore_case).lower()
1129
1132
 
1130
1133
  possible_query_params = query_string(
1131
- [("startFrom", start_from), ("pageSize", page_size), ("startsWith", str(starts_with).lower),
1132
- ("endsWith", str(ends_with).lower()), ("ignoreCase", str(ignore_case).lower()), ])
1134
+ [("startFrom", start_from), ("pageSize", page_size), ("startsWith", ends_with_s), ("endsWith", ends_with_s),
1135
+ ("ignoreCase", ignore_case_s),])
1136
+
1137
+
1133
1138
 
1134
1139
  url = (f"{base_path(self, self.view_server)}/data-structures/by-search-string"
1135
1140
  f"{possible_query_params}")
@@ -2465,10 +2470,12 @@ r replace_all_properties: bool, default = False
2465
2470
  """
2466
2471
 
2467
2472
  body = {"filter": filter}
2473
+ starts_with_s = str(starts_with).lower()
2474
+ ends_with_s = str(ends_with).lower()
2475
+ ignore_case_s = str(ignore_case).lower()
2468
2476
 
2469
2477
  possible_query_params = query_string(
2470
- [("startFrom", start_from), ("pageSize", page_size), ("startsWith", str(starts_with).lower),
2471
- ("endsWith", str(ends_with).lower()), ("ignoreCase", str(ignore_case).lower()), ])
2478
+ [("startFrom", start_from), ("pageSize", page_size), ("startsWith",ends_with_s), ("endsWith", ends_with_s), ("ignoreCase", ignore_case_s) ])
2472
2479
 
2473
2480
  url = (f"{base_path(self, self.view_server)}/data-fields/by-search-string"
2474
2481
  f"{possible_query_params}")
@@ -3526,7 +3533,7 @@ r replace_all_properties: bool, default = False
3526
3533
  """
3527
3534
 
3528
3535
  url = (f"{base_path(self, self.view_server)}/data-classes/{parent_data_class_guid}"
3529
- f"/specialist-data-classes/{child_data_class_guid}/attach")
3536
+ f"/specializeddata-classes/{child_data_class_guid}/attach")
3530
3537
 
3531
3538
  if body is None:
3532
3539
  await self._async_make_request("POST", url)
@@ -3625,7 +3632,7 @@ r replace_all_properties: bool, default = False
3625
3632
  """
3626
3633
 
3627
3634
  url = (f"{base_path(self, self.view_server)}/data-classes/{parent_data_class_guid}"
3628
- f"/specialist-data-classes/{child_data_class_guid}/detach")
3635
+ f"/specializeddata-classes/{child_data_class_guid}/detach")
3629
3636
 
3630
3637
  if body is None:
3631
3638
  await self._async_make_request("POST", url)
@@ -4029,9 +4036,13 @@ r replace_all_properties: bool, default = False
4029
4036
 
4030
4037
  body = {"filter": filter}
4031
4038
 
4039
+ starts_with_s = str(starts_with).lower()
4040
+ ends_with_s = str(ends_with).lower()
4041
+ ignore_case_s = str(ignore_case).lower()
4042
+
4032
4043
  possible_query_params = query_string(
4033
- [("startFrom", start_from), ("pageSize", page_size), ("startsWith", str(starts_with).lower),
4034
- ("endsWith", str(ends_with).lower()), ("ignoreCase", str(ignore_case).lower()), ])
4044
+ [("startFrom", start_from), ("pageSize", page_size), ("startsWith", ends_with_s), ("endsWith", ends_with_s),
4045
+ ("ignoreCase", ignore_case_s)])
4035
4046
 
4036
4047
  url = (f"{base_path(self, self.view_server)}/data-classes/by-search-string"
4037
4048
  f"{possible_query_params}")
@@ -349,7 +349,7 @@ def extract_attribute(text: str, labels: list[str]) -> str | None:
349
349
  # Replace consecutive \n with a single \n
350
350
  extracted_text = re.sub(r'\n+', '\n', filtered_text)
351
351
  if not extracted_text.isspace() and extracted_text:
352
- return extracted_text # Return the cleaned text - I removed the title casing
352
+ return extracted_text.trim() # Return the cleaned text - I removed the title casing
353
353
 
354
354
  return None
355
355
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyegeria
3
- Version: 5.3.9.8
3
+ Version: 5.3.9.9.1
4
4
  Summary: A python client for Egeria
5
5
  License: Apache 2.0
6
6
  Keywords: egeria,metadata,governance
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Programming Language :: Python :: 3.13
15
15
  Requires-Dist: click
16
+ Requires-Dist: h11 (==0.14.0)
16
17
  Requires-Dist: httpx
17
18
  Requires-Dist: jupyter
18
19
  Requires-Dist: jupyter-notebook-parser (>=0.1.4,<0.2.0)
@@ -1,6 +1,7 @@
1
+ commands/cat/.DS_Store,sha256=RY8U0pzFVjHVb0B2edAfhmtpMWmKhR-YSI4WoPy4apc,6148
1
2
  commands/cat/Dr-Egeria_md-orig.py,sha256=ZX20BvRo0fIFisvy5Z-VJDLVyKbQoud89-CUV2S66tU,7336
2
3
  commands/cat/README.md,sha256=-aaAnIT2fcfU63vajgB-RzQk4l4yFdhkyVfSaTPiqRY,967
3
- commands/cat/__init__.py,sha256=5OCy4m_yZsnSxdy_gvkCyP_OkjvuWKimqUGHYCJc_qA,450
4
+ commands/cat/__init__.py,sha256=NL0vbwKSE1sOIyhLkCtCmL4V1JfioZQWNBAt11A5cjI,471
4
5
  commands/cat/dr_egeria_jupyter.py,sha256=rfLVV_84Q8Pqcq1flmijKvZ7sEZFy7JAcAP_NAbb46Y,5656
5
6
  commands/cat/dr_egeria_md.py,sha256=bEi2toFazJPiy6ZM2zRbvr_IfhiA1JOcunpwCfrEVsU,13408
6
7
  commands/cat/exp_list_glossaries.py,sha256=dC6Bnfm3YSMTKPP146qeslIFRiZnGu5b7iDYE07p4iU,5817
@@ -92,6 +93,7 @@ commands/tech/list_tech_templates.py,sha256=5hhDJJjrqGyWDPPcFzFeFs-4rsal1M2Bl7EU
92
93
  commands/tech/list_valid_metadata_values.py,sha256=_zgOdq2N6s7GjLd8iEc5xVfplKfOnKZ-ySM-lSdgYn8,6315
93
94
  commands/tech/table_tech_templates.py,sha256=jI1c9YKa3KirArMNXeCRKeaiVdwQSN-ztPqkag6jdZs,9500
94
95
  commands/tech/x_list_related_elements.py,sha256=ynaw792VnbMZ9IXBi5mmG7xBfC0kn0esKiFTsjvLGzc,5900
96
+ pyegeria/.DS_Store,sha256=aExDotxdVFK-8C6Es8SJjvtOsGrm-SknQULFzsFDZCQ,6148
95
97
  pyegeria/README.md,sha256=PwX5OC7-YSZUCIsoyHh1O-WBM2hE84sm3Bd4O353NOk,1464
96
98
  pyegeria/__init__.py,sha256=NgPs08IQIH25GlvFXjPGDxKB6ln44lAS0EWHg4LJSh4,30874
97
99
  pyegeria/_client.py,sha256=JxKPwpq8Q9ZzgFGRiMu1Z426zSpgEM4TXzZMex-STB0,32023
@@ -102,10 +104,10 @@ pyegeria/_validators.py,sha256=vP9nuZwucnCo_LrPU7hkitpWzaych5bTZEKE58TaTnQ,12726
102
104
  pyegeria/asset_catalog_omvs.py,sha256=P6FceMP0FgakGSOt3ePxpEbsF7nnypzo1aQahjdL_94,29021
103
105
  pyegeria/automated_curation_omvs.py,sha256=tzwCyXL0Hx8UjryBBWcPoEuBRajXZpLuwPQ1vuOg2yc,130349
104
106
  pyegeria/classification_manager_omvs.py,sha256=n55-62Mby-_5pxPGaz3nkjM9NWlY4PzSl3tP0WSnGJU,187212
105
- pyegeria/collection_manager_omvs.py,sha256=qMMLX-XUZjf_YKaNbA26esyYCYq2cOMeLVor0_uokLU,120125
107
+ pyegeria/collection_manager_omvs.py,sha256=Z5Eu_s7l0k5ESzMxUUuasxgT-h1HtZV1b38jZ6BTE_I,120281
106
108
  pyegeria/core_omag_server_config.py,sha256=pNQpocICkZx8sRsTw5DPUe-TFyxlIo1U88qqgci_f7I,97764
107
109
  pyegeria/create_tech_guid_lists.py,sha256=hf5q8Xrdsz-bqeIW3yTORZ1XB6_BrKzLDWWwC_bNG2g,4811
108
- pyegeria/data_designer_omvs.py,sha256=5Hr0jOMFQZX7pKY_Y-_w9dfnIsfBoDMVcU8RkctN2qI,185763
110
+ pyegeria/data_designer_omvs.py,sha256=pyPY0TCzIsdOSJd2-FoWcM4ue2HP0r5nqFgKtWqLy0k,186078
109
111
  pyegeria/dr.egeria spec.md,sha256=QC_z3EqJ0WW18NYQFW_AtqO4SMWH5MJNVmM--54VzX4,959
110
112
  pyegeria/egeria_cat_client.py,sha256=d8dQNPLzL4efi99OJfH1T-Rt1N0k9Rf9LX8LpuhiFls,2179
111
113
  pyegeria/egeria_client.py,sha256=egGv41eb94P_lWIQ54I_90WT_IukJ_J6ZLOYCHpx2js,4676
@@ -118,7 +120,7 @@ pyegeria/glossary_browser_omvs.py,sha256=j6CJt1_O42OT3bVzwwiAoqsCtH5urC5zfghEl0t
118
120
  pyegeria/glossary_manager_omvs.py,sha256=aGYZFuzWrPmPLLNwkNpV7-FsalqwDR7gyBzgdubnM04,87989
119
121
  pyegeria/m_test.py,sha256=M5-M2ZczsAJLXWfSeqTTADHdx6Ku-y4PbQ4M21JthAE,7778
120
122
  pyegeria/md_processing_helpers.py,sha256=xlQuK5eP_PJqUdy4BScQ97NyBD95jMS3EUg0wK5CsZo,2137
121
- pyegeria/md_processing_utils.py,sha256=99Bi90hFVCDsHe9tr4XHaSbcoLUKpdjL6b4R0jJo1uc,99112
123
+ pyegeria/md_processing_utils.py,sha256=KRESCqAYjCgHRAdhHH49lLDDhaq740CUlqTG0bN-6Oo,99119
122
124
  pyegeria/md_processing_utils_orig.py,sha256=SToZtXQiysi2_vmIY4-T2NIELRirzQ1zjkho_2jFsNE,52603
123
125
  pyegeria/mermaid_utilities.py,sha256=Zcn8JRrqtf62oHoxuvP9tQ5G-BFxOGMNfr7-peuykgY,54290
124
126
  pyegeria/metadata_explorer_omvs.py,sha256=xHnZTQKbd6XwOhYia-RiIisrvZcqHi0SL1l6OCf04Gk,86911
@@ -134,8 +136,8 @@ pyegeria/template_manager_omvs.py,sha256=chBljs1vy5wr9DRAtbvIt4Cob_7HxGfxLkCNlDT
134
136
  pyegeria/utils.py,sha256=GCt1C0bp0Xng1ahzbZhzV9qQwH7Dj93IaCt2dvWb-sg,5417
135
137
  pyegeria/valid_metadata_omvs.py,sha256=Xq9DqBQvBFFJzaFIRKcVZ2k4gJvSh9yeXs_j-O3vn1w,65050
136
138
  pyegeria/x_action_author_omvs.py,sha256=RcqSzahUKCtvb_3u_wyintAlc9WFkC_2v0E12TZs8lQ,6433
137
- pyegeria-5.3.9.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
138
- pyegeria-5.3.9.8.dist-info/METADATA,sha256=-3S-s9GM_Y0c8TVxvpx1q6uU8RlmDptXt_s8_PdsXJM,2757
139
- pyegeria-5.3.9.8.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
140
- pyegeria-5.3.9.8.dist-info/entry_points.txt,sha256=t-jdafZ1zTF11pehQeRmmXrnzbaH2zKSiQPu2GfD-Eo,5987
141
- pyegeria-5.3.9.8.dist-info/RECORD,,
139
+ pyegeria-5.3.9.9.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
140
+ pyegeria-5.3.9.9.1.dist-info/METADATA,sha256=9k5eatiPM1UYrNs_erbN4wenBwfyeBxz3Nw_9zM2nnA,2789
141
+ pyegeria-5.3.9.9.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
142
+ pyegeria-5.3.9.9.1.dist-info/entry_points.txt,sha256=t-jdafZ1zTF11pehQeRmmXrnzbaH2zKSiQPu2GfD-Eo,5987
143
+ pyegeria-5.3.9.9.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.1
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any