laymesh 0.3.0__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 (328) hide show
  1. laymesh-0.3.0.data/purelib/laymesh/__init__.py +5 -0
  2. laymesh-0.3.0.data/purelib/laymesh/__main__.py +3 -0
  3. laymesh-0.3.0.data/purelib/laymesh/_runtime.py +54 -0
  4. laymesh-0.3.0.data/purelib/laymesh/_svg.py +33 -0
  5. laymesh-0.3.0.data/purelib/laymesh/_vendor/THIRD_PARTY_NOTICES.md +178 -0
  6. laymesh-0.3.0.data/purelib/laymesh/_vendor/bin/laymesh.exe +0 -0
  7. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/LayMesh-LICENSE +21 -0
  8. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/Matplotlib-3.11.2-LICENSE +1253 -0
  9. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/adler2-2.0.1-LICENSE-0BSD +12 -0
  10. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/adler2-2.0.1-LICENSE-APACHE +201 -0
  11. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/adler2-2.0.1-LICENSE-MIT +23 -0
  12. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/aho-corasick-1.1.5-COPYING +3 -0
  13. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/aho-corasick-1.1.5-LICENSE-MIT +21 -0
  14. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/approx-0.5.1-LICENSE +202 -0
  15. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/arrayref-0.3.9-LICENSE +26 -0
  16. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/arrayvec-0.7.8-LICENSE-APACHE +201 -0
  17. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/arrayvec-0.7.8-LICENSE-MIT +25 -0
  18. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/autocfg-1.5.1-LICENSE-APACHE +201 -0
  19. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/autocfg-1.5.1-LICENSE-MIT +25 -0
  20. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/base64-0.22.1-LICENSE-APACHE +201 -0
  21. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/base64-0.22.1-LICENSE-MIT +21 -0
  22. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bit-set-0.8.0-LICENSE-APACHE +201 -0
  23. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bit-set-0.8.0-LICENSE-MIT +25 -0
  24. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bit-vec-0.8.0-LICENSE-APACHE +201 -0
  25. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bit-vec-0.8.0-LICENSE-MIT +25 -0
  26. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bitflags-2.13.2-LICENSE-APACHE +201 -0
  27. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bitflags-2.13.2-LICENSE-MIT +25 -0
  28. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/block-buffer-0.12.1-LICENSE-APACHE +201 -0
  29. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/block-buffer-0.12.1-LICENSE-MIT +25 -0
  30. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bumpalo-3.20.3-LICENSE-APACHE +201 -0
  31. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bumpalo-3.20.3-LICENSE-MIT +25 -0
  32. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bytemuck-1.25.2-LICENSE-APACHE +61 -0
  33. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bytemuck-1.25.2-LICENSE-MIT +9 -0
  34. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bytemuck-1.25.2-LICENSE-ZLIB +11 -0
  35. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bytemuck_derive-1.12.1-LICENSE-APACHE +61 -0
  36. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bytemuck_derive-1.12.1-LICENSE-MIT +9 -0
  37. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/bytemuck_derive-1.12.1-LICENSE-ZLIB +11 -0
  38. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/byteorder-lite-0.1.0-LICENSE-MIT +21 -0
  39. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/cfg-if-1.0.5-LICENSE-APACHE +201 -0
  40. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/cfg-if-1.0.5-LICENSE-MIT +25 -0
  41. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/color_quant-1.1.0-LICENSE +21 -0
  42. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/const-oid-0.10.2-LICENSE-APACHE +201 -0
  43. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/const-oid-0.10.2-LICENSE-MIT +25 -0
  44. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/contour-0.13.1-LICENSE-APACHE +202 -0
  45. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/contour-0.13.1-LICENSE-MIT +19 -0
  46. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/core_maths-0.1.1-LICENSE +21 -0
  47. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/cpufeatures-0.3.1-LICENSE-APACHE +201 -0
  48. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/cpufeatures-0.3.1-LICENSE-MIT +25 -0
  49. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/crc32fast-1.5.2-LICENSE-APACHE +202 -0
  50. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/crc32fast-1.5.2-LICENSE-MIT +21 -0
  51. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/crunchy-0.2.4-LICENSE +21 -0
  52. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/crypto-common-0.2.2-LICENSE-APACHE +201 -0
  53. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/crypto-common-0.2.2-LICENSE-MIT +25 -0
  54. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/csv-1.4.0-COPYING +3 -0
  55. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/csv-1.4.0-LICENSE-MIT +21 -0
  56. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/csv-core-0.1.13-COPYING +3 -0
  57. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/csv-core-0.1.13-LICENSE-MIT +21 -0
  58. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/d3-scale-chromatic-LICENSE +28 -0
  59. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/data-url-0.3.2-LICENSE-APACHE +201 -0
  60. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/data-url-0.3.2-LICENSE-MIT +25 -0
  61. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/digest-0.11.3-LICENSE-APACHE +201 -0
  62. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/digest-0.11.3-LICENSE-MIT +26 -0
  63. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/equivalent-1.0.2-LICENSE-APACHE +201 -0
  64. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/equivalent-1.0.2-LICENSE-MIT +25 -0
  65. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/euclid-0.22.14-LICENSE-APACHE +201 -0
  66. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/euclid-0.22.14-LICENSE-MIT +25 -0
  67. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/fancy-regex-0.14.0-LICENSE +21 -0
  68. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/fax-0.2.7-LICENSE +7 -0
  69. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/fdeflate-0.3.7-LICENSE-APACHE +177 -0
  70. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/fdeflate-0.3.7-LICENSE-MIT +25 -0
  71. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/flate2-1.1.10-LICENSE-APACHE +201 -0
  72. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/flate2-1.1.10-LICENSE-MIT +25 -0
  73. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/float-cmp-0.9.0-LICENSE +19 -0
  74. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/font-types-0.11.3-LICENSE-APACHE +67 -0
  75. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/font-types-0.11.3-LICENSE-MIT +25 -0
  76. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/fontconfig-parser-0.5.8-LICENSE +21 -0
  77. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/fontdb-0.23.0-LICENSE +21 -0
  78. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/geo-types-0.7.20-LICENSE-APACHE +201 -0
  79. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/geo-types-0.7.20-LICENSE-MIT +25 -0
  80. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/gif-0.14.2-LICENSE-APACHE +201 -0
  81. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/gif-0.14.2-LICENSE-MIT +21 -0
  82. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/half-2.7.1-LICENSE-APACHE +176 -0
  83. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/half-2.7.1-LICENSE-MIT +19 -0
  84. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/hashbrown-0.17.1-LICENSE-APACHE +201 -0
  85. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/hashbrown-0.17.1-LICENSE-MIT +25 -0
  86. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/hybrid-array-0.4.15-LICENSE-APACHE +201 -0
  87. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/hybrid-array-0.4.15-LICENSE-MIT +25 -0
  88. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/i_float-1.16.0-LICENSE +21 -0
  89. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/i_key_sort-0.10.3-LICENSE +21 -0
  90. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/i_overlay-4.5.2-LICENSE-APACHE +176 -0
  91. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/i_overlay-4.5.2-LICENSE-MIT +21 -0
  92. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/i_shape-1.18.0-LICENSE +21 -0
  93. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/i_tree-0.18.0-LICENSE +21 -0
  94. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/image-0.25.10-LICENSE-APACHE +177 -0
  95. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/image-0.25.10-LICENSE-MIT +25 -0
  96. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/image-webp-0.2.4-LICENSE-APACHE +177 -0
  97. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/image-webp-0.2.4-LICENSE-MIT +25 -0
  98. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/imagesize-0.14.0-LICENSE +21 -0
  99. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/indexmap-2.14.2-LICENSE-APACHE +201 -0
  100. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/indexmap-2.14.2-LICENSE-MIT +25 -0
  101. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/itoa-1.0.18-LICENSE-APACHE +176 -0
  102. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/itoa-1.0.18-LICENSE-MIT +23 -0
  103. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/krilla-0.8.2-LICENSE_APACHE +202 -0
  104. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/krilla-0.8.2-LICENSE_MIT +21 -0
  105. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/krilla-svg-0.8.1-LICENSE_APACHE +202 -0
  106. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/krilla-svg-0.8.1-LICENSE_MIT +21 -0
  107. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/kurbo-0.13.1-LICENSE-APACHE +202 -0
  108. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/kurbo-0.13.1-LICENSE-MIT +25 -0
  109. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/lazy_static-1.5.1-LICENSE-APACHE +201 -0
  110. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/lazy_static-1.5.1-LICENSE-MIT +23 -0
  111. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/libc-0.2.190-LICENSE-APACHE +176 -0
  112. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/libc-0.2.190-LICENSE-MIT +25 -0
  113. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/libm-0.2.16-LICENSE.txt +258 -0
  114. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/log-0.4.34-LICENSE-APACHE +201 -0
  115. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/log-0.4.34-LICENSE-MIT +25 -0
  116. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/manifest.json +2650 -0
  117. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/memchr-2.8.3-COPYING +3 -0
  118. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/memchr-2.8.3-LICENSE-MIT +21 -0
  119. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/memmap2-0.9.11-LICENSE-APACHE +201 -0
  120. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/memmap2-0.9.11-LICENSE-MIT +26 -0
  121. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/mime-0.3.17-LICENSE-APACHE +201 -0
  122. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/mime-0.3.17-LICENSE-MIT +20 -0
  123. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/mime_guess-2.0.5-LICENSE +22 -0
  124. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/miniz_oxide-0.8.9-LICENSE +25 -0
  125. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/miniz_oxide-0.8.9-LICENSE-APACHE.md +177 -0
  126. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/miniz_oxide-0.8.9-LICENSE-MIT.md +24 -0
  127. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/miniz_oxide-0.8.9-LICENSE-ZLIB.md +14 -0
  128. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/miniz_oxide-0.9.1-LICENSE +25 -0
  129. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/miniz_oxide-0.9.1-LICENSE-APACHE.md +177 -0
  130. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/miniz_oxide-0.9.1-LICENSE-MIT.md +24 -0
  131. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/miniz_oxide-0.9.1-LICENSE-ZLIB.md +14 -0
  132. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/moxcms-0.8.1-LICENSE-APACHE.md +201 -0
  133. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/moxcms-0.8.1-LICENSE.md +26 -0
  134. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/num-traits-0.2.19-LICENSE-APACHE +201 -0
  135. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/num-traits-0.2.19-LICENSE-MIT +25 -0
  136. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/once_cell-1.21.4-LICENSE-APACHE +201 -0
  137. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/once_cell-1.21.4-LICENSE-MIT +23 -0
  138. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/pdf-writer-0.15.0-LICENSE-APACHE +176 -0
  139. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/pdf-writer-0.15.0-LICENSE-MIT +19 -0
  140. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/phf-0.11.3-LICENSE +20 -0
  141. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/phf_generator-0.11.3-LICENSE +20 -0
  142. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/phf_macros-0.11.3-LICENSE +20 -0
  143. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/phf_shared-0.11.3-LICENSE +20 -0
  144. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/pico-args-0.5.0-LICENSE +20 -0
  145. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/png-0.18.1-LICENSE-APACHE +201 -0
  146. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/png-0.18.1-LICENSE-MIT +25 -0
  147. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/polycool-0.4.0-LICENSE-APACHE +202 -0
  148. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/polycool-0.4.0-LICENSE-MIT +25 -0
  149. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/proc-macro2-1.0.107-LICENSE-APACHE +176 -0
  150. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/proc-macro2-1.0.107-LICENSE-MIT +23 -0
  151. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/pxfm-0.1.30-LICENSE-APACHE.md +201 -0
  152. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/pxfm-0.1.30-LICENSE.md +26 -0
  153. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/quick-error-2.0.1-LICENSE-APACHE +202 -0
  154. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/quick-error-2.0.1-LICENSE-MIT +19 -0
  155. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/quote-1.0.47-LICENSE-APACHE +176 -0
  156. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/quote-1.0.47-LICENSE-MIT +23 -0
  157. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rand-0.8.8-LICENSE-APACHE +176 -0
  158. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rand-0.8.8-LICENSE-MIT +26 -0
  159. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rand_core-0.6.4-LICENSE-APACHE +187 -0
  160. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rand_core-0.6.4-LICENSE-MIT +26 -0
  161. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/ratex-font-0.1.14-LICENSE +27 -0
  162. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/ratex-katex-fonts-0.1.14-FONT_NOTICE.txt +12 -0
  163. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/ratex-katex-fonts-0.1.14-OFL.txt +85 -0
  164. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/ratex-layout-0.1.14-LICENSE +27 -0
  165. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/ratex-lexer-0.1.14-LICENSE +27 -0
  166. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/ratex-parser-0.1.14-LICENSE +27 -0
  167. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/ratex-types-0.1.14-LICENSE +27 -0
  168. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/read-fonts-0.39.2-LICENSE-APACHE +67 -0
  169. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/read-fonts-0.39.2-LICENSE-MIT +25 -0
  170. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/regex-1.13.1-LICENSE-APACHE +201 -0
  171. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/regex-1.13.1-LICENSE-MIT +25 -0
  172. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/regex-automata-0.4.18-LICENSE-APACHE +201 -0
  173. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/regex-automata-0.4.18-LICENSE-MIT +25 -0
  174. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/regex-lite-0.1.9-LICENSE-APACHE +201 -0
  175. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/regex-lite-0.1.9-LICENSE-MIT +25 -0
  176. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/regex-syntax-0.8.11-LICENSE-APACHE +201 -0
  177. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/regex-syntax-0.8.11-LICENSE-MIT +25 -0
  178. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/resvg-0.47.0-LICENSE-APACHE +176 -0
  179. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/resvg-0.47.0-LICENSE-MIT +25 -0
  180. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rgb-0.8.53-LICENSE +21 -0
  181. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/roxmltree-0.20.0-LICENSE-APACHE +201 -0
  182. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/roxmltree-0.20.0-LICENSE-MIT +21 -0
  183. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/roxmltree-0.21.1-LICENSE-APACHE +201 -0
  184. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/roxmltree-0.21.1-LICENSE-MIT +21 -0
  185. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rust-embed-8.12.0-LICENSE +22 -0
  186. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rust-embed-impl-8.12.0-LICENSE +22 -0
  187. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rust-embed-utils-8.12.0-LICENSE +22 -0
  188. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rustc-hash-1.1.0-LICENSE-APACHE +201 -0
  189. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rustc-hash-1.1.0-LICENSE-MIT +23 -0
  190. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rustc-hash-2.1.3-LICENSE-APACHE +176 -0
  191. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rustc-hash-2.1.3-LICENSE-MIT +23 -0
  192. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rustversion-1.0.23-LICENSE-APACHE +176 -0
  193. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rustversion-1.0.23-LICENSE-MIT +23 -0
  194. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/rustybuzz-0.20.1-LICENSE +22 -0
  195. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/ryu-1.0.23-LICENSE-APACHE +176 -0
  196. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/ryu-1.0.23-LICENSE-BOOST +23 -0
  197. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/same-file-1.0.6-COPYING +3 -0
  198. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/same-file-1.0.6-LICENSE-MIT +21 -0
  199. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/serde-1.0.229-LICENSE-APACHE +176 -0
  200. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/serde-1.0.229-LICENSE-MIT +23 -0
  201. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/serde_core-1.0.229-LICENSE-APACHE +176 -0
  202. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/serde_core-1.0.229-LICENSE-MIT +23 -0
  203. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/serde_derive-1.0.229-LICENSE-APACHE +176 -0
  204. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/serde_derive-1.0.229-LICENSE-MIT +23 -0
  205. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/serde_json-1.0.151-LICENSE-APACHE +176 -0
  206. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/serde_json-1.0.151-LICENSE-MIT +23 -0
  207. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/sha2-0.11.0-LICENSE-APACHE +201 -0
  208. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/sha2-0.11.0-LICENSE-MIT +28 -0
  209. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/simd-adler32-0.3.10-LICENSE.md +21 -0
  210. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/simplecss-0.2.2-LICENSE-APACHE +201 -0
  211. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/simplecss-0.2.2-LICENSE-MIT +21 -0
  212. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/siphasher-1.0.4-COPYING +7 -0
  213. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/siphasher-1.0.4-LICENSE-APACHE +202 -0
  214. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/siphasher-1.0.4-LICENSE-MIT +17 -0
  215. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/skrifa-0.42.1-LICENSE-APACHE +67 -0
  216. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/skrifa-0.42.1-LICENSE-MIT +25 -0
  217. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/slab-0.4.12-LICENSE +25 -0
  218. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/slotmap-1.1.1-LICENSE +19 -0
  219. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/smallvec-1.16.2-LICENSE-APACHE +201 -0
  220. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/smallvec-1.16.2-LICENSE-MIT +25 -0
  221. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/stable_deref_trait-1.2.1-LICENSE-APACHE +201 -0
  222. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/stable_deref_trait-1.2.1-LICENSE-MIT +25 -0
  223. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/strict-num-0.1.1-LICENSE +19 -0
  224. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/subsetter-0.2.6-LICENSE-APACHE +176 -0
  225. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/subsetter-0.2.6-LICENSE-MIT +19 -0
  226. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/subsetter-0.2.6-NOTICE +532 -0
  227. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/svgtypes-0.16.1-LICENSE-APACHE +201 -0
  228. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/svgtypes-0.16.1-LICENSE-MIT +20 -0
  229. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/syn-2.0.119-LICENSE-APACHE +176 -0
  230. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/syn-2.0.119-LICENSE-MIT +23 -0
  231. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/syn-3.0.6-LICENSE-APACHE +176 -0
  232. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/syn-3.0.6-LICENSE-MIT +23 -0
  233. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/synstructure-0.14.0-LICENSE +7 -0
  234. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/thiserror-1.0.69-LICENSE-APACHE +176 -0
  235. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/thiserror-1.0.69-LICENSE-MIT +23 -0
  236. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/thiserror-2.0.21-LICENSE-APACHE +176 -0
  237. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/thiserror-2.0.21-LICENSE-MIT +23 -0
  238. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/thiserror-impl-1.0.69-LICENSE-APACHE +176 -0
  239. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/thiserror-impl-1.0.69-LICENSE-MIT +23 -0
  240. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/thiserror-impl-2.0.21-LICENSE-APACHE +176 -0
  241. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/thiserror-impl-2.0.21-LICENSE-MIT +23 -0
  242. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/tiff-0.11.3-LICENSE +21 -0
  243. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/tiny-skia-0.12.0-LICENSE +30 -0
  244. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/tiny-skia-path-0.12.0-LICENSE +30 -0
  245. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/tinyvec-1.13.3-LICENSE-APACHE.md +202 -0
  246. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/tinyvec-1.13.3-LICENSE-MIT.md +5 -0
  247. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/tinyvec-1.13.3-LICENSE-ZLIB.md +11 -0
  248. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/ttf-parser-0.25.1-LICENSE-APACHE +201 -0
  249. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/ttf-parser-0.25.1-LICENSE-MIT +20 -0
  250. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/typenum-1.20.1-LICENSE +1 -0
  251. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/typenum-1.20.1-LICENSE-APACHE +201 -0
  252. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/typenum-1.20.1-LICENSE-MIT +21 -0
  253. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicase-2.9.0-LICENSE-APACHE +201 -0
  254. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicase-2.9.0-LICENSE-MIT +20 -0
  255. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-bidi-0.3.18-LICENSE-APACHE +201 -0
  256. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-bidi-0.3.18-LICENSE-MIT +25 -0
  257. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-bidi-mirroring-0.4.0-LICENSE-APACHE +201 -0
  258. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-bidi-mirroring-0.4.0-LICENSE-MIT +21 -0
  259. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-ccc-0.4.0-LICENSE-APACHE +201 -0
  260. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-ccc-0.4.0-LICENSE-MIT +21 -0
  261. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-ident-1.0.26-LICENSE-APACHE +176 -0
  262. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-ident-1.0.26-LICENSE-MIT +23 -0
  263. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-ident-1.0.26-LICENSE-UNICODE +39 -0
  264. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-linebreak-0.1.5-LICENSE +201 -0
  265. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-normalization-0.1.25-LICENSE-APACHE +201 -0
  266. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-normalization-0.1.25-LICENSE-MIT +25 -0
  267. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-properties-0.1.4-LICENSE-APACHE +201 -0
  268. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-properties-0.1.4-LICENSE-MIT +25 -0
  269. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-script-0.5.8-LICENSE-APACHE +201 -0
  270. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-script-0.5.8-LICENSE-MIT +27 -0
  271. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-segmentation-1.13.3-LICENSE-APACHE +201 -0
  272. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-segmentation-1.13.3-LICENSE-MIT +25 -0
  273. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-vo-0.1.0-LICENSE-APACHE +201 -0
  274. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/unicode-vo-0.1.0-LICENSE-MIT +21 -0
  275. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/usvg-0.47.0-LICENSE-APACHE +176 -0
  276. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/usvg-0.47.0-LICENSE-MIT +25 -0
  277. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/version_check-0.9.5-LICENSE-APACHE +201 -0
  278. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/version_check-0.9.5-LICENSE-MIT +19 -0
  279. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/walkdir-2.5.0-COPYING +3 -0
  280. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/walkdir-2.5.0-LICENSE-MIT +21 -0
  281. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/wasm-bindgen-0.2.129-LICENSE-APACHE +201 -0
  282. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/wasm-bindgen-0.2.129-LICENSE-MIT +25 -0
  283. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/wasm-bindgen-macro-0.2.129-LICENSE-APACHE +201 -0
  284. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/wasm-bindgen-macro-0.2.129-LICENSE-MIT +25 -0
  285. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/wasm-bindgen-macro-support-0.2.129-LICENSE-APACHE +201 -0
  286. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/wasm-bindgen-macro-support-0.2.129-LICENSE-MIT +25 -0
  287. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/wasm-bindgen-shared-0.2.129-LICENSE-APACHE +201 -0
  288. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/wasm-bindgen-shared-0.2.129-LICENSE-MIT +25 -0
  289. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/weezl-0.1.12-LICENSE-APACHE +201 -0
  290. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/weezl-0.1.12-LICENSE-MIT +22 -0
  291. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/winapi-util-0.1.11-COPYING +3 -0
  292. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/winapi-util-0.1.11-LICENSE-MIT +21 -0
  293. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/windows-link-0.2.1-license-apache-2.0 +201 -0
  294. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/windows-link-0.2.1-license-mit +21 -0
  295. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/windows-sys-0.61.2-license-apache-2.0 +201 -0
  296. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/windows-sys-0.61.2-license-mit +21 -0
  297. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/write-fonts-0.48.1-LICENSE-APACHE +67 -0
  298. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/write-fonts-0.48.1-LICENSE-MIT +25 -0
  299. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/xmlwriter-0.1.0-LICENSE +21 -0
  300. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/xmp-writer-0.3.3-LICENSE-APACHE +176 -0
  301. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/xmp-writer-0.3.3-LICENSE-MIT +19 -0
  302. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/yoke-0.8.3-LICENSE +46 -0
  303. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/yoke-derive-0.8.4-LICENSE +46 -0
  304. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zerocopy-0.8.59-LICENSE-APACHE +202 -0
  305. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zerocopy-0.8.59-LICENSE-BSD +24 -0
  306. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zerocopy-0.8.59-LICENSE-MIT +26 -0
  307. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zerocopy-derive-0.8.59-LICENSE-APACHE +202 -0
  308. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zerocopy-derive-0.8.59-LICENSE-BSD +24 -0
  309. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zerocopy-derive-0.8.59-LICENSE-MIT +26 -0
  310. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zerofrom-0.1.8-LICENSE +46 -0
  311. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zerofrom-derive-0.1.8-LICENSE +46 -0
  312. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zlib-rs-0.6.8-LICENSE +19 -0
  313. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zmij-1.0.23-LICENSE-MIT +23 -0
  314. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zune-core-0.5.3-LICENSE-APACHE +201 -0
  315. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zune-core-0.5.3-LICENSE-MIT +21 -0
  316. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zune-core-0.5.3-LICENSE-ZLIB +19 -0
  317. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zune-jpeg-0.5.15-LICENSE-APACHE +201 -0
  318. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zune-jpeg-0.5.15-LICENSE-MIT +21 -0
  319. laymesh-0.3.0.data/purelib/laymesh/_vendor/licenses/zune-jpeg-0.5.15-LICENSE-ZLIB +19 -0
  320. laymesh-0.3.0.data/purelib/laymesh/_vendor/manifest.json +13 -0
  321. laymesh-0.3.0.data/purelib/laymesh/bridge.py +543 -0
  322. laymesh-0.3.0.data/purelib/laymesh/ipython.py +48 -0
  323. laymesh-0.3.0.dist-info/METADATA +121 -0
  324. laymesh-0.3.0.dist-info/RECORD +328 -0
  325. laymesh-0.3.0.dist-info/WHEEL +5 -0
  326. laymesh-0.3.0.dist-info/entry_points.txt +2 -0
  327. laymesh-0.3.0.dist-info/licenses/LICENSE +21 -0
  328. laymesh-0.3.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,5 @@
