ttnn-visualizer 0.48.0__py3-none-any.whl → 0.49.0__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.
Files changed (23) hide show
  1. ttnn_visualizer/pytest_plugin.py +93 -0
  2. ttnn_visualizer/static/assets/allPaths-G_CNx_x1.js +1 -0
  3. ttnn_visualizer/static/assets/allPathsLoader-s_Yfmxfp.js +2 -0
  4. ttnn_visualizer/static/assets/index-CnPrfHYh.js +1 -0
  5. ttnn_visualizer/static/assets/index-Cnc1EkDo.js +1 -0
  6. ttnn_visualizer/static/assets/{index-T8PVeTUn.js → index-DVrPLQJ7.js} +243 -243
  7. ttnn_visualizer/static/assets/index-UuXdrHif.css +7 -0
  8. ttnn_visualizer/static/assets/splitPathsBySizeLoader-ivxxaHxa.js +1 -0
  9. ttnn_visualizer/static/index.html +2 -2
  10. ttnn_visualizer/views.py +12 -8
  11. {ttnn_visualizer-0.48.0.dist-info → ttnn_visualizer-0.49.0.dist-info}/METADATA +1 -1
  12. {ttnn_visualizer-0.48.0.dist-info → ttnn_visualizer-0.49.0.dist-info}/RECORD +17 -16
  13. {ttnn_visualizer-0.48.0.dist-info → ttnn_visualizer-0.49.0.dist-info}/licenses/LICENSE +12 -5
  14. ttnn_visualizer/static/assets/allPaths-DyhSRH--.js +0 -1
  15. ttnn_visualizer/static/assets/allPathsLoader-DXd_rN1a.js +0 -2
  16. ttnn_visualizer/static/assets/index-03c8d4Gh.js +0 -1
  17. ttnn_visualizer/static/assets/index-CZ0Uonoz.css +0 -7
  18. ttnn_visualizer/static/assets/index-PKNBViIU.js +0 -1
  19. ttnn_visualizer/static/assets/splitPathsBySizeLoader-Gsi3qlIM.js +0 -1
  20. {ttnn_visualizer-0.48.0.dist-info → ttnn_visualizer-0.49.0.dist-info}/WHEEL +0 -0
  21. {ttnn_visualizer-0.48.0.dist-info → ttnn_visualizer-0.49.0.dist-info}/entry_points.txt +0 -0
  22. {ttnn_visualizer-0.48.0.dist-info → ttnn_visualizer-0.49.0.dist-info}/licenses/LICENSE_understanding.txt +0 -0
  23. {ttnn_visualizer-0.48.0.dist-info → ttnn_visualizer-0.49.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ import{p as r,I as s,_ as a}from"./index-DVrPLQJ7.js";const n=async(o,_)=>{const i=r(o);let t;return _===s.STANDARD?t=await a(()=>import("./index-CnPrfHYh.js").then(e=>e.I),[]):t=await a(()=>import("./index-Cnc1EkDo.js").then(e=>e.I),[]),t[i]};export{n as splitPathsBySizeLoader};
@@ -34,8 +34,8 @@
34
34
  /* SERVER_CONFIG */
35
35
  </script>
36
36
 
37
- <script type="module" crossorigin src="/static/assets/index-T8PVeTUn.js"></script>
38
- <link rel="stylesheet" crossorigin href="/static/assets/index-CZ0Uonoz.css">
37
+ <script type="module" crossorigin src="/static/assets/index-DVrPLQJ7.js"></script>
38
+ <link rel="stylesheet" crossorigin href="/static/assets/index-UuXdrHif.css">
39
39
  </head>
40
40
  <body>
41
41
 
ttnn_visualizer/views.py CHANGED
@@ -1262,14 +1262,18 @@ def get_npe_data(instance: Instance):
1262
1262
  )
1263
1263
  return Response(status=HTTPStatus.NOT_FOUND)
1264
1264
 
