From f9f2541b7757fe62bd33345b0a0b870062522047 Mon Sep 17 00:00:00 2001 From: klemek Date: Sat, 7 Nov 2026 18:26:56 +0100 Subject: [PATCH] feat: working initial implementation --- README.md | 3 +- pyproject.toml | 6 +- src/glsl_glyphs/__main__.py | 7 +++ src/glsl_glyphs/constants.py | 37 +++++++++++ src/glsl_glyphs/generator.py | 59 ++++++++++++++++++ src/glsl_glyphs/glsl.py | 2 + src/glsl_glyphs/glyph.py | 35 +++++++++++ src/glsl_glyphs/reader.py | 115 +++++++++++++++++++++++++++++++++++ src/glsl_glyphs/set.py | 38 ++++++++++++ uv.lock | 54 ++++++++++++++++ 10 files changed, 353 insertions(+), 3 deletions(-) create mode 100644 src/glsl_glyphs/constants.py create mode 100644 src/glsl_glyphs/generator.py create mode 100644 src/glsl_glyphs/glsl.py create mode 100644 src/glsl_glyphs/glyph.py create mode 100644 src/glsl_glyphs/reader.py create mode 100644 src/glsl_glyphs/set.py diff --git a/README.md b/README.md index 1d4bb3a..293d324 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ release-% release major/minor/patch ### TODO -* [ ] Initial implementation +* [x] Initial implementation +* [ ] Generate a separate sentences file * [ ] Custom height glyph map * [ ] Custom width glyph map diff --git a/pyproject.toml b/pyproject.toml index 2c90006..32876dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,9 @@ version = "0.0.0" description = "Generate GLSL ready glyph maps and usable functions " readme = "README.md" requires-python = ">=3.14" -dependencies = [] +dependencies = [ + "pillow>=13.0.0,<14.0.0", +] [project.scripts] glsl-glyphs = "glsl_glyphs.__main__:main" @@ -24,7 +26,7 @@ add-bounds = "major" [tool.ruff.lint] select = ["ALL"] -ignore = ["D", "E501", "ANN401", "BLE001", "COM812", "S101", "CPY"] +ignore = ["D", "E501", "ANN401", "BLE001", "COM812", "S101", "CPY", "TRY400"] [tool.ty.src] include = ["src"] diff --git a/src/glsl_glyphs/__main__.py b/src/glsl_glyphs/__main__.py index 18b2411..cea7291 100644 --- a/src/glsl_glyphs/__main__.py +++ b/src/glsl_glyphs/__main__.py @@ -2,12 +2,19 @@ import logging import sys from . import PKG_NAME, PKG_VERSION +from .generator import Generator from .logs import setup_logs from .params import parse_parameters +from .reader import Reader def main() -> int: params = parse_parameters(sys.argv[1:]) setup_logs(params) logging.getLogger().info("%s %s", PKG_NAME, PKG_VERSION) + + glyphs, sets = Reader(params).read() + + Generator(params).generate_glsl_glyphs(glyphs, sets) + return 0 diff --git a/src/glsl_glyphs/constants.py b/src/glsl_glyphs/constants.py new file mode 100644 index 0000000..37fa386 --- /dev/null +++ b/src/glsl_glyphs/constants.py @@ -0,0 +1,37 @@ +GLSL_PREFIX = """ +#ifndef INC_{0} +#define INC_{0} +""".strip() + +GLSL_FUNCTIONS = """ +bool {0}(vec2 pos, int code) +{{ + if (pos.x < .0 || pos.y < .0 || pos.x >= 1. || pos.y >= 1. || code < 0 || code >= {1}_COUNT) {{ + return false; + }} + ivec2 pos2 = ivec2(pos.x * 8., (1 - pos.y) * 8.); + ivec2 subpos = pos2 % 4; + int v = int(pow(2., subpos.y * 4. + subpos.x)); + int d = int(pos2.y * .25) * 2 + int(pos2.x * .25); + return ({0}_glyphs[code * 4 + d] & v) > 0; +}} + +float {0}_at(vec2 uv, vec2 pos, int code) +{{ + return {0}(uv - pos, code) ? 1. : 0.; +}} +""".strip() + +GLSL_SET_FUNCTIONS = """ +int {0}_set_glyph(int set, float v) +{{ + if (v < .0 || v >= 1. || set < 0. || set >= {1}_SETS) {{ + return 0.; + }} + return {0}_sets[set * 2] + int(v * {0}_sets[set * 2 + 1]); +}} +""".strip() + +GLSL_SUFFIX = """ +#endif /* INC_{0} */ +""".strip() diff --git a/src/glsl_glyphs/generator.py b/src/glsl_glyphs/generator.py new file mode 100644 index 0000000..488306d --- /dev/null +++ b/src/glsl_glyphs/generator.py @@ -0,0 +1,59 @@ +import logging +import pathlib +import sys +import typing + +from .constants import GLSL_FUNCTIONS, GLSL_PREFIX, GLSL_SET_FUNCTIONS, GLSL_SUFFIX +from .glyph import Glyph +from .set import GlyphSet + +if typing.TYPE_CHECKING: + from .params import Parameters + + +class Generator: + def __init__(self, params: Parameters) -> None: + self.target_name = params.target_name + if params.target_path is None: + self.target_path = pathlib.Path("build") / f"{params.target_name}.glsl" + else: + self.target_path = pathlib.Path(params.target_path) + self.with_functions = params.functions + self.log = logging.getLogger(__name__) + + def generate_glsl_glyphs(self, glyphs: list[Glyph], sets: list[GlyphSet]) -> None: + lines = [ + GLSL_PREFIX.format(self.target_name.upper()), + "", + *Glyph.export_glsl(self.target_name, glyphs), + ] + + if len(sets): + lines += ["", *GlyphSet.export_glsl(self.target_name, sets)] + + if self.with_functions: + lines += [ + "", + GLSL_FUNCTIONS.format(self.target_name, self.target_name.upper()), + ] + + if len(sets): + lines += [ + "", + GLSL_SET_FUNCTIONS.format( + self.target_name, self.target_name.upper() + ), + ] + + lines += ["", GLSL_SUFFIX.format(self.target_name.upper())] + + content = "\n".join(lines) + + try: + self.target_path.parent.mkdir(parents=True, exist_ok=True) + self.target_path.write_text(content) + except OSError as e: + self.log.error( + "Could not write output file at: %s (%s)", self.target_path, e + ) + sys.exit(1) diff --git a/src/glsl_glyphs/glsl.py b/src/glsl_glyphs/glsl.py new file mode 100644 index 0000000..4107e77 --- /dev/null +++ b/src/glsl_glyphs/glsl.py @@ -0,0 +1,2 @@ +def pretty_hex(n: int, size: int = 2) -> str: + return "0x" + f"{n:x}".rjust(size, "0").upper() diff --git a/src/glsl_glyphs/glyph.py b/src/glsl_glyphs/glyph.py new file mode 100644 index 0000000..8d8524a --- /dev/null +++ b/src/glsl_glyphs/glyph.py @@ -0,0 +1,35 @@ +import dataclasses + +from .glsl import pretty_hex + + +@dataclasses.dataclass +class Glyph: + data: list[int] + name: str | None = None + + def glsl(self, index: int, last: bool) -> str: # noqa: FBT001 + raw_hex = ", ".join(pretty_hex(d, 4) for d in self.data) + if not last: + raw_hex += "," + else: + raw_hex += " " + comment = pretty_hex(index) + if self.name is not None: + comment += ", " + self.name + return raw_hex + f" // {comment}" + + @classmethod + def export_glsl(cls, name: str, glyphs: list[Glyph], indent: int = 4) -> list[str]: + return ( + [ + f"#define {name.upper()}_COUNT {len(glyphs)}", + "", + f"const int {name}_glyphs[] = int[{len(glyphs) * 4}](", + ] + + [ + " " * indent + glyph.glsl(i, last=i == len(glyphs) - 1) + for i, glyph in enumerate(glyphs) + ] + + [");"] + ) diff --git a/src/glsl_glyphs/reader.py b/src/glsl_glyphs/reader.py new file mode 100644 index 0000000..993344f --- /dev/null +++ b/src/glsl_glyphs/reader.py @@ -0,0 +1,115 @@ +import logging +import pathlib +import sys +import typing + +from PIL import Image, UnidentifiedImageError + +from .glyph import Glyph +from .set import GlyphSet + +if typing.TYPE_CHECKING: + from .params import Parameters + + +class Reader: + def __init__(self, params: Parameters) -> None: + self.source_image_path = pathlib.Path(params.source_image_path) + self.source_names_path = ( + pathlib.Path(params.source_names_path) if params.source_names_path else None + ) + self.source_sets_path = ( + pathlib.Path(params.source_sets_path) if params.source_sets_path else None + ) + self.log = logging.getLogger(__name__) + + def read(self) -> tuple[list[Glyph], list[GlyphSet]]: + glyphs = self.__read_image() + sets = self.__read_sets() + names = self.__read_names() + for glyph, name in zip(glyphs, names, strict=False): + glyph.name = name + return glyphs, sets + + def __read_image(self) -> list[Glyph]: + try: + img = Image.open(self.source_image_path).convert("1") + if img.width % 8 != 0 or img.height % 8 != 0: + self.log.error( + "Input image is not an 8x8 multiple (%dx%d)", img.width, img.height + ) + sys.exit(1) + glyphs = [] + for y in range(img.height // 8): + for x in range(img.width // 8): + glyphs += [self.__get_img_glyph(img, x, y)] + self.log.info("Loaded glyps from %s", self.source_image_path) + except (OSError, UnidentifiedImageError) as e: + self.log.error( + "Could not read input image at: %s (%s)", self.source_sets_path, e + ) + sys.exit(1) + return glyphs + + def __get_img_glyph(self, img: Image.Image, glyph_x: int, glyph_y: int) -> Glyph: + data = [ + self.__get_img_glyph_sub_square(img, glyph_x, glyph_y, square) + for square in range(4) + ] + return Glyph(data=data) + + def __get_img_glyph_sub_square( + self, img: Image.Image, glyph_x: int, glyph_y: int, square: int + ) -> int: + data = 0 + for y in range(4): + for x in range(4): + pixel_on = ( + img.getpixel( + ( + glyph_x * 8 + (square % 2) * 4 + x, + glyph_y * 8 + (square // 2) * 4 + y, + ) + ) + != 0 + ) + if pixel_on: + data += pow(2, y * 4 + x) + return data + + def __read_sets(self) -> list[GlyphSet]: + sets = [] + if self.source_sets_path: + try: + for line in self.source_sets_path.read_text().splitlines()[1:]: + index, length, name = line.split(",") + sets += [GlyphSet(index=int(index), length=int(length), name=name)] + self.log.info("Extracted sets from %s", self.source_sets_path) + except ValueError, TypeError: + self.log.error( + "Could not read sets file at: %s (invalid format)", + self.source_sets_path, + ) + except OSError as e: + self.log.warning( + "Could not read sets file at: %s (%s)", self.source_sets_path, e + ) + else: + self.log.info("No sets file provided") + return sets + + def __read_names(self) -> list[str]: + names = [] + if self.source_names_path: + try: + names = self.source_names_path.read_text().splitlines() + self.log.info("Extracted names from %s", self.source_names_path) + except OSError as e: + self.log.warning( + "Could not to read names file at: %s (%s)", + self.source_names_path, + e, + ) + else: + self.log.info("No names file provided") + return names diff --git a/src/glsl_glyphs/set.py b/src/glsl_glyphs/set.py new file mode 100644 index 0000000..f104776 --- /dev/null +++ b/src/glsl_glyphs/set.py @@ -0,0 +1,38 @@ +import dataclasses +import logging + +from .glsl import pretty_hex + +log = logging.getLogger(__name__) + + +@dataclasses.dataclass +class GlyphSet: + index: int + length: int + name: str + + def glsl(self, last: bool) -> str: # noqa: FBT001 + line = f"{pretty_hex(self.index)}, {self.length}" + if not last: + line += "," + else: + line += " " + return line + f" // {self.name}" + + @classmethod + def export_glsl(cls, name: str, sets: list[GlyphSet], indent: int = 4) -> list[str]: + if len(sets) == 0: + return [] + return ( + [ + f"#define {name.upper()}_SETS {len(sets)}", + "", + f"const int {name}_sets[] = int[{len(sets) * 2}](", + ] + + [ + " " * indent + glyphset.glsl(last=i == len(sets) - 1) + for i, glyphset in enumerate(sets) + ] + + [");"] + ) diff --git a/uv.lock b/uv.lock index 4f2a304..2cd71f7 100644 --- a/uv.lock +++ b/uv.lock @@ -6,6 +6,9 @@ requires-python = ">=3.14" name = "glsl-glyphs" version = "0.0.0" source = { editable = "." } +dependencies = [ + { name = "pillow" }, +] [package.dev-dependencies] dev = [ @@ -14,6 +17,7 @@ dev = [ ] [package.metadata] +requires-dist = [{ name = "pillow", specifier = ">=13.0.0,<14.0.0" }] [package.metadata.requires-dev] dev = [ @@ -21,6 +25,56 @@ dev = [ { name = "ty", specifier = ">=0.0.99,<0.0.100" }, ] +[[package]] +name = "pillow" +version = "13.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ce/a4/9cc30690a394a8305e8be4c9036aa16d0dfddadd09079860b582f562496d/pillow-13.0.0.tar.gz", hash = "sha256:cdcd1ba258178f7356d74170c9a81ba4eab6a5d55748bc402a5a2a6fe6be3510", size = 47058631, upload-time = "2026-10-16T22:18:09.718Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8e/45/fbad9c7f5e2f1745c373a434d46072bc84eddfefaa28b852425ac957fda6/pillow-13.0.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:44629d4498c9cb6b2051806155f22141df0d8a929c56134b166655232dfb2f8c", size = 4190721, upload-time = "2026-10-16T22:16:27.524Z" }, + { url = "https://files.pythonhosted.org/packages/a2/bf/2074902a259a90692c5dbf132885d21671644cbbd3f690047516243a55db/pillow-13.0.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:bf97ba1b5542050e9b0c74e632323b6d8136cc99d64e193abebee22fe6013c76", size = 4290236, upload-time = "2026-10-16T22:16:29.562Z" }, + { url = "https://files.pythonhosted.org/packages/ff/a5/3d1bb93b8ea38d15d21356c1b8e9f50971ac592aaa248f7fb71739094c0e/pillow-13.0.0-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:aa694c49787040943570d61c9b8fc01271bd2a2cfdd55f0d896f8aecdce1a981", size = 3723093, upload-time = "2026-10-16T22:16:31.249Z" }, + { url = "https://files.pythonhosted.org/packages/84/a1/be060135d85187b25fa8b2573786c0e45c62ae27527fff5257675eb97f4a/pillow-13.0.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:49c12af515073e9bf511e4ef736743bf70d531a643668722279314b937742ba4", size = 5572253, upload-time = "2026-10-16T22:16:33.103Z" }, + { url = "https://files.pythonhosted.org/packages/b5/f4/0bf6f1ac9ba7ee2ffe9914aeb410a1035a0c1a3c42f122388d7fc950bc4b/pillow-13.0.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:d9b0a2bee3f3e03e9f29057aedb807dbf1e1d96ee1b9d0f422d9db6c8583271d", size = 4852269, upload-time = "2026-10-16T22:16:35.102Z" }, + { url = "https://files.pythonhosted.org/packages/83/16/b603274617b3e6728da3a0133d4fba1ea8d7fbe0c4ea5fef9cbffa398b8b/pillow-13.0.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5933fcea5a5ba64c686f55c886a115cbfd92f2900460784a1e79909fdbafd7b6", size = 6516058, upload-time = "2026-10-16T22:16:37.228Z" }, + { url = "https://files.pythonhosted.org/packages/1d/f2/1371707ce438ba9a43f9d24089828494ec6f9396e28cd7903aa704dd6306/pillow-13.0.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e91c2b1cbeae768c98752e67e717e283d68dae45717b41f2d91eaee648e37b7d", size = 7142574, upload-time = "2026-10-16T22:16:39.172Z" }, + { url = "https://files.pythonhosted.org/packages/b9/a9/62cf68587f910bc87c5951bcb6e9430c7643a65076adf5f18b4bf350e2bd/pillow-13.0.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7f6299e494e46253d40c34653cac369412f44ca53b5f85d848d3f95b1ed0546c", size = 6614295, upload-time = "2026-10-16T22:16:41.117Z" }, + { url = "https://files.pythonhosted.org/packages/6c/c9/9e9b48178649730299be0bafbf5f810a5b6977538f5a92d47e4ba5f5d608/pillow-13.0.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f9bd7d260d986f3553518c5d723544346fa48031f8aef3265d786aeb59845bc0", size = 7224841, upload-time = "2026-10-16T22:16:43.118Z" }, + { url = "https://files.pythonhosted.org/packages/8f/48/c44e91384b1b6c072a714a63d00608acc16a6a968735e478e4be4384e5ac/pillow-13.0.0-cp314-cp314-win32.whl", hash = "sha256:2e31c4e68cffd7b1f116127626813b82fcba19edf6b940a7b0c266d6484d0055", size = 6508694, upload-time = "2026-10-16T22:16:45.883Z" }, + { url = "https://files.pythonhosted.org/packages/50/e2/7ad17747517e4c813dca78257d6bb593466f8231baf1384bc98d92745edb/pillow-13.0.0-cp314-cp314-win_amd64.whl", hash = "sha256:f7cbb7a64e7ec664775195e4f81923bc8a93d9451b963f844e59118f63147a7a", size = 7281830, upload-time = "2026-10-16T22:16:47.725Z" }, + { url = "https://files.pythonhosted.org/packages/41/9f/e5b51f2ce8ef4563215334035403ce61a244f93a2e65c24a940131618f87/pillow-13.0.0-cp314-cp314-win_arm64.whl", hash = "sha256:a6aaa7871aebca081eb5c45f83e845bbd9712ae99fa9286dbfdcee835e63f4b4", size = 2695468, upload-time = "2026-10-16T22:16:49.515Z" }, + { url = "https://files.pythonhosted.org/packages/97/73/a53502f731f6c84805a4ce87a8881e86d07a65aee64728b900d112dc703e/pillow-13.0.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:7b999816b5850a35ada08443e6e03945f1f6488144a83afe2d37b240a552aafa", size = 5578196, upload-time = "2026-10-16T22:16:51.291Z" }, + { url = "https://files.pythonhosted.org/packages/21/50/7e949959a56b5559c78ef172b70fc6025706acb289f3f648a15329e4fa6f/pillow-13.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:67871a13cf47275201553b536c025da777f997fa562a19eb798af4ad4b97c18f", size = 4857276, upload-time = "2026-10-16T22:16:53.399Z" }, + { url = "https://files.pythonhosted.org/packages/c9/52/43ded0ac08e77e39d17bd6d894162572201b5e8fdc4a022b14c55a1960a4/pillow-13.0.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e8ca8f69b7c77fa96dad99f8638c1fc4f1c0bed4acaa1baf7a3c31bdb80a0ab1", size = 6607008, upload-time = "2026-10-16T22:16:55.525Z" }, + { url = "https://files.pythonhosted.org/packages/0d/2e/4a57ed216d5bf877387cba4d44c02aa87abe51ad2e06404aa6b597c4da39/pillow-13.0.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6bce6a29c3898191f4c9998e4d4e8f69790caeabde46e54da4bc235ce5bde683", size = 7224281, upload-time = "2026-10-16T22:16:57.738Z" }, + { url = "https://files.pythonhosted.org/packages/5c/3d/2929b248e135752d63aaeabf53f6de797e905b7b6263f9c1e2adade20aba/pillow-13.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:816752a5ef76a80484c8c441c85593b7ea9304f6231fc5776ad1fbff7e773058", size = 6695600, upload-time = "2026-10-16T22:16:59.842Z" }, + { url = "https://files.pythonhosted.org/packages/bc/33/fb0da992cf084ed1ee6ee05e96b6191e35c351eb707ca2df874feb24ce47/pillow-13.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5bdb38ba220b61b4ec31dd1046dea6b016d3c6850a23f43ed8b58332b2fc668e", size = 7300589, upload-time = "2026-10-16T22:17:01.686Z" }, + { url = "https://files.pythonhosted.org/packages/bb/af/c30dd9ef6a3dce84ecb1b2393cac629047a32e66279056c6cb46c3ffd65c/pillow-13.0.0-cp314-cp314t-win32.whl", hash = "sha256:06903aac074d00c988e77a1fc435286dc498506d4ca8d6f69df9babddf4ecc15", size = 6517204, upload-time = "2026-10-16T22:17:03.722Z" }, + { url = "https://files.pythonhosted.org/packages/85/d5/ef3a8ae7609c8ab26570abf18194882534b480d245a9148b895a2262c004/pillow-13.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:9a635068d9793c7f0d929f39f18b58f1bd86c236e8e7b64167b86af9232ebca0", size = 7286695, upload-time = "2026-10-16T22:17:05.543Z" }, + { url = "https://files.pythonhosted.org/packages/84/3c/0861db0c69a03689ebe3e7599d35668a414deb5aaafd8255215e4e62e3d3/pillow-13.0.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0d1a9cf7bc6917538b20f8d06b9ab2147e542f68849e96fc58eb66bdf6acc692", size = 2698098, upload-time = "2026-10-16T22:17:07.674Z" }, + { url = "https://files.pythonhosted.org/packages/6e/eb/e86a41962a3a31ad495a3d6a912d9002b01bba4a6fa71c28703abdca7f69/pillow-13.0.0-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7d5e097eabd5d4915c27ac9f6e9325bb1e01a7c94d7348b5c4451d3fc30e8521", size = 4191213, upload-time = "2026-10-16T22:17:09.449Z" }, + { url = "https://files.pythonhosted.org/packages/dd/04/7e7445e706afec84ef06dc25b2c77f9cecff242c23730c62928ad1089d4a/pillow-13.0.0-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:51ebb529fc5e8abdd55302f6c3f8943037348ec2384329a3e55677f69ae2fdfc", size = 4290650, upload-time = "2026-10-16T22:17:11.196Z" }, + { url = "https://files.pythonhosted.org/packages/46/85/d534089068ac40c0f61f650389a296c812eab745a8a733f81feec39ae955/pillow-13.0.0-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:c87a04e7f152ee4db5dbe15f0bfa3fe628a1aeedbe66b81c43b87f52c813f9ac", size = 3723078, upload-time = "2026-10-16T22:17:12.772Z" }, + { url = "https://files.pythonhosted.org/packages/ce/2b/00b5c3b401df538b5dbe311d3899730fae5ba1e21cb8b80a128887ac6747/pillow-13.0.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:20722cd5375533ad754053363a80b8fb30c79d37930a6f7228030e237ce3bd5d", size = 5572292, upload-time = "2026-10-16T22:17:14.539Z" }, + { url = "https://files.pythonhosted.org/packages/72/f5/a6b0610f946e9b54ae888ba7ad29d6e2f8d9b11f69e212d70416b7186c09/pillow-13.0.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:04a63720f79e22fd54d897c233a68314c50ca0603360f54ce2bd5db8f0f43782", size = 4852222, upload-time = "2026-10-16T22:17:16.521Z" }, + { url = "https://files.pythonhosted.org/packages/1e/d0/c0ff25bb0427ec70f32aac995453321fc3c4494a46c7292ff02d9d260b04/pillow-13.0.0-cp315-cp315-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4f8db54177035a2b5f717f94475b74907e12a96dc74f6d487f3966b0a4694071", size = 6527349, upload-time = "2026-10-16T22:17:18.534Z" }, + { url = "https://files.pythonhosted.org/packages/85/11/e46fa0bcc0fc117f1eacc206b3d51f04d583fab328b4b740672d0438d83f/pillow-13.0.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8f36aa77f74b14a2103622b196402c71330e4e7cf4122ee45c854e9a01e0eecf", size = 7152873, upload-time = "2026-10-16T22:17:20.415Z" }, + { url = "https://files.pythonhosted.org/packages/7c/53/2bdeca705f3a58679fa9201233193c86a30238340ca29b3a152c3fcc719b/pillow-13.0.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:149a1c323ba366f90b48e6f1a6db6582eb50512df374588de56fc909abc0f0f3", size = 6626871, upload-time = "2026-10-16T22:17:22.361Z" }, + { url = "https://files.pythonhosted.org/packages/14/de/3829030f209722ade3753bb456b805a0e7f885cf885b483407365c82e9ca/pillow-13.0.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:e892354a424b1e82a78ba16785822bdd40de06f19446a3d4a28047df1a4f8932", size = 7236439, upload-time = "2026-10-16T22:17:24.352Z" }, + { url = "https://files.pythonhosted.org/packages/44/b1/67fc37388382bc036a74f04da5bb6fcbf90ec3ac1f45893e06176c373fd3/pillow-13.0.0-cp315-cp315-win32.whl", hash = "sha256:8e459b613cf31f8980f584387b4fe47bf08e076e288d61aa8eba1f7fd4ddbb81", size = 6508688, upload-time = "2026-10-16T22:17:26.314Z" }, + { url = "https://files.pythonhosted.org/packages/44/05/fdb6a79aee10861165526b41b7b440e36ee1ff58613b2fbefe3acbf06d4f/pillow-13.0.0-cp315-cp315-win_amd64.whl", hash = "sha256:d4737f50d23ddd11d6685faacbb9252887dde0bc7997127757247983d74399d6", size = 7281107, upload-time = "2026-10-16T22:17:28.198Z" }, + { url = "https://files.pythonhosted.org/packages/e6/9c/6c6f7dc2a566467baf121394e83de25ac287cffe34cc030726beb4be0224/pillow-13.0.0-cp315-cp315-win_arm64.whl", hash = "sha256:2310e2adfc13c6d457d7d0f2ffdd5c56a74a317650cf765887df8d515a647ac0", size = 2695513, upload-time = "2026-10-16T22:17:30.013Z" }, + { url = "https://files.pythonhosted.org/packages/23/16/e9120defdb8bff693b582d035312acc6f530cdc2bc5238a87f410efccd82/pillow-13.0.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:21c32061a5512dc13f87cc7303e120e4d77c2f70df89a35af0e3ce246e5ac57f", size = 5578129, upload-time = "2026-10-16T22:17:31.642Z" }, + { url = "https://files.pythonhosted.org/packages/47/22/76faf2bb2448f48a84cf894c1e2bb1090d7d2b1aa521ece131cb2f05d631/pillow-13.0.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:1c774b9c0ba0d0b356f71530677b39028878a2cae5a93e0a13779cfd17120f88", size = 4857428, upload-time = "2026-10-16T22:17:33.43Z" }, + { url = "https://files.pythonhosted.org/packages/b3/64/0861ea4e03c50b14af9ed9dd8b9f388ab42f445c623a9fcbab19aef7aa55/pillow-13.0.0-cp315-cp315t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:20822140c9a2ba9c5e42df342b0a892ab2e102fc0e3db967a133bb9ce3f898bb", size = 6612582, upload-time = "2026-10-16T22:17:35.415Z" }, + { url = "https://files.pythonhosted.org/packages/5c/20/cd1e9b3f60a9f3d5ebe46da36955c26004092a501f7f2c42f9fcc26611bc/pillow-13.0.0-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ffea6b2986a797c84b6d1d27d4f43e0b83c73fc16281a930891cd237cf0d08fe", size = 7230176, upload-time = "2026-10-16T22:17:37.362Z" }, + { url = "https://files.pythonhosted.org/packages/b6/ef/ffb0a2fc85690714fb7ac662956949645d57f15bf4426f520da361e7b6e3/pillow-13.0.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:05cd2cd39055d0b9650060e4513ef4a9a0aea870083950bd046a0d6490f93a22", size = 6703640, upload-time = "2026-10-16T22:17:39.313Z" }, + { url = "https://files.pythonhosted.org/packages/e0/c2/6402ee3ccb3363aeed8fdb3f9fe56703ac5377a539f0b81b53999d7e121f/pillow-13.0.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:c6fd031333dedcad7ce3e03d244093f43504f209e86925ebdb2b868fa4037630", size = 7309231, upload-time = "2026-10-16T22:17:41.021Z" }, + { url = "https://files.pythonhosted.org/packages/fc/96/d6b82e8b8c06ad143b66b12e0b31051e4bf489b4fabca1f390a14fe1ebde/pillow-13.0.0-cp315-cp315t-win32.whl", hash = "sha256:c50c80e3591e5cf9a8dfa6007d4f10732f02e32263850999286e56ccd650cfb2", size = 6517200, upload-time = "2026-10-16T22:17:42.886Z" }, + { url = "https://files.pythonhosted.org/packages/60/d4/0062e6005e9b270b165015aafd343364ac378ec5a685431ea42baad33357/pillow-13.0.0-cp315-cp315t-win_amd64.whl", hash = "sha256:adb3c2124c68e480f4632d06cb7caa3b48a51678475f483b4edb1c6dee29ea43", size = 7287488, upload-time = "2026-10-16T22:17:45.56Z" }, + { url = "https://files.pythonhosted.org/packages/e4/81/b8eb349746be7bce47dd95337c6634e84910af91b59aaa9159c034c614fa/pillow-13.0.0-cp315-cp315t-win_arm64.whl", hash = "sha256:4a25756244bdcce3b50580baadf320fa48297f0eeb8e114ba64139a40d4d0fc8", size = 2698073, upload-time = "2026-10-16T22:17:47.556Z" }, +] + [[package]] name = "ruff" version = "0.17.4"