resvglite
A thin PyO3 binding of resvg — the optional, self-contained SVG rasterizer behind saitenka's inline dictionary glyphs (issue #283).
Yomitan structured-content dictionaries embed inline img nodes that are almost always SVG gaiji
(外字) — sense/section markers, orthography labels, reference glyphs (参照 / 表記 / 一). Pillow cannot
rasterize SVG, so saitenka drew each as a ▢ box. resvglite rasterizes an SVG to a PNG at import; the
renderer composites and tints it.
API
import resvglite
png_bytes, width, height = resvglite.render_svg(svg_bytes, size_px=64)
render_svg(data, size_px) rasterizes data (SVG bytes) to a PNG size_px tall, aspect-preserved,
returning (png, w, h). Raises ValueError on invalid or zero-size SVG.
Why a vendored binding
resvg is pure Rust (usvg parser + tiny-skia raster) — no system libraries (unlike cairosvg/pyvips),
so it ships prebuilt wheels: three per platform (pyo3 abi3 + abi3t, PEP 803) — abi3 (GIL 3.13+), cp314t
(free-threaded 3.14), abi3t (FT and GIL 3.15+, gil_used = false), the same self-contained-wheel bar
as taffylite. It is an optional add-on: without it, saitenka falls back to the
▢/label placeholder.
Licensing
resvglite itself is MIT OR Apache-2.0. It vendors resvg/usvg/tiny-skia, which are MPL-2.0 (a
file-level weak copyleft): the MPL covers only those vendored source files, not this wrapper or any
code that merely imports it. Because resvglite is a separately published, optional wheel, that
copyleft stays contained to this package — the core saitenka dependency graph remains permissive. See
NOTICE.
Metadata
Release files for resvglite 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| resvglite-0.2.0.tar.gz | 13.6 kB | Details |
Built distributions (wheels)
Total release size: 14.5 MB
Release files / resvglite-0.2.0.tar.gz
| Download URL | resvglite-0.2.0.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea4e90f775a63a4dd0b4b95dcf914b543951e0dbddeb3653c9ec9d5f8d152000
|
|
BLAKE2b-256 checksum How to use checksums |
7908acc1a6c1284908f02de51c11fcb29ca4de1ec5b53ea6900ad103d310815b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / resvglite-0.2.0-cp315-abi3.abi3t-win_amd64.whl
| Download URL | resvglite-0.2.0-cp315-abi3.abi3t-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.15 Windows x86-64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
e55d24b13a6f142affac5803950818fa5e65c3e4b458c01bbcde7b6de0c2d399
|
|
BLAKE2b-256 checksum How to use checksums |
ff4b1c9594e1f4fa2f4cc6b9a6d148b40393933dfc13d294acb3a1cace1325ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / resvglite-0.2.0-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl
| Download URL | resvglite-0.2.0-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.15 Linux glibc 2.28+ x86-64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
13cbf23f6ee06f8be7d94c3649529bcb8e9f385f8b1d2544f8ed894a3df9f213
|
|
BLAKE2b-256 checksum How to use checksums |
39e8eca38477f9f00bbefe1205ba8dd0e1948e00be3bedfee01f2846ca763193
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / resvglite-0.2.0-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
| Download URL | resvglite-0.2.0-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.15 Linux glibc 2.28+ ARM64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
b2ab6291fd94347c499d8412095232e52a8836704759616f0bad218b44da032e
|
|
BLAKE2b-256 checksum How to use checksums |
b36034bc838578cf09e8d19570433c8da0362a4dabfd54395ff5797fddbfc91d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / resvglite-0.2.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl
| Download URL | resvglite-0.2.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.15 abi3 abi3t macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
dddffeda720b297d53aa6c70c78bef42474f6d956e93b734e38b65438f8c1583
|
|
BLAKE2b-256 checksum How to use checksums |
1cb7d4a95581a8d60c2cda6859c23a59f0ee9e681b4c3242104f9b7d6de2c1e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / resvglite-0.2.0-cp314-cp314t-win_amd64.whl
| Download URL | resvglite-0.2.0-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ce66e5e3cd2013a7d82a570de5d12a417617f23ec84c87dc5468b91c07ff7186
|
|
BLAKE2b-256 checksum How to use checksums |
96e8673a3a20fba5ea12a2f8e0fafa67ec50de8fbe55b3a8acfbc455f9ef3362
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / resvglite-0.2.0-cp314-cp314t-manylinux_2_28_x86_64.whl
| Download URL | resvglite-0.2.0-cp314-cp314t-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
1e7f6a690700acfc6547133c7337adfb400669c0ddf0487c6eb4ad4a10236bde
|
|
BLAKE2b-256 checksum How to use checksums |
924dedefe98eb4e05ac8035d1d76f31406ffd417624769b48f8d711018599d5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / resvglite-0.2.0-cp314-cp314t-manylinux_2_28_aarch64.whl
| Download URL | resvglite-0.2.0-cp314-cp314t-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
021317de24d7a8bfe52e2befa52dff52e39bc2ca2897c5a78aa2e86cc08cedb4
|
|
BLAKE2b-256 checksum How to use checksums |
91451ddc88e2ee447ec3f14bdbf97aef0a15394505075a2c2b90136977f973a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / resvglite-0.2.0-cp314-cp314t-macosx_11_0_arm64.whl
| Download URL | resvglite-0.2.0-cp314-cp314t-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5c80c56fad9c1c696b144b7d7fc3c4c94ae1bd1f0ec0946afdf0a31efe84be96
|
|
BLAKE2b-256 checksum How to use checksums |
73c26f5d361a52933c414bc062e4a4eb7a56ba82db03a7d39d5fc9a33409882f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / resvglite-0.2.0-cp313-abi3-win_amd64.whl
| Download URL | resvglite-0.2.0-cp313-abi3-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.13 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a9ef0a531faea7817eba2dc9f8baef0171be346fbd1e0d9ed7f9e7b05679351f
|
|
BLAKE2b-256 checksum How to use checksums |
ad31aa0463d2076c149fba4251d19370c37ab6da049e5238d7076e172377dd3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / resvglite-0.2.0-cp313-abi3-manylinux_2_28_x86_64.whl
| Download URL | resvglite-0.2.0-cp313-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
136cc91f957fcc770b86aa0f313b841a2ac69bdea2bac408b7fa8fc5bea62326
|
|
BLAKE2b-256 checksum How to use checksums |
9e792df825bd7355696a411e0f58a6b38487484470b63522039373de305cf70d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / resvglite-0.2.0-cp313-abi3-manylinux_2_28_aarch64.whl
| Download URL | resvglite-0.2.0-cp313-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
e7cfeceac6032a99f85321f7b77fee7c00da5c4b32a8461a89cef1e2b57b1046
|
|
BLAKE2b-256 checksum How to use checksums |
23e75ecffbfbc3f88bf90d81a363472b1c70286e21ed98aa7946474524b56b43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / resvglite-0.2.0-cp313-abi3-macosx_11_0_arm64.whl
| Download URL | resvglite-0.2.0-cp313-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.13 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9d9fd3570f63a581683c12052397dc25c8a4cb399fc223cb3e581c8e2483bc40
|
|
BLAKE2b-256 checksum How to use checksums |
5e822a1b5a8c439e319f6c625094eebb99764747683cff868f263d1e87826af5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency log