tdfs4ds 0.2.5.0__py3-none-any.whl → 0.2.5.2__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.
tdfs4ds/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = '0.2.5.0'
1
+ __version__ = '0.2.5.2'
2
2
  import difflib
3
3
  import logging
4
4
  import json
@@ -310,6 +310,7 @@ def _print_documentation(
310
310
  rec_list = _flatten_to_list(parsed_recs)
311
311
 
312
312
  explain_section = ""
313
+ newline = '\n'
313
314
  if parsed_explain or optimization_score or warn_list or rec_list:
314
315
  score_color = "#27ae60" if optimization_score and optimization_score >= 4 else "#f39c12" if optimization_score and optimization_score == 3 else "#e74c3c"
315
316
  explain_section = f"""
@@ -322,18 +323,18 @@ def _print_documentation(
322
323
  if parsed_explain:
323
324
  # Display explanation as plain text, preserving newlines
324
325
  explain_text = parsed_explain if isinstance(parsed_explain, str) else str(parsed_explain)
325
- explain_text_html = explain_text.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;').replace('\n', '<br>')
326
+ explain_text_html = explain_text.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;').replace(newline, '<br>')
326
327
  explain_section += f'<div style="{HTML_STYLES["content"]}">{explain_text_html}</div>'
327
328
 
328
329
  if warn_list:
329
- warnings_html = '\n'.join(f'<li style="color: #c0392b;">{_md_to_html(w).replace('\n','<br>')}</li>' for w in warn_list)
330
+ warnings_html = '\n'.join(f'<li style="color: #c0392b;">{_md_to_html(w).replace(newline,"<br>")}</li>' for w in warn_list)
330
331
  explain_section += f"""
331
332
  <h4 style="color: #c0392b; margin-top: 10px;">⚠ Warnings</h4>
332
333
  <ul style="{HTML_STYLES['list']}">{warnings_html}</ul>
333
334
  """
334
335
 
335
336
  if rec_list:
336
- recommendations_html = '\n'.join(f'<li style="color: #27ae60;">{_md_to_html(r).replace('\n','<br>')}</li>' for r in rec_list)
337
+ recommendations_html = '\n'.join(f'<li style="color: #27ae60;">{_md_to_html(r).replace(newline,"<br>")}</li>' for r in rec_list)
337
338
  explain_section += f"""
338
339
  <h4 style="color: #27ae60; margin-top: 10px;">✓ Recommendations</h4>
339
340
  <ul style="{HTML_STYLES['list']}">{recommendations_html}</ul>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tdfs4ds
3
- Version: 0.2.5.0
3
+ Version: 0.2.5.2
4
4
  Summary: A python package to simplify the usage of feature store using Teradata Vantage ...
5
5
  Author: Denis Molin
6
6
  Requires-Python: >=3.6
@@ -1,4 +1,4 @@
1
- tdfs4ds/__init__.py,sha256=elmc5_fMAaUncQeit1jj_5z4mE3ssTJvy_hHv1rNzx8,70555
1
+ tdfs4ds/__init__.py,sha256=NeD8Lf1HwfqupVOzESCydySlk_TdvlQbJflg7MZTKm8,70555
2
2
  tdfs4ds/datasets.py,sha256=LE4Gn0muwdyrIrCrbkE92cnafUML63z1lj5bFIIVzmc,3524
3
3
  tdfs4ds/data/curves.csv,sha256=q0Tm-0yu7VMK4lHvHpgi1LMeRq0lO5gJy2Q17brKbEM,112488
4
4
  tdfs4ds/data/logo/tdfs4ds_logo.png,sha256=OCKQnH0gQbRyupwZeiIgo-9c6mdRtjE2E2Zunr_4Ae0,363980
@@ -13,7 +13,7 @@ tdfs4ds/feature_store/feature_data_processing.py,sha256=gXBsr1H05zxM4tWE7y29ucxe
13
13
  tdfs4ds/feature_store/feature_query_retrieval.py,sha256=51c6ZNlLFiBIxNPinS8ot8bjWEIb1QV2eVg69yzVF80,35381
14
14
  tdfs4ds/feature_store/feature_store_management.py,sha256=mtPQkdMDhcOrhj9IAaH-FEP_znK53cYtEv8zXAbsigg,52123
15
15
  tdfs4ds/genai/__init__.py,sha256=Hal13Kw75nDYKHtfvHZNdm98exqmY6qaqGZkJA2TQ6E,723
16
- tdfs4ds/genai/documentation.py,sha256=bKi2a6TJ9GbdToK9n3OKRqnAVXO1v6aT92aQ6JksCM4,82027
16
+ tdfs4ds/genai/documentation.py,sha256=9BOqV7F4XVBDF8SYU6W8TRsRnDvIxR8CV4bauVimSe0,82056
17
17
  tdfs4ds/process_store/__init__.py,sha256=npHR_xju5ecGmWfYHDyteLwiU3x-cL4HD3sFK_th7xY,229
18
18
  tdfs4ds/process_store/process_followup.py,sha256=E4jgQahjhVRBbfAW3JXNLId7H5qV8ozRt-6PyAQuPzg,12583
19
19
  tdfs4ds/process_store/process_query_administration.py,sha256=AOufkJ6DFUpBiGm-6Q6Dq0Aovw31UGTscZ3Ya0ewS-0,7851
@@ -26,7 +26,7 @@ tdfs4ds/utils/lineage.py,sha256=gy5M42qy5fvdWmlohAY3WPYoqAyp5VakeEmeT1YjrJQ,3783
26
26
  tdfs4ds/utils/query_management.py,sha256=kWDeTdsYcbpV5Tyhh-8uLRWvXh16nIdXNIJ97w76aNU,4848
27
27
  tdfs4ds/utils/time_management.py,sha256=g3EJO7I8ERoZ4X7yq5SyDqSE4O9p0BRcv__QPuAxbGA,32243
28
28
  tdfs4ds/utils/visualization.py,sha256=5S528KoKzzkrAdCxfy7ecyqKvAXBoibNvHwz_u5ISMs,23167
29
- tdfs4ds-0.2.5.0.dist-info/METADATA,sha256=yGUNmOxAt89lwPGcSPZRHpnIFE27RfH70CqlyMHrkg0,14325
30
- tdfs4ds-0.2.5.0.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
31
- tdfs4ds-0.2.5.0.dist-info/top_level.txt,sha256=wMyVkMvnBn8RRt1xBveGQxOpWFijPMPkMiE7G2mi8zo,8
32
- tdfs4ds-0.2.5.0.dist-info/RECORD,,
29
+ tdfs4ds-0.2.5.2.dist-info/METADATA,sha256=qADkn9deR_9Yo-IRA5J7VHE1KNcgwL2qNCKFA3DIg_o,14325
30
+ tdfs4ds-0.2.5.2.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
31
+ tdfs4ds-0.2.5.2.dist-info/top_level.txt,sha256=wMyVkMvnBn8RRt1xBveGQxOpWFijPMPkMiE7G2mi8zo,8
32
+ tdfs4ds-0.2.5.2.dist-info/RECORD,,