1265
- if compressed_path and compressed_path.exists():
1266
- with open(compressed_path, "rb") as file:
1267
- compressed_data = file.read()
1268
- uncompressed_data = zstd.uncompress(compressed_data)
1269
- npe_data = json.loads(uncompressed_data)
1270
- else:
1271
- with open(uncompressed_path, "r") as file:
1272
- npe_data = json.load(file)
1265
+ try:
1266
+ if compressed_path and compressed_path.exists():
1267
+ with open(compressed_path, "rb") as file:
1268
+ compressed_data = file.read()
1269
+ uncompressed_data = zstd.uncompress(compressed_data)
1270
+ npe_data = json.loads(uncompressed_data)
1271
+ else:
1272
+ with open(uncompressed_path, "r") as file:
1273
+ npe_data = json.load(file)
1274
+ except json.JSONDecodeError as e:
1275
+ logger.error(f"Invalid JSON in NPE file: {e}")
1276
+ return Response(status=HTTPStatus.UNPROCESSABLE_ENTITY)
1273
1277
 
1274
1278
  # Use orjson for much faster JSON serialization of large files
1275
1279
  return Response(orjson.dumps(npe_data), mimetype="application/json")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ttnn_visualizer
3
- Version: 0.48.0
3
+ Version: 0.49.0
4
4
  Summary: TT-NN Visualizer
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -8,6 +8,7 @@ ttnn_visualizer/extensions.py,sha256=6OIRJ8-_ccfjOaXSruRXiS29jEbxp4Pyk-0JlD8IHBQ
8
8
  ttnn_visualizer/file_uploads.py,sha256=HFcC6TBt5I0oBkiKgM2Qw1W7hpixE8TOTACS5N-rmGE,5013
9
9
  ttnn_visualizer/instances.py,sha256=XctQgQXdlwtuXWFXFletRoX1m1lGUZdiW3TwIIjY0uw,11564
10
10
  ttnn_visualizer/models.py,sha256=QCL64uynSS3WbUI05UoHIgex6eWgMGqf0-YTm1XwCwI,7854
11
+ ttnn_visualizer/pytest_plugin.py,sha256=bEG0cbqH0HUuZT5Ox9tFoexFNTyimBBPpI_jp75b54c,2629
11
12
  ttnn_visualizer/queries.py,sha256=0s2zGA7CH1fbV6BWB-MhdHfWW7GhkDti4gVJyDmeCE8,9607
12
13
  ttnn_visualizer/remote_sqlite_setup.py,sha256=VdJk5LfkaJo1XPC-yxy909I0AOgJF1GUjryj0Oe0O14,3498
13
14
  ttnn_visualizer/serializers.py,sha256=LmjHIrFg8BLx1JKVFh9Nd_TcA7nyy1MwY2BOGnX1MKw,8029
@@ -16,16 +17,16 @@ ttnn_visualizer/sftp_operations.py,sha256=9HwbPJPSO1UUQ98d5zeWAkEwR0zFPryUakcI68
16
17
  ttnn_visualizer/sockets.py,sha256=_Hdne33r4FrB2tg58Vw87FWLbgQ_ikICVp4o1Mkv2mo,4789
17
18
  ttnn_visualizer/ssh_client.py,sha256=-GS2_1tdlUqVoLfRS02i3_o1fQaM39UQN-jtAnPBmzQ,13511
18
19
  ttnn_visualizer/utils.py,sha256=_W990vRnup9zlWJ-g_Bggyo-wDjCYF49p0nPxWNgxrE,12934
19
- ttnn_visualizer/views.py,sha256=E5UFdbR8_lqHRPJmGrjq3S_F0Wu1WCsydWNihSUj9Fk,45133
20
- ttnn_visualizer/static/index.html,sha256=PtUUC8PiSjaLZOgM7sFiII-ykqwrL1rX95MzjzYcXmc,1135
21
- ttnn_visualizer/static/assets/allPaths-DyhSRH--.js,sha256=EUUj2FYiXwESHvwikbQ1n87byC2le5LLW8Q0LY3VyfM,255
22
- ttnn_visualizer/static/assets/allPathsLoader-DXd_rN1a.js,sha256=eMyPpUy4eYuBbW1TRf5zx1fkA0ihMVzP_joOkP9GMow,477
23
- ttnn_visualizer/static/assets/index-03c8d4Gh.js,sha256=k0jIi5q-lzXcPCqAD7K091vBMOkJHmx_fYcYKh-fOnM,285602
24
- ttnn_visualizer/static/assets/index-CZ0Uonoz.css,sha256=Xl6ASk5fzFtSKl55fxH-0Qw_RjPZC1aNvIqZmrzSdck,622981
25
- ttnn_visualizer/static/assets/index-PKNBViIU.js,sha256=dUuCyAPr_QvvTY0Xula4q4rgOm1J7xgdbppL67off4k,294225
26
- ttnn_visualizer/static/assets/index-T8PVeTUn.js,sha256=1hk1rZB2-tBCp5WIQB_UZQDnbayuBQp2IX4s62i3-hY,7883860
20
+ ttnn_visualizer/views.py,sha256=R9JD6ajxd4Z0zgbjqYGeX4L8fOUSVqDsiuQ7FSDLDvA,45331
21
+ ttnn_visualizer/static/index.html,sha256=9Gct5mpFLirIshWl30b7_TgT4fcYWq_OeYRsNPky6Iw,1135
22
+ ttnn_visualizer/static/assets/allPaths-G_CNx_x1.js,sha256=l6Ec9RqUrxT3o1AFEAPfG40uv2iZgLBV5UsA7KhIsms,255
23
+ ttnn_visualizer/static/assets/allPathsLoader-s_Yfmxfp.js,sha256=bxXd5uj9p2PVTrwhCQrFItzS3VXDwbhssIwBW8wqFhM,477
24
+ ttnn_visualizer/static/assets/index-CnPrfHYh.js,sha256=xtrmUrKcMSwTBA7zqXJ6I_L70LzG9DkO-zbC3aWJS8g,289282
25
+ ttnn_visualizer/static/assets/index-Cnc1EkDo.js,sha256=m-gmIOT0AsJcaW0TVjRpOwSm52Dfp4ZDcrdnIS4qBHA,298140
26
+ ttnn_visualizer/static/assets/index-DVrPLQJ7.js,sha256=YL1kan4zv0M5x5oZeSkl-q7PlCHnCgQb7w8rj1GNcGU,7890913
27
+ ttnn_visualizer/static/assets/index-UuXdrHif.css,sha256=gdueUx5rG_VioiyHhyblHRYqo8AkOtROM3xvEqIovGk,623039
27
28
  ttnn_visualizer/static/assets/site-BTBrvHC5.webmanifest,sha256=Uy_XmnGuYFVf-OZuma2NvgEPdrCrevb3HZvaxSIHoA0,456
28
- ttnn_visualizer/static/assets/splitPathsBySizeLoader-Gsi3qlIM.js,sha256=ssz5DwLHNfrtvO7Bji0ya9GLCkwQU9bYScLIErs2j5o,281
29
+ ttnn_visualizer/static/assets/splitPathsBySizeLoader-ivxxaHxa.js,sha256=wl69al5zPgTKgIUKXz6yBRpjaB9rTPHVD-hqrz09ryk,281
29
30
  ttnn_visualizer/static/favicon/android-chrome-192x192.png,sha256=BZWA09Zxaa3fXbaeS6nhWo2e-DUSjm9ElzNQ_xTB5XU,6220
30
31
  ttnn_visualizer/static/favicon/android-chrome-512x512.png,sha256=HBiJSZyguB3o8fMJuqIGcpeBy_9JOdImme3wD02UYCw,62626
31
32
  ttnn_visualizer/static/favicon/favicon-32x32.png,sha256=Zw201qUsczQv1UvoQvJf5smQ2ss10xaTeWxmQNYCGtY,480
@@ -34,10 +35,10 @@ ttnn_visualizer/static/sample-data/cluster-desc.yaml,sha256=LMxOmsRUXtVVU5ogzYkX
34
35
  ttnn_visualizer/tests/__init__.py,sha256=FCQeTWnXsf-Wx-fay53-lQsm0y5-GcPMUmzhE5upDx0,93
35
36
  ttnn_visualizer/tests/test_queries.py,sha256=HqaDXwudZpXiigJdHkdJP8oiUc-PtHASbpLnQQpbD7A,13792
36
37
  ttnn_visualizer/tests/test_serializers.py,sha256=IJekAZRBpyOr_Ffp0dqSrnhFOU_ZZ8pHma_JO0j23TQ,18762
37
- ttnn_visualizer-0.48.0.dist-info/licenses/LICENSE,sha256=NQB3xoEB14Z4uKwzMDm2AZSYIcx4hZ5ZNgJNcIChWCo,19504
38
- ttnn_visualizer-0.48.0.dist-info/licenses/LICENSE_understanding.txt,sha256=pymi-yb_RvYM9p2ZA4iSNsImcvhDBBxlGuJCY9dTq7M,233
39
- ttnn_visualizer-0.48.0.dist-info/METADATA,sha256=k9gZwu0y6_VmfFxAUwmKwlSYYOkmv9Si--B3AVoMQoE,7780
40
- ttnn_visualizer-0.48.0.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
41
- ttnn_visualizer-0.48.0.dist-info/entry_points.txt,sha256=QpuUpkmQ_mEHJTMqOBdU0MH2Z4WF_9iFsGACeyyAO1E,61
42
- ttnn_visualizer-0.48.0.dist-info/top_level.txt,sha256=M1EGkvDOuIfbhDbcUdz2-TSdmCtDoQ2Uyag9k5JLDSY,16
43
- ttnn_visualizer-0.48.0.dist-info/RECORD,,
38
+ ttnn_visualizer-0.49.0.dist-info/licenses/LICENSE,sha256=bapl7NysYmv8aYSVxr5qFDya0vCqppyjkyyNJYosBdc,20044
39
+ ttnn_visualizer-0.49.0.dist-info/licenses/LICENSE_understanding.txt,sha256=pymi-yb_RvYM9p2ZA4iSNsImcvhDBBxlGuJCY9dTq7M,233
40
+ ttnn_visualizer-0.49.0.dist-info/METADATA,sha256=f6Pxll0vaRJggbBD6qEqYuVGGIKw0dt4sMX-AaWVy_k,7780
41
+ ttnn_visualizer-0.49.0.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
42
+ ttnn_visualizer-0.49.0.dist-info/entry_points.txt,sha256=QpuUpkmQ_mEHJTMqOBdU0MH2Z4WF_9iFsGACeyyAO1E,61
43
+ ttnn_visualizer-0.49.0.dist-info/top_level.txt,sha256=M1EGkvDOuIfbhDbcUdz2-TSdmCtDoQ2Uyag9k5JLDSY,16
44
+ ttnn_visualizer-0.49.0.dist-info/RECORD,,
@@ -155,23 +155,30 @@ The following separate and independent dependencies are utilized by this project
155
155
  - vitest - MIT - https://github.com/vitest-dev/vitest/blob/main/LICENSE
156
156
  - vitest-canvas-mock - MIT - https://github.com/wobsoriano/vitest-canvas-mock/blob/main/LICENSE
157
157
 
158
- - build - MIT https://opensource.org/license/mit
158
+ - black - MIT - https://github.com/psf/black/blob/main/LICENSE
159
+ - build - MIT - https://opensource.org/license/mit
159
160
  - Flask - BSD‑3‑Clause - https://github.com/pallets/flask/blob/main/LICENSE.txt
160
- - flask_cors - MIT - https://github.com/corydolphin/flask-cors/blob/main/LICENSE
161
+ - Flask-Cors - MIT - https://github.com/corydolphin/flask-cors/blob/main/LICENSE
161
162
  - flask-socketio - MIT - https://github.com/miguelgrinberg/Flask-SocketIO/blob/main/LICENSE
162
163
  - flask-sqlalchemy - BSD‑3‑Clause - https://github.com/pallets-eco/flask-sqlalchemy/blob/main/LICENSE
164
+ - Flask-Static-Digest - MIT - https://github.com/nickjj/flask-static-digest/blob/master/LICENSE
163
165
  - gevent - MIT - https://github.com/gevent/gevent/blob/master/LICENSE
164
166
  - gunicorn - MIT - https://github.com/benoitc/gunicorn/blob/master/LICENSE
167
+ - isort - MIT - https://github.com/PyCQA/isort/blob/main/LICENSE
168
+ - mypy - MIT - https://github.com/python/mypy/blob/master/LICENSE
165
169
  - orjson - Dual-license Apache-2.0 or MIT - https://github.com/ijl/orjson/blob/master/LICENSE-APACHE and https://github.com/ijl/orjson/blob/master/LICENSE-MIT
166
170
  - pandas - BSD‑3‑Clause - https://github.com/pandas-dev/pandas/blob/main/LICENSE
167
171
  - playwright - Apache-2.0 - https://github.com/microsoft/playwright-python/blob/main/LICENSE
172
+ - playwright - Apache-2.0 - https://github.com/microsoft/playwright/blob/main/LICENSE
168
173
  - pydantic - MIT - https://github.com/pydantic/pydantic-settings/blob/main/LICENSE
174
+ - pydantic_core - MIT - https://github.com/pydantic/pydantic-core/blob/main/LICENSE
175
+ - pytest - MIT - https://github.com/pytest-dev/pytest/blob/main/LICENSE
169
176
  - python-dotenv - BSD‑3‑Clause - https://github.com/theskumar/python-dotenv/blob/main/LICENSE
170
177
  - PyYAML - MIT - https://github.com/yaml/pyyaml/blob/main/LICENSE
171
178
  - setuptools - MIT - https://github.com/pypa/setuptools/blob/main/LICENSE
172
- - tt-perf-report - MIT https://opensource.org/license/mit
179
+ - tt-perf-report - MIT - https://opensource.org/license/mit
173
180
  - uvicorn - BSD‑3‑Clause - https://github.com/encode/uvicorn/blob/master/LICENSE.md
174
- - wheel - MIT https://opensource.org/license/mit
175
- - zstd (python-zstandard) - BSD‑3‑Clause - https://github.com/indygreg/python-zstandard/blob/main/LICENSE
181
+ - wheel - MIT - https://opensource.org/license/mit
182
+ - zstd - (python-zstandard) - BSD‑3‑Clause - https://github.com/indygreg/python-zstandard/blob/main/LICENSE
176
183
 
177
184
  - Upload Release Assets - GitHub Action - MIT - https://github.com/AButler/upload-release-assets/blob/master/LICENSE
@@ -1 +0,0 @@
1
- import{I as s}from"./index-03c8d4Gh.js";import{I as r}from"./index-PKNBViIU.js";import{p as n,I as c}from"./index-T8PVeTUn.js";function p(t,a){const o=n(t);return a===c.STANDARD?s[o]:r[o]}export{s as IconSvgPaths16,r as IconSvgPaths20,p as getIconPaths};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/allPaths-DyhSRH--.js","assets/index-03c8d4Gh.js","assets/index-PKNBViIU.js","assets/index-T8PVeTUn.js","assets/index-CZ0Uonoz.css"])))=>i.map(i=>d[i]);
2
- import{_ as e}from"./index-T8PVeTUn.js";const s=async(t,a)=>{const{getIconPaths:o}=await e(async()=>{const{getIconPaths:r}=await import("./allPaths-DyhSRH--.js");return{getIconPaths:r}},__vite__mapDeps([0,1,2,3,4]));return o(t,a)};export{s as allPathsLoader};