1
+ """Python bridge for the LayMesh CLI."""
2
+
3
+ from .bridge import LayMeshBridgeError, RenderResult, render_file, render_source
4
+
5
+ __all__ = ["LayMeshBridgeError", "RenderResult", "render_file", "render_source"]
@@ -0,0 +1,3 @@
1
+ from ._runtime import main
2
+
3
+ raise SystemExit(main())
@@ -0,0 +1,54 @@
1
+ """Locate the native Rust engine; never download code or fonts at runtime."""
2
+ from __future__ import annotations
3
+ import os
4
+ import subprocess
5
+ import sys
6
+ from pathlib import Path
7
+
8
+
9
+ def bundled_command() -> list[str] | None:
10
+ root = Path(__file__).resolve().parent / "_vendor"
11
+ if not root.is_dir():
12
+ return None
13
+ cli = root / "bin" / ("laymesh.exe" if sys.platform == "win32" else "laymesh")
14
+ if not cli.is_file():
15
+ raise RuntimeError("Incomplete LayMesh installation. Reinstall with python -m pip install --force-reinstall laymesh")
16
+ return [str(cli)]
17
+
18
+
19
+ def development_command() -> list[str] | None:
20
+ root = Path(__file__).resolve().parents[2]
21
+ executable = "laymesh.exe" if sys.platform == "win32" else "laymesh"
22
+ for profile in ("release", "debug"):
23
+ cli = root / "target" / profile / executable
24
+ if cli.is_file():
25
+ return [str(cli)]
26
+ return None
27
+
28
+
29
+ def override_command() -> list[str] | None:
30
+ configured = os.environ.get("LAYMESH_CLI")
31
+ if not configured:
32
+ return None
33
+ cli = Path(configured).expanduser().resolve()
34
+ if not cli.is_file():
35
+ raise RuntimeError(f"LAYMESH_CLI 指向的文件不存在:{cli}")
36
+ if cli.suffix.lower() in (".js", ".mjs", ".cjs", ".ts"):
37
+ raise RuntimeError("LAYMESH_CLI must point to the native Rust executable; JavaScript runtimes are unsupported")
38
+ return [str(cli)]
39
+
40
+
41
+ def main() -> int:
42
+ """Expose the native engine without a system runtime or recursive PATH lookup."""
43
+ try:
44
+ command = override_command() or bundled_command() or development_command()
45
+ if command is None:
46
+ raise RuntimeError("No native engine. Install a supported LayMesh wheel, or run cargo build --release -p laymesh-cli.")
47
+ return subprocess.call([*command, *sys.argv[1:]])
48
+ except (OSError, RuntimeError) as error:
49
+ print(f"LayMesh: {error}", file=sys.stderr)
50
+ return 1
51
+
52
+
53
+ if __name__ == "__main__":
54
+ raise SystemExit(main())
@@ -0,0 +1,33 @@
1
+ """Normalize SVG produced by a Matplotlib Figure for LayMesh's safe SVG subset."""
2
+
3
+ import re
4
+
5
+
6
+ class SvgCompatibilityError(ValueError):
7
+ pass
8
+
9
+
10
+ _STYLE_BLOCK = re.compile(r"<style(?:\s[^>]*)?>(.*?)</style>", re.DOTALL)
11
+ _METADATA = re.compile(r"<metadata(?:\s[^>]*)?>.*?</metadata>", re.DOTALL)
12
+ _COMMENT = re.compile(r"<!--.*?-->", re.DOTALL)
13
+
14
+
15
+ def normalize_matplotlib_svg(source: str) -> str:
16
+ # Matplotlib supplies this document itself. The strict LayMesh sanitizer still
17
+ # checks the result; arbitrary SVG files never pass through this adapter.
18
+ start = source.find("<svg ")
19
+ if start < 0:
20
+ raise SvgCompatibilityError("Matplotlib 未生成 SVG 根元素")
21
+ svg = source[start:].strip()
22
+ svg = _COMMENT.sub("", svg)
23
+ svg = _METADATA.sub("", svg)
24
+ if not svg.endswith("</svg>") or "<!" in svg or "<?" in svg:
25
+ raise SvgCompatibilityError("Matplotlib SVG 包含不受支持的文档结构")
26
+
27
+ styles = _STYLE_BLOCK.findall(svg)
28
+ if any(re.sub(r"\s+", "", style) != "*{stroke-linejoin:round;stroke-linecap:butt}" for style in styles):
29
+ raise SvgCompatibilityError("Matplotlib SVG 使用了不受支持的样式表")
30
+ svg = _STYLE_BLOCK.sub("", svg)
31
+ if styles:
32
+ svg = svg.replace("<svg ", '<svg style="stroke-linejoin:round;stroke-linecap:butt" ', 1)
33
+ return svg
@@ -0,0 +1,178 @@
1
+ # Third-party notices
2
+
3
+ The native executable and WebAssembly module contain the following locked Rust dependencies. Original license texts are in `licenses/`. KaTeX formula fonts are under SIL OFL 1.1; their FONT_NOTICE and OFL text are included. Colormap LUTs are derived from Matplotlib 3.11.2, quantized to 8-bit RGB with native reversed LUTs and category metadata. Matplotlib copyright and license are retained in Matplotlib-3.11.2-LICENSE. No Matplotlib runtime is bundled. No body fonts are bundled.
4
+
5
+ | Package | Version | License |
6
+ | --- | --- | --- |
7
+ | adler2 | 2.0.1 | 0BSD OR MIT OR Apache-2.0 |
8
+ | aho-corasick | 1.1.5 | Unlicense OR MIT |
9
+ | approx | 0.5.1 | Apache-2.0 |
10
+ | arrayref | 0.3.9 | BSD-2-Clause |
11
+ | arrayvec | 0.7.8 | MIT OR Apache-2.0 |
12
+ | autocfg | 1.5.1 | Apache-2.0 OR MIT |
13
+ | base64 | 0.22.1 | MIT OR Apache-2.0 |
14
+ | bit-set | 0.8.0 | Apache-2.0 OR MIT |
15
+ | bit-vec | 0.8.0 | Apache-2.0 OR MIT |
16
+ | bitflags | 2.13.2 | MIT OR Apache-2.0 |
17
+ | block-buffer | 0.12.1 | MIT OR Apache-2.0 |
18
+ | bumpalo | 3.20.3 | MIT OR Apache-2.0 |
19
+ | bytemuck | 1.25.2 | Zlib OR Apache-2.0 OR MIT |
20
+ | bytemuck_derive | 1.12.1 | Zlib OR Apache-2.0 OR MIT |
21
+ | byteorder-lite | 0.1.0 | Unlicense OR MIT |
22
+ | cfg-if | 1.0.5 | MIT OR Apache-2.0 |
23
+ | color_quant | 1.1.0 | MIT |
24
+ | const-oid | 0.10.2 | Apache-2.0 OR MIT |
25
+ | contour | 0.13.1 | MIT OR Apache-2.0 |
26
+ | core_maths | 0.1.1 | MIT |
27
+ | cpufeatures | 0.3.1 | MIT OR Apache-2.0 |
28
+ | crc32fast | 1.5.2 | MIT OR Apache-2.0 |
29
+ | crunchy | 0.2.4 | MIT |
30
+ | crypto-common | 0.2.2 | MIT OR Apache-2.0 |
31
+ | csv | 1.4.0 | Unlicense/MIT |
32
+ | csv-core | 0.1.13 | Unlicense/MIT |
33
+ | data-url | 0.3.2 | MIT OR Apache-2.0 |
34
+ | digest | 0.11.3 | MIT OR Apache-2.0 |
35
+ | equivalent | 1.0.2 | Apache-2.0 OR MIT |
36
+ | euclid | 0.22.14 | MIT OR Apache-2.0 |
37
+ | fancy-regex | 0.14.0 | MIT |
38
+ | fax | 0.2.7 | MIT |
39
+ | fdeflate | 0.3.7 | MIT OR Apache-2.0 |
40
+ | flate2 | 1.1.10 | MIT OR Apache-2.0 |
41
+ | float-cmp | 0.9.0 | MIT |
42
+ | font-types | 0.11.3 | MIT OR Apache-2.0 |
43
+ | fontconfig-parser | 0.5.8 | MIT |
44
+ | fontdb | 0.23.0 | MIT |
45
+ | geo-types | 0.7.20 | MIT OR Apache-2.0 |
46
+ | gif | 0.14.2 | MIT OR Apache-2.0 |
47
+ | half | 2.7.1 | MIT OR Apache-2.0 |
48
+ | hashbrown | 0.17.1 | MIT OR Apache-2.0 |
49
+ | hybrid-array | 0.4.15 | MIT OR Apache-2.0 |
50
+ | i_float | 1.16.0 | MIT |
51
+ | i_key_sort | 0.10.3 | MIT |
52
+ | i_overlay | 4.5.2 | MIT OR Apache-2.0 |
53
+ | i_shape | 1.18.0 | MIT |
54
+ | i_tree | 0.18.0 | MIT |
55
+ | image | 0.25.10 | MIT OR Apache-2.0 |
56
+ | image-webp | 0.2.4 | MIT OR Apache-2.0 |
57
+ | imagesize | 0.14.0 | MIT |
58
+ | indexmap | 2.14.2 | Apache-2.0 OR MIT |
59
+ | itoa | 1.0.18 | MIT OR Apache-2.0 |
60
+ | krilla | 0.8.2 | MIT OR Apache-2.0 |
61
+ | krilla-svg | 0.8.1 | MIT OR Apache-2.0 |
62
+ | kurbo | 0.13.1 | Apache-2.0 OR MIT |
63
+ | lazy_static | 1.5.1 | MIT OR Apache-2.0 |
64
+ | libc | 0.2.190 | MIT OR Apache-2.0 |
65
+ | libm | 0.2.16 | MIT |
66
+ | log | 0.4.34 | MIT OR Apache-2.0 |
67
+ | memchr | 2.8.3 | Unlicense OR MIT |
68
+ | memmap2 | 0.9.11 | MIT OR Apache-2.0 |
69
+ | mime | 0.3.17 | MIT OR Apache-2.0 |
70
+ | mime_guess | 2.0.5 | MIT |
71
+ | miniz_oxide | 0.8.9 | MIT OR Zlib OR Apache-2.0 |
72
+ | miniz_oxide | 0.9.1 | MIT OR Zlib OR Apache-2.0 |
73
+ | moxcms | 0.8.1 | BSD-3-Clause OR Apache-2.0 |
74
+ | num-traits | 0.2.19 | MIT OR Apache-2.0 |
75
+ | once_cell | 1.21.4 | MIT OR Apache-2.0 |
76
+ | pdf-writer | 0.15.0 | MIT OR Apache-2.0 |
77
+ | phf | 0.11.3 | MIT |
78
+ | phf_generator | 0.11.3 | MIT |
79
+ | phf_macros | 0.11.3 | MIT |
80
+ | phf_shared | 0.11.3 | MIT |
81
+ | pico-args | 0.5.0 | MIT |
82
+ | png | 0.18.1 | MIT OR Apache-2.0 |
83
+ | polycool | 0.4.0 | MIT OR Apache-2.0 |
84
+ | proc-macro2 | 1.0.107 | MIT OR Apache-2.0 |
85
+ | pxfm | 0.1.30 | BSD-3-Clause OR Apache-2.0 |
86
+ | quick-error | 2.0.1 | MIT/Apache-2.0 |
87
+ | quote | 1.0.47 | MIT OR Apache-2.0 |
88
+ | rand | 0.8.8 | MIT OR Apache-2.0 |
89
+ | rand_core | 0.6.4 | MIT OR Apache-2.0 |
90
+ | ratex-font | 0.1.14 | MIT |
91
+ | ratex-katex-fonts | 0.1.14 | MIT |
92
+ | ratex-layout | 0.1.14 | MIT |
93
+ | ratex-lexer | 0.1.14 | MIT |
94
+ | ratex-parser | 0.1.14 | MIT |
95
+ | ratex-types | 0.1.14 | MIT |
96
+ | read-fonts | 0.39.2 | MIT OR Apache-2.0 |
97
+ | regex | 1.13.1 | MIT OR Apache-2.0 |
98
+ | regex-automata | 0.4.18 | MIT OR Apache-2.0 |
99
+ | regex-lite | 0.1.9 | MIT OR Apache-2.0 |
100
+ | regex-syntax | 0.8.11 | MIT OR Apache-2.0 |
101
+ | resvg | 0.47.0 | Apache-2.0 OR MIT |
102
+ | rgb | 0.8.53 | MIT |
103
+ | roxmltree | 0.20.0 | MIT OR Apache-2.0 |
104
+ | roxmltree | 0.21.1 | MIT OR Apache-2.0 |
105
+ | rust-embed | 8.12.0 | MIT |
106
+ | rust-embed-impl | 8.12.0 | MIT |
107
+ | rust-embed-utils | 8.12.0 | MIT |
108
+ | rustc-hash | 1.1.0 | Apache-2.0/MIT |
109
+ | rustc-hash | 2.1.3 | Apache-2.0 OR MIT |
110
+ | rustversion | 1.0.23 | MIT OR Apache-2.0 |
111
+ | rustybuzz | 0.20.1 | MIT |
112
+ | ryu | 1.0.23 | Apache-2.0 OR BSL-1.0 |
113
+ | same-file | 1.0.6 | Unlicense/MIT |
114
+ | serde | 1.0.229 | MIT OR Apache-2.0 |
115
+ | serde_core | 1.0.229 | MIT OR Apache-2.0 |
116
+ | serde_derive | 1.0.229 | MIT OR Apache-2.0 |
117
+ | serde_json | 1.0.151 | MIT OR Apache-2.0 |
118
+ | sha2 | 0.11.0 | MIT OR Apache-2.0 |
119
+ | simd-adler32 | 0.3.10 | MIT |
120
+ | simplecss | 0.2.2 | Apache-2.0 OR MIT |
121
+ | siphasher | 1.0.4 | MIT OR Apache-2.0 |
122
+ | skrifa | 0.42.1 | MIT OR Apache-2.0 |
123
+ | slab | 0.4.12 | MIT |
124
+ | slotmap | 1.1.1 | Zlib |
125
+ | smallvec | 1.16.2 | MIT OR Apache-2.0 |
126
+ | stable_deref_trait | 1.2.1 | MIT OR Apache-2.0 |
127
+ | strict-num | 0.1.1 | MIT |
128
+ | subsetter | 0.2.6 | MIT OR Apache-2.0 |
129
+ | svgtypes | 0.16.1 | Apache-2.0 OR MIT |
130
+ | syn | 2.0.119 | MIT OR Apache-2.0 |
131
+ | syn | 3.0.6 | MIT OR Apache-2.0 |
132
+ | synstructure | 0.14.0 | MIT |
133
+ | thiserror | 1.0.69 | MIT OR Apache-2.0 |
134
+ | thiserror | 2.0.21 | MIT OR Apache-2.0 |
135
+ | thiserror-impl | 1.0.69 | MIT OR Apache-2.0 |
136
+ | thiserror-impl | 2.0.21 | MIT OR Apache-2.0 |
137
+ | tiff | 0.11.3 | MIT |
138
+ | tiny-skia | 0.12.0 | BSD-3-Clause |
139
+ | tiny-skia-path | 0.12.0 | BSD-3-Clause |
140
+ | tinyvec | 1.13.3 | Zlib OR Apache-2.0 OR MIT |
141
+ | ttf-parser | 0.25.1 | MIT OR Apache-2.0 |
142
+ | typenum | 1.20.1 | MIT OR Apache-2.0 |
143
+ | unicase | 2.9.0 | MIT OR Apache-2.0 |
144
+ | unicode-bidi | 0.3.18 | MIT OR Apache-2.0 |
145
+ | unicode-bidi-mirroring | 0.4.0 | MIT/Apache-2.0 |
146
+ | unicode-ccc | 0.4.0 | MIT/Apache-2.0 |
147
+ | unicode-ident | 1.0.26 | (MIT OR Apache-2.0) AND Unicode-3.0 |
148
+ | unicode-linebreak | 0.1.5 | Apache-2.0 |
149
+ | unicode-normalization | 0.1.25 | MIT OR Apache-2.0 |
150
+ | unicode-properties | 0.1.4 | MIT/Apache-2.0 |
151
+ | unicode-script | 0.5.8 | MIT OR Apache-2.0 |
152
+ | unicode-segmentation | 1.13.3 | MIT OR Apache-2.0 |
153
+ | unicode-vo | 0.1.0 | MIT/Apache-2.0 |
154
+ | usvg | 0.47.0 | Apache-2.0 OR MIT |
155
+ | version_check | 0.9.5 | MIT/Apache-2.0 |
156
+ | walkdir | 2.5.0 | Unlicense/MIT |
157
+ | wasm-bindgen | 0.2.129 | MIT OR Apache-2.0 |
158
+ | wasm-bindgen-macro | 0.2.129 | MIT OR Apache-2.0 |
159
+ | wasm-bindgen-macro-support | 0.2.129 | MIT OR Apache-2.0 |
160
+ | wasm-bindgen-shared | 0.2.129 | MIT OR Apache-2.0 |
161
+ | weezl | 0.1.12 | MIT OR Apache-2.0 |
162
+ | winapi-util | 0.1.11 | Unlicense OR MIT |
163
+ | windows-link | 0.2.1 | MIT OR Apache-2.0 |
164
+ | windows-sys | 0.61.2 | MIT OR Apache-2.0 |
165
+ | write-fonts | 0.48.1 | MIT OR Apache-2.0 |
166
+ | xmlwriter | 0.1.0 | MIT |
167
+ | xmp-writer | 0.3.3 | MIT OR Apache-2.0 |
168
+ | yoke | 0.8.3 | Unicode-3.0 |
169
+ | yoke-derive | 0.8.4 | Unicode-3.0 |
170
+ | zerocopy | 0.8.59 | BSD-2-Clause OR Apache-2.0 OR MIT |
171
+ | zerocopy-derive | 0.8.59 | BSD-2-Clause OR Apache-2.0 OR MIT |
172
+ | zerofrom | 0.1.8 | Unicode-3.0 |
173
+ | zerofrom-derive | 0.1.8 | Unicode-3.0 |
174
+ | zlib-rs | 0.6.8 | Zlib |
175
+ | zmij | 1.0.23 | MIT |
176
+ | zune-core | 0.5.3 | MIT OR Apache-2.0 OR Zlib |
177
+ | zune-jpeg | 0.5.15 | MIT OR Apache-2.0 OR Zlib |
178
+ | Matplotlib colormap data | 3.11.2 | Matplotlib license |
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 muxkin
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.