XMWAI 0.3.24__py3-none-any.whl → 0.3.26__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.

Potentially problematic release.


This version of XMWAI might be problematic. Click here for more details.

XMWAI/web_core.py CHANGED
@@ -196,10 +196,12 @@ def cookbook(m, t, s, key):
196
196
  body_sections[idx] = text_sec.strip()
197
197
  i += 2
198
198
 
199
- # 获取包内模板和图片目录
200
- templates_dir = Path(files("XMWAI").joinpath("templates"))
199
+ # 模板和图片目录
200
+ templates_dir = Path(files("XMWAI") / "templates")
201
201
  templates_dir.mkdir(exist_ok=True)
202
- photo_dir = Path(files("XMWAI").joinpath("xmw_photo"))
202
+
203
+ # 静态图片路径(PyPI 安装后能读取)
204
+ bg_path = Path(files("XMWAI") / "static" / "images" / "bg.jpeg")
203
205
 
204
206
  # 生成饼图文件
205
207
  pie_chart_file = templates_dir / "nutrition_pie.html"
@@ -228,7 +230,6 @@ def cookbook(m, t, s, key):
228
230
  """
229
231
 
230
232
  # HTML 页面
231
- bg_path = photo_dir / "bg.jpeg"
232
233
  html = f"""
233
234
  <!DOCTYPE html>
234
235
  <html lang="zh">
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: XMWAI
3
- Version: 0.3.24
3
+ Version: 0.3.26
4
4
  Summary: Small code King AI related library
5
5
  Home-page: https://github.com/Tonykai88/XMWAI.git
6
6
  Author: pydevelopment
@@ -4,7 +4,7 @@ XMWAI/core.py,sha256=XG2ZLhW9CETUQMr-8FLZonL_aQg9jfohGnm9oU5XyVQ,10018
4
4
  XMWAI/idiom_core.py,sha256=yU-VHhqqoutVm6GVikcjL3m9yuB1hUsFBpPYvwY4n5g,1689
5
5
  XMWAI/magic_core.py,sha256=Ms4b12PJ8rjsmceg1VUqWCWx2ebvdhLp4sIF6K_Vaok,3491
6
6
  XMWAI/trial_class.py,sha256=GRDEe24a-DYMRyoTLgJbE5dCSQY0CbYqB5ALsBfYmtA,10226
7
- XMWAI/web_core.py,sha256=Get1cm_rGSJlRoNXLSkMxLBSnC-AXkJ9XzViTDmpqSM,10771
7
+ XMWAI/web_core.py,sha256=3nXhv2VdLT5RbWpRF2f7bBPmMaEDt5ZvLl_LarseByI,10781
8
8
  XMWAI/file/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  XMWAI/file/idiom.json,sha256=HUtPRUzhxBbWoasjadbmbA_5ngQ5AXLu9weQSZ4hzhk,10319857
10
10
  XMWAI/gif/0.gif,sha256=LGpAReVTyZEb1J-bWYTpxxHbIxmLJ-3wA0lw4cBqdsY,303
@@ -98,6 +98,7 @@ XMWAI/static/burger.js,sha256=jxPZ7dsrg6CskRoBocVAWIg-zWjsMqVuHhEmVous2cQ,5329
98
98
  XMWAI/static/images/BottomBun.png,sha256=ESF72RWDx0lCJBzB7vMpTMDoPtBBLszPRKeSUl4F_Dg,4079
99
99
  XMWAI/static/images/TopBun.png,sha256=0Ib_cC_o-gT1fbYeBe7fmgfV6RvlMdLsH7b5YbwnXso,12692
100
100
  XMWAI/static/images/beef.png,sha256=SCavT4kza_ZB0diH3tfYjkUlv61duuNLb_R9MzqnA34,7403
101
+ XMWAI/static/images/bg.jpeg,sha256=pYLeliPNhHQp7JlLRbVpz-v_MPs02n9rFrvH1Uxps6s,81475
101
102
  XMWAI/static/images/bg.png,sha256=MhAu2tkzdUmBC7oXw1ZfG9h2Kwe9Sw9gRqiBxorwIUE,2885536
102
103
  XMWAI/static/images/cheese.png,sha256=7XRv_4n0n53jwKJGRUbApyVVAISRrzcDSiWeoOQVEhI,6435
103
104
  XMWAI/static/images/lettuce.png,sha256=ngj3nQe9Zqv-GfXpooaD0g0QtLW1cwC_7TwXSoaffb0,6199
@@ -106,10 +107,8 @@ XMWAI/static/images/tomato.png,sha256=FEOEAOdUhW_BDFgTpxOkYc0I5Iu29_gtHb3RIPEej0
106
107
  XMWAI/templates/burger.html,sha256=vDnxpSW8phetyScySsalScZnFKl3LNpy5lJjKxGXgbI,3320
107
108
  XMWAI/templates/nutrition_pie.html,sha256=yJVXI28i-UfvF0xOXGSNLMb8oCJNhh2J3zoRDr5_7DM,5567
108
109
  XMWAI/templates/创意菜谱.html,sha256=RcDgH58QLyUJ9A59wobu3wvchGBY1snVsXcZQZam5M0,4805
109
- XMWAI/xmw_photo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
110
- XMWAI/xmw_photo/bg.jpeg,sha256=pYLeliPNhHQp7JlLRbVpz-v_MPs02n9rFrvH1Uxps6s,81475
111
- xmwai-0.3.24.dist-info/licenses/LICENSE.txt,sha256=bcaIQMrIhdQ3O-PoZlexjmW6h-wLGvHxh5Oksl4ohtc,1066
112
- xmwai-0.3.24.dist-info/METADATA,sha256=YjKszN_9kmkfHJByUVyJZQxIsJzfohkstLOsQiStld4,1198
113
- xmwai-0.3.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
114
- xmwai-0.3.24.dist-info/top_level.txt,sha256=yvGcDI-sggK5jqd9wz0saipZvk3oIE3hNGHlqUjxf0c,6
115
- xmwai-0.3.24.dist-info/RECORD,,
110
+ xmwai-0.3.26.dist-info/licenses/LICENSE.txt,sha256=bcaIQMrIhdQ3O-PoZlexjmW6h-wLGvHxh5Oksl4ohtc,1066
111
+ xmwai-0.3.26.dist-info/METADATA,sha256=rHeE3l7YYAxISpygMmdxJ9FI3ClJQ4oikrr4Ybtev54,1198
112
+ xmwai-0.3.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
113
+ xmwai-0.3.26.dist-info/top_level.txt,sha256=yvGcDI-sggK5jqd9wz0saipZvk3oIE3hNGHlqUjxf0c,6
114
+ xmwai-0.3.26.dist-info/RECORD,,
File without changes
File without changes
File without changes