fastplotpy 0.3.0a1__py3-none-win_amd64.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 (78) hide show
  1. fastplotpy/README.md +70 -0
  2. fastplotpy/__init__.py +33 -0
  3. fastplotpy/assets/dist/assets/scene.worker-CcnexaKr.js +1 -0
  4. fastplotpy/assets/dist/index.js +15071 -0
  5. fastplotpy/assets/native/NotoSans-OFL.txt +96 -0
  6. fastplotpy/assets/native/THIRD_PARTY_NOTICES.md +24 -0
  7. fastplotpy/assets/native/fastplot_python_abi.dll +0 -0
  8. fastplotpy/assets/package.json +1 -0
  9. fastplotpy/axes_validation.py +102 -0
  10. fastplotpy/camera3d.py +104 -0
  11. fastplotpy/color_scale.py +88 -0
  12. fastplotpy/defaults/area-fill.json +5 -0
  13. fastplotpy/defaults/bar.json +22 -0
  14. fastplotpy/defaults/camera3d.json +22 -0
  15. fastplotpy/defaults/cartesian-references.json +10 -0
  16. fastplotpy/defaults/control.json +3 -0
  17. fastplotpy/defaults/crosshair.json +19 -0
  18. fastplotpy/defaults/error-bars.json +7 -0
  19. fastplotpy/defaults/heatmap.json +70 -0
  20. fastplotpy/defaults/interaction.json +3 -0
  21. fastplotpy/defaults/layout.json +32 -0
  22. fastplotpy/defaults/legend.json +24 -0
  23. fastplotpy/defaults/line-axes.json +28 -0
  24. fastplotpy/defaults/line3d.json +13 -0
  25. fastplotpy/defaults/markers.json +6 -0
  26. fastplotpy/defaults/mesh3d.json +13 -0
  27. fastplotpy/defaults/pan.json +7 -0
  28. fastplotpy/defaults/pie.json +27 -0
  29. fastplotpy/defaults/pie3d.json +7 -0
  30. fastplotpy/defaults/point-labels.json +13 -0
  31. fastplotpy/defaults/pointClick.json +6 -0
  32. fastplotpy/defaults/pointSelection.json +13 -0
  33. fastplotpy/defaults/polar.json +71 -0
  34. fastplotpy/defaults/polarRotate.json +5 -0
  35. fastplotpy/defaults/scatter3d.json +39 -0
  36. fastplotpy/defaults/scene3d.json +61 -0
  37. fastplotpy/defaults/surface.json +35 -0
  38. fastplotpy/defaults/tooltip.json +18 -0
  39. fastplotpy/defaults/trace-colors.json +10 -0
  40. fastplotpy/defaults/trace-options.json +24 -0
  41. fastplotpy/defaults/wonderplot.json +58 -0
  42. fastplotpy/defaults/zoom.json +12 -0
  43. fastplotpy/defaults.py +15 -0
  44. fastplotpy/error_bars.py +118 -0
  45. fastplotpy/exports.py +153 -0
  46. fastplotpy/families2d.py +896 -0
  47. fastplotpy/heatmap_labels.py +146 -0
  48. fastplotpy/interactions.py +243 -0
  49. fastplotpy/interactive.py +1922 -0
  50. fastplotpy/js_serialize.py +47 -0
  51. fastplotpy/lighting3d.py +113 -0
  52. fastplotpy/line3d_lod.py +138 -0
  53. fastplotpy/lod3d.py +105 -0
  54. fastplotpy/mesh3d_lod.py +107 -0
  55. fastplotpy/native.py +163 -0
  56. fastplotpy/overlays.py +561 -0
  57. fastplotpy/point_labels.py +86 -0
  58. fastplotpy/polar.py +445 -0
  59. fastplotpy/polygon_clip3d.py +148 -0
  60. fastplotpy/references.py +72 -0
  61. fastplotpy/rendering.py +65 -0
  62. fastplotpy/rust_scenes.py +314 -0
  63. fastplotpy/scene.py +1185 -0
  64. fastplotpy/scene3d.py +1215 -0
  65. fastplotpy/scene3d_accessibility.py +183 -0
  66. fastplotpy/scene3d_collection.py +158 -0
  67. fastplotpy/subplots.py +115 -0
  68. fastplotpy/surface_contours.py +122 -0
  69. fastplotpy/surface_lod.py +109 -0
  70. fastplotpy/svg3d.py +235 -0
  71. fastplotpy/trendline.py +236 -0
  72. fastplotpy/triangle_wireframe.py +51 -0
  73. fastplotpy/types.py +3027 -0
  74. fastplotpy-0.3.0a1.dist-info/METADATA +86 -0
  75. fastplotpy-0.3.0a1.dist-info/RECORD +78 -0
  76. fastplotpy-0.3.0a1.dist-info/WHEEL +5 -0
  77. fastplotpy-0.3.0a1.dist-info/licenses/LICENSE +21 -0
  78. fastplotpy-0.3.0a1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,86 @@
