vec-io 0.3.0__tar.gz → 0.7.0__tar.gz

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 (570) hide show
  1. vec_io-0.7.0/PKG-INFO +133 -0
  2. vec_io-0.7.0/README.md +117 -0
  3. vec_io-0.7.0/docs/api.md +1772 -0
  4. vec_io-0.7.0/docs/examples.md +729 -0
  5. vec_io-0.7.0/docs/reference/AVIF.md +42 -0
  6. vec_io-0.7.0/docs/reference/Bookmark.md +19 -0
  7. vec_io-0.7.0/docs/reference/CMYK.md +44 -0
  8. vec_io-0.7.0/docs/reference/Color.md +40 -0
  9. vec_io-0.7.0/docs/reference/Document.md +258 -0
  10. vec_io-0.7.0/docs/reference/Filter.md +59 -0
  11. vec_io-0.7.0/docs/reference/Flatten.md +57 -0
  12. vec_io-0.7.0/docs/reference/Font.md +51 -0
  13. vec_io-0.7.0/docs/reference/FontDB.md +135 -0
  14. vec_io-0.7.0/docs/reference/Fonts.md +48 -0
  15. vec_io-0.7.0/docs/reference/GlyphRun.md +39 -0
  16. vec_io-0.7.0/docs/reference/Image.md +89 -0
  17. vec_io-0.7.0/docs/reference/ImagePolicy.md +74 -0
  18. vec_io-0.7.0/docs/reference/JPEG.md +44 -0
  19. vec_io-0.7.0/docs/reference/JXL.md +42 -0
  20. vec_io-0.7.0/docs/reference/Limits.md +43 -0
  21. vec_io-0.7.0/docs/reference/LinearGradient.md +45 -0
  22. vec_io-0.7.0/docs/reference/Marker.md +29 -0
  23. vec_io-0.7.0/docs/reference/Mask.md +31 -0
  24. vec_io-0.7.0/docs/reference/Matrix.md +117 -0
  25. vec_io-0.7.0/docs/reference/PDF.md +45 -0
  26. vec_io-0.7.0/docs/reference/PDFFile.md +104 -0
  27. vec_io-0.7.0/docs/reference/PDFPage.md +67 -0
  28. vec_io-0.7.0/docs/reference/PNG.md +45 -0
  29. vec_io-0.7.0/docs/reference/Page.md +863 -0
  30. vec_io-0.7.0/docs/reference/PageBoxes.md +21 -0
  31. vec_io-0.7.0/docs/reference/Path.md +203 -0
  32. vec_io-0.7.0/docs/reference/PathMarker.md +27 -0
  33. vec_io-0.7.0/docs/reference/Pattern.md +29 -0
  34. vec_io-0.7.0/docs/reference/RadialGradient.md +41 -0
  35. vec_io-0.7.0/docs/reference/SVGDocument.md +49 -0
  36. vec_io-0.7.0/docs/reference/Simplify.md +46 -0
  37. vec_io-0.7.0/docs/reference/Span.md +38 -0
  38. vec_io-0.7.0/docs/reference/Spot.md +32 -0
  39. vec_io-0.7.0/docs/reference/Style.md +15 -0
  40. vec_io-0.7.0/docs/reference/TIFF.md +42 -0
  41. vec_io-0.7.0/docs/reference/TextLayout.md +69 -0
  42. vec_io-0.7.0/docs/reference/View.md +82 -0
  43. vec_io-0.7.0/docs/reference/draw.Area.md +42 -0
  44. vec_io-0.7.0/docs/reference/draw.Cells.md +29 -0
  45. vec_io-0.7.0/docs/reference/draw.Circle.md +36 -0
  46. vec_io-0.7.0/docs/reference/draw.ClipPath.md +31 -0
  47. vec_io-0.7.0/docs/reference/draw.Drawing.md +83 -0
  48. vec_io-0.7.0/docs/reference/draw.Element.md +45 -0
  49. vec_io-0.7.0/docs/reference/draw.Ellipse.md +36 -0
  50. vec_io-0.7.0/docs/reference/draw.Group.md +55 -0
  51. vec_io-0.7.0/docs/reference/draw.Image.md +30 -0
  52. vec_io-0.7.0/docs/reference/draw.Line.md +36 -0
  53. vec_io-0.7.0/docs/reference/draw.Lines.md +45 -0
  54. vec_io-0.7.0/docs/reference/draw.Marker.md +44 -0
  55. vec_io-0.7.0/docs/reference/draw.Markers.md +44 -0
  56. vec_io-0.7.0/docs/reference/draw.Mask.md +40 -0
  57. vec_io-0.7.0/docs/reference/draw.Path.md +198 -0
  58. vec_io-0.7.0/docs/reference/draw.Pattern.md +38 -0
  59. vec_io-0.7.0/docs/reference/draw.Polygon.md +39 -0
  60. vec_io-0.7.0/docs/reference/draw.Polygons.md +43 -0
  61. vec_io-0.7.0/docs/reference/draw.Polyline.md +37 -0
  62. vec_io-0.7.0/docs/reference/draw.Rect.md +38 -0
  63. vec_io-0.7.0/docs/reference/draw.Rects.md +42 -0
  64. vec_io-0.7.0/docs/reference/draw.SVG.md +30 -0
  65. vec_io-0.7.0/docs/reference/draw.Segments.md +42 -0
  66. vec_io-0.7.0/docs/reference/draw.TSpan.md +30 -0
  67. vec_io-0.7.0/docs/reference/draw.Text.md +38 -0
  68. vec_io-0.7.0/docs/reference/draw.TextBox.md +39 -0
  69. vec_io-0.7.0/docs/reference/draw.Use.md +29 -0
  70. vec_io-0.7.0/docs/reference/filter.Blend.md +21 -0
  71. vec_io-0.7.0/docs/reference/filter.ColorMatrix.md +18 -0
  72. vec_io-0.7.0/docs/reference/filter.ComponentTransfer.md +19 -0
  73. vec_io-0.7.0/docs/reference/filter.Composite.md +19 -0
  74. vec_io-0.7.0/docs/reference/filter.ConvolveMatrix.md +23 -0
  75. vec_io-0.7.0/docs/reference/filter.DiffuseLighting.md +20 -0
  76. vec_io-0.7.0/docs/reference/filter.DisplacementMap.md +19 -0
  77. vec_io-0.7.0/docs/reference/filter.DistantLight.md +18 -0
  78. vec_io-0.7.0/docs/reference/filter.DropShadow.md +23 -0
  79. vec_io-0.7.0/docs/reference/filter.Flood.md +20 -0
  80. vec_io-0.7.0/docs/reference/filter.GaussianBlur.md +21 -0
  81. vec_io-0.7.0/docs/reference/filter.Image.md +19 -0
  82. vec_io-0.7.0/docs/reference/filter.Merge.md +18 -0
  83. vec_io-0.7.0/docs/reference/filter.Morphology.md +20 -0
  84. vec_io-0.7.0/docs/reference/filter.Offset.md +19 -0
  85. vec_io-0.7.0/docs/reference/filter.PointLight.md +17 -0
  86. vec_io-0.7.0/docs/reference/filter.Primitive.md +18 -0
  87. vec_io-0.7.0/docs/reference/filter.SpecularLighting.md +22 -0
  88. vec_io-0.7.0/docs/reference/filter.SpotLight.md +17 -0
  89. vec_io-0.7.0/docs/reference/filter.Tile.md +20 -0
  90. vec_io-0.7.0/docs/reference/filter.Transfer.md +28 -0
  91. vec_io-0.7.0/docs/reference/filter.Turbulence.md +21 -0
  92. vec_io-0.7.0/docs/reference/text.Extent.md +16 -0
  93. vec_io-0.7.0/docs/reference/text.Glyph.md +43 -0
  94. vec_io-0.7.0/docs/reference/text.Paragraphs.md +60 -0
  95. vec_io-0.7.0/docs/tutorial.md +141 -0
  96. vec_io-0.7.0/hatch_build.py +47 -0
  97. vec_io-0.7.0/pyproject.toml +52 -0
  98. vec_io-0.7.0/tests/colorfonts/ColrV0Test.ttf +0 -0
  99. vec_io-0.7.0/tests/colorfonts/ColrV1Test.ttf +0 -0
  100. vec_io-0.3.0/tests/fonts/PioTest-Bold.ttf → vec_io-0.7.0/tests/fonts/VioTest-Bold.ttf +0 -0
  101. vec_io-0.3.0/tests/fonts/PioTest-Regular.ttf → vec_io-0.7.0/tests/fonts/VioTest-Regular.ttf +0 -0
  102. vec_io-0.7.0/tests/fuzz_native.py +2539 -0
  103. {vec_io-0.3.0 → vec_io-0.7.0}/tests/fuzz_pdfread.py +3 -3
  104. vec_io-0.7.0/tests/group_oracle.py +209 -0
  105. {vec_io-0.3.0 → vec_io-0.7.0}/tests/helpers.py +80 -5
  106. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfbuild.py +2 -2
  107. vec_io-0.7.0/tests/pdfread/qpdf-r4-objstm.pdf +0 -0
  108. {vec_io-0.3.0 → vec_io-0.7.0}/tests/scene_oracle.py +30 -11
  109. vec_io-0.7.0/tests/test_actual_text.py +352 -0
  110. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_api.py +633 -174
  111. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_avif.py +8 -6
  112. vec_io-0.7.0/tests/test_backends.py +261 -0
  113. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_canvas_features.py +54 -29
  114. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_cells.py +45 -39
  115. vec_io-0.7.0/tests/test_chrome_suite.py +154 -0
  116. vec_io-0.7.0/tests/test_cli.py +168 -0
  117. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_cmap.py +48 -0
  118. vec_io-0.7.0/tests/test_cmyk.py +391 -0
  119. vec_io-0.7.0/tests/test_codecs.py +56 -0
  120. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_compile.py +12 -9
  121. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_convert.py +153 -14
  122. vec_io-0.7.0/tests/test_css_browser.py +614 -0
  123. vec_io-0.7.0/tests/test_dlist.py +237 -0
  124. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_document_write.py +265 -33
  125. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_dpi.py +41 -13
  126. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_eps.py +129 -52
  127. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_features.py +14 -10
  128. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_filters.py +270 -2
  129. vec_io-0.7.0/tests/test_flatten.py +605 -0
  130. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_font_sources.py +14 -15
  131. vec_io-0.7.0/tests/test_font_tables.py +364 -0
  132. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_fonts_io.py +227 -41
  133. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_google_fonts.py +18 -18
  134. vec_io-0.7.0/tests/test_image_formats.py +649 -0
  135. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_jxl.py +35 -28
  136. vec_io-0.7.0/tests/test_marker_runs.py +177 -0
  137. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_native.py +122 -20
  138. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_native_emit.py +2 -2
  139. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_native_jpeg.py +80 -3
  140. vec_io-0.7.0/tests/test_native_limits.py +660 -0
  141. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_native_png.py +47 -8
  142. vec_io-0.7.0/tests/test_network.py +285 -0
  143. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_output.py +128 -77
  144. vec_io-0.7.0/tests/test_paint_browser.py +522 -0
  145. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_parsing.py +29 -1
  146. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_pdf_security.py +16 -0
  147. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_pdfa.py +109 -70
  148. vec_io-0.7.0/tests/test_pdffile.py +334 -0
  149. vec_io-0.7.0/tests/test_pdfread.py +1712 -0
  150. vec_io-0.7.0/tests/test_raster.py +1736 -0
  151. vec_io-0.3.0/tests/test_reader_fixes.py → vec_io-0.7.0/tests/test_readers.py +78 -45
  152. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_resize.py +8 -15
  153. vec_io-0.7.0/tests/test_save_pages.py +49 -0
  154. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_scene.py +81 -52
  155. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_shapes.py +55 -16
  156. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_simplify.py +271 -79
  157. vec_io-0.7.0/tests/test_svg_fonts.py +244 -0
  158. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_svg_semantics.py +178 -13
  159. vec_io-0.7.0/tests/test_svg_writer.py +641 -0
  160. vec_io-0.7.0/tests/test_text.py +440 -0
  161. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_text_as_paths.py +72 -34
  162. vec_io-0.7.0/tests/test_text_browser.py +463 -0
  163. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_textlayout.py +133 -41
  164. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_threads.py +66 -17
  165. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_trim.py +65 -25
  166. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_type1.py +73 -1
  167. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_varfonts.py +92 -14
  168. vec_io-0.3.0/tests/test_output_fixes.py → vec_io-0.7.0/tests/test_views.py +46 -43
  169. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_woff2.py +4 -2
  170. vec_io-0.7.0/tests/test_woff2_write.py +279 -0
  171. {vec_io-0.3.0 → vec_io-0.7.0}/tests/testfont.py +4 -4
  172. vec_io-0.7.0/tests/typing_sample.py +96 -0
  173. vec_io-0.7.0/tools/build_native.py +839 -0
  174. {vec_io-0.3.0 → vec_io-0.7.0}/tools/gen_api.py +49 -49
  175. vec_io-0.7.0/tools/zig.lock +22 -0
  176. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/__init__.py +21 -15
  177. vec_io-0.7.0/vec_io/__main__.py +8 -0
  178. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/arrays.py +20 -4
  179. vec_io-0.7.0/vec_io/canvas.py +2059 -0
  180. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/cells.py +95 -70
  181. vec_io-0.7.0/vec_io/cli.py +1161 -0
  182. vec_io-0.7.0/vec_io/convert.py +481 -0
  183. vec_io-0.7.0/vec_io/css_tokens.py +313 -0
  184. vec_io-0.7.0/vec_io/document.py +2060 -0
  185. vec_io-0.7.0/vec_io/draw.py +1246 -0
  186. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/eps/__init__.py +198 -71
  187. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/eps/fonts.py +16 -15
  188. vec_io-0.7.0/vec_io/errors.py +26 -0
  189. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/filter.py +315 -77
  190. vec_io-0.7.0/vec_io/flate.py +87 -0
  191. vec_io-0.7.0/vec_io/flatten.py +707 -0
  192. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/__init__.py +94 -60
  193. vec_io-0.7.0/vec_io/fonts/cff.py +681 -0
  194. vec_io-0.7.0/vec_io/fonts/cff2.py +210 -0
  195. vec_io-0.7.0/vec_io/fonts/charstring.py +523 -0
  196. vec_io-0.7.0/vec_io/fonts/colr.py +591 -0
  197. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/download.py +25 -56
  198. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/fontdb.py +293 -58
  199. vec_io-0.7.0/vec_io/fonts/opentype.py +1556 -0
  200. vec_io-0.7.0/vec_io/fonts/program.py +155 -0
  201. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/sfnt.py +334 -63
  202. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/type1.py +105 -49
  203. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/variations.py +15 -23
  204. vec_io-0.7.0/vec_io/fonts/web.py +153 -0
  205. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/woff2.py +129 -6
  206. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/geometry.py +431 -91
  207. vec_io-0.7.0/vec_io/image/__init__.py +305 -0
  208. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/image/avif.py +94 -10
  209. vec_io-0.7.0/vec_io/image/bmp.py +308 -0
  210. vec_io-0.7.0/vec_io/image/codecs.py +121 -0
  211. vec_io-0.7.0/vec_io/image/gif.py +122 -0
  212. vec_io-0.7.0/vec_io/image/icc.py +242 -0
  213. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/image/jbig2.py +13 -7
  214. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/image/jpx.py +10 -5
  215. vec_io-0.7.0/vec_io/image/resource.py +925 -0
  216. vec_io-0.7.0/vec_io/image/tiff.py +263 -0
  217. vec_io-0.7.0/vec_io/image/webp.py +183 -0
  218. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/items.py +39 -16
  219. vec_io-0.7.0/vec_io/limits.py +369 -0
  220. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/lines.py +60 -53
  221. vec_io-0.7.0/vec_io/native/README.md +378 -0
  222. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/__init__.py +175 -36
  223. vec_io-0.7.0/vec_io/native/__main__.py +184 -0
  224. vec_io-0.7.0/vec_io/native/_api.py +1218 -0
  225. vec_io-0.7.0/vec_io/native/brotli.py +37 -0
  226. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/emit.py +78 -40
  227. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/filters.py +23 -22
  228. vec_io-0.7.0/vec_io/native/jpeg.py +179 -0
  229. vec_io-0.7.0/vec_io/native/manifest.json +54 -0
  230. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/pdfread.py +93 -22
  231. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/png.py +96 -40
  232. vec_io-0.7.0/vec_io/native/src/alloc.c +271 -0
  233. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/brotli.c +78 -75
  234. vec_io-0.7.0/vec_io/native/src/brotli.h +16 -0
  235. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/brotli_dict.c +8 -8
  236. vec_io-0.7.0/vec_io/native/src/brotli_enc.c +1850 -0
  237. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/ccitt.c +29 -26
  238. vec_io-0.7.0/vec_io/native/src/color.c +648 -0
  239. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/crypt.c +34 -28
  240. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/cull.c +540 -261
  241. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/data.c +49 -43
  242. vec_io-0.7.0/vec_io/native/src/dlist.c +2663 -0
  243. vec_io-0.7.0/vec_io/native/src/dlist.h +131 -0
  244. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/emit.c +63 -63
  245. vec_io-0.7.0/vec_io/native/src/epsw.c +1744 -0
  246. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/filters.c +218 -133
  247. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/flat.c +102 -102
  248. vec_io-0.7.0/vec_io/native/src/flatten.c +4394 -0
  249. vec_io-0.7.0/vec_io/native/src/func.c +938 -0
  250. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/image.c +185 -66
  251. vec_io-0.7.0/vec_io/native/src/interp.c +4390 -0
  252. vec_io-0.7.0/vec_io/native/src/interp.h +584 -0
  253. vec_io-0.7.0/vec_io/native/src/items.c +577 -0
  254. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/jpeg.h +4 -4
  255. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/jpeg_dec.c +145 -83
  256. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/jpeg_enc.c +645 -343
  257. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/jpx.c +15 -15
  258. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/lex.h +42 -21
  259. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/math.c +57 -57
  260. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/matrix.h +10 -10
  261. vec_io-0.3.0/vec_io/native/src/crowding.c → vec_io-0.7.0/vec_io/native/src/median.c +26 -82
  262. vec_io-0.7.0/vec_io/native/src/mesh.c +830 -0
  263. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/paint.c +414 -141
  264. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/path.c +103 -64
  265. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/pdfread.c +358 -200
  266. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/png.c +104 -95
  267. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/quant.c +110 -77
  268. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/raster.h +209 -144
  269. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/res.c +106 -86
  270. vec_io-0.7.0/vec_io/native/src/rt.c +123 -0
  271. vec_io-0.7.0/vec_io/native/src/samples.c +244 -0
  272. vec_io-0.7.0/vec_io/native/src/scan.c +1478 -0
  273. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/scene.c +715 -285
  274. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/scene.h +229 -135
  275. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/shade.c +110 -93
  276. vec_io-0.7.0/vec_io/native/src/shade.h +118 -0
  277. vec_io-0.7.0/vec_io/native/src/signatures.c +241 -0
  278. vec_io-0.7.0/vec_io/native/src/stroke.c +934 -0
  279. vec_io-0.7.0/vec_io/native/src/svgw.c +3717 -0
  280. vec_io-0.7.0/vec_io/native/src/vio.h +236 -0
  281. vec_io-0.7.0/vec_io/native/src/vio_api.h +1278 -0
  282. vec_io-0.7.0/vec_io/native/src/woff2.c +655 -0
  283. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/woff2.py +13 -2
  284. vec_io-0.7.0/vec_io/network.py +190 -0
  285. vec_io-0.7.0/vec_io/notebook.py +37 -0
  286. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/options.py +219 -66
  287. vec_io-0.7.0/vec_io/output_plan.py +173 -0
  288. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/paint.py +601 -105
  289. vec_io-0.7.0/vec_io/pdf/__init__.py +1 -0
  290. vec_io-0.7.0/vec_io/pdf/copier.py +141 -0
  291. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdf/images.py +92 -47
  292. vec_io-0.7.0/vec_io/pdf/objects.py +326 -0
  293. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdf/pdfa.py +57 -8
  294. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdf/writer.py +11 -4
  295. vec_io-0.7.0/vec_io/pdffile.py +962 -0
  296. vec_io-0.7.0/vec_io/pdfread/__init__.py +226 -0
  297. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/ccitt.py +6 -5
  298. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/cmap.py +74 -10
  299. vec_io-0.7.0/vec_io/pdfread/cmaps.zip +0 -0
  300. vec_io-0.7.0/vec_io/pdfread/colors.py +385 -0
  301. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/content.py +222 -83
  302. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/convert.py +11 -8
  303. vec_io-0.7.0/vec_io/pdfread/errors.py +25 -0
  304. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/file.py +135 -59
  305. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/fonts.py +249 -74
  306. vec_io-0.7.0/vec_io/pdfread/functions.py +345 -0
  307. vec_io-0.7.0/vec_io/pdfread/images.py +805 -0
  308. vec_io-0.7.0/vec_io/pdfread/meshes.py +80 -0
  309. vec_io-0.7.0/vec_io/pdfread/origin.py +334 -0
  310. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/parser.py +36 -51
  311. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/reader.py +350 -51
  312. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/resources.py +246 -73
  313. vec_io-0.7.0/vec_io/pdfread/shadings.py +470 -0
  314. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/strings.py +15 -1
  315. vec_io-0.7.0/vec_io/raster/__init__.py +893 -0
  316. vec_io-0.7.0/vec_io/raster/groups.py +392 -0
  317. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/raster/resources.py +120 -79
  318. vec_io-0.7.0/vec_io/recorder.py +1199 -0
  319. vec_io-0.7.0/vec_io/records.py +411 -0
  320. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/resample.py +35 -41
  321. vec_io-0.7.0/vec_io/resources.py +70 -0
  322. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/scene.py +241 -55
  323. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/shapes.py +106 -92
  324. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/simplify.py +161 -149
  325. vec_io-0.7.0/vec_io/svg/__init__.py +11 -0
  326. vec_io-0.7.0/vec_io/svg/basic_shapes.py +386 -0
  327. vec_io-0.7.0/vec_io/svg/clipmask.py +277 -0
  328. vec_io-0.7.0/vec_io/svg/common.py +188 -0
  329. vec_io-0.7.0/vec_io/svg/css.py +1246 -0
  330. vec_io-0.7.0/vec_io/svg/filters.py +813 -0
  331. vec_io-0.7.0/vec_io/svg/fontface.py +177 -0
  332. vec_io-0.7.0/vec_io/svg/images.py +139 -0
  333. vec_io-0.7.0/vec_io/svg/markers.py +68 -0
  334. vec_io-0.7.0/vec_io/svg/painter.py +271 -0
  335. vec_io-0.7.0/vec_io/svg/parse.py +624 -0
  336. vec_io-0.7.0/vec_io/svg/properties.py +1038 -0
  337. vec_io-0.7.0/vec_io/svg/references.py +84 -0
  338. vec_io-0.7.0/vec_io/svg/render.py +584 -0
  339. vec_io-0.7.0/vec_io/svg/servers.py +164 -0
  340. vec_io-0.7.0/vec_io/svg/text.py +1034 -0
  341. vec_io-0.7.0/vec_io/svg/text_paint.py +330 -0
  342. vec_io-0.7.0/vec_io/svg/tree.py +491 -0
  343. vec_io-0.7.0/vec_io/svg/values.py +741 -0
  344. vec_io-0.7.0/vec_io/svg/writer.py +1001 -0
  345. vec_io-0.7.0/vec_io/text/__init__.py +1861 -0
  346. vec_io-0.7.0/vec_io/text/bidi.py +410 -0
  347. vec_io-0.7.0/vec_io/text/breaking.py +1056 -0
  348. vec_io-0.7.0/vec_io/text/harfbuzz.py +222 -0
  349. vec_io-0.7.0/vec_io/text/hyph_en_us.py +387 -0
  350. vec_io-0.7.0/vec_io/text/hyph_fr.py +123 -0
  351. vec_io-0.7.0/vec_io/text/hyphenation.py +165 -0
  352. vec_io-0.7.0/vec_io/text/mirroring.py +92 -0
  353. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/text/path.py +3 -3
  354. vec_io-0.7.0/vec_io/text/segment.py +139 -0
  355. vec_io-0.7.0/vec_io/text/shaping.py +700 -0
  356. vec_io-0.7.0/vec_io/text/ucd_grapheme.py +338 -0
  357. vec_io-0.7.0/vec_io/text/ucd_ignorable.py +19 -0
  358. vec_io-0.7.0/vec_io/text/ucd_linebreak.py +608 -0
  359. vec_io-0.7.0/vec_io/text/ucd_scripts.py +514 -0
  360. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/threads.py +58 -5
  361. vec_io-0.7.0/vec_io/transfer.py +477 -0
  362. vec_io-0.7.0/vec_io/trim.py +170 -0
  363. vec_io-0.7.0/vec_io/types.py +167 -0
  364. vec_io-0.7.0/vec_io/units.py +738 -0
  365. vec_io-0.3.0/API.md +0 -1866
  366. vec_io-0.3.0/EXAMPLES.md +0 -672
  367. vec_io-0.3.0/PKG-INFO +0 -186
  368. vec_io-0.3.0/README.md +0 -171
  369. vec_io-0.3.0/examples/bubble_chart.py +0 -72
  370. vec_io-0.3.0/examples/canvas_demo.py +0 -197
  371. vec_io-0.3.0/examples/drawing_demo.py +0 -80
  372. vec_io-0.3.0/examples/heatmap.py +0 -79
  373. vec_io-0.3.0/examples/scatter_plot.py +0 -74
  374. vec_io-0.3.0/examples/text_layout.py +0 -56
  375. vec_io-0.3.0/pyproject.toml +0 -45
  376. vec_io-0.3.0/tests/fuzz_native.py +0 -1236
  377. vec_io-0.3.0/tests/svg_oracle.py +0 -911
  378. vec_io-0.3.0/tests/test_cmyk.py +0 -334
  379. vec_io-0.3.0/tests/test_codecs.py +0 -33
  380. vec_io-0.3.0/tests/test_deflate.py +0 -57
  381. vec_io-0.3.0/tests/test_flatten.py +0 -340
  382. vec_io-0.3.0/tests/test_font_fixes.py +0 -159
  383. vec_io-0.3.0/tests/test_marker_runs.py +0 -140
  384. vec_io-0.3.0/tests/test_native_limits.py +0 -357
  385. vec_io-0.3.0/tests/test_pdfread.py +0 -797
  386. vec_io-0.3.0/tests/test_raster.py +0 -1121
  387. vec_io-0.3.0/tests/test_svg_writer.py +0 -250
  388. vec_io-0.3.0/tests/test_text.py +0 -191
  389. vec_io-0.3.0/tools/build_native.py +0 -421
  390. vec_io-0.3.0/vec_io/__main__.py +0 -292
  391. vec_io-0.3.0/vec_io/canvas.py +0 -2216
  392. vec_io-0.3.0/vec_io/convert.py +0 -232
  393. vec_io-0.3.0/vec_io/document.py +0 -1181
  394. vec_io-0.3.0/vec_io/draw.py +0 -985
  395. vec_io-0.3.0/vec_io/errors.py +0 -11
  396. vec_io-0.3.0/vec_io/flate.py +0 -59
  397. vec_io-0.3.0/vec_io/flatten.py +0 -2616
  398. vec_io-0.3.0/vec_io/fonts/cff.py +0 -702
  399. vec_io-0.3.0/vec_io/fonts/cff2.py +0 -523
  400. vec_io-0.3.0/vec_io/fonts/opentype.py +0 -384
  401. vec_io-0.3.0/vec_io/image/__init__.py +0 -131
  402. vec_io-0.3.0/vec_io/image/codecs.py +0 -108
  403. vec_io-0.3.0/vec_io/image/resource.py +0 -281
  404. vec_io-0.3.0/vec_io/native/README.md +0 -275
  405. vec_io-0.3.0/vec_io/native/_api.py +0 -937
  406. vec_io-0.3.0/vec_io/native/bin/linux-aarch64.so +0 -0
  407. vec_io-0.3.0/vec_io/native/bin/linux-x86_64.so +0 -0
  408. vec_io-0.3.0/vec_io/native/bin/macos-arm64.dylib +0 -0
  409. vec_io-0.3.0/vec_io/native/bin/windows-arm64.dll +0 -0
  410. vec_io-0.3.0/vec_io/native/bin/windows-x86_64.dll +0 -0
  411. vec_io-0.3.0/vec_io/native/brotli.py +0 -19
  412. vec_io-0.3.0/vec_io/native/deflate.py +0 -21
  413. vec_io-0.3.0/vec_io/native/jpeg.py +0 -90
  414. vec_io-0.3.0/vec_io/native/manifest.json +0 -49
  415. vec_io-0.3.0/vec_io/native/src/alloc.c +0 -183
  416. vec_io-0.3.0/vec_io/native/src/brotli.h +0 -16
  417. vec_io-0.3.0/vec_io/native/src/deflate.c +0 -930
  418. vec_io-0.3.0/vec_io/native/src/epsw.c +0 -1348
  419. vec_io-0.3.0/vec_io/native/src/interp.c +0 -5016
  420. vec_io-0.3.0/vec_io/native/src/items.c +0 -327
  421. vec_io-0.3.0/vec_io/native/src/mesh.c +0 -454
  422. vec_io-0.3.0/vec_io/native/src/pio.h +0 -171
  423. vec_io-0.3.0/vec_io/native/src/pio_api.h +0 -904
  424. vec_io-0.3.0/vec_io/native/src/rt.c +0 -92
  425. vec_io-0.3.0/vec_io/native/src/scan.c +0 -655
  426. vec_io-0.3.0/vec_io/native/src/shade.h +0 -61
  427. vec_io-0.3.0/vec_io/native/src/signatures.c +0 -191
  428. vec_io-0.3.0/vec_io/native/src/stroke.c +0 -565
  429. vec_io-0.3.0/vec_io/native/src/svgw.c +0 -1682
  430. vec_io-0.3.0/vec_io/native/src/woff2.c +0 -377
  431. vec_io-0.3.0/vec_io/pdf/__init__.py +0 -0
  432. vec_io-0.3.0/vec_io/pdf/objects.py +0 -150
  433. vec_io-0.3.0/vec_io/pdfread/__init__.py +0 -177
  434. vec_io-0.3.0/vec_io/pdfread/cffinfo.py +0 -116
  435. vec_io-0.3.0/vec_io/pdfread/colors.py +0 -450
  436. vec_io-0.3.0/vec_io/pdfread/errors.py +0 -35
  437. vec_io-0.3.0/vec_io/pdfread/functions.py +0 -452
  438. vec_io-0.3.0/vec_io/pdfread/images.py +0 -549
  439. vec_io-0.3.0/vec_io/pdfread/meshes.py +0 -47
  440. vec_io-0.3.0/vec_io/pdfread/shadings.py +0 -493
  441. vec_io-0.3.0/vec_io/raster/__init__.py +0 -554
  442. vec_io-0.3.0/vec_io/raster/groups.py +0 -104
  443. vec_io-0.3.0/vec_io/svg/__init__.py +0 -7
  444. vec_io-0.3.0/vec_io/svg/css.py +0 -366
  445. vec_io-0.3.0/vec_io/svg/filters.py +0 -253
  446. vec_io-0.3.0/vec_io/svg/parse.py +0 -305
  447. vec_io-0.3.0/vec_io/svg/render.py +0 -1888
  448. vec_io-0.3.0/vec_io/svg/writer.py +0 -533
  449. vec_io-0.3.0/vec_io/text/__init__.py +0 -977
  450. vec_io-0.3.0/vec_io/text/breaking.py +0 -582
  451. vec_io-0.3.0/vec_io/trim.py +0 -151
  452. vec_io-0.3.0/vec_io/units.py +0 -184
  453. {vec_io-0.3.0 → vec_io-0.7.0}/LICENSE +0 -0
  454. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/abc.br +0 -0
  455. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/abc.out.z +0 -0
  456. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/big.br +0 -0
  457. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/big.out.z +0 -0
  458. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/binary.br +0 -0
  459. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/binary.out.z +0 -0
  460. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/bits2.br +0 -0
  461. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/bits2.out.z +0 -0
  462. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/dictwords.br +0 -0
  463. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/dictwords.out.z +0 -0
  464. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/empty.br +0 -0
  465. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/empty.out.z +0 -0
  466. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/four.br +0 -0
  467. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/four.out.z +0 -0
  468. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/handmade.br +0 -0
  469. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/handmade.out.z +0 -0
  470. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/ints.br +0 -0
  471. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/ints.out.z +0 -0
  472. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/mixed.br +0 -0
  473. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/mixed.out.z +0 -0
  474. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/multi.br +0 -0
  475. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/multi.out.z +0 -0
  476. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/one.br +0 -0
  477. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/one.out.z +0 -0
  478. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/random.br +0 -0
  479. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/random.out.z +0 -0
  480. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/text11.br +0 -0
  481. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/text11.out.z +0 -0
  482. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/text_q2.br +0 -0
  483. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/text_q2.out.z +0 -0
  484. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/three.br +0 -0
  485. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/three.out.z +0 -0
  486. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/w10.br +0 -0
  487. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/w10.out.z +0 -0
  488. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/w24.br +0 -0
  489. {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/w24.out.z +0 -0
  490. /vec_io-0.3.0/examples/showcase.svg → /vec_io-0.7.0/tests/corpus/bench_showcase.svg +0 -0
  491. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/clipping.svg +0 -0
  492. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/css.svg +0 -0
  493. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/empty.svg +0 -0
  494. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/filters.svg +0 -0
  495. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/fonts_face.svg +0 -0
  496. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/gradients.svg +0 -0
  497. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/images.svg +0 -0
  498. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/markers.svg +0 -0
  499. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/masks.svg +0 -0
  500. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/opacity.svg +0 -0
  501. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/paths.svg +0 -0
  502. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/patterns.svg +0 -0
  503. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/rasterized.svg +0 -0
  504. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/shapes.svg +0 -0
  505. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/strokes.svg +0 -0
  506. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/structure.svg +0 -0
  507. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/text-wrap.svg +0 -0
  508. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/text_basic.svg +0 -0
  509. /vec_io-0.3.0/examples/text.svg → /vec_io-0.7.0/tests/corpus/text_features.svg +0 -0
  510. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/text_layout.svg +0 -0
  511. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/text_path.svg +0 -0
  512. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/text_unicode.svg +0 -0
  513. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/transforms.svg +0 -0
  514. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/units.svg +0 -0
  515. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/use_symbol.svg +0 -0
  516. {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/viewbox.svg +0 -0
  517. {vec_io-0.3.0 → vec_io-0.7.0}/tests/jbig2_encoder.py +0 -0
  518. {vec_io-0.3.0 → vec_io-0.7.0}/tests/jpx_fixtures.py +0 -0
  519. {vec_io-0.3.0 → vec_io-0.7.0}/tests/make_crypt_fixtures.py +0 -0
  520. {vec_io-0.3.0 → vec_io-0.7.0}/tests/maps.py +0 -0
  521. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/cmyk8.j2k +0 -0
  522. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/cmyk8.jp2 +0 -0
  523. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/gray12.j2k +0 -0
  524. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/gray16.jp2 +0 -0
  525. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/gray4-signed.j2k +0 -0
  526. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/graya16.jp2 +0 -0
  527. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/gs-r2.pdf +0 -0
  528. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/gs-r3.pdf +0 -0
  529. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/icc-gray8.jp2 +0 -0
  530. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r2.pdf +0 -0
  531. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r3.pdf +0 -0
  532. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r4-aes-nometa.pdf +0 -0
  533. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r4-aes.pdf +0 -0
  534. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r4-pdfdoc.pdf +0 -0
  535. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r4-rc4.pdf +0 -0
  536. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r5.pdf +0 -0
  537. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r6-empty.pdf +0 -0
  538. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r6-utf8.pdf +0 -0
  539. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r6.pdf +0 -0
  540. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/rgb8.j2k +0 -0
  541. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/rgb8.jp2 +0 -0
  542. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/rgba8.jp2 +0 -0
  543. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/ycc420.jp2 +0 -0
  544. {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/ycc422-offset.jp2 +0 -0
  545. {vec_io-0.3.0 → vec_io-0.7.0}/tests/shapes.py +0 -0
  546. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_ccitt.py +0 -0
  547. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_encodings.py +0 -0
  548. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_jpx_jbig2.py +0 -0
  549. {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_units.py +0 -0
  550. {vec_io-0.3.0 → vec_io-0.7.0}/tests/varfonts/VarTest.otf +0 -0
  551. {vec_io-0.3.0 → vec_io-0.7.0}/tests/varfonts/VarTest.ttf +0 -0
  552. {vec_io-0.3.0 → vec_io-0.7.0}/tests/woff2/make.py +0 -0
  553. {vec_io-0.3.0 → vec_io-0.7.0}/tests/woff2/pair.woff2 +0 -0
  554. {vec_io-0.3.0 → vec_io-0.7.0}/tests/woff2/rich-null.woff2 +0 -0
  555. {vec_io-0.3.0 → vec_io-0.7.0}/tests/woff2/rich.ttf +0 -0
  556. {vec_io-0.3.0 → vec_io-0.7.0}/tests/woff2/rich.woff2 +0 -0
  557. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/ctan.py +0 -0
  558. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/encodings.py +0 -0
  559. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/fontshare.py +0 -0
  560. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/fontshare_families.txt +0 -0
  561. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/fontsource.py +0 -0
  562. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/fontsource_families.txt +0 -0
  563. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/glyphlist.txt +0 -0
  564. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/google.py +0 -0
  565. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/google_families.txt +0 -0
  566. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/urw.py +0 -0
  567. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/image/jxl.py +0 -0
  568. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/cmap_resources.txt +0 -0
  569. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/security.py +0 -0
  570. {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/py.typed +0 -0
vec_io-0.7.0/PKG-INFO ADDED
@@ -0,0 +1,133 @@
1
+ Metadata-Version: 2.5
2
+ Name: vec_io
3
+ Version: 0.7.0
4
+ Summary: Vector graphics in Python: read SVG and PDF; write PDF, SVG, EPS, PNG, JPEG, JPEG XL, AVIF
5
+ Project-URL: Repository, https://github.com/ajgouhier/vec_io
6
+ Author-email: Arthur Gouhier <ajgouhier@gmail.com>
7
+ License-Expression: BSD-3-Clause
8
+ License-File: LICENSE
9
+ Requires-Python: >=3.11
10
+ Provides-Extra: dev
11
+ Requires-Dist: mypy; extra == 'dev'
12
+ Requires-Dist: numpy; extra == 'dev'
13
+ Requires-Dist: ruff; extra == 'dev'
14
+ Requires-Dist: ziglang==0.15.1; extra == 'dev'
15
+ Description-Content-Type: text/markdown
16
+
17
+ # vec_io
18
+
19
+ Vector graphics in Python: read SVG and PDF, draw pages and plot data, write PDF, SVG,
20
+ SVGZ, EPS, PNG, JPEG, JPEG XL, AVIF or TIFF.
21
+ No dependencies: a bundled C library does the heavy lifting.
22
+
23
+ ## Install
24
+
25
+ ```sh
26
+ pip install vec_io
27
+ ```
28
+
29
+ Python 3.11+. Wheels hold the C library prebuilt for Linux (x86_64, aarch64; glibc or
30
+ musl), Windows (x86_64, arm64) and macOS 13+ (arm64). Elsewhere pip builds it from the
31
+ sdist with the local C compiler (gcc or clang; on Windows clang or MinGW, not MSVC). Without
32
+ the library, drawing calls still record, but every output and the bulk calls raise
33
+ `NativeLibraryError`. `vec_io doctor` checks the installation.
34
+
35
+ ## Example
36
+
37
+ ```python
38
+ import vec_io
39
+
40
+ svg_text = ('<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100">'
41
+ '<circle cx="50" cy="50" r="40" fill="#e30613"/></svg>')
42
+ vec_io.convert(svg_text, "circle.pdf") # SVG text, a path or bytes
43
+ vec_io.convert("drawing.svg", "drawing.png", dpi=192) # the format from the extension
44
+
45
+ doc = vec_io.Document(unit="mm", title="Report") # one unit for pages, calls and fonts
46
+ page = doc.add_page(width=120, height=60) # origin top-left
47
+ page.draw_rect(10, 10, 100, 40, rx=3, fill="#1f6fb2")
48
+ page.draw_text("Hello", 20, 35, fill="white", font_size=12, font_weight="bold")
49
+ doc.save("hello.pdf")
50
+ doc.save("hello.svg") # the same record, another format
51
+ ```
52
+
53
+ A document records what is drawn; each output (`write`, `save`, `render`) is made from the
54
+ record with its own options, and drawing may go on after a save. In a notebook, pages,
55
+ documents, drawings and images show themselves as SVG.
56
+
57
+ ## Features
58
+
59
+ * **Convert** SVG and PDF to every output format: shapes, text with embedded font subsets,
60
+ gradients, patterns, clips, masks, markers, filters, images and CSS. Blank borders cut
61
+ (`--trim`), the output resized (`--width 8.5in`, `--size us --margin 1in`), images
62
+ resampled (`--dpi 300`).
63
+ * **Draw on pages** with `Document` and `Page` (SVG's style names, a style per call or per
64
+ `state()`, any unit): pages, links, bookmarks, metadata, placed SVG and PDF files, text
65
+ along paths, filters on any group; or build drawings of elements with `vec_io.draw`.
66
+ * **Read PDF** (and Illustrator `.ai`) into documents: text stays text, every font kind,
67
+ encrypted and damaged files, colour spaces and overprint kept; `PDFFile` merges, splits,
68
+ rotates and crops PDF files without interpreting them.
69
+ * **Lay out text**: paragraphs in boxes, justified, hyphenated, greedy or Knuth–Plass,
70
+ rich text with links, overflow into further boxes; bidi; shaping and measuring without a
71
+ page (`vec_io.text`).
72
+ * **Plot data**: markers, lines of millions of points, areas, segments, bars, polygons and
73
+ grids of cells, from sequences or buffers (numpy arrays); `simplify` leaves out what
74
+ does not show. Axes and colour maps are [plot_io](https://github.com/ajgouhier/plot_io)'s.
75
+ * **Fonts**: installed fonts, font files, `@font-face`, variable fonts; a family that is not
76
+ installed is downloaded once and cached (Google Fonts, URW, CTAN, Fontsource, Fontshare).
77
+ * **Print and archive**: CMYK, spot colours, ink limit, ICC output intent; PDF/A-2b, 2u and
78
+ 3b with attachments; transparency flattened for EPS and PDF.
79
+ * **Untrusted input**: `vec_io.Limits` bounds what a call may spend; past it, `LimitError`.
80
+ * **Small files**: PNG in its smallest lossless layout or a lossy palette, progressive
81
+ JPEG, JPEG XL and AVIF when their libraries are installed.
82
+
83
+ ## Command line
84
+
85
+ ```sh
86
+ vec_io convert drawing.svg out.pdf # any output format
87
+ vec_io convert --trim --margin 2mm figure.svg figure.png
88
+ vec_io convert report.pdf "page-{page:02}.svg" # one file per page
89
+ vec_io pages a.pdf b.svg -o out.pdf --select 1-3,5 --nup 2x2 --size a4
90
+ vec_io info report.pdf --json # pages, fonts, images, metadata
91
+ vec_io fonts find "Helvetica" # the file a family resolves to
92
+ vec_io text report.pdf # the text, in reading order
93
+ ```
94
+
95
+ Every command takes `-` for stdin or stdout; `vec_io COMMAND --help` lists its flags.
96
+
97
+ ## Documentation
98
+
99
+ * [Tutorial](https://github.com/ajgouhier/vec_io/blob/main/docs/tutorial.md): first steps.
100
+ * [Examples](https://github.com/ajgouhier/vec_io/blob/main/docs/examples.md): nine scripts
101
+ with their images, and recipes.
102
+ * [API](https://github.com/ajgouhier/vec_io/blob/main/docs/api.md): the guide by topic:
103
+ conventions, drawing, text, output options, SVG support, fonts, limits, the command line.
104
+ * [Reference](https://github.com/ajgouhier/vec_io/tree/main/docs/reference): a page per
105
+ class.
106
+
107
+ ## Limits
108
+
109
+ * Complex scripts (Arabic, Indic, Thai…) are joined only when HarfBuzz is installed; without
110
+ it they are drawn unjoined, with a warning.
111
+ * Text needs an outline font; with none installed, supplied or downloaded, `NoFontError`.
112
+ * Filters are pixels in PDF and EPS, `<filter>` elements in SVG.
113
+ * URLs an SVG refers to are fetched unless `network=False` (use it for untrusted input).
114
+ * Overprint is kept in PDF output, not simulated in images. Animation and scripts are
115
+ ignored.
116
+
117
+ ## Development
118
+
119
+ ```sh
120
+ python tools/check.py # every check, in one gate (--fast, --list)
121
+ python -m unittest discover -s tests -t tests
122
+ python tools/gen_docs.py # the generated parts of docs/ (--check, --images)
123
+ python tools/regress.py --render --check # output against HEAD on tests/corpus
124
+ pip install --require-hashes -r tools/zig.lock
125
+ python tools/build_native.py # vec_io/native/bin/* (not in git)
126
+ ```
127
+
128
+ `check.py` runs the suite, ruff, mypy, the docs (generated parts, code blocks, links,
129
+ images), the examples (their SVGs equal the committed ones where Helvetica is installed),
130
+ the binaries rebuilt byte for byte, the fuzz suite, the corpus through poppler and Chrome.
131
+ Tests use their own font (`tests/fonts`) and never download. The C library and its rules
132
+ are described in
133
+ [vec_io/native/README.md](https://github.com/ajgouhier/vec_io/blob/main/vec_io/native/README.md).
vec_io-0.7.0/README.md ADDED
@@ -0,0 +1,117 @@
1
+ # vec_io
2
+
3
+ Vector graphics in Python: read SVG and PDF, draw pages and plot data, write PDF, SVG,
4
+ SVGZ, EPS, PNG, JPEG, JPEG XL, AVIF or TIFF.
5
+ No dependencies: a bundled C library does the heavy lifting.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ pip install vec_io
11
+ ```
12
+
13
+ Python 3.11+. Wheels hold the C library prebuilt for Linux (x86_64, aarch64; glibc or
14
+ musl), Windows (x86_64, arm64) and macOS 13+ (arm64). Elsewhere pip builds it from the
15
+ sdist with the local C compiler (gcc or clang; on Windows clang or MinGW, not MSVC). Without
16
+ the library, drawing calls still record, but every output and the bulk calls raise
17
+ `NativeLibraryError`. `vec_io doctor` checks the installation.
18
+
19
+ ## Example
20
+
21
+ ```python
22
+ import vec_io
23
+
24
+ svg_text = ('<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100">'
25
+ '<circle cx="50" cy="50" r="40" fill="#e30613"/></svg>')
26
+ vec_io.convert(svg_text, "circle.pdf") # SVG text, a path or bytes
27
+ vec_io.convert("drawing.svg", "drawing.png", dpi=192) # the format from the extension
28
+
29
+ doc = vec_io.Document(unit="mm", title="Report") # one unit for pages, calls and fonts
30
+ page = doc.add_page(width=120, height=60) # origin top-left
31
+ page.draw_rect(10, 10, 100, 40, rx=3, fill="#1f6fb2")
32
+ page.draw_text("Hello", 20, 35, fill="white", font_size=12, font_weight="bold")
33
+ doc.save("hello.pdf")
34
+ doc.save("hello.svg") # the same record, another format
35
+ ```
36
+
37
+ A document records what is drawn; each output (`write`, `save`, `render`) is made from the
38
+ record with its own options, and drawing may go on after a save. In a notebook, pages,
39
+ documents, drawings and images show themselves as SVG.
40
+
41
+ ## Features
42
+
43
+ * **Convert** SVG and PDF to every output format: shapes, text with embedded font subsets,
44
+ gradients, patterns, clips, masks, markers, filters, images and CSS. Blank borders cut
45
+ (`--trim`), the output resized (`--width 8.5in`, `--size us --margin 1in`), images
46
+ resampled (`--dpi 300`).
47
+ * **Draw on pages** with `Document` and `Page` (SVG's style names, a style per call or per
48
+ `state()`, any unit): pages, links, bookmarks, metadata, placed SVG and PDF files, text
49
+ along paths, filters on any group; or build drawings of elements with `vec_io.draw`.
50
+ * **Read PDF** (and Illustrator `.ai`) into documents: text stays text, every font kind,
51
+ encrypted and damaged files, colour spaces and overprint kept; `PDFFile` merges, splits,
52
+ rotates and crops PDF files without interpreting them.
53
+ * **Lay out text**: paragraphs in boxes, justified, hyphenated, greedy or Knuth–Plass,
54
+ rich text with links, overflow into further boxes; bidi; shaping and measuring without a
55
+ page (`vec_io.text`).
56
+ * **Plot data**: markers, lines of millions of points, areas, segments, bars, polygons and
57
+ grids of cells, from sequences or buffers (numpy arrays); `simplify` leaves out what
58
+ does not show. Axes and colour maps are [plot_io](https://github.com/ajgouhier/plot_io)'s.
59
+ * **Fonts**: installed fonts, font files, `@font-face`, variable fonts; a family that is not
60
+ installed is downloaded once and cached (Google Fonts, URW, CTAN, Fontsource, Fontshare).
61
+ * **Print and archive**: CMYK, spot colours, ink limit, ICC output intent; PDF/A-2b, 2u and
62
+ 3b with attachments; transparency flattened for EPS and PDF.
63
+ * **Untrusted input**: `vec_io.Limits` bounds what a call may spend; past it, `LimitError`.
64
+ * **Small files**: PNG in its smallest lossless layout or a lossy palette, progressive
65
+ JPEG, JPEG XL and AVIF when their libraries are installed.
66
+
67
+ ## Command line
68
+
69
+ ```sh
70
+ vec_io convert drawing.svg out.pdf # any output format
71
+ vec_io convert --trim --margin 2mm figure.svg figure.png
72
+ vec_io convert report.pdf "page-{page:02}.svg" # one file per page
73
+ vec_io pages a.pdf b.svg -o out.pdf --select 1-3,5 --nup 2x2 --size a4
74
+ vec_io info report.pdf --json # pages, fonts, images, metadata
75
+ vec_io fonts find "Helvetica" # the file a family resolves to
76
+ vec_io text report.pdf # the text, in reading order
77
+ ```
78
+
79
+ Every command takes `-` for stdin or stdout; `vec_io COMMAND --help` lists its flags.
80
+
81
+ ## Documentation
82
+
83
+ * [Tutorial](https://github.com/ajgouhier/vec_io/blob/main/docs/tutorial.md): first steps.
84
+ * [Examples](https://github.com/ajgouhier/vec_io/blob/main/docs/examples.md): nine scripts
85
+ with their images, and recipes.
86
+ * [API](https://github.com/ajgouhier/vec_io/blob/main/docs/api.md): the guide by topic:
87
+ conventions, drawing, text, output options, SVG support, fonts, limits, the command line.
88
+ * [Reference](https://github.com/ajgouhier/vec_io/tree/main/docs/reference): a page per
89
+ class.
90
+
91
+ ## Limits
92
+
93
+ * Complex scripts (Arabic, Indic, Thai…) are joined only when HarfBuzz is installed; without
94
+ it they are drawn unjoined, with a warning.
95
+ * Text needs an outline font; with none installed, supplied or downloaded, `NoFontError`.
96
+ * Filters are pixels in PDF and EPS, `<filter>` elements in SVG.
97
+ * URLs an SVG refers to are fetched unless `network=False` (use it for untrusted input).
98
+ * Overprint is kept in PDF output, not simulated in images. Animation and scripts are
99
+ ignored.
100
+
101
+ ## Development
102
+
103
+ ```sh
104
+ python tools/check.py # every check, in one gate (--fast, --list)
105
+ python -m unittest discover -s tests -t tests
106
+ python tools/gen_docs.py # the generated parts of docs/ (--check, --images)
107
+ python tools/regress.py --render --check # output against HEAD on tests/corpus
108
+ pip install --require-hashes -r tools/zig.lock
109
+ python tools/build_native.py # vec_io/native/bin/* (not in git)
110
+ ```
111
+
112
+ `check.py` runs the suite, ruff, mypy, the docs (generated parts, code blocks, links,
113
+ images), the examples (their SVGs equal the committed ones where Helvetica is installed),
114
+ the binaries rebuilt byte for byte, the fuzz suite, the corpus through poppler and Chrome.
115
+ Tests use their own font (`tests/fonts`) and never download. The C library and its rules
116
+ are described in
117
+ [vec_io/native/README.md](https://github.com/ajgouhier/vec_io/blob/main/vec_io/native/README.md).