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.
- vec_io-0.7.0/PKG-INFO +133 -0
- vec_io-0.7.0/README.md +117 -0
- vec_io-0.7.0/docs/api.md +1772 -0
- vec_io-0.7.0/docs/examples.md +729 -0
- vec_io-0.7.0/docs/reference/AVIF.md +42 -0
- vec_io-0.7.0/docs/reference/Bookmark.md +19 -0
- vec_io-0.7.0/docs/reference/CMYK.md +44 -0
- vec_io-0.7.0/docs/reference/Color.md +40 -0
- vec_io-0.7.0/docs/reference/Document.md +258 -0
- vec_io-0.7.0/docs/reference/Filter.md +59 -0
- vec_io-0.7.0/docs/reference/Flatten.md +57 -0
- vec_io-0.7.0/docs/reference/Font.md +51 -0
- vec_io-0.7.0/docs/reference/FontDB.md +135 -0
- vec_io-0.7.0/docs/reference/Fonts.md +48 -0
- vec_io-0.7.0/docs/reference/GlyphRun.md +39 -0
- vec_io-0.7.0/docs/reference/Image.md +89 -0
- vec_io-0.7.0/docs/reference/ImagePolicy.md +74 -0
- vec_io-0.7.0/docs/reference/JPEG.md +44 -0
- vec_io-0.7.0/docs/reference/JXL.md +42 -0
- vec_io-0.7.0/docs/reference/Limits.md +43 -0
- vec_io-0.7.0/docs/reference/LinearGradient.md +45 -0
- vec_io-0.7.0/docs/reference/Marker.md +29 -0
- vec_io-0.7.0/docs/reference/Mask.md +31 -0
- vec_io-0.7.0/docs/reference/Matrix.md +117 -0
- vec_io-0.7.0/docs/reference/PDF.md +45 -0
- vec_io-0.7.0/docs/reference/PDFFile.md +104 -0
- vec_io-0.7.0/docs/reference/PDFPage.md +67 -0
- vec_io-0.7.0/docs/reference/PNG.md +45 -0
- vec_io-0.7.0/docs/reference/Page.md +863 -0
- vec_io-0.7.0/docs/reference/PageBoxes.md +21 -0
- vec_io-0.7.0/docs/reference/Path.md +203 -0
- vec_io-0.7.0/docs/reference/PathMarker.md +27 -0
- vec_io-0.7.0/docs/reference/Pattern.md +29 -0
- vec_io-0.7.0/docs/reference/RadialGradient.md +41 -0
- vec_io-0.7.0/docs/reference/SVGDocument.md +49 -0
- vec_io-0.7.0/docs/reference/Simplify.md +46 -0
- vec_io-0.7.0/docs/reference/Span.md +38 -0
- vec_io-0.7.0/docs/reference/Spot.md +32 -0
- vec_io-0.7.0/docs/reference/Style.md +15 -0
- vec_io-0.7.0/docs/reference/TIFF.md +42 -0
- vec_io-0.7.0/docs/reference/TextLayout.md +69 -0
- vec_io-0.7.0/docs/reference/View.md +82 -0
- vec_io-0.7.0/docs/reference/draw.Area.md +42 -0
- vec_io-0.7.0/docs/reference/draw.Cells.md +29 -0
- vec_io-0.7.0/docs/reference/draw.Circle.md +36 -0
- vec_io-0.7.0/docs/reference/draw.ClipPath.md +31 -0
- vec_io-0.7.0/docs/reference/draw.Drawing.md +83 -0
- vec_io-0.7.0/docs/reference/draw.Element.md +45 -0
- vec_io-0.7.0/docs/reference/draw.Ellipse.md +36 -0
- vec_io-0.7.0/docs/reference/draw.Group.md +55 -0
- vec_io-0.7.0/docs/reference/draw.Image.md +30 -0
- vec_io-0.7.0/docs/reference/draw.Line.md +36 -0
- vec_io-0.7.0/docs/reference/draw.Lines.md +45 -0
- vec_io-0.7.0/docs/reference/draw.Marker.md +44 -0
- vec_io-0.7.0/docs/reference/draw.Markers.md +44 -0
- vec_io-0.7.0/docs/reference/draw.Mask.md +40 -0
- vec_io-0.7.0/docs/reference/draw.Path.md +198 -0
- vec_io-0.7.0/docs/reference/draw.Pattern.md +38 -0
- vec_io-0.7.0/docs/reference/draw.Polygon.md +39 -0
- vec_io-0.7.0/docs/reference/draw.Polygons.md +43 -0
- vec_io-0.7.0/docs/reference/draw.Polyline.md +37 -0
- vec_io-0.7.0/docs/reference/draw.Rect.md +38 -0
- vec_io-0.7.0/docs/reference/draw.Rects.md +42 -0
- vec_io-0.7.0/docs/reference/draw.SVG.md +30 -0
- vec_io-0.7.0/docs/reference/draw.Segments.md +42 -0
- vec_io-0.7.0/docs/reference/draw.TSpan.md +30 -0
- vec_io-0.7.0/docs/reference/draw.Text.md +38 -0
- vec_io-0.7.0/docs/reference/draw.TextBox.md +39 -0
- vec_io-0.7.0/docs/reference/draw.Use.md +29 -0
- vec_io-0.7.0/docs/reference/filter.Blend.md +21 -0
- vec_io-0.7.0/docs/reference/filter.ColorMatrix.md +18 -0
- vec_io-0.7.0/docs/reference/filter.ComponentTransfer.md +19 -0
- vec_io-0.7.0/docs/reference/filter.Composite.md +19 -0
- vec_io-0.7.0/docs/reference/filter.ConvolveMatrix.md +23 -0
- vec_io-0.7.0/docs/reference/filter.DiffuseLighting.md +20 -0
- vec_io-0.7.0/docs/reference/filter.DisplacementMap.md +19 -0
- vec_io-0.7.0/docs/reference/filter.DistantLight.md +18 -0
- vec_io-0.7.0/docs/reference/filter.DropShadow.md +23 -0
- vec_io-0.7.0/docs/reference/filter.Flood.md +20 -0
- vec_io-0.7.0/docs/reference/filter.GaussianBlur.md +21 -0
- vec_io-0.7.0/docs/reference/filter.Image.md +19 -0
- vec_io-0.7.0/docs/reference/filter.Merge.md +18 -0
- vec_io-0.7.0/docs/reference/filter.Morphology.md +20 -0
- vec_io-0.7.0/docs/reference/filter.Offset.md +19 -0
- vec_io-0.7.0/docs/reference/filter.PointLight.md +17 -0
- vec_io-0.7.0/docs/reference/filter.Primitive.md +18 -0
- vec_io-0.7.0/docs/reference/filter.SpecularLighting.md +22 -0
- vec_io-0.7.0/docs/reference/filter.SpotLight.md +17 -0
- vec_io-0.7.0/docs/reference/filter.Tile.md +20 -0
- vec_io-0.7.0/docs/reference/filter.Transfer.md +28 -0
- vec_io-0.7.0/docs/reference/filter.Turbulence.md +21 -0
- vec_io-0.7.0/docs/reference/text.Extent.md +16 -0
- vec_io-0.7.0/docs/reference/text.Glyph.md +43 -0
- vec_io-0.7.0/docs/reference/text.Paragraphs.md +60 -0
- vec_io-0.7.0/docs/tutorial.md +141 -0
- vec_io-0.7.0/hatch_build.py +47 -0
- vec_io-0.7.0/pyproject.toml +52 -0
- vec_io-0.7.0/tests/colorfonts/ColrV0Test.ttf +0 -0
- vec_io-0.7.0/tests/colorfonts/ColrV1Test.ttf +0 -0
- vec_io-0.3.0/tests/fonts/PioTest-Bold.ttf → vec_io-0.7.0/tests/fonts/VioTest-Bold.ttf +0 -0
- vec_io-0.3.0/tests/fonts/PioTest-Regular.ttf → vec_io-0.7.0/tests/fonts/VioTest-Regular.ttf +0 -0
- vec_io-0.7.0/tests/fuzz_native.py +2539 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/fuzz_pdfread.py +3 -3
- vec_io-0.7.0/tests/group_oracle.py +209 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/helpers.py +80 -5
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfbuild.py +2 -2
- vec_io-0.7.0/tests/pdfread/qpdf-r4-objstm.pdf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/scene_oracle.py +30 -11
- vec_io-0.7.0/tests/test_actual_text.py +352 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_api.py +633 -174
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_avif.py +8 -6
- vec_io-0.7.0/tests/test_backends.py +261 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_canvas_features.py +54 -29
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_cells.py +45 -39
- vec_io-0.7.0/tests/test_chrome_suite.py +154 -0
- vec_io-0.7.0/tests/test_cli.py +168 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_cmap.py +48 -0
- vec_io-0.7.0/tests/test_cmyk.py +391 -0
- vec_io-0.7.0/tests/test_codecs.py +56 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_compile.py +12 -9
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_convert.py +153 -14
- vec_io-0.7.0/tests/test_css_browser.py +614 -0
- vec_io-0.7.0/tests/test_dlist.py +237 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_document_write.py +265 -33
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_dpi.py +41 -13
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_eps.py +129 -52
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_features.py +14 -10
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_filters.py +270 -2
- vec_io-0.7.0/tests/test_flatten.py +605 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_font_sources.py +14 -15
- vec_io-0.7.0/tests/test_font_tables.py +364 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_fonts_io.py +227 -41
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_google_fonts.py +18 -18
- vec_io-0.7.0/tests/test_image_formats.py +649 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_jxl.py +35 -28
- vec_io-0.7.0/tests/test_marker_runs.py +177 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_native.py +122 -20
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_native_emit.py +2 -2
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_native_jpeg.py +80 -3
- vec_io-0.7.0/tests/test_native_limits.py +660 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_native_png.py +47 -8
- vec_io-0.7.0/tests/test_network.py +285 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_output.py +128 -77
- vec_io-0.7.0/tests/test_paint_browser.py +522 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_parsing.py +29 -1
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_pdf_security.py +16 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_pdfa.py +109 -70
- vec_io-0.7.0/tests/test_pdffile.py +334 -0
- vec_io-0.7.0/tests/test_pdfread.py +1712 -0
- vec_io-0.7.0/tests/test_raster.py +1736 -0
- vec_io-0.3.0/tests/test_reader_fixes.py → vec_io-0.7.0/tests/test_readers.py +78 -45
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_resize.py +8 -15
- vec_io-0.7.0/tests/test_save_pages.py +49 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_scene.py +81 -52
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_shapes.py +55 -16
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_simplify.py +271 -79
- vec_io-0.7.0/tests/test_svg_fonts.py +244 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_svg_semantics.py +178 -13
- vec_io-0.7.0/tests/test_svg_writer.py +641 -0
- vec_io-0.7.0/tests/test_text.py +440 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_text_as_paths.py +72 -34
- vec_io-0.7.0/tests/test_text_browser.py +463 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_textlayout.py +133 -41
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_threads.py +66 -17
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_trim.py +65 -25
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_type1.py +73 -1
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_varfonts.py +92 -14
- vec_io-0.3.0/tests/test_output_fixes.py → vec_io-0.7.0/tests/test_views.py +46 -43
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_woff2.py +4 -2
- vec_io-0.7.0/tests/test_woff2_write.py +279 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/testfont.py +4 -4
- vec_io-0.7.0/tests/typing_sample.py +96 -0
- vec_io-0.7.0/tools/build_native.py +839 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tools/gen_api.py +49 -49
- vec_io-0.7.0/tools/zig.lock +22 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/__init__.py +21 -15
- vec_io-0.7.0/vec_io/__main__.py +8 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/arrays.py +20 -4
- vec_io-0.7.0/vec_io/canvas.py +2059 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/cells.py +95 -70
- vec_io-0.7.0/vec_io/cli.py +1161 -0
- vec_io-0.7.0/vec_io/convert.py +481 -0
- vec_io-0.7.0/vec_io/css_tokens.py +313 -0
- vec_io-0.7.0/vec_io/document.py +2060 -0
- vec_io-0.7.0/vec_io/draw.py +1246 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/eps/__init__.py +198 -71
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/eps/fonts.py +16 -15
- vec_io-0.7.0/vec_io/errors.py +26 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/filter.py +315 -77
- vec_io-0.7.0/vec_io/flate.py +87 -0
- vec_io-0.7.0/vec_io/flatten.py +707 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/__init__.py +94 -60
- vec_io-0.7.0/vec_io/fonts/cff.py +681 -0
- vec_io-0.7.0/vec_io/fonts/cff2.py +210 -0
- vec_io-0.7.0/vec_io/fonts/charstring.py +523 -0
- vec_io-0.7.0/vec_io/fonts/colr.py +591 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/download.py +25 -56
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/fontdb.py +293 -58
- vec_io-0.7.0/vec_io/fonts/opentype.py +1556 -0
- vec_io-0.7.0/vec_io/fonts/program.py +155 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/sfnt.py +334 -63
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/type1.py +105 -49
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/variations.py +15 -23
- vec_io-0.7.0/vec_io/fonts/web.py +153 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/woff2.py +129 -6
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/geometry.py +431 -91
- vec_io-0.7.0/vec_io/image/__init__.py +305 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/image/avif.py +94 -10
- vec_io-0.7.0/vec_io/image/bmp.py +308 -0
- vec_io-0.7.0/vec_io/image/codecs.py +121 -0
- vec_io-0.7.0/vec_io/image/gif.py +122 -0
- vec_io-0.7.0/vec_io/image/icc.py +242 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/image/jbig2.py +13 -7
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/image/jpx.py +10 -5
- vec_io-0.7.0/vec_io/image/resource.py +925 -0
- vec_io-0.7.0/vec_io/image/tiff.py +263 -0
- vec_io-0.7.0/vec_io/image/webp.py +183 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/items.py +39 -16
- vec_io-0.7.0/vec_io/limits.py +369 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/lines.py +60 -53
- vec_io-0.7.0/vec_io/native/README.md +378 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/__init__.py +175 -36
- vec_io-0.7.0/vec_io/native/__main__.py +184 -0
- vec_io-0.7.0/vec_io/native/_api.py +1218 -0
- vec_io-0.7.0/vec_io/native/brotli.py +37 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/emit.py +78 -40
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/filters.py +23 -22
- vec_io-0.7.0/vec_io/native/jpeg.py +179 -0
- vec_io-0.7.0/vec_io/native/manifest.json +54 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/pdfread.py +93 -22
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/png.py +96 -40
- vec_io-0.7.0/vec_io/native/src/alloc.c +271 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/brotli.c +78 -75
- vec_io-0.7.0/vec_io/native/src/brotli.h +16 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/brotli_dict.c +8 -8
- vec_io-0.7.0/vec_io/native/src/brotli_enc.c +1850 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/ccitt.c +29 -26
- vec_io-0.7.0/vec_io/native/src/color.c +648 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/crypt.c +34 -28
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/cull.c +540 -261
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/data.c +49 -43
- vec_io-0.7.0/vec_io/native/src/dlist.c +2663 -0
- vec_io-0.7.0/vec_io/native/src/dlist.h +131 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/emit.c +63 -63
- vec_io-0.7.0/vec_io/native/src/epsw.c +1744 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/filters.c +218 -133
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/flat.c +102 -102
- vec_io-0.7.0/vec_io/native/src/flatten.c +4394 -0
- vec_io-0.7.0/vec_io/native/src/func.c +938 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/image.c +185 -66
- vec_io-0.7.0/vec_io/native/src/interp.c +4390 -0
- vec_io-0.7.0/vec_io/native/src/interp.h +584 -0
- vec_io-0.7.0/vec_io/native/src/items.c +577 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/jpeg.h +4 -4
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/jpeg_dec.c +145 -83
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/jpeg_enc.c +645 -343
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/jpx.c +15 -15
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/lex.h +42 -21
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/math.c +57 -57
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/matrix.h +10 -10
- vec_io-0.3.0/vec_io/native/src/crowding.c → vec_io-0.7.0/vec_io/native/src/median.c +26 -82
- vec_io-0.7.0/vec_io/native/src/mesh.c +830 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/paint.c +414 -141
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/path.c +103 -64
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/pdfread.c +358 -200
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/png.c +104 -95
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/quant.c +110 -77
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/raster.h +209 -144
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/res.c +106 -86
- vec_io-0.7.0/vec_io/native/src/rt.c +123 -0
- vec_io-0.7.0/vec_io/native/src/samples.c +244 -0
- vec_io-0.7.0/vec_io/native/src/scan.c +1478 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/scene.c +715 -285
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/scene.h +229 -135
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/src/shade.c +110 -93
- vec_io-0.7.0/vec_io/native/src/shade.h +118 -0
- vec_io-0.7.0/vec_io/native/src/signatures.c +241 -0
- vec_io-0.7.0/vec_io/native/src/stroke.c +934 -0
- vec_io-0.7.0/vec_io/native/src/svgw.c +3717 -0
- vec_io-0.7.0/vec_io/native/src/vio.h +236 -0
- vec_io-0.7.0/vec_io/native/src/vio_api.h +1278 -0
- vec_io-0.7.0/vec_io/native/src/woff2.c +655 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/native/woff2.py +13 -2
- vec_io-0.7.0/vec_io/network.py +190 -0
- vec_io-0.7.0/vec_io/notebook.py +37 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/options.py +219 -66
- vec_io-0.7.0/vec_io/output_plan.py +173 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/paint.py +601 -105
- vec_io-0.7.0/vec_io/pdf/__init__.py +1 -0
- vec_io-0.7.0/vec_io/pdf/copier.py +141 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdf/images.py +92 -47
- vec_io-0.7.0/vec_io/pdf/objects.py +326 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdf/pdfa.py +57 -8
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdf/writer.py +11 -4
- vec_io-0.7.0/vec_io/pdffile.py +962 -0
- vec_io-0.7.0/vec_io/pdfread/__init__.py +226 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/ccitt.py +6 -5
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/cmap.py +74 -10
- vec_io-0.7.0/vec_io/pdfread/cmaps.zip +0 -0
- vec_io-0.7.0/vec_io/pdfread/colors.py +385 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/content.py +222 -83
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/convert.py +11 -8
- vec_io-0.7.0/vec_io/pdfread/errors.py +25 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/file.py +135 -59
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/fonts.py +249 -74
- vec_io-0.7.0/vec_io/pdfread/functions.py +345 -0
- vec_io-0.7.0/vec_io/pdfread/images.py +805 -0
- vec_io-0.7.0/vec_io/pdfread/meshes.py +80 -0
- vec_io-0.7.0/vec_io/pdfread/origin.py +334 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/parser.py +36 -51
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/reader.py +350 -51
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/resources.py +246 -73
- vec_io-0.7.0/vec_io/pdfread/shadings.py +470 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/strings.py +15 -1
- vec_io-0.7.0/vec_io/raster/__init__.py +893 -0
- vec_io-0.7.0/vec_io/raster/groups.py +392 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/raster/resources.py +120 -79
- vec_io-0.7.0/vec_io/recorder.py +1199 -0
- vec_io-0.7.0/vec_io/records.py +411 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/resample.py +35 -41
- vec_io-0.7.0/vec_io/resources.py +70 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/scene.py +241 -55
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/shapes.py +106 -92
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/simplify.py +161 -149
- vec_io-0.7.0/vec_io/svg/__init__.py +11 -0
- vec_io-0.7.0/vec_io/svg/basic_shapes.py +386 -0
- vec_io-0.7.0/vec_io/svg/clipmask.py +277 -0
- vec_io-0.7.0/vec_io/svg/common.py +188 -0
- vec_io-0.7.0/vec_io/svg/css.py +1246 -0
- vec_io-0.7.0/vec_io/svg/filters.py +813 -0
- vec_io-0.7.0/vec_io/svg/fontface.py +177 -0
- vec_io-0.7.0/vec_io/svg/images.py +139 -0
- vec_io-0.7.0/vec_io/svg/markers.py +68 -0
- vec_io-0.7.0/vec_io/svg/painter.py +271 -0
- vec_io-0.7.0/vec_io/svg/parse.py +624 -0
- vec_io-0.7.0/vec_io/svg/properties.py +1038 -0
- vec_io-0.7.0/vec_io/svg/references.py +84 -0
- vec_io-0.7.0/vec_io/svg/render.py +584 -0
- vec_io-0.7.0/vec_io/svg/servers.py +164 -0
- vec_io-0.7.0/vec_io/svg/text.py +1034 -0
- vec_io-0.7.0/vec_io/svg/text_paint.py +330 -0
- vec_io-0.7.0/vec_io/svg/tree.py +491 -0
- vec_io-0.7.0/vec_io/svg/values.py +741 -0
- vec_io-0.7.0/vec_io/svg/writer.py +1001 -0
- vec_io-0.7.0/vec_io/text/__init__.py +1861 -0
- vec_io-0.7.0/vec_io/text/bidi.py +410 -0
- vec_io-0.7.0/vec_io/text/breaking.py +1056 -0
- vec_io-0.7.0/vec_io/text/harfbuzz.py +222 -0
- vec_io-0.7.0/vec_io/text/hyph_en_us.py +387 -0
- vec_io-0.7.0/vec_io/text/hyph_fr.py +123 -0
- vec_io-0.7.0/vec_io/text/hyphenation.py +165 -0
- vec_io-0.7.0/vec_io/text/mirroring.py +92 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/text/path.py +3 -3
- vec_io-0.7.0/vec_io/text/segment.py +139 -0
- vec_io-0.7.0/vec_io/text/shaping.py +700 -0
- vec_io-0.7.0/vec_io/text/ucd_grapheme.py +338 -0
- vec_io-0.7.0/vec_io/text/ucd_ignorable.py +19 -0
- vec_io-0.7.0/vec_io/text/ucd_linebreak.py +608 -0
- vec_io-0.7.0/vec_io/text/ucd_scripts.py +514 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/threads.py +58 -5
- vec_io-0.7.0/vec_io/transfer.py +477 -0
- vec_io-0.7.0/vec_io/trim.py +170 -0
- vec_io-0.7.0/vec_io/types.py +167 -0
- vec_io-0.7.0/vec_io/units.py +738 -0
- vec_io-0.3.0/API.md +0 -1866
- vec_io-0.3.0/EXAMPLES.md +0 -672
- vec_io-0.3.0/PKG-INFO +0 -186
- vec_io-0.3.0/README.md +0 -171
- vec_io-0.3.0/examples/bubble_chart.py +0 -72
- vec_io-0.3.0/examples/canvas_demo.py +0 -197
- vec_io-0.3.0/examples/drawing_demo.py +0 -80
- vec_io-0.3.0/examples/heatmap.py +0 -79
- vec_io-0.3.0/examples/scatter_plot.py +0 -74
- vec_io-0.3.0/examples/text_layout.py +0 -56
- vec_io-0.3.0/pyproject.toml +0 -45
- vec_io-0.3.0/tests/fuzz_native.py +0 -1236
- vec_io-0.3.0/tests/svg_oracle.py +0 -911
- vec_io-0.3.0/tests/test_cmyk.py +0 -334
- vec_io-0.3.0/tests/test_codecs.py +0 -33
- vec_io-0.3.0/tests/test_deflate.py +0 -57
- vec_io-0.3.0/tests/test_flatten.py +0 -340
- vec_io-0.3.0/tests/test_font_fixes.py +0 -159
- vec_io-0.3.0/tests/test_marker_runs.py +0 -140
- vec_io-0.3.0/tests/test_native_limits.py +0 -357
- vec_io-0.3.0/tests/test_pdfread.py +0 -797
- vec_io-0.3.0/tests/test_raster.py +0 -1121
- vec_io-0.3.0/tests/test_svg_writer.py +0 -250
- vec_io-0.3.0/tests/test_text.py +0 -191
- vec_io-0.3.0/tools/build_native.py +0 -421
- vec_io-0.3.0/vec_io/__main__.py +0 -292
- vec_io-0.3.0/vec_io/canvas.py +0 -2216
- vec_io-0.3.0/vec_io/convert.py +0 -232
- vec_io-0.3.0/vec_io/document.py +0 -1181
- vec_io-0.3.0/vec_io/draw.py +0 -985
- vec_io-0.3.0/vec_io/errors.py +0 -11
- vec_io-0.3.0/vec_io/flate.py +0 -59
- vec_io-0.3.0/vec_io/flatten.py +0 -2616
- vec_io-0.3.0/vec_io/fonts/cff.py +0 -702
- vec_io-0.3.0/vec_io/fonts/cff2.py +0 -523
- vec_io-0.3.0/vec_io/fonts/opentype.py +0 -384
- vec_io-0.3.0/vec_io/image/__init__.py +0 -131
- vec_io-0.3.0/vec_io/image/codecs.py +0 -108
- vec_io-0.3.0/vec_io/image/resource.py +0 -281
- vec_io-0.3.0/vec_io/native/README.md +0 -275
- vec_io-0.3.0/vec_io/native/_api.py +0 -937
- vec_io-0.3.0/vec_io/native/bin/linux-aarch64.so +0 -0
- vec_io-0.3.0/vec_io/native/bin/linux-x86_64.so +0 -0
- vec_io-0.3.0/vec_io/native/bin/macos-arm64.dylib +0 -0
- vec_io-0.3.0/vec_io/native/bin/windows-arm64.dll +0 -0
- vec_io-0.3.0/vec_io/native/bin/windows-x86_64.dll +0 -0
- vec_io-0.3.0/vec_io/native/brotli.py +0 -19
- vec_io-0.3.0/vec_io/native/deflate.py +0 -21
- vec_io-0.3.0/vec_io/native/jpeg.py +0 -90
- vec_io-0.3.0/vec_io/native/manifest.json +0 -49
- vec_io-0.3.0/vec_io/native/src/alloc.c +0 -183
- vec_io-0.3.0/vec_io/native/src/brotli.h +0 -16
- vec_io-0.3.0/vec_io/native/src/deflate.c +0 -930
- vec_io-0.3.0/vec_io/native/src/epsw.c +0 -1348
- vec_io-0.3.0/vec_io/native/src/interp.c +0 -5016
- vec_io-0.3.0/vec_io/native/src/items.c +0 -327
- vec_io-0.3.0/vec_io/native/src/mesh.c +0 -454
- vec_io-0.3.0/vec_io/native/src/pio.h +0 -171
- vec_io-0.3.0/vec_io/native/src/pio_api.h +0 -904
- vec_io-0.3.0/vec_io/native/src/rt.c +0 -92
- vec_io-0.3.0/vec_io/native/src/scan.c +0 -655
- vec_io-0.3.0/vec_io/native/src/shade.h +0 -61
- vec_io-0.3.0/vec_io/native/src/signatures.c +0 -191
- vec_io-0.3.0/vec_io/native/src/stroke.c +0 -565
- vec_io-0.3.0/vec_io/native/src/svgw.c +0 -1682
- vec_io-0.3.0/vec_io/native/src/woff2.c +0 -377
- vec_io-0.3.0/vec_io/pdf/__init__.py +0 -0
- vec_io-0.3.0/vec_io/pdf/objects.py +0 -150
- vec_io-0.3.0/vec_io/pdfread/__init__.py +0 -177
- vec_io-0.3.0/vec_io/pdfread/cffinfo.py +0 -116
- vec_io-0.3.0/vec_io/pdfread/colors.py +0 -450
- vec_io-0.3.0/vec_io/pdfread/errors.py +0 -35
- vec_io-0.3.0/vec_io/pdfread/functions.py +0 -452
- vec_io-0.3.0/vec_io/pdfread/images.py +0 -549
- vec_io-0.3.0/vec_io/pdfread/meshes.py +0 -47
- vec_io-0.3.0/vec_io/pdfread/shadings.py +0 -493
- vec_io-0.3.0/vec_io/raster/__init__.py +0 -554
- vec_io-0.3.0/vec_io/raster/groups.py +0 -104
- vec_io-0.3.0/vec_io/svg/__init__.py +0 -7
- vec_io-0.3.0/vec_io/svg/css.py +0 -366
- vec_io-0.3.0/vec_io/svg/filters.py +0 -253
- vec_io-0.3.0/vec_io/svg/parse.py +0 -305
- vec_io-0.3.0/vec_io/svg/render.py +0 -1888
- vec_io-0.3.0/vec_io/svg/writer.py +0 -533
- vec_io-0.3.0/vec_io/text/__init__.py +0 -977
- vec_io-0.3.0/vec_io/text/breaking.py +0 -582
- vec_io-0.3.0/vec_io/trim.py +0 -151
- vec_io-0.3.0/vec_io/units.py +0 -184
- {vec_io-0.3.0 → vec_io-0.7.0}/LICENSE +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/abc.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/abc.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/big.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/big.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/binary.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/binary.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/bits2.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/bits2.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/dictwords.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/dictwords.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/empty.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/empty.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/four.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/four.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/handmade.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/handmade.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/ints.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/ints.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/mixed.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/mixed.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/multi.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/multi.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/one.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/one.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/random.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/random.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/text11.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/text11.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/text_q2.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/text_q2.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/three.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/three.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/w10.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/w10.out.z +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/w24.br +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/brotli/w24.out.z +0 -0
- /vec_io-0.3.0/examples/showcase.svg → /vec_io-0.7.0/tests/corpus/bench_showcase.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/clipping.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/css.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/empty.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/filters.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/fonts_face.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/gradients.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/images.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/markers.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/masks.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/opacity.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/paths.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/patterns.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/rasterized.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/shapes.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/strokes.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/structure.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/text-wrap.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/text_basic.svg +0 -0
- /vec_io-0.3.0/examples/text.svg → /vec_io-0.7.0/tests/corpus/text_features.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/text_layout.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/text_path.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/text_unicode.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/transforms.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/units.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/use_symbol.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/corpus/viewbox.svg +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/jbig2_encoder.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/jpx_fixtures.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/make_crypt_fixtures.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/maps.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/cmyk8.j2k +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/cmyk8.jp2 +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/gray12.j2k +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/gray16.jp2 +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/gray4-signed.j2k +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/graya16.jp2 +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/gs-r2.pdf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/gs-r3.pdf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/icc-gray8.jp2 +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r2.pdf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r3.pdf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r4-aes-nometa.pdf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r4-aes.pdf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r4-pdfdoc.pdf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r4-rc4.pdf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r5.pdf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r6-empty.pdf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r6-utf8.pdf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/qpdf-r6.pdf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/rgb8.j2k +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/rgb8.jp2 +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/rgba8.jp2 +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/ycc420.jp2 +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/pdfread/ycc422-offset.jp2 +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/shapes.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_ccitt.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_encodings.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_jpx_jbig2.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/test_units.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/varfonts/VarTest.otf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/varfonts/VarTest.ttf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/woff2/make.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/woff2/pair.woff2 +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/woff2/rich-null.woff2 +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/woff2/rich.ttf +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/tests/woff2/rich.woff2 +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/ctan.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/encodings.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/fontshare.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/fontshare_families.txt +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/fontsource.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/fontsource_families.txt +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/glyphlist.txt +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/google.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/google_families.txt +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/fonts/urw.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/image/jxl.py +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/cmap_resources.txt +0 -0
- {vec_io-0.3.0 → vec_io-0.7.0}/vec_io/pdfread/security.py +0 -0
- {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).
|