1
+ Metadata-Version: 2.4
2
+ Name: fastplotpy
3
+ Version: 0.3.0a1
4
+ Summary: Python port of fastPlotJs chart scenes and interactive charts
5
+ Author: Intellisys Software
6
+ License-Expression: MIT
7
+ Requires-Python: >=3.11
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Provides-Extra: notebook
11
+ Requires-Dist: ipython>=8; extra == "notebook"
12
+ Requires-Dist: ipywidgets>=8; extra == "notebook"
13
+ Provides-Extra: test
14
+ Requires-Dist: Pillow>=10; extra == "test"
15
+ Dynamic: license-file
16
+
17
+ # FastPlotPy
18
+
19
+ FastPlotPy is the Python port of FastPlotJs for renderer-neutral scene generation and browser/Jupyter charts. After its first PyPI publication, install with:
20
+
21
+ ```sh
22
+ python -m pip install fastplotpy
23
+ ```
24
+
25
+ In Python or Jupyter:
26
+
27
+ ```python
28
+ from fastplotpy import createChart
29
+
30
+ chart = createChart({
31
+ "type": "line",
32
+ "width": 800,
33
+ "height": 400,
34
+ "engine": "auto",
35
+ "data": [{"x": 0, "y": 12}, {"x": 1, "y": 18}],
36
+ "axes": {"show": True},
37
+ })
38
+ chart # Jupyter displays the interactive browser view.
39
+ ```
40
+
41
+ The local chart view uses the pinned FastPlotJs browser frontend for Canvas,
42
+ pointer, and WebGL behavior. Its loopback bridge binds to `127.0.0.1` for the
43
+ chart session. Python owns scene and state APIs; source frontend callbacks can
44
+ invoke Python formatters. Browser WebAssembly is separate from the optional
45
+ Python-host Rust core and is not initialized by `initWasmPlotEngine()` in CPython.
46
+ The source-named `hasNodePlotEngine()` and `initNodePlotEngine()` are Python
47
+ compatibility aliases for `hasRustPlotEngine()` and `initRustPlotEngine()`;
48
+ they do not start or require Node.js. `getRustPlotEngineStatus()` reports host
49
+ native capabilities. `getWasmPlotEngineStatus()` reports CPython availability,
50
+ not the state of the separate browser frontend.
51
+
52
+ Without a browser, `plot()` produces a renderer-neutral scene:
53
+
54
+ ```python
55
+ from fastplotpy import plot
56
+
57
+ scene = plot({
58
+ "type": "line",
59
+ "width": 800,
60
+ "height": 400,
61
+ "engine": "ts", # Source spelling selects the Python fallback geometry.
62
+ "data": [{"x": 0, "y": 12}, {"x": 1, "y": 18}],
63
+ })
64
+ ```
65
+
66
+ Current Python geometry covers all eleven source chart families, including
67
+ source-documented 3D LOD, encodings, lighting, accessibility, and multiple
68
+ subplots. No chart calculation invokes Node.js at package runtime. Strict
69
+ `engine="rust"` uses the optional pinned Rust core
70
+ for supported 2D families and fails explicitly when unavailable. Pie3D reuses
71
+ `pie` datum and presentation options, accepts `pie3d.extrusionDepth` in
72
+ `(0, 1]`, and uses the shared `scene3d.camera`. The native 3D PNG path has
73
+ Windows validation only. `renderToPNG()` retains the source placeholder behavior.
74
+
75
+ The source project is [FastPlotJs](https://fastplotjs.com). The first Python
76
+ alpha candidate is `0.3.0a1`; check PyPI separately for publication status.
77
+ Python 3.11 or newer is required. Its Windows wheel includes Python code,
78
+ the pinned frontend,
79
+ the built Rust ABI library, and the MIT License. The source
80
+ distribution includes the pinned Rust sources and lockfile for optional
81
+ native builds. Bundled font attribution is in the packaged
82
+ `assets/native/THIRD_PARTY_NOTICES.md` file.
83
+
84
+ ## Canvas quality
85
+
86
+ The pinned browser frontend accepts `canvas: { pixelRatio: "auto", resolutionScale: 2 }` through `createChart`. Omitted ratios default to `1`; logical sizes, text, and pointer coordinates remain unchanged while the backing bitmap scales. Experimental Pie3D also accepts `pie3d: { curveTolerance: 0.1 }` (default `1` logical pixel; smaller means more faces, within `scene3d.maxPoints`). Higher settings use more memory and rendering work. The source browser comparison remains in FastPlotJs. The Python source distribution includes the local Python-backed gallery under `examples/gallery/`; the installed wheel bundles the interactive frontend but does not install the standalone gallery server.
@@ -0,0 +1,78 @@
1
+ fastplotpy/README.md,sha256=gMQ7G2nCVL4X0Dj0GP9i60JzzkIBKPsnhmfAJICs5hU,3378
2
+ fastplotpy/__init__.py,sha256=DAZ_As0hUcGRZ0bRa2XTDP-_Dkaqcvw11UoPZHZfY6g,2100
3
+ fastplotpy/axes_validation.py,sha256=osX94M5wgGeUgBT1jjmL9dOECbQRNGzuOZQip_OYeYI,4474
4
+ fastplotpy/camera3d.py,sha256=PUXBaRoLMAKh3kpMwAVF6pHBlMmo80tkdtSEpUUCvJA,3927
5
+ fastplotpy/color_scale.py,sha256=nI88doUJ0wUTqPDxN9qoVxBWc7m8ItJ3NdjFCfppeRM,3666
6
+ fastplotpy/defaults.py,sha256=V4k5BjnD4YY5ufwq06BagrLDKZKMo_nA3WiZKojvij0,610
7
+ fastplotpy/error_bars.py,sha256=3Z29tTPhLxkLlf2U0b6JVTGGlLRZoI5eqhuN741Vgiw,6024
8
+ fastplotpy/exports.py,sha256=cOZ8YVAS-XN6mnYgPcNZvR8kcfvRSYwDdpLfoJ5u_QQ,7881
9
+ fastplotpy/families2d.py,sha256=UmZRanRFyEmdfucbitD7fx-9LsVdjqlC8seUhrDkubw,54357
10
+ fastplotpy/heatmap_labels.py,sha256=zss0mnJLG0l_sowZmN9vAx_xBbtXTfGDYwFrDYUqI_I,6022
11
+ fastplotpy/interactions.py,sha256=8uQWOTO7AAhwbg1qD04MzNYm-macmysC1FH9cg3s07I,11101
12
+ fastplotpy/interactive.py,sha256=kPbCfN_VqyipV_QPIije14PU5Vy0boOt_GNl_pZv8UE,105189
13
+ fastplotpy/js_serialize.py,sha256=kXB5M9e6s4ZEBMgM4gMiPy1Lfpp_6UDI-zolLhgM4EU,1680
14
+ fastplotpy/lighting3d.py,sha256=i2DZ1-CnhrO6no8MFIBeNoL9KXtSBp7RgnMOgXKTznc,5803
15
+ fastplotpy/line3d_lod.py,sha256=m0N_28HenA5r-urwme-WVDDb0UPv3qu9cX4utsvurdw,6465
16
+ fastplotpy/lod3d.py,sha256=WFxOplaThXfYKZpM8rZq_AzUMmXQ5ZADMi73PhTD3Mo,4997
17
+ fastplotpy/mesh3d_lod.py,sha256=nRHhnlBl-qd45ULs5YbXEjEmpfAu3w7vtyK6wVieMkE,4597
18
+ fastplotpy/native.py,sha256=fhIxrilsIWTKz24GFAyEBwq-AiaWvrAMZKwzpPsZKJY,5641
19
+ fastplotpy/overlays.py,sha256=HRMvMKOQO67O09hb2kBzcRotROdCHp8YZ3EGhGnDWMQ,31525
20
+ fastplotpy/point_labels.py,sha256=3PeRTlzruy7lYln22t2lJEtA4zdqe9xl2Cvdfxe7VXQ,4052
21
+ fastplotpy/polar.py,sha256=0zLlXQVizyafCtjlTMw8XVFNKNBf-4dVFwL5vrgo5Pc,25871
22
+ fastplotpy/polygon_clip3d.py,sha256=XUd_85TANb_T9x9Z-HDimIsuYLCtyln-EtaopQ4eefA,6862
23
+ fastplotpy/references.py,sha256=6POs0UNlIvH3HYZlAqE2Sy3BptqD99W2UY3jeEhNhq4,4018
24
+ fastplotpy/rendering.py,sha256=l3a-9NVJerHYAdkZ6stZq6TLEigMEtXmIk4bq8Hgl8M,3045
25
+ fastplotpy/rust_scenes.py,sha256=6DRsb1Kp3LYBlBlF3mme3ILN7IRR-7lOd58iExuLq5w,16659
26
+ fastplotpy/scene.py,sha256=jCSwwMjFYGCoiOkqxFhNpLndxUXRMHoCfesr3E3BhFk,67107
27
+ fastplotpy/scene3d.py,sha256=IgnTxj4uU24YU4uhpS88YxSxA_rmiXkj9j2s5SnrM2k,73302
28
+ fastplotpy/scene3d_accessibility.py,sha256=TOJ2T92atXx6o15XTZoJyXuCLGPg1yUzKuVpb4qyQ84,8705
29
+ fastplotpy/scene3d_collection.py,sha256=nHv2DwXuxosvqeoBEH7FFFtpYolw7fpa26XiBrxJdCA,7834
30
+ fastplotpy/subplots.py,sha256=D1RE_04px18A_rXF0Mf05yfgL-70qEzQctzgfCGChYI,6325
31
+ fastplotpy/surface_contours.py,sha256=SdCof4Xr447mt8EOpFNTwHNP5VylzdJkqO7kjjqZt3c,6227
32
+ fastplotpy/surface_lod.py,sha256=5eLVY0acefEedtrdZHXa5aXhoLNu3kd80qS050_B-AY,5261
33
+ fastplotpy/svg3d.py,sha256=zp2df8G5_19B_aSEcyqALysz3JpsyVBauXqzuISb9RM,15915
34
+ fastplotpy/trendline.py,sha256=Jq-6PgJBfmYhDrixAO56osfewGOU9FrxCLVoNycaru8,9701
35
+ fastplotpy/triangle_wireframe.py,sha256=mgtiG5Ll8SHHAZh-wSOFO0jxGlWMWCobYW-vWDMqoHw,2294
36
+ fastplotpy/types.py,sha256=oIPXhY9SaZVyuKfxcKa8L-Hh3Q03DEwpdXsu_NWpc-c,127956
37
+ fastplotpy/assets/package.json,sha256=EjnU2IXcrUIgGiftkyT48Pdgt4cA2Nuc7TmlEc_-fq4,18
38
+ fastplotpy/assets/dist/index.js,sha256=XwcjaT64Mb6HfD9nD5eezX5JaJ5NRFjKb0F3XfnwF1g,541943
39
+ fastplotpy/assets/dist/assets/scene.worker-CcnexaKr.js,sha256=UEXD9h1MQ16CtXtsG6aDiihfiBQet09TW8fJRpXIuko,192678
40
+ fastplotpy/assets/native/NotoSans-OFL.txt,sha256=whXsqioa748iR-vlTCi7JhT5AEQ_37Ck6si2GBNRMyE,4379
41
+ fastplotpy/assets/native/THIRD_PARTY_NOTICES.md,sha256=aJMpgX9I4JK4ysEJeH84P0GlE7xNiubL8MMmc3qmVJA,1090
42
+ fastplotpy/assets/native/fastplot_python_abi.dll,sha256=JaII9Zbeds3yrNDnK5TTQkIxRAVDAYq2R4mzWXd_4RI,5206528
43
+ fastplotpy/defaults/area-fill.json,sha256=deOGD9zu1vW4fZ0q6Wi9vHuBSYbZc4a6_zOSfMsY-Sc,65
44
+ fastplotpy/defaults/bar.json,sha256=ovRrbiyMp5WD5b9VC9ijZk37olOEsIothbiChEz9DGQ,465
45
+ fastplotpy/defaults/camera3d.json,sha256=pPRCuiFbStFkaxVCDS4uvHKB0Vu-0rp2VO3BIOkp6E4,508
46
+ fastplotpy/defaults/cartesian-references.json,sha256=hhz0thdi0XahO4q7sb4-8yOkdFEpGQZ9hq1tsK6jTk8,228
47
+ fastplotpy/defaults/control.json,sha256=7znlhsHEFO5m7Q2S9Jo-xTDpkPHv2a1LaVmn3bc-t-E,26
48
+ fastplotpy/defaults/crosshair.json,sha256=D1MZcoGW4lC8Fa24p0DK_7Pw_YCVdUcbcq93Ei7z_gA,385
49
+ fastplotpy/defaults/error-bars.json,sha256=eGnC15BFCkQsIg35dXrY9irJl3C0yzzrGtAcOdj5nvY,79
50
+ fastplotpy/defaults/heatmap.json,sha256=fADXwFKAYIdF7PaUvqm3Bbf-7yN6NwynSTdJN3cX0R4,1552
51
+ fastplotpy/defaults/interaction.json,sha256=Qtb5BWd3MdEnJFSNxnBmAQjdWBeqabtmtubhZCBpk70,25
52
+ fastplotpy/defaults/layout.json,sha256=-mC4YuHahzUZ_fpokZsPsV0gEAhWd6LwVn_HFTfH0Co,586
53
+ fastplotpy/defaults/legend.json,sha256=4u7XmDfHT38pKPd31v8oua2HxsSP903uGTR6b3hDmwQ,592
54
+ fastplotpy/defaults/line-axes.json,sha256=pbBgkZROVA3YESmBrItQG6EDrWqbw4BYL9qJbDyyLYs,828
55
+ fastplotpy/defaults/line3d.json,sha256=WH9j90FxLunwSwyr5o7kXRnm2baEyR3iCypLZVX2vbU,260
56
+ fastplotpy/defaults/markers.json,sha256=5-70EjPquQBEVZaSVf9yklMNJJsgGGY7PFkS88elzKI,70
57
+ fastplotpy/defaults/mesh3d.json,sha256=HHABQn9QFzcZfGwwTEskOAMi-iIlMAVRNkcb8WHYiUI,260
58
+ fastplotpy/defaults/pan.json,sha256=JyzXwx1pYfaYJyXe-oTLvHHUG6FqKBfrMyXhzBtyVGg,115
59
+ fastplotpy/defaults/pie.json,sha256=HXmSq7QKw0ICgUctjCI35WHdajB6iJulJwCz3ZXdLkI,584
60
+ fastplotpy/defaults/pie3d.json,sha256=RZrlXl37fFgJoKwBgmzMGonEzj7kDs5sximiqIkJtgY,132
61
+ fastplotpy/defaults/point-labels.json,sha256=uxRaH3IoS-Cwyxlk258jAuPpcLvwlxV-YUGU_jptCe4,241
62
+ fastplotpy/defaults/pointClick.json,sha256=gKhuZoRwmRpDNM0beo3H5XO5IwNRX6kYuDnMfSum404,78
63
+ fastplotpy/defaults/pointSelection.json,sha256=01yuUEa-Exh3IVsfbMd8OtIMC45jQOIiBpYZBLRziBc,248
64
+ fastplotpy/defaults/polar.json,sha256=j8cANhSQ_bEs0soacm84HLGNZ6dhcc4MFIKbDeldBjc,1581
65
+ fastplotpy/defaults/polarRotate.json,sha256=27_18T3P_9agJ60_RJr4DEUJptC0ucu7dr7Un8eb-B8,73
66
+ fastplotpy/defaults/scatter3d.json,sha256=C6AD03DlxgW-LaviBLnXIWOZ5FOZuY5pnZjLyrmEEK0,820
67
+ fastplotpy/defaults/scene3d.json,sha256=ghfltvUsfffftQvLZSTQ3eWOxVqEcpLOCM-TChxJ_2g,1917
68
+ fastplotpy/defaults/surface.json,sha256=5nWwpJDq1dEnq3eYxGkQcXasOHITJdBhm5NxubtZrKQ,817
69
+ fastplotpy/defaults/tooltip.json,sha256=JGk-R3K2TAaxczN6I5wqD8cbtkkLtmKjhWL28ohPkaA,404
70
+ fastplotpy/defaults/trace-colors.json,sha256=qwDWFnVfLuG8q3vAwHkvPUrYVRZqKrYJtZjtGv1M9TE,107
71
+ fastplotpy/defaults/trace-options.json,sha256=Qn7xwI85ZVGEm0dfTfMXPc_rp7cLmKdLPWDCAeu6Jys,463
72
+ fastplotpy/defaults/wonderplot.json,sha256=QWytLLS0JFSnhv8joZtJDb7v0zDyRz9Jp0CH-khQztU,1209
73
+ fastplotpy/defaults/zoom.json,sha256=GxeefWCFQ1FCdjedTWva2_cSvqMzN_eGKY4GEbiDBhY,269
74
+ fastplotpy-0.3.0a1.dist-info/licenses/LICENSE,sha256=E1E_ELyOkrTtJcivqXRFwarvwsL6h11LrXoDJZ517S4,1076
75
+ fastplotpy-0.3.0a1.dist-info/METADATA,sha256=uD-CrF6Gz53KFYS22ezX2CfVgbjYFeTjB2uesirhKog,3938
76
+ fastplotpy-0.3.0a1.dist-info/WHEEL,sha256=79BCzrXBJOa2YV6ugKrK59dqWifMGjAkgVd_6AQrqbU,98
77
+ fastplotpy-0.3.0a1.dist-info/top_level.txt,sha256=0qwMgsbLI4cwe6OPWutVIZE4PCa8pA-MhEBDruk_RXY,11
78
+ fastplotpy-0.3.0a1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Intellisys Software
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ fastplotpy