diff --git a/.cspell/dictionary.txt b/.cspell/dictionary.txt index 40739d4d..dab8dedf 100644 --- a/.cspell/dictionary.txt +++ b/.cspell/dictionary.txt @@ -183,3 +183,45 @@ Deutsch getpid killpg pids +# Figures: Graphviz, d2, librsvg, matplotlib, fontTools and SVG terms +addfont +autopct +axhline +axvline +circo +cmap +counterclock +dasharray +dashoffset +endset +epsf +figsize +fontname +fontnames +fontpath +fontsize +fonttype +hashsalt +hmtx +imagepath +librsvg +linecap +linejoin +linestyle +miterlimit +neato +pctdistance +rsvg +startangle +supxlabel +textcoords +tspan +twopi +wedgeprops +xlabel +xlink +xticks +xytext +ylabel +ylim +yticks diff --git a/packages/dsw-document-worker/CHANGELOG.md b/packages/dsw-document-worker/CHANGELOG.md index 54e0d9b7..e99432ef 100644 --- a/packages/dsw-document-worker/CHANGELOG.md +++ b/packages/dsw-document-worker/CHANGELOG.md @@ -7,6 +7,13 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added + +- Figures in documents (`graphviz`, `d2`, `chart`, `svg`): `externals.graphviz`, `externals.d2` and + `externals.rsvg` (`executable`, `timeout`, 30 s by default; `GRAPHVIZ_*`, `D2_*`, `RSVG_*`), + `figures.fontDir` (`FIGURES_FONT_DIR`) and `figures.limits`; the images need `dot`, `d2` and + `rsvg-convert` + ### Changed - Document context metamodel 19.1; contexts of 19.0 are still rendered, newer minor versions are diff --git a/packages/dsw-document-worker/config.example.yml b/packages/dsw-document-worker/config.example.yml index 93e04108..bdf4abf3 100644 --- a/packages/dsw-document-worker/config.example.yml +++ b/packages/dsw-document-worker/config.example.yml @@ -61,3 +61,28 @@ templates: # executable: pandoc # args: --standalone # timeout: +# graphviz: +# executable: dot +# timeout: 30 # seconds, never unlimited +# d2: +# executable: d2 +# timeout: 30 +# rsvg: +# executable: rsvg-convert +# timeout: 30 + +#figures: +# fontDir: /usr/share/fonts/truetype/custom +# limits: # see FigureLimits of dsw-templating +# maxFigures: 200 # per document +# maxRenderSeconds: 120 # per document +# maxOutputBytes: 20971520 +# maxSourceBytes: 1048576 +# maxChartSpecBytes: 1048576 +# maxChartLabels: 1000 +# maxChartSeries: 50 +# maxChartPoints: 20000 +# maxSizePx: 5000 +# maxElements: 100000 +# maxPathLength: 100000 +# maxTextLength: 10000 diff --git a/packages/dsw-document-worker/dsw/document_worker/config.py b/packages/dsw-document-worker/dsw/document_worker/config.py index 3f2245a9..700c7ab5 100644 --- a/packages/dsw-document-worker/dsw/document_worker/config.py +++ b/packages/dsw-document-worker/dsw/document_worker/config.py @@ -10,6 +10,8 @@ ConfigKeys, ConfigKeysContainer, cast_bool, + cast_dict, + cast_float, cast_int, cast_optional_int, cast_str, @@ -160,10 +162,46 @@ class _CommandPandocKeys(ConfigKeysContainer): ) +def _tool_keys(name: str, env_prefix: str, executable: str) -> tuple[ConfigKey, ConfigKey]: + return ( + ConfigKey( + yaml_path=['externals', name, 'executable'], + var_names=[f'{env_prefix}_EXECUTABLE'], + default=executable, + cast=cast_str, + ), + ConfigKey( + yaml_path=['externals', name, 'timeout'], + var_names=[f'{env_prefix}_TIMEOUT'], + default=30, + cast=cast_float, + ), + ) + + +class _FigureKeys(ConfigKeysContainer): + graphviz_executable, graphviz_timeout = _tool_keys('graphviz', 'GRAPHVIZ', 'dot') + d2_executable, d2_timeout = _tool_keys('d2', 'D2', 'd2') + rsvg_executable, rsvg_timeout = _tool_keys('rsvg', 'RSVG', 'rsvg-convert') + font_dir = ConfigKey( + yaml_path=['figures', 'fontDir'], + var_names=['FIGURES_FONT_DIR'], + default='/usr/share/fonts/truetype/custom', + cast=cast_str, + ) + #: FigureLimits of dsw-templating, in camelCase + limits = ConfigKey( + yaml_path=['figures', 'limits'], + default={}, + cast=cast_dict, + ) + + class DocWorkerConfigKeys(ConfigKeys): documents = _DocumentsKeys experimental = _ExperimentalKeys cmd_pandoc = _CommandPandocKeys + figures = _FigureKeys context = _DocumentContextKeys security = _SecurityKeys @@ -214,6 +252,15 @@ def command(self) -> list[str]: return [self.executable] + shlex.split(self.args) +@dataclasses.dataclass +class FiguresConfig(ConfigModel): + graphviz: CommandConfig + d2: CommandConfig + rsvg: CommandConfig + font_dir: str + limits: dict[str, typing.Any] + + @dataclasses.dataclass class TemplateRequestsConfig: enabled: bool @@ -266,6 +313,7 @@ class DocumentWorkerConfig: log: LoggingConfig doc: DocumentsConfig pandoc: CommandConfig + figures: FiguresConfig templates: TemplatesConfig experimental: ExperimentalConfig cloud: CloudConfig @@ -288,6 +336,7 @@ def __str__(self): f'{self.context}' \ f'{self.security}' \ f'Pandoc: {self.pandoc}' \ + f'{self.figures}' \ f'====================\n' @@ -313,6 +362,18 @@ def pandoc(self) -> CommandConfig: timeout=self.get(self.keys.cmd_pandoc.timeout), ) + @property + def figures(self) -> FiguresConfig: + keys = self.keys.figures + return FiguresConfig( + graphviz=CommandConfig(self.get(keys.graphviz_executable), '', + self.get(keys.graphviz_timeout)), + d2=CommandConfig(self.get(keys.d2_executable), '', self.get(keys.d2_timeout)), + rsvg=CommandConfig(self.get(keys.rsvg_executable), '', self.get(keys.rsvg_timeout)), + font_dir=self.get(keys.font_dir), + limits=self.get(keys.limits), + ) + @property def templates(self) -> TemplatesConfig: return TemplatesConfig( @@ -358,6 +419,7 @@ def config(self) -> DocumentWorkerConfig: log=self.logging, doc=self.documents, pandoc=self.pandoc, + figures=self.figures, templates=self.templates, experimental=self.experimental, cloud=self.cloud, diff --git a/packages/dsw-document-worker/dsw/document_worker/templates/templates.py b/packages/dsw-document-worker/dsw/document_worker/templates/templates.py index 9606301c..f0c1d3d3 100644 --- a/packages/dsw-document-worker/dsw/document_worker/templates/templates.py +++ b/packages/dsw-document-worker/dsw/document_worker/templates/templates.py @@ -8,13 +8,17 @@ import shutil import typing +from dsw.models.common import to_camel from dsw.templating import ( + FigureLimits, + FigureSettings, PandocSettings, RenderContext, RenderSettings, RequestsSettings, SecuritySettings, TemplateSettings, + ToolSettings, register_plugin_steps, ) from dsw.templating import Template as TemplateEngine @@ -70,10 +74,28 @@ def render_settings(cfg: DocumentWorkerConfig, coordinates: str) -> RenderSettin ], templates_dir=pathlib.Path(os.getenv('PANDOC_TEMPLATES', '/pandoc/templates')), ), + figures=figure_settings(cfg), template=template_settings, ) +def figure_settings(cfg: DocumentWorkerConfig) -> FigureSettings: + fields = {to_camel(field.name): field.name for field in dataclasses.fields(FigureLimits)} + limits: dict[str, typing.Any] = {} + for key, value in cfg.figures.limits.items(): + if key not in fields: + raise ValueError(f'Unknown key "{key}" in figures.limits, ' + f'use one of: {", ".join(fields)}') + limits[fields[key]] = value + return FigureSettings( + graphviz=ToolSettings(cfg.figures.graphviz.command, cfg.figures.graphviz.timeout), + d2=ToolSettings(cfg.figures.d2.command, cfg.figures.d2.timeout), + rsvg=ToolSettings(cfg.figures.rsvg.command, cfg.figures.rsvg.timeout), + limits=FigureLimits(**limits), + font_dir=pathlib.Path(cfg.figures.font_dir), + ) + + class S3ProjectFiles: """Project files of one project, downloaded from S3 into the template directory.""" diff --git a/packages/dsw-document-worker/tests/test_templating.py b/packages/dsw-document-worker/tests/test_templating.py index 437bb4e0..afc9e922 100644 --- a/packages/dsw-document-worker/tests/test_templating.py +++ b/packages/dsw-document-worker/tests/test_templating.py @@ -6,6 +6,7 @@ from dsw.document_worker.config import ( CommandConfig, + FiguresConfig, SecurityConfig, TemplateConfig, TemplateRequestsConfig, @@ -18,7 +19,7 @@ from dsw.templating.settings import bundled_pandoc_filters -def make_config(*templates: TemplateConfig): +def make_config(*templates: TemplateConfig, limits: dict | None = None): return types.SimpleNamespace( templates=TemplatesConfig(templates=list(templates)), security=SecurityConfig( @@ -29,6 +30,13 @@ def make_config(*templates: TemplateConfig): max_redirects=5, ), pandoc=CommandConfig(executable='pandoc', args='--standalone --wrap=none', timeout=30), + figures=FiguresConfig( + graphviz=CommandConfig(executable='/opt/dot', args='', timeout=5), + d2=CommandConfig(executable='d2', args='', timeout=30), + rsvg=CommandConfig(executable='rsvg-convert', args='', timeout=30), + font_dir='/fonts', + limits=limits or {}, + ), ) @@ -54,6 +62,21 @@ def test_render_settings_from_config(): assert settings.template.requests.timeout == 2 +def test_figure_settings_from_config(): + settings = render_settings(make_config(limits={'maxFigures': 3, 'maxSizePx': 800}), + 'org:tid:1.0.0').figures + assert settings.graphviz.command == ['/opt/dot'] and settings.graphviz.timeout == 5 + assert settings.rsvg.command == ['rsvg-convert'] + assert settings.font_dir == pathlib.Path('/fonts') + assert settings.limits.max_figures == 3 and settings.limits.max_size_px == 800 + assert settings.limits.max_elements == 100_000 + + +def test_unknown_figure_limit_is_refused(): + with pytest.raises(ValueError, match='Unknown key "maxFigure" in figures.limits'): + render_settings(make_config(limits={'maxFigure': 3}), 'org:tid:1.0.0') + + def test_render_settings_without_template_config(): assert render_settings(make_config(), 'org:tid:1.0.0').template is None diff --git a/packages/dsw-models/dsw/models/document_template/migrations.py b/packages/dsw-models/dsw/models/document_template/migrations.py index 1005488c..8595f1a3 100644 --- a/packages/dsw-models/dsw/models/document_template/migrations.py +++ b/packages/dsw-models/dsw/models/document_template/migrations.py @@ -11,7 +11,8 @@ 17.0 ``metamodelVersion`` became a ``"major.minor"`` string 18.3 ``language`` added (default ``"en"``) 19.0 no descriptor change (single ``id``, see below); the document context was restructured -19.1 no descriptor change; questions have ``prefill`` and replies ``provenance`` in the context +19.1 no descriptor change; questions have ``prefill`` and replies ``provenance`` in the + context, and the ``graphviz``, ``d2`` and ``chart`` steps and figure filters are new ======== ============================================================================= Whatever the version, the identity is upgraded to the single ``id`` of Wizard 5.0, as the diff --git a/packages/dsw-tdk/CHANGELOG.md b/packages/dsw-tdk/CHANGELOG.md index f567d281..c8dda6bc 100644 --- a/packages/dsw-tdk/CHANGELOG.md +++ b/packages/dsw-tdk/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Document template metamodel 19.1 and knowledge model metamodel 21; generated contexts have `prefill` and `provenance` +- `render` supports figures (`graphviz`, `d2`, `chart`, `svg`); `dot`, `d2` and `rsvg-convert` must + be installed for theirs, and text of the `svg` helper is wrapped with estimated widths ## [5.1.0] diff --git a/packages/dsw-templating/CHANGELOG.md b/packages/dsw-templating/CHANGELOG.md index d3bdc407..6754752b 100644 --- a/packages/dsw-templating/CHANGELOG.md +++ b/packages/dsw-templating/CHANGELOG.md @@ -10,6 +10,19 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### Added - `prefill` of questions and `provenance` of replies in the document context (metamodel 19.1) +- Figures (metamodel 19.1, see `support/Figures.md`): the `graphviz`, `d2` and `chart` filters and + steps, `dot_escape` and `d2_escape`, and the `svg` global for custom figures; every SVG passes an + allow-list sanitizer and gets its own `id` prefix, and figures have `alt`, `title` and `desc` +- `charts` extra (matplotlib), part of `all` +- `FigureSettings` (renderer commands and timeouts, `FigureLimits`, fonts) in `RenderSettings`; + a document fails when it exceeds a limit + +### Changed + +- `tinycss2` is a dependency +- External tools run through one helper: Pandoc and the figure renderers are stopped with + everything they started on a timeout, and the figure renderers also when they write more than + `max_output_bytes` ## [5.1.0] diff --git a/packages/dsw-templating/README.md b/packages/dsw-templating/README.md index 00202f90..c78f8e1c 100644 --- a/packages/dsw-templating/README.md +++ b/packages/dsw-templating/README.md @@ -20,6 +20,7 @@ pip install 'dsw-templating[all]' # every optional step dependency | Extra | Needed for | |---|---| +| `charts` | `chart` filter and step (matplotlib) | | `pdf` | `weasyprint` step (WeasyPrint, needs Pango installed) | | `rdf` | `rdflib-convert` step and the `rdflib` global in Jinja templates | | `excel` | `excel` step (XlsxWriter) | @@ -27,7 +28,9 @@ pip install 'dsw-templating[all]' # every optional step dependency | `http` | `requests` global in Jinja templates (Requests) | A step whose extra is missing raises `MissingExtraError` ("install dsw-templating[pdf]") when it -is used. The `pandoc` step needs the [pandoc](https://pandoc.org) executable. +is used. The `pandoc` step needs the [pandoc](https://pandoc.org) executable, and the figures +need [Graphviz](https://graphviz.org) (`dot`), [d2](https://d2lang.com) and `rsvg-convert` +(librsvg) for `graphviz`, `d2` and the PNG of the `svg` helper. ## Usage @@ -64,11 +67,14 @@ adds (service information and fallbacks for missing branding). ## Documentation for template developers * [Document Context](./support/DocumentContext.md) +* [Figures](./support/Figures.md) * [Jinja Filters](./support/JinjaFilters.md) * [Jinja Tests](./support/JinjaTests.md) * [Translations](./support/Translations.md) -* Steps: [archive](./support/steps/archive.md), [enrich-docx](./support/steps/enrich-docx.md), - [excel](./support/steps/excel.md), [jinja](./support/steps/jinja.md), [json](./support/steps/json.md), +* Steps: [archive](./support/steps/archive.md), [chart](./support/steps/chart.md), + [d2](./support/steps/d2.md), [enrich-docx](./support/steps/enrich-docx.md), + [excel](./support/steps/excel.md), [graphviz](./support/steps/graphviz.md), + [jinja](./support/steps/jinja.md), [json](./support/steps/json.md), [pandoc](./support/steps/pandoc.md), [rdflib-convert](./support/steps/rdflib-convert.md), [weasyprint](./support/steps/weasyprint.md) diff --git a/packages/dsw-templating/dsw/templating/__init__.py b/packages/dsw-templating/dsw/templating/__init__.py index 687c0fb3..7a9799b0 100644 --- a/packages/dsw-templating/dsw/templating/__init__.py +++ b/packages/dsw-templating/dsw/templating/__init__.py @@ -7,11 +7,14 @@ from .locales import RenderContext, TemplateLocale from .plugins import create_manager, hookimpl, hookspec, register_plugin_steps from .settings import ( + FigureLimits, + FigureSettings, PandocSettings, RenderSettings, RequestsSettings, SecuritySettings, TemplateSettings, + ToolSettings, ) from .steps import FormatStepError, Step from .steps.base import register_step @@ -26,7 +29,7 @@ 'Format', 'FormatStepError', 'Step', 'register_step', 'MissingExtraError', 'TemplateError', 'TemplateTriggeredError', 'RenderContext', 'TemplateLocale', - 'PandocSettings', 'RenderSettings', 'RequestsSettings', 'SecuritySettings', - 'TemplateSettings', + 'FigureLimits', 'FigureSettings', 'PandocSettings', 'RenderSettings', + 'RequestsSettings', 'SecuritySettings', 'TemplateSettings', 'ToolSettings', 'create_manager', 'hookimpl', 'hookspec', 'register_plugin_steps', ] diff --git a/packages/dsw-templating/dsw/templating/conversions.py b/packages/dsw-templating/dsw/templating/conversions.py index f609b1e3..a90ea45c 100644 --- a/packages/dsw-templating/dsw/templating/conversions.py +++ b/packages/dsw-templating/dsw/templating/conversions.py @@ -1,18 +1,13 @@ from __future__ import annotations -import contextlib import logging -import os import shlex -import signal -import subprocess -import sys -import tempfile import typing from . import consts from .documents import FileFormat, FileFormats from .exceptions import require +from .process import ProcessError, run_process if typing.TYPE_CHECKING: @@ -22,67 +17,15 @@ LOG = logging.getLogger(__name__) -#: how much of the end of stderr goes into the error message -STDERR_LIMIT = 64 * 1024 - - def run_conversion(*, args: list, workdir: str, input_data: bytes, name: str, source_format: FileFormat, target_format: FileFormat, timeout=None) -> bytes: command = ' '.join(args) LOG.info('Calling "%s" to convert from %s to %s', command, source_format, target_format) - # output goes to temporary files (deleted on close), not pipes, so nothing - # blocks on a full pipe and stderr is read only up to STDERR_LIMIT - with tempfile.TemporaryFile() as stdout, tempfile.TemporaryFile() as stderr: - try: - # own process group (POSIX), so a timeout stops also the filters it started - proc = subprocess.Popen(args, cwd=workdir, stdin=subprocess.PIPE, - stdout=stdout, stderr=stderr, - start_new_session=True) - except FileNotFoundError as e: - raise FormatConversionError( - name, source_format, target_format, - f'Executable "{args[0]}" not found, is it installed?', - ) from e - try: - proc.communicate(input=input_data, timeout=timeout) - except subprocess.TimeoutExpired as e: - _kill(proc) - raise FormatConversionError( - name, source_format, target_format, - f'Exceeded the time limit of {timeout} seconds and was stopped', - ) from e - except BaseException: - _kill(proc) - raise - if proc.returncode != consts.EXIT_SUCCESS: - raise FormatConversionError( - name, source_format, target_format, - f'Failed to execute (exit code: {proc.returncode}): ' - f'{_read_tail(stderr, STDERR_LIMIT).decode(consts.DEFAULT_ENCODING, "replace")}', - ) - stdout.seek(0) - return stdout.read() - - -def _kill(proc: subprocess.Popen): - """Kill the process with everything it started, and reap it.""" - if sys.platform == 'win32': - proc.kill() - else: - # the group is still there, the leader has not been reaped yet - with contextlib.suppress(ProcessLookupError): - os.killpg(proc.pid, signal.SIGKILL) - if proc.stdin: - with contextlib.suppress(OSError): - proc.stdin.close() - proc.wait() - - -def _read_tail(file: typing.BinaryIO, limit: int) -> bytes: - size = file.seek(0, os.SEEK_END) - file.seek(max(0, size - limit)) - return file.read() + try: + return run_process(args, workdir=workdir, input_data=input_data, timeout=timeout) + except ProcessError as e: + raise FormatConversionError(name, source_format, target_format, e.message) from e class FormatConversionError(Exception): diff --git a/packages/dsw-templating/dsw/templating/documents.py b/packages/dsw-templating/dsw/templating/documents.py index 6a298b7a..c17c46b1 100644 --- a/packages/dsw-templating/dsw/templating/documents.py +++ b/packages/dsw-templating/dsw/templating/documents.py @@ -69,6 +69,8 @@ class FileFormats: 'application/vnd.ms-excel.sheet.macroEnabled.12', 'xlsm', ) + SVG = FileFormat('svg', 'image/svg+xml', 'svg') + PNG = FileFormat('png', 'image/png', 'png') @staticmethod def get(name: str): @@ -104,6 +106,8 @@ def get(name: str): 'lzma': FileFormats.TAR_LZMA, 'xlsx': FileFormats.XLSX, 'xlsm': FileFormats.XLSM, + 'svg': FileFormats.SVG, + 'png': FileFormats.PNG, } return known_formats.get(name) diff --git a/packages/dsw-templating/dsw/templating/figures/__init__.py b/packages/dsw-templating/dsw/templating/figures/__init__.py new file mode 100644 index 00000000..2a75b39e --- /dev/null +++ b/packages/dsw-templating/dsw/templating/figures/__init__.py @@ -0,0 +1,8 @@ +"""Figures in documents: Graphviz, d2, charts and the `svg` helper.""" +from .base import Figure, FigureError +from .d2 import d2_escape +from .graphviz import dot_escape +from .service import Figures + + +__all__ = ['Figure', 'FigureError', 'Figures', 'd2_escape', 'dot_escape'] diff --git a/packages/dsw-templating/dsw/templating/figures/base.py b/packages/dsw-templating/dsw/templating/figures/base.py new file mode 100644 index 00000000..6a251477 --- /dev/null +++ b/packages/dsw-templating/dsw/templating/figures/base.py @@ -0,0 +1,120 @@ +from __future__ import annotations + +import base64 +import contextlib +import html +import time +import typing + +import jinja2.exceptions +import markupsafe + +from .. import consts + + +if typing.TYPE_CHECKING: + from ..settings import FigureLimits + + +SVG = 'svg' +PNG = 'png' +PDF = 'pdf' + +CONTENT_TYPES = { + SVG: 'image/svg+xml', + PNG: 'image/png', + PDF: 'application/pdf', +} + + +def plain_text(value: typing.Any) -> str: + """The text of a value; Markup is HTML (a macro's output, say), so its entities are decoded.""" + if isinstance(value, markupsafe.Markup): + return value.unescape() + return str(value) + + +class FigureError(jinja2.exceptions.TemplateRuntimeError): + """A figure that cannot be rendered; fails the document.""" + + def __init__(self, renderer: str, message: str): + self.renderer = renderer + # `message` is Jinja's own property, the whole text + super().__init__(f'{renderer}: {message}') + + +class Figure: + """A rendered figure; printed as inline SVG, or as an ```` for PNG.""" + + def __init__(self, data: bytes, fmt: str, *, alt: str | None = None): + self.data = data + self.format = fmt + self.alt = alt + + @property + def content_type(self) -> str: + return CONTENT_TYPES[self.format] + + @property + def svg(self) -> str: + if self.format != SVG: + raise FigureError('figure', f'A {self.format} figure has no SVG markup') + return self.data.decode(consts.DEFAULT_ENCODING) + + @property + def data_url(self) -> str: + return f'data:{self.content_type};base64,{base64.b64encode(self.data).decode("ascii")}' + + def __html__(self) -> str: + if self.format == SVG: + return self.svg + if self.format == PNG: + return f'{html.escape(self.alt or ' + raise FigureError('figure', f'A {self.format} figure cannot be printed into a document') + + def __str__(self) -> str: + return markupsafe.Markup(self.__html__()) # noqa: S704 (sanitized SVG or an escaped ) + + +def check_format(renderer: str, fmt: str, allowed: typing.Iterable[str]) -> str: + allowed = tuple(allowed) + if fmt not in allowed: + raise FigureError(renderer, f'Unknown format "{fmt}", use one of: {", ".join(allowed)}') + return fmt + + +class FigureBudget: + """Number of figures and total render time of one document.""" + + def __init__(self, limits: FigureLimits): + self.limits = limits + self.count = 0 + self.seconds = 0.0 + + def reset(self): + self.count = 0 + self.seconds = 0.0 + + def remaining_seconds(self) -> float: + return max(0.0, self.limits.max_render_seconds - self.seconds) + + @contextlib.contextmanager + def track(self, renderer: str): + if self.count >= self.limits.max_figures: + raise FigureError(renderer, f'More than {self.limits.max_figures} figures ' + f'in one document (limit max_figures)') + if self.remaining_seconds() <= 0: + raise _time_exceeded(renderer, self.limits.max_render_seconds) + self.count += 1 + start = time.monotonic() + try: + yield + finally: + self.seconds += time.monotonic() - start + if self.seconds > self.limits.max_render_seconds: + raise _time_exceeded(renderer, self.limits.max_render_seconds) + + +def _time_exceeded(renderer: str, limit: float) -> FigureError: + return FigureError(renderer, f'Figures of one document took more than {limit} seconds ' + f'to render (limit max_render_seconds)') diff --git a/packages/dsw-templating/dsw/templating/figures/chart.py b/packages/dsw-templating/dsw/templating/figures/chart.py new file mode 100644 index 00000000..85ab8c3a --- /dev/null +++ b/packages/dsw-templating/dsw/templating/figures/chart.py @@ -0,0 +1,657 @@ +"""Charts from a small declarative JSON spec, rendered with matplotlib. + +An invalid spec fails; missing data does not. A ``null`` value is a gap (never 0), a timeline +task without dates is left out and listed under the chart, and no data at all gives an empty +figure showing ``emptyText``. +""" +from __future__ import annotations + +import dataclasses +import datetime +import functools +import io +import json +import math +import numbers +import pathlib +import re +import typing + +import jinja2 + +from ..exceptions import require +from .base import FigureError, plain_text + + +if typing.TYPE_CHECKING: + from ..settings import FigureLimits + + +FORMATS = ('svg', 'png', 'pdf') + +SERIES_TYPES = ('bar', 'barh', 'stacked-bar', 'line', 'scatter') +PIE_TYPES = ('pie', 'donut') +TYPES = (*SERIES_TYPES, *PIE_TYPES, 'timeline') + +COMMON_KEYS = frozenset({'type', 'title', 'xLabel', 'yLabel', 'legend', 'size', 'colors', + 'valueLabels', 'referenceLines', 'emptyText'}) +TYPE_KEYS = { + **dict.fromkeys(SERIES_TYPES, frozenset({'labels', 'series'})), + 'pie': frozenset({'labels', 'series'}), + 'donut': frozenset({'labels', 'series', 'centerText'}), + 'timeline': frozenset({'tasks', 'milestones'}), +} +REQUIRED_KEYS = { + **dict.fromkeys((*SERIES_TYPES, *PIE_TYPES), ('labels', 'series')), + 'timeline': ('tasks',), +} +PERCENT_TYPES = ('pie', 'donut', 'stacked-bar') +SIZE_UNITS = {'px': 1 / 100, 'in': 1, 'cm': 1 / 2.54, 'mm': 1 / 25.4, 'pt': 1 / 72} +DPI = 100 +#: longer labels, series names and task labels end with an ellipsis +MAX_LABEL_LENGTH = 40 +DEFAULT_SIZE = (6.4, 4.0) +DEFAULT_EMPTY_TEXT = 'No data' +FONT_FAMILY = ['Noto Sans', 'DejaVu Sans'] + +_DATE = re.compile(r'^\d{4}-\d{2}-\d{2}$') + + +def _fail(message: str) -> typing.NoReturn: + raise FigureError('chart', message) + + +@dataclasses.dataclass +class Series: + name: str + values: list[float | None] + + +@dataclasses.dataclass +class Task: + label: str + start: datetime.date | None + end: datetime.date | None + group: str | None + + +@dataclasses.dataclass +class ReferenceLine: + axis: str + value: float | datetime.date + label: str | None + + +@dataclasses.dataclass +class ChartSpec: + type: str + title: str | None = None + x_label: str | None = None + y_label: str | None = None + legend: bool | None = None + size: tuple[float, float] = DEFAULT_SIZE + colors: list[str] | None = None + value_labels: bool | str = False + reference_lines: list[ReferenceLine] = dataclasses.field(default_factory=list) + empty_text: str = DEFAULT_EMPTY_TEXT + labels: list = dataclasses.field(default_factory=list) + series: list[Series] = dataclasses.field(default_factory=list) + center_text: str | None = None + tasks: list[Task] = dataclasses.field(default_factory=list) + milestones: list[tuple[str, datetime.date]] = dataclasses.field(default_factory=list) + + @property + def date_labels(self) -> bool: + return bool(self.labels) and all(isinstance(x, datetime.date) for x in self.labels) + + @property + def numeric_labels(self) -> bool: + return bool(self.labels) and all(isinstance(x, float) for x in self.labels) + + +# Parsing and validation + +def parse_spec(spec: typing.Any, limits: FigureLimits) -> ChartSpec: + spec = _load(spec, limits) + chart_type = spec.get('type') + if chart_type not in TYPES: + _fail(f'Unknown type "{chart_type}", use one of: {", ".join(TYPES)}') + for key in spec: + if key not in COMMON_KEYS and key not in TYPE_KEYS[chart_type]: + _fail(f'Unknown key "{key}" for type "{chart_type}"') + for key in REQUIRED_KEYS[chart_type]: + if key not in spec: + _fail(f'Missing key "{key}"') + result = ChartSpec(type=chart_type) + result.title = _optional_str(spec, 'title') + result.x_label = _optional_str(spec, 'xLabel') + result.y_label = _optional_str(spec, 'yLabel') + result.legend = _optional_bool(spec, 'legend') + result.size = _size(spec.get('size'), limits) + result.colors = _colors(spec.get('colors')) + result.value_labels = _value_labels(spec.get('valueLabels', False), chart_type) + result.empty_text = _optional_str(spec, 'emptyText') or DEFAULT_EMPTY_TEXT + if chart_type == 'timeline': + result.tasks = _tasks(spec['tasks']) + result.milestones = _milestones(spec.get('milestones', [])) + points = len(result.tasks) + len(result.milestones) + else: + points = _parse_series_data(spec, result, limits) + if points > limits.max_chart_points: + _fail(f'More than {limits.max_chart_points} points (limit max_chart_points)') + result.reference_lines = _reference_lines(spec.get('referenceLines', []), result) + return result + + +def _load(spec: typing.Any, limits: FigureLimits) -> dict: + spec = _plain(spec) + if isinstance(spec, str): + if len(spec.encode()) > limits.max_chart_spec_bytes: + _spec_too_large(limits) + try: + spec = json.loads(spec, parse_constant=_reject_constant) + except ValueError as e: + _fail(f'Invalid JSON: {e}') + if not isinstance(spec, dict): + _fail('The spec must be an object (a dict)') + if len(json.dumps(spec, default=str).encode()) > limits.max_chart_spec_bytes: + _spec_too_large(limits) + return spec + + +def _plain(value: typing.Any) -> typing.Any: + """The spec with every Markup (HTML, such as a macro's output) as the text it shows.""" + if isinstance(value, str): + return plain_text(value) + if isinstance(value, dict): + return {_plain(key): _plain(item) for key, item in value.items()} + if isinstance(value, list | tuple): + return [_plain(item) for item in value] + return value + + +def _short(text: str) -> str: + """A label that leaves room for the plot; the full text belongs in the document.""" + return text if len(text) <= MAX_LABEL_LENGTH else text[:MAX_LABEL_LENGTH - 1].rstrip() + '…' + + +def _parse_series_data(spec: dict, result: ChartSpec, limits: FigureLimits) -> int: + result.labels = _labels(spec['labels'], result.type) + result.series = _series(spec['series'], len(result.labels), result.type) + result.center_text = _optional_str(spec, 'centerText') + if len(result.labels) > limits.max_chart_labels: + _fail(f'More than {limits.max_chart_labels} labels (limit max_chart_labels)') + if len(result.series) > limits.max_chart_series: + _fail(f'More than {limits.max_chart_series} series (limit max_chart_series)') + return sum(len(s.values) for s in result.series) + + +def _spec_too_large(limits: FigureLimits) -> typing.NoReturn: + _fail(f'The spec has more than {limits.max_chart_spec_bytes} bytes ' + f'(limit max_chart_spec_bytes)') + + +def _reject_constant(name: str): + _fail(f'{name} is not allowed') + + +def _is_missing(value) -> bool: + return value is None or isinstance(value, jinja2.Undefined) + + +def _optional_str(spec: dict, key: str) -> str | None: + value = spec.get(key) + if _is_missing(value): + return None + if not isinstance(value, str): + _fail(f'"{key}" must be a string') + return value + + +def _optional_bool(spec: dict, key: str) -> bool | None: + value = spec.get(key) + if value is None: + return None + if not isinstance(value, bool): + _fail(f'"{key}" must be true or false') + return value + + +def _number(value, where: str) -> float | None: + if _is_missing(value): + return None + if isinstance(value, bool) or not isinstance(value, numbers.Real): + _fail(f'{where} must be a number or null, not {type(value).__name__}') + result = float(value) + if not math.isfinite(result): + _fail(f'{where} is {value}, NaN and Infinity are not allowed') + return result + + +def _date(value, where: str) -> datetime.date: + if isinstance(value, datetime.datetime): + return value.date() + if isinstance(value, datetime.date): + return value + if not isinstance(value, str) or not _DATE.match(value): + _fail(f'{where} must be a date as YYYY-MM-DD, not "{value}"') + try: + return datetime.date.fromisoformat(value) + except ValueError: + _fail(f'{where} is not a valid date: "{value}"') + + +def _list(value, key: str) -> list: + if not isinstance(value, list | tuple): + _fail(f'"{key}" must be a list') + return list(value) + + +def _size(value, limits: FigureLimits) -> tuple[float, float]: + if value is None: + return DEFAULT_SIZE + if not isinstance(value, dict): + _fail('"size" must be an object with "width" and "height"') + for key in value: + if key not in ('width', 'height', 'unit'): + _fail(f'Unknown key "{key}" in "size"') + unit = value.get('unit', 'px') + if unit not in SIZE_UNITS: + _fail(f'Unknown size unit "{unit}", use one of: {", ".join(SIZE_UNITS)}') + width = _number(value.get('width'), '"size.width"') + height = _number(value.get('height'), '"size.height"') + if width is None or height is None or width <= 0 or height <= 0: + _fail('"size" needs a positive "width" and "height"') + inches = (width * SIZE_UNITS[unit], height * SIZE_UNITS[unit]) + if max(inches) * DPI > limits.max_size_px: + _fail(f'The chart is larger than {limits.max_size_px} px (limit max_size_px)') + return inches + + +def _colors(value) -> list[str] | None: + if value is None: + return None + colors = _list(value, 'colors') + for index, color in enumerate(colors): + if not isinstance(color, str): + _fail(f'Color {index} must be a string') + return colors + + +def _value_labels(value, chart_type: str) -> bool | str: + if isinstance(value, bool): + return value + if value == 'percent': + if chart_type not in PERCENT_TYPES: + _fail(f'"valueLabels": "percent" is only for {", ".join(PERCENT_TYPES)}') + return value + _fail('"valueLabels" must be true, false or "percent"') + + +def _labels(value, chart_type: str) -> list: + labels = _list(value, 'labels') + result = [] + for index, label in enumerate(labels): + if isinstance(label, bool) or not isinstance(label, str | numbers.Real): + _fail(f'Label {index} must be a string or a number') + result.append(label) + if chart_type in ('line', 'scatter'): + if result and all(isinstance(x, numbers.Real) for x in result): + return [_number(x, f'Label {i}') for i, x in enumerate(result)] + if any(isinstance(x, str) and _DATE.match(x) for x in result): + return [_date(x, f'Label {i}') for i, x in enumerate(result)] + return [_short(str(x)) for x in result] + + +def _series(value, size: int, chart_type: str) -> list[Series]: + result = [_one_series(index, item, size, chart_type) + for index, item in enumerate(_list(value, 'series'))] + if chart_type in PIE_TYPES and len(result) != 1: + _fail(f'A {chart_type} chart takes exactly one series') + return result + + +def _one_series(index: int, item, size: int, chart_type: str) -> Series: + if not isinstance(item, dict): + _fail(f'Series {index} must be an object with "name" and "values"') + for key in item: + if key not in ('name', 'values'): + _fail(f'Unknown key "{key}" in series {index}') + name = item.get('name') + name = f'Series {index + 1}' if _is_missing(name) else _short(str(name)) + if 'values' not in item: + _fail(f'Series "{name}" has no "values"') + values = _list(item['values'], f'series "{name}" values') + if len(values) != size: + _fail(f'Series "{name}" has {len(values)} values for {size} labels') + result = [_number(v, f'Series "{name}" value {i}') for i, v in enumerate(values)] + if chart_type in PIE_TYPES: + for i, number in enumerate(result): + if number is not None and number < 0: + _fail(f'Series "{name}" value {i} is negative, not allowed in {chart_type}') + return Series(name, result) + + +def _tasks(value) -> list[Task]: + result = [] + for index, item in enumerate(_list(value, 'tasks')): + if not isinstance(item, dict): + _fail(f'Task {index} must be an object') + label = item.get('label') + if not isinstance(label, str): + _fail(f'Task {index} needs a "label" string') + for key in item: + if key not in ('label', 'start', 'end', 'group'): + _fail(f'Unknown key "{key}" in task "{label}"') + start = None if _is_missing(item.get('start')) \ + else _date(item['start'], f'Task "{label}" start') + end = None if _is_missing(item.get('end')) \ + else _date(item['end'], f'Task "{label}" end') + if start is not None and end is not None and end < start: + _fail(f'Task "{label}" ends before it starts') + group = item.get('group') + result.append(Task(_short(label), start, end, + None if _is_missing(group) else _short(str(group)))) + return result + + +def _milestones(value) -> list[tuple[str, datetime.date]]: + result = [] + for index, item in enumerate(_list(value, 'milestones')): + if not isinstance(item, dict) or not isinstance(item.get('label'), str): + _fail(f'Milestone {index} must be an object with "label" and "date"') + for key in item: + if key not in ('label', 'date'): + _fail(f'Unknown key "{key}" in milestone "{item["label"]}"') + result.append((_short(item['label']), + _date(item.get('date'), f'Milestone "{item["label"]}" date'))) + return result + + +def _reference_lines(value, spec: ChartSpec) -> list[ReferenceLine]: + result = [] + for index, item in enumerate(_list(value, 'referenceLines')): + if not isinstance(item, dict): + _fail(f'Reference line {index} must be an object') + for key in item: + if key not in ('axis', 'value', 'label'): + _fail(f'Unknown key "{key}" in reference line {index}') + axis = item.get('axis', 'y') + if axis not in ('x', 'y'): + _fail(f'Reference line {index}: "axis" must be "x" or "y"') + where = f'Reference line {index} value' + if spec.type == 'timeline' or (axis == 'x' and spec.date_labels): + line_value: float | datetime.date = _date(item.get('value'), where) + else: + number = _number(item.get('value'), where) + if number is None: + _fail(f'{where} is missing') + line_value = number + label = item.get('label') + result.append(ReferenceLine(axis, line_value, None if _is_missing(label) else str(label))) + return result + + +# Rendering + +def render(spec: typing.Any, fmt: str, *, limits: FigureLimits, + font_dir: pathlib.Path | None) -> bytes: + matplotlib = require('matplotlib', 'charts') + chart = parse_spec(spec, limits) + from matplotlib.figure import Figure # noqa: PLC0415 (optional dependency) + families = _register_fonts(str(font_dir)) if font_dir else [] + rc = { + 'svg.fonttype': 'path', + 'svg.hashsalt': 'dsw-chart', + 'axes.spines.top': False, + 'axes.spines.right': False, + 'font.family': [*families, 'DejaVu Sans'], + } + if chart.colors: + try: + rc['axes.prop_cycle'] = matplotlib.cycler(color=chart.colors) + except ValueError as e: + _fail(f'Invalid "colors": {e}') + with matplotlib.rc_context(rc): + figure = Figure(figsize=chart.size, dpi=DPI, layout='constrained') + ax = figure.add_subplot() + note = None + if _is_empty(chart): + _draw_empty(ax, chart) + else: + note = _DRAWERS[chart.type](ax, chart) + _draw_reference_lines(ax, chart) + if chart.x_label: + ax.set_xlabel(chart.x_label) + if chart.y_label: + ax.set_ylabel(chart.y_label) + if chart.title: + # room for the labels of vertical reference lines, printed above the plot + labelled = any(line.label and line.axis != 'y' for line in chart.reference_lines) + ax.set_title(chart.title, pad=18 if labelled else 6) + if note: + figure.supxlabel(note, fontsize='small', color='#555555') + output = io.BytesIO() + figure.savefig(output, format=fmt, dpi=DPI, metadata=_METADATA[fmt]) + return output.getvalue() + + +_METADATA: dict[str, dict] = { + 'svg': {'Date': None, 'Creator': None}, + 'png': {'Software': None}, + 'pdf': {'CreationDate': None, 'Creator': None, 'Producer': None}, +} + + +@functools.cache +def _register_fonts(font_dir: str) -> list[str]: + from matplotlib import font_manager # noqa: PLC0415 (optional dependency) + families = [] + for path in sorted(pathlib.Path(font_dir).glob('*.[ot]tf')): + if 'emoji' in path.name.lower(): + continue # colour bitmap fonts cannot be drawn + font_manager.fontManager.addfont(str(path)) + name = font_manager.FontProperties(fname=str(path)).get_name() + if name not in families: + families.append(name) + # sans-serif first, as for the rest of the document + return sorted(families, key=lambda name: (name not in FONT_FAMILY, name)) + + +def _is_empty(chart: ChartSpec) -> bool: + if chart.type == 'timeline': + return not any(t.start and t.end for t in chart.tasks) and not chart.milestones + if not chart.labels or all(v is None for s in chart.series for v in s.values): + return True + if chart.type in PIE_TYPES: + return sum(v or 0 for v in chart.series[0].values) == 0 + return False + + +def _draw_empty(ax, chart: ChartSpec): + ax.set_axis_off() + ax.text(0.5, 0.5, chart.empty_text, ha='center', va='center', + transform=ax.transAxes, color='#777777', fontsize='large') + + +def _format(value: float) -> str: + return str(int(value)) if value.is_integer() else f'{value:g}' + + +def _nan(values: list[float | None]) -> list[float]: + return [math.nan if v is None else v for v in values] + + +def _color(chart: ChartSpec, index: int): + return chart.colors[index % len(chart.colors)] if chart.colors else f'C{index % 10}' + + +def _show_legend(chart: ChartSpec, default: bool) -> bool: + return default if chart.legend is None else chart.legend + + +def _draw_bars(ax, chart: ChartSpec): + horizontal = chart.type == 'barh' + stacked = chart.type == 'stacked-bar' + positions = list(range(len(chart.labels))) + width = 0.8 if stacked else 0.8 / len(chart.series) + bottoms = [0.0] * len(positions) + totals = [sum(s.values[i] or 0 for s in chart.series) for i in positions] + for index, series in enumerate(chart.series): + values = _nan(series.values) + if stacked: + where = positions + offset = {'bottom': list(bottoms)} + else: + where = [p - 0.4 + width * (index + 0.5) for p in positions] + offset = {} + draw = ax.barh if horizontal else ax.bar + if horizontal: + offset = {'left': offset['bottom']} if offset else {} + bars = draw(where, values, width, label=series.name, color=_color(chart, index), **offset) + if stacked: + bottoms = [b + (v or 0) for b, v in zip(bottoms, series.values, strict=True)] + if chart.value_labels: + ax.bar_label(bars, labels=_bar_texts(chart, series, totals), + label_type='center' if stacked else 'edge') + if horizontal: + ax.set_yticks(positions, chart.labels) + ax.invert_yaxis() + else: + ax.set_xticks(positions, chart.labels) + if _show_legend(chart, len(chart.series) > 1): + ax.legend() + + +def _bar_texts(chart: ChartSpec, series: Series, totals: list[float]) -> list[str]: + texts = [] + for value, total in zip(series.values, totals, strict=True): + if value is None or (value == 0 and chart.type == 'stacked-bar'): + texts.append('') # a gap has no value to print, an empty segment no room + elif chart.value_labels == 'percent': + texts.append(f'{value / total * 100:.0f}%' if total else '') + else: + texts.append(_format(value)) + return texts + + +def _x_values(chart: ChartSpec) -> list: + if chart.date_labels or chart.numeric_labels: + return chart.labels + return list(range(len(chart.labels))) + + +def _draw_points(ax, chart: ChartSpec): + xs = _x_values(chart) + for index, series in enumerate(chart.series): + color = _color(chart, index) + if chart.type == 'line': + ax.plot(xs, _nan(series.values), marker='o', label=series.name, color=color) + else: + points = [(x, v) for x, v in zip(xs, series.values, strict=True) if v is not None] + ax.scatter([p[0] for p in points], [p[1] for p in points], label=series.name, + color=color) + if chart.value_labels: + for x, value in zip(xs, series.values, strict=True): + if value is not None: + ax.annotate(_format(value), (x, value), textcoords='offset points', + xytext=(0, 5), ha='center', fontsize='small') + if not (chart.date_labels or chart.numeric_labels): + ax.set_xticks(xs, chart.labels) + if chart.date_labels: + _date_axis(ax) + if _show_legend(chart, len(chart.series) > 1): + ax.legend() + + +def _draw_pie(ax, chart: ChartSpec): + pairs = [(label, value) for label, value in zip(chart.labels, chart.series[0].values, + strict=True) if value] + labels = [p[0] for p in pairs] + values = [p[1] for p in pairs] + total = sum(values) + legend = _show_legend(chart, False) + autopct = None + if chart.value_labels == 'percent': + autopct = '%1.0f%%' + elif chart.value_labels: + def autopct(pct): + return _format(round(pct * total / 100, 6)) + colors = [_color(chart, i) for i in range(len(values))] + result = ax.pie(values, labels=None if legend else labels, colors=colors, autopct=autopct, + startangle=90, counterclock=False, + wedgeprops={'width': 0.4} if chart.type == 'donut' else None, + pctdistance=0.8 if chart.type == 'donut' else 0.6) + if chart.type == 'donut' and chart.center_text: + ax.text(0, 0, chart.center_text, ha='center', va='center', fontsize='x-large') + ax.set_aspect('equal') + if legend: + ax.legend(result[0], labels, loc='center left', bbox_to_anchor=(1, 0.5)) + + +def _draw_timeline(ax, chart: ChartSpec) -> str | None: + dates = require('matplotlib.dates', 'charts') + shown = [t for t in chart.tasks if t.start and t.end] + left_out = [t.label for t in chart.tasks if not (t.start and t.end)] + groups: dict[str | None, int] = {} + for task in shown: + groups.setdefault(task.group, len(groups)) + labelled = set() + for row, task in enumerate(shown): + start = dates.date2num(task.start) + days = (typing.cast('datetime.date', task.end) + - typing.cast('datetime.date', task.start)).days + group = groups[task.group] + label = task.group if task.group is not None and task.group not in labelled else None + labelled.add(task.group) + # the end date is included + ax.barh(row, days + 1, left=start, height=0.6, color=_color(chart, group), label=label) + for label, date in chart.milestones: + x = dates.date2num(date) + ax.axvline(x, color='#444444', linestyle=':', linewidth=1) + ax.plot([x], [-0.7], marker='D', color='#444444', clip_on=False) + ax.annotate(label, (x, -0.7), textcoords='offset points', xytext=(6, 0), va='center', + fontsize='small', annotation_clip=False) + ax.set_yticks(range(len(shown)), [t.label for t in shown]) + ax.set_ylim(len(shown) - 0.5, -1) + _date_axis(ax) + if _show_legend(chart, any(g is not None for g in groups)): + ax.legend() + if left_out: + return f'Without start or end: {", ".join(left_out)}' + return None + + +def _date_axis(ax): + dates = require('matplotlib.dates', 'charts') + locator = dates.AutoDateLocator() + ax.xaxis.set_major_locator(locator) + ax.xaxis.set_major_formatter(dates.ConciseDateFormatter(locator)) + + +def _draw_reference_lines(ax, chart: ChartSpec): + dates = require('matplotlib.dates', 'charts') + for line in chart.reference_lines: + value = dates.date2num(line.value) if isinstance(line.value, datetime.date) else line.value + if line.axis == 'y': + ax.axhline(value, color='#555555', linestyle='--', linewidth=1) + if line.label: + ax.text(1, value, line.label, transform=ax.get_yaxis_transform(), ha='right', + va='bottom', fontsize='small', color='#555555') + else: + ax.axvline(value, color='#555555', linestyle='--', linewidth=1) + if line.label: + ax.text(value, 1, line.label, transform=ax.get_xaxis_transform(), ha='center', + va='bottom', fontsize='small', color='#555555') + + +_DRAWERS: dict[str, typing.Callable] = { + 'bar': _draw_bars, + 'barh': _draw_bars, + 'stacked-bar': _draw_bars, + 'line': _draw_points, + 'scatter': _draw_points, + 'pie': _draw_pie, + 'donut': _draw_pie, + 'timeline': _draw_timeline, +} diff --git a/packages/dsw-templating/dsw/templating/figures/d2.py b/packages/dsw-templating/dsw/templating/figures/d2.py new file mode 100644 index 00000000..4ee4175c --- /dev/null +++ b/packages/dsw-templating/dsw/templating/figures/d2.py @@ -0,0 +1,56 @@ +"""d2 diagrams, rendered by the ``d2`` binary.""" +from __future__ import annotations + +import re + +import markupsafe + +from .base import FigureError, plain_text + + +FORMATS = ('svg', 'png') + +_STRING = re.compile(r'"(?:\\.|[^"\\])*"|\'[^\'\n]*\'') +#: quoted keys still count, `"icon": ...` is an icon +_KEYWORDS = frozenset({'icon', 'shape', 'image'}) +_REJECTED = ( + (re.compile(r'(^|[\s{;.])icon\s*:'), 'Icons are not allowed'), + (re.compile(r'(^|[\s{;.])shape\s*:\s*image\b'), 'Images ("shape: image") are not allowed'), + (re.compile(r'(:|\.\.\.)\s*@'), 'Imports are not allowed'), +) +_OPTION = re.compile(r'^[\w][\w -]*$') + + +def d2_escape(value) -> markupsafe.Markup: + """Make a text safe inside a double-quoted d2 key or label.""" + text = plain_text(value) + text = text.replace('\\', '\\\\').replace('"', '\\"').replace('$', '\\$') + text = text.replace('\r\n', '\\n').replace('\n', '\\n').replace('\r', '\\n') + return markupsafe.Markup(text) # noqa: S704 (escaped for the figure source above) + + +def check_source(source: str): + """Refuse imports, icons and images, which read files or fetch URLs, before d2 runs. + + d2 also runs with local files disallowed and without bundling images, so nothing is read + or fetched even when this check misses something. + """ + def keep_keyword(match: re.Match) -> str: + content = match.group()[1:-1] + return content if content in _KEYWORDS else '""' + + code = _STRING.sub(keep_keyword, source) + for pattern, message in _REJECTED: + if pattern.search(code): + raise FigureError('d2', message) + + +def args(layout: str | None, theme: str | int | None, fmt: str) -> list[str]: + result = ['--bundle=false', '--allow-local-files=false', '--stdout-format', fmt] + for name, value in (('layout', layout), ('theme', theme)): + if value is None: + continue + if not _OPTION.match(str(value)): + raise FigureError('d2', f'Invalid {name} "{value}"') + result.append(f'--{name}={value}') + return [*result, '-', '-'] diff --git a/packages/dsw-templating/dsw/templating/figures/graphviz.py b/packages/dsw-templating/dsw/templating/figures/graphviz.py new file mode 100644 index 00000000..874b8953 --- /dev/null +++ b/packages/dsw-templating/dsw/templating/figures/graphviz.py @@ -0,0 +1,111 @@ +"""Graphviz figures, rendered by the ``dot`` binary.""" +from __future__ import annotations + +import re + +import markupsafe + +from .base import FigureError, plain_text + + +ENGINES = ('dot', 'neato', 'fdp', 'circo', 'twopi') +FORMATS = ('svg', 'png', 'pdf') + +#: attributes that make Graphviz read a file (or write a reference to one into the output) +FILE_ATTRIBUTES = frozenset({'image', 'shapefile', 'imagepath', 'fontpath', 'fontnames', + 'stylesheet'}) + +_IMG_TAG = re.compile(r'<\s*img\b', re.IGNORECASE) +_ID_START = re.compile(r'[A-Za-z_\u0080-\U0010ffff]') +_ID = re.compile(r'[\w\u0080-\U0010ffff]*') +_NUMERAL = re.compile(r'-?(\.\d+|\d+(\.\d*)?)') + + +def dot_escape(value) -> markupsafe.Markup: + """Make a text safe inside a double-quoted Graphviz name or label.""" + text = plain_text(value) + text = text.replace('\\', '\\\\').replace('"', '\\"') + text = text.replace('\r\n', '\\n').replace('\n', '\\n').replace('\r', '\\n') + # Markup, so autoescape does not turn the source into HTML entities + return markupsafe.Markup(text) # noqa: S704 (escaped for the figure source above) + + +def check_source(source: str): + """Refuse a source that references files, before Graphviz runs.""" + tokens = _tokens(source) + for index, (kind, value) in enumerate(tokens): + if kind == 'html' and _IMG_TAG.search(value): + raise FigureError('graphviz', ' in an HTML-like label is not allowed') + if kind not in ('id', 'string') or index + 1 >= len(tokens) \ + or tokens[index + 1] != ('op', '='): + continue + name = value.lower() + if name in FILE_ATTRIBUTES: + raise FigureError('graphviz', f'The "{value}" attribute is not allowed') + if name == 'fontname' and index + 2 < len(tokens) \ + and re.search(r'[/\\]', tokens[index + 2][1]): + raise FigureError('graphviz', 'A file path as "fontname" is not allowed') + + +def _tokens(source: str) -> list[tuple[str, str]]: # noqa: C901, PLR0912 + """Split DOT source into identifiers, strings, HTML strings and operators.""" + tokens: list[tuple[str, str]] = [] + pos, size = 0, len(source) + line_start = True + while pos < size: + char = source[pos] + if char.isspace(): + line_start = line_start or char == '\n' + pos += 1 + continue + if char == '#' and line_start or source.startswith('//', pos): + end = source.find('\n', pos) + pos = size if end < 0 else end + continue + line_start = False + if source.startswith('/*', pos): + end = source.find('*/', pos + 2) + pos = size if end < 0 else end + 2 + elif char == '"': + pos += 1 + value = [] + while pos < size and source[pos] != '"': + if source[pos] == '\\' and pos + 1 < size: + value.append(source[pos:pos + 2]) + pos += 2 + else: + value.append(source[pos]) + pos += 1 + pos += 1 + tokens.append(('string', ''.join(value).replace('\\"', '"'))) + elif char == '<': + depth, start = 0, pos + while pos < size: + if source[pos] == '<': + depth += 1 + elif source[pos] == '>': + depth -= 1 + if depth == 0: + break + pos += 1 + tokens.append(('html', source[start + 1:pos])) + pos += 1 + elif _ID_START.match(char): + match = _ID.match(source, pos) + end = match.end() if match else pos + 1 + tokens.append(('id', source[pos:end])) + pos = max(end, pos + 1) + elif match := _NUMERAL.match(source, pos): + tokens.append(('id', match.group())) + pos = match.end() + else: + tokens.append(('op', char)) + pos += 1 + return tokens + + +def args(engine: str, fmt: str) -> list[str]: + if engine not in ENGINES: + raise FigureError('graphviz', + f'Unknown engine "{engine}", use one of: {", ".join(ENGINES)}') + return [f'-K{engine}', f'-T{fmt}'] diff --git a/packages/dsw-templating/dsw/templating/figures/sanitize.py b/packages/dsw-templating/dsw/templating/figures/sanitize.py new file mode 100644 index 00000000..bb465317 --- /dev/null +++ b/packages/dsw-templating/dsw/templating/figures/sanitize.py @@ -0,0 +1,330 @@ +"""The one gate for SVG output: an allow-list of elements, attributes and references. + +Every SVG a figure produces (Graphviz, d2, charts, the `svg` helper) passes through +`sanitize_svg` before it is printed or stored. Anything not allowed is dropped. Every +``id`` gets a per-figure prefix and every `` + + + +hi''' + + +def test_sanitizer_drops_everything_not_allowed(): + svg = sanitize_svg(HOSTILE_SVG, prefix='p-').decode() + for forbidden in ('script', 'foreignObject', 'onload', 'onclick', '@import', 'example.com', + 'file:', 'javascript', '' in svg + assert '#p-svg #p-g{fill:url(#p-g)}' in svg + assert 'href="data:image/png;base64,AAAA"' in svg and 'href="#p-g"' in svg + assert 'hi' in svg + + +def test_svg_markup_does_not_depend_on_registered_namespaces(figures, monkeypatch): + # WeasyPrint registers the empty prefix when it is imported, after dsw.templating + import xml.etree.ElementTree as ET # noqa: PLC0415, S405 + monkeypatch.setattr(ET, '_namespace_map', {**ET._namespace_map}) + ET.register_namespace('', '') + svg = figures.svg.canvas(10, 10).svg + assert svg.startswith('' + b'' + b'', + prefix='p-').decode() + assert svg == ('') + + +def test_sanitizer_keeps_a_nested_svg_that_scales(): + svg = sanitize_svg(b'', prefix='p-').decode() + assert '' in svg + + +def test_sanitizer_refuses_entities(): + with pytest.raises(FigureError, match='entity'): + sanitize_svg(b']>', + prefix='p-') + + +@needs_dot +def test_two_copies_of_one_figure_do_not_share_ids(render): + html = _html(render('{% set f = "digraph { a }" %}{{ f|graphviz }}{{ f|graphviz }}')) + ids = re.findall(r' id="([^"]+)"', html) + assert len(ids) == len(set(ids)) > 2 + + +def test_figure_budget_per_document(render): + settings = RenderSettings(figures=FigureSettings(limits=FigureLimits(max_figures=2))) + source = '{% for i in range(N) %}{{ svg.canvas(10, 10) }}{% endfor %}' + assert _html(render(source.replace('N', '2'), settings=settings)).count(' b }', {'name': 'graphviz', 'options': {'format': 'svg'}}) + assert document.file_format == FileFormats.SVG + assert document.filename('x') == 'x.svg' and document.content_type == 'image/svg+xml' + assert document.content.startswith(b'{{ "digraph { a -> b }"|graphviz }}{{ "x -> y"|d2 }}' + '{{ {"type": "bar", "labels": ["a"], "series": [{"values": [1]}]}|chart }}' + '{{ svg.canvas(10, 10) }}') + document = render(source, {'name': 'weasyprint', 'options': {}}) + assert document.content.startswith(b'%PDF') + # every figure is drawn as SVG, not left as unknown HTML elements + pages = weasyprint.HTML(string=_html(render(source))).render().pages + replaced = [box for page in pages for box in page._page_box.descendants() # noqa: SLF001 + if type(box).__name__ == 'InlineReplacedBox'] + assert len(replaced) == 4 + + +@needs_dot +@needs_pandoc +@needs_rsvg +def test_png_figures_in_a_word_document(render): + document = render( + '

{{ "digraph { a -> b }"|graphviz(format="png", alt="Graph") }}

' + '{% set c = svg.canvas(100, 20) %}{% do c.text("Label", 0, 15) %}' + '

{{ c.png(scale=2) }}

', + {'name': 'pandoc', 'options': {'from': 'html', 'to': 'docx'}}) + with zipfile.ZipFile(io.BytesIO(document.content)) as docx: + media = [name for name in docx.namelist() if name.startswith('word/media/')] + assert len(media) == 2 + + +def test_chart_without_extra_fails_clearly(monkeypatch, figures): + monkeypatch.setitem(sys.modules, 'matplotlib', None) + with pytest.raises(MissingExtraError, match=r'install dsw-templating\[charts\]'): + figures.chart({'type': 'bar', 'labels': [], 'series': []}) diff --git a/uv.lock b/uv.lock index 78240475..d33d299e 100644 --- a/uv.lock +++ b/uv.lock @@ -453,6 +453,63 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, ] +[[package]] +name = "contourpy" +version = "1.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/83/5a/a55177dd22553a277388e8a1b3220e92de91bacb28356cdc73caa240121d/contourpy-1.4.0.tar.gz", hash = "sha256:20156f5a1ac4f8ce02656e39a61e82164a3d359796dc8026f75b062783d500e1", size = 13323726, upload-time = "2026-09-11T19:05:05.808Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/75/b0/b548628c8dddf6e5e0a981b7fa8e4c008024df09c7d17c6a9e271edfa0b3/contourpy-1.4.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:a3e67bc1a6a4618a1dac7c3053a9ffece5ddfa2046b2670b342cf430bb0b87d1", size = 297354, upload-time = "2026-09-11T19:03:35.017Z" }, + { url = "https://files.pythonhosted.org/packages/04/5a/513484208742f65af2648c519f0b7ab034616e183c4403538024c136a1ab/contourpy-1.4.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:072a702e2e178f4fcf96f04775d0c059e4c917925abf0d3208ebb6865df3c23d", size = 283729, upload-time = "2026-09-11T19:03:36.818Z" }, + { url = "https://files.pythonhosted.org/packages/35/da/5a6562febc994b2c4bf9d01e57a50458ef8a2051bb3e7b35a00333e0fc26/contourpy-1.4.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:404dbcd9233513dfd1323b66ea593fef90e899f658f6b8a9ed8e93bd0ca669db", size = 357819, upload-time = "2026-09-11T19:03:39.058Z" }, + { url = "https://files.pythonhosted.org/packages/6d/99/7b358ce888aaa426f755daa096c99c59d17c352037344e836f20e5d3b957/contourpy-1.4.0-cp314-cp314-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:61624f6722480aa7e168fd746164e7bfdf48f8ccb6542f1613741200dc37e2b1", size = 407795, upload-time = "2026-09-11T19:03:41.293Z" }, + { url = "https://files.pythonhosted.org/packages/be/02/34d7548adf08c60967435d79d7a90882eacc84f5093435287974c7e99943/contourpy-1.4.0-cp314-cp314-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2e741a39dfc96babe1722561e81351aeec104526c57dbe91c167c1db606c2d55", size = 408552, upload-time = "2026-09-11T19:03:42.728Z" }, + { url = "https://files.pythonhosted.org/packages/cf/8c/9677dad226e5aaac5b823d5b09d881ebc32ff1648af417597649841e516c/contourpy-1.4.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e439ab450c93455feb0218532ded3e946ec7a9b5f459069f122cfa44b89229f6", size = 384850, upload-time = "2026-09-11T19:03:44.402Z" }, + { url = "https://files.pythonhosted.org/packages/08/f5/e3fbeaa489c223629fbb434737cb3de4ecaca9cae4825e77b92490f640f8/contourpy-1.4.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:417be048f7e122cefbe2a34c51a1f2b0410f8eb35796f794d45475ddb7872d9d", size = 1357601, upload-time = "2026-09-11T19:03:46.746Z" }, + { url = "https://files.pythonhosted.org/packages/88/be/55fec293d342c222ed58a5d4056df4362e192af2e59527a3d5d822de8828/contourpy-1.4.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:43d80072a32299bf945de0a6dd4e034ea0162e832261de2e07a274a5adbba9c9", size = 1427340, upload-time = "2026-09-11T19:03:48.745Z" }, + { url = "https://files.pythonhosted.org/packages/86/40/0faabf453edf59b0e3633381d7ca72c3414fb9b72b5cbb08b06ed792d3e5/contourpy-1.4.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:fa1b787362a3856e63dd2b89449f6c384d55ee1beb8f94f4bcc871b40f02462c", size = 118355, upload-time = "2026-09-11T19:03:50.047Z" }, + { url = "https://files.pythonhosted.org/packages/38/0c/7ea75aa3559ae8a6805015e15a19c92b6480752ecc92526361e5776e88c5/contourpy-1.4.0-cp314-cp314-win32.whl", hash = "sha256:738c44fa71735a617f36da58e32810512407d283d5d1bb5b1cecb00d7eeba7cf", size = 356977, upload-time = "2026-09-11T19:04:11.401Z" }, + { url = "https://files.pythonhosted.org/packages/15/41/3df8cc14bb572c8b447f9dfbc876703f0f2f2896058285b5c87a1d4a638d/contourpy-1.4.0-cp314-cp314-win_amd64.whl", hash = "sha256:181bea01bc742734ae672fa00c717d855dd35e1f029536406538c52e7b0cd73d", size = 240101, upload-time = "2026-09-11T19:04:12.772Z" }, + { url = "https://files.pythonhosted.org/packages/66/01/ee6830a5aa4565662a345172f6f35eeeed625d20f1c9d4ecd35318fe4ade/contourpy-1.4.0-cp314-cp314-win_arm64.whl", hash = "sha256:64039341e2d8804f1a13bda8c69083eab935167bbd7e856cf096241f17d5bd45", size = 576359, upload-time = "2026-09-11T19:04:14.983Z" }, + { url = "https://files.pythonhosted.org/packages/51/af/49ee9c9cf012699e505c1b63c531cc99f19df50f205173092c4d541e3ec7/contourpy-1.4.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:ef47fef9a912c77e3d84b014f701e5a9340f25703e9ed3bcebe37f91fb69dc49", size = 313601, upload-time = "2026-09-11T19:03:51.452Z" }, + { url = "https://files.pythonhosted.org/packages/ad/59/ce411ab2be0f805038626d8f4ca9ce563487ff51ff6c363e7512271564ed/contourpy-1.4.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:96019f059bcb3774acc0104be3360a57b36d33eaaa2e1d7f77c800ca8e07618b", size = 302812, upload-time = "2026-09-11T19:03:53.022Z" }, + { url = "https://files.pythonhosted.org/packages/95/b0/390915f9af14c1e2d3b2a9ad99d85b98df4352346a51e368cbb825f813c3/contourpy-1.4.0-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ddf5a2596d716fd3793434844caf31abc7a40b1e8718431420c89858268fb909", size = 348996, upload-time = "2026-09-11T19:03:54.594Z" }, + { url = "https://files.pythonhosted.org/packages/c7/85/e0952576d54322f3e9983b1e049a7a31f42ce82c5c29d01821e6dd3780d7/contourpy-1.4.0-cp314-cp314t-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:dd59df9e2fb0aff8bd7fd1adb9f349b7c835245a9d0f18c2f2deeb537190f2b1", size = 400272, upload-time = "2026-09-11T19:03:56.822Z" }, + { url = "https://files.pythonhosted.org/packages/d6/7d/f13543a5e1598e4a4ad01d9d5e2d65f9c09c37660616429913d606c5977d/contourpy-1.4.0-cp314-cp314t-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b7794ea07cab575633daad8d6e963b662053391022294d3aacc1d9ba9ef54114", size = 412895, upload-time = "2026-09-11T19:03:58.487Z" }, + { url = "https://files.pythonhosted.org/packages/c5/a8/6e5eaff53507dfd2dfc428240eecda32453067277d4b3e7ca71210b2d611/contourpy-1.4.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a1c8a74744fa746eeaa12f0f9ed7f8b4add9d8f1b14d95e3b5e133675eac888f", size = 377060, upload-time = "2026-09-11T19:04:00.122Z" }, + { url = "https://files.pythonhosted.org/packages/16/a3/d00e44d35511b3cead5bd794ee672d4eecf30d9de4ceac57a49d6204064f/contourpy-1.4.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:107ec46f7aa1664266d69b1181aadc953d58d39f7d8d648fa5b795d4a060b0de", size = 1345688, upload-time = "2026-09-11T19:04:02.705Z" }, + { url = "https://files.pythonhosted.org/packages/1e/01/1e533b0cae32c8edd63fe40435ec3b29345dab87321afcd28722d7f957d1/contourpy-1.4.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5a4c89c7f38a0d7a94356d74e3391073c4325c4d47ad2fd065c3fe7dbae16c0c", size = 1416140, upload-time = "2026-09-11T19:04:04.77Z" }, + { url = "https://files.pythonhosted.org/packages/6d/0c/4ee66759f00d6a5d6909782f14f441d639fa18a4a43142e334351efc47f8/contourpy-1.4.0-cp314-cp314t-win32.whl", hash = "sha256:912c6afaa106e2f74ba22b30416b77ef7eb94e3bdc5a4df51ab147845dba9b6d", size = 371982, upload-time = "2026-09-11T19:04:06.233Z" }, + { url = "https://files.pythonhosted.org/packages/e6/ac/b3e5324138c3e3741f526663f4f265f4f69dfdf26415a39428940864a5f6/contourpy-1.4.0-cp314-cp314t-win_amd64.whl", hash = "sha256:ef9440f6f8506246269a82734f5ff9e2e4c5e775b3996fc883cc491c5257eca6", size = 262907, upload-time = "2026-09-11T19:04:07.882Z" }, + { url = "https://files.pythonhosted.org/packages/19/37/c9aa45e47819dc15a38fc5c81a2fb987fde55e9d3b991fbde514e3b6b5f5/contourpy-1.4.0-cp314-cp314t-win_arm64.whl", hash = "sha256:fc9feef8f1f001c5b87decadc67c4a5d1eebb62ca39c4763d1237ff62cf2b707", size = 587071, upload-time = "2026-09-11T19:04:09.898Z" }, + { url = "https://files.pythonhosted.org/packages/cc/74/66d4e6fbea3bcb3fd4e5ae21c039ba31b8fc408b35884b4bc09b88016dce/contourpy-1.4.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:79b06c60d5e569ce12c5da8f0c51217cdc484386e2349fa717c30fafb56d2871", size = 297358, upload-time = "2026-09-11T19:04:16.718Z" }, + { url = "https://files.pythonhosted.org/packages/2e/8d/8f7f25e71d73f15d7859943189900d2d348e740388c9ef52a0180d284762/contourpy-1.4.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:6f963ea9f0d68d2b6a02d861e3c0aae09ae25ba21f243fcf281e9fed468b078d", size = 283732, upload-time = "2026-09-11T19:04:18.087Z" }, + { url = "https://files.pythonhosted.org/packages/f0/90/957549e3b03c407c670e3e191db63f4aef60dab6605bc967af3a806b543e/contourpy-1.4.0-cp315-cp315-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5545ff38229c15d11d822fc6f7415b932da9f4975f53e305b7b96ebfb01f889c", size = 357820, upload-time = "2026-09-11T19:04:20.077Z" }, + { url = "https://files.pythonhosted.org/packages/56/4c/fa8de87d907b41b05d03f4945a51675cd67319650d01b4c927d209ffa6ee/contourpy-1.4.0-cp315-cp315-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:630d32f06cedf37b7f1dd2b6a12e4492826bd477a4c9c7b2e2fee6ce3a2cea76", size = 407804, upload-time = "2026-09-11T19:04:21.781Z" }, + { url = "https://files.pythonhosted.org/packages/04/e7/96bd4f4a4ae285727befbdb4b332d53a2654cc5da4585d2525b47a063e1f/contourpy-1.4.0-cp315-cp315-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:be85d160e7c795113c2a93254dde2fc7e86b375322570eee78b420969426973c", size = 408559, upload-time = "2026-09-11T19:04:23.432Z" }, + { url = "https://files.pythonhosted.org/packages/ae/94/39660e8dc309f96bf7971eb4ec5659f272f84e42b34c9990a96ecce8442c/contourpy-1.4.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:018227e134b73090b06f911e773a526c77c9af426be29065500ce096a5accd4c", size = 384861, upload-time = "2026-09-11T19:04:25.198Z" }, + { url = "https://files.pythonhosted.org/packages/ab/7b/411dccbf73d5d19da49bf7735786b3baf4ddb1456412d48ae4d4ab1fc761/contourpy-1.4.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:4bffcb2e8cc5c0e837631acab59dd04265fdac376550e7c3e310523877c68cb7", size = 1357612, upload-time = "2026-09-11T19:04:27.614Z" }, + { url = "https://files.pythonhosted.org/packages/a0/39/bf2442130e7d5aae75a4de4504f0c8aca3ef3da3feac3940ee27ca985d83/contourpy-1.4.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:cc87f2ffa84a49a77d76cb792f28a48ff3b05a222aa0b2bddbd839ba78e1d5ca", size = 1427345, upload-time = "2026-09-11T19:04:29.646Z" }, + { url = "https://files.pythonhosted.org/packages/96/60/e5d9196dd83ccd7dd103762982b10ef19a4f72e8ef67ae7157699b9be0bb/contourpy-1.4.0-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:c8be3392b84cf43373a488874dc1ebf46f60784a70977f92586e18019d71c7ed", size = 118157, upload-time = "2026-09-11T19:04:31.091Z" }, + { url = "https://files.pythonhosted.org/packages/1a/b2/ae3d90f08ba2ed82189d93b55ffbd41e559760e89af4f9ef54d51869f41d/contourpy-1.4.0-cp315-cp315-win32.whl", hash = "sha256:618137ec5778fb76d494c9ec854b104a377fddba0d128bef7136cce2c3bf0df8", size = 356982, upload-time = "2026-09-11T19:04:52.913Z" }, + { url = "https://files.pythonhosted.org/packages/02/a0/36648fff407dcf8b8482985d33367ffc0fe90be72383869312cd0bd00a1b/contourpy-1.4.0-cp315-cp315-win_amd64.whl", hash = "sha256:ea09dc704029930cbd097f75cb0cc1db9852adbcf1a151fac7e9559f7bcbfd19", size = 240101, upload-time = "2026-09-11T19:04:54.587Z" }, + { url = "https://files.pythonhosted.org/packages/07/09/49e987a96706b8f877596cee00d558d7880793a833addc6b33f80805e5dc/contourpy-1.4.0-cp315-cp315-win_arm64.whl", hash = "sha256:a5e2bb871b90cd7a52bdee63bf80ef7acb46398d27efc66d7679240016efc5aa", size = 576375, upload-time = "2026-09-11T19:04:56.515Z" }, + { url = "https://files.pythonhosted.org/packages/e3/18/820ba24a070fe2a834af73e52245c501960746f5c1777ebc64ec0c0dec12/contourpy-1.4.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:432e89f835cf01f8d2123a130a3126b17ee6e0348e4d62c0973872b30aa873bf", size = 313543, upload-time = "2026-09-11T19:04:32.582Z" }, + { url = "https://files.pythonhosted.org/packages/d3/4c/f61a63d8107e0c1c3fa47d30ce45abad90b2ad48a1a9a4510332db7e0176/contourpy-1.4.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:3e0a2392533e5e2abdf277c951047516acc8d2f3c42b2dd9dc34c907c9ebabf2", size = 302702, upload-time = "2026-09-11T19:04:34.257Z" }, + { url = "https://files.pythonhosted.org/packages/9d/93/5af95cb5113ecc6e780ca0c6c79756a2cea8833f971bbae112dd4ad73ded/contourpy-1.4.0-cp315-cp315t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:758e7496cec3195fc28a28945eab3ceef348c47fb95c7afc2eca2f3901209c8c", size = 354370, upload-time = "2026-09-11T19:04:36.158Z" }, + { url = "https://files.pythonhosted.org/packages/47/75/5a9942446647202beb7b4d150891bfcb78fb112c73862484bbe4cc031092/contourpy-1.4.0-cp315-cp315t-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bee6ff96653e0807cd0f8eaef00174a031e3a2effa5c20f49a5a8d574b05af23", size = 402340, upload-time = "2026-09-11T19:04:37.914Z" }, + { url = "https://files.pythonhosted.org/packages/c3/4f/bfdb0c67775a584f957211936661289789c4d0ec3e988bca2c8c02f8090e/contourpy-1.4.0-cp315-cp315t-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a58b5f130afec61a093d743cdda435cc4047748b6791627e34a68f41ec3a9b07", size = 410721, upload-time = "2026-09-11T19:04:39.925Z" }, + { url = "https://files.pythonhosted.org/packages/65/d3/dddf13d6bb26e145c99debd1f2695018b5f3e24452dd9bfc9904c9d2ec89/contourpy-1.4.0-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b9dc493e7924e5aa32d89d0b8e50986280f3d4b284968a792787bd7bcffd3cad", size = 382604, upload-time = "2026-09-11T19:04:41.793Z" }, + { url = "https://files.pythonhosted.org/packages/37/b4/89f0a5f6c6ccd322eae2704c7e933c82a4e594a61773933b4b0a18646866/contourpy-1.4.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:c927ec747633e68c9920bcaad48b0bcefe648812b822f18c34e2d0e2270a3d2a", size = 1354996, upload-time = "2026-09-11T19:04:43.856Z" }, + { url = "https://files.pythonhosted.org/packages/5d/29/fc91cc1ac6f3b591a269f4357b656d6ed0c39eb17c148f41f6da2f9729b9/contourpy-1.4.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:80c7fc8e7ac217777ce7ba2db3cf8478652b5a4b335283111012ff9eaac9d842", size = 1425030, upload-time = "2026-09-11T19:04:45.981Z" }, + { url = "https://files.pythonhosted.org/packages/d8/b8/bb129f524210c5d3eb8616876e02af280fba8b5554e0ac1afad80b51e06b/contourpy-1.4.0-cp315-cp315t-win32.whl", hash = "sha256:90feb8da006803a95ba573fddc9536357d0c3faddc3a4c9e22816ca49af52878", size = 371854, upload-time = "2026-09-11T19:04:48.106Z" }, + { url = "https://files.pythonhosted.org/packages/d8/b1/bc774d9d200cfc4f073bba78b1bb1cb3b55bf1c8c345eae41fc2db510459/contourpy-1.4.0-cp315-cp315t-win_amd64.whl", hash = "sha256:de503609fdb71f597634ca64fb4bd2f13d27c97f140e912b1e8ed93544840df0", size = 262450, upload-time = "2026-09-11T19:04:49.502Z" }, + { url = "https://files.pythonhosted.org/packages/54/bf/eb4ff492e1c3d027617b5a20e4e6d63a035b41b8cf77a95950159556a3a5/contourpy-1.4.0-cp315-cp315t-win_arm64.whl", hash = "sha256:78ed5c5f962b3e156109f0531b174a65ba80d13cc681a70227b12524c162e184", size = 587064, upload-time = "2026-09-11T19:04:51.148Z" }, +] + [[package]] name = "cssselect2" version = "0.10.1" @@ -466,6 +523,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/bd/59/6b1daa3b94de8970e2a2787ba73616c2d0675d2f948ef4cad8bef7f21bc6/cssselect2-0.10.1-py3-none-any.whl", hash = "sha256:25cc4494d55985d6a6da359be48da6ce98c28dcbafa2314c383ace3fc32ec868", size = 15489, upload-time = "2026-08-31T21:57:41.162Z" }, ] +[[package]] +name = "cycler" +version = "0.12.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a9/95/a3dbbb5028f35eafb79008e7522a75244477d2838f38cbb722248dabc2a8/cycler-0.12.1.tar.gz", hash = "sha256:88bb128f02ba341da8ef447245a9e138fae777f6a23943da4540077d3601eb1c", size = 7615, upload-time = "2023-10-07T05:32:18.335Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e7/05/c19819d5e3d95294a6f5947fb9b9629efb316b96de511b418c53d245aae6/cycler-0.12.1-py3-none-any.whl", hash = "sha256:85cef7cff222d8644161529808465972e51340599459b8ac3ccbac5a854e0d30", size = 8321, upload-time = "2023-10-07T05:32:16.783Z" }, +] + [[package]] name = "dkimpy" version = "1.1.8" @@ -754,10 +820,12 @@ dependencies = [ { name = "jinja2" }, { name = "pluggy" }, { name = "python-dateutil" }, + { name = "tinycss2" }, ] [package.optional-dependencies] all = [ + { name = "matplotlib" }, { name = "panflute" }, { name = "rdflib" }, { name = "rdflib-jsonld" }, @@ -765,6 +833,9 @@ all = [ { name = "weasyprint" }, { name = "xlsxwriter" }, ] +charts = [ + { name = "matplotlib" }, +] docx = [ { name = "panflute" }, ] @@ -791,6 +862,8 @@ requires-dist = [ { name = "babel" }, { name = "dsw-models", extras = ["rendering"], editable = "packages/dsw-models" }, { name = "jinja2" }, + { name = "matplotlib", marker = "extra == 'all'" }, + { name = "matplotlib", marker = "extra == 'charts'" }, { name = "panflute", marker = "extra == 'all'" }, { name = "panflute", marker = "extra == 'docx'" }, { name = "pluggy" }, @@ -803,12 +876,13 @@ requires-dist = [ { name = "rdflib-jsonld", marker = "extra == 'rdf'" }, { name = "requests", marker = "extra == 'all'" }, { name = "requests", marker = "extra == 'http'" }, + { name = "tinycss2" }, { name = "weasyprint", marker = "extra == 'all'" }, { name = "weasyprint", marker = "extra == 'pdf'" }, { name = "xlsxwriter", marker = "extra == 'all'" }, { name = "xlsxwriter", marker = "extra == 'excel'" }, ] -provides-extras = ["all", "docx", "excel", "http", "pdf", "rdf", "test"] +provides-extras = ["all", "charts", "docx", "excel", "http", "pdf", "rdf", "test"] [[package]] name = "fonttools" @@ -1040,6 +1114,80 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/41/45/1a4ed80516f02155c51f51e8cedb3c1902296743db0bbc66608a0db2814f/jsonschema_specifications-2025.9.1-py3-none-any.whl", hash = "sha256:98802fee3a11ee76ecaca44429fda8a41bff98b00a0f2838151b113f210cc6fe", size = 18437, upload-time = "2025-09-08T01:34:57.871Z" }, ] +[[package]] +name = "kiwisolver" +version = "1.5.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ba/07/bd78e6a8fae171ea041ef5bba3ed21a003522fa088834b069b1909981f30/kiwisolver-1.5.1.tar.gz", hash = "sha256:f1303ef2eec81262a4b708c3e858afe58d7c75ad91c1c05266eda7673369859a", size = 104395, upload-time = "2026-08-28T10:28:27.153Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/dd/87/2d5dfad0daf17dcc18d98c48ed2332fc3f051cf599e60be6182a30dd4cf1/kiwisolver-1.5.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:0324cd2567259b7a095f6cf18a52b0ffc6f3de9e69528ff1bc0e7a37bd43ff1a", size = 62337, upload-time = "2026-08-28T10:26:18.778Z" }, + { url = "https://files.pythonhosted.org/packages/08/c8/83e1624f15d6262b470dbcc80b09979fd4d5b2ea3ddfc6b6e3327e235726/kiwisolver-1.5.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:74ea337e0ec3f6f342a36a4f1b5cd94dd9affddcd28ba9aae2905af932ee8c6b", size = 64513, upload-time = "2026-08-28T10:26:19.909Z" }, + { url = "https://files.pythonhosted.org/packages/c9/2d/827ec30eb07f528c08d8459ffb318ae91a56d793ee8acbea8b491f0ff906/kiwisolver-1.5.1-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:ee9df1f0d77b9c6e94f4ac0fec533fbddd5ea3a327807f18d7b069ae019ded80", size = 66287, upload-time = "2026-08-28T10:26:21.078Z" }, + { url = "https://files.pythonhosted.org/packages/53/11/5c43a562529dad8def4b81e5e1877c612a7e0298105a5939b3b409d2079c/kiwisolver-1.5.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:fc271a6f0a2126958f4090e5507b9da5848927dae331f8f763bd4aa642b3d2cd", size = 123940, upload-time = "2026-08-28T10:26:22.475Z" }, + { url = "https://files.pythonhosted.org/packages/64/db/9bd6c505c95128c258a55236bfbb3a7a3fb6023f863316b6d7d9f3c69052/kiwisolver-1.5.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:9b3092d8992a1d69b7a59c3e39f35e1b9be327a17f68a7c35fc17329e337d6f2", size = 66493, upload-time = "2026-08-28T10:26:23.743Z" }, + { url = "https://files.pythonhosted.org/packages/e1/f4/b3007a3ed5c9be73f81161140684cf7d9bdb9c4b632f5f484d2a1c713fb9/kiwisolver-1.5.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c2306e8bb53601979fcb3fa09cc65e031876d9ae01eff2fcbcd7a84ef94d5bc1", size = 64720, upload-time = "2026-08-28T10:26:24.95Z" }, + { url = "https://files.pythonhosted.org/packages/a1/13/08188f0cafa3a800403e4ff62b9aad4e7a17f9c4c7e080dc8f18c64794cf/kiwisolver-1.5.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:18a0cfb124546a4c2e6087c5f3029c7f44b37c85b142e0ced71f73a7599ac208", size = 1475867, upload-time = "2026-08-28T10:26:26.393Z" }, + { url = "https://files.pythonhosted.org/packages/8a/3e/053bdc3c9abdb8f2606225eda398adca25c0c91ab90add8222a69db65ee0/kiwisolver-1.5.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:34ec467940442c9943016fb2d4c81d1ba84351eeca2f1a78f8bc87f1ba0d414c", size = 1282865, upload-time = "2026-08-28T10:26:28.118Z" }, + { url = "https://files.pythonhosted.org/packages/5e/64/a44c341b36b610588cc2f1e89b3cae072a3119aa8be578e90987cd640751/kiwisolver-1.5.1-cp314-cp314-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a83ee7107df13abe42a54a6654670eef9bb39425cf2e27f65e0007465e1286ab", size = 1300865, upload-time = "2026-08-28T10:26:30.125Z" }, + { url = "https://files.pythonhosted.org/packages/60/5e/7e7d716dca38c714478b741257a5b4a321d9932b8d851551a136dcaf3984/kiwisolver-1.5.1-cp314-cp314-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bebb89489b279b2f5661bbbb2abcc87bcd4a46607bb4a5c966f04f1db6b8df9a", size = 1348071, upload-time = "2026-08-28T10:26:31.829Z" }, + { url = "https://files.pythonhosted.org/packages/10/1a/2b98fdda8bf45b7be317e48ed12393d44334394d315c74b81f4a14c0e31b/kiwisolver-1.5.1-cp314-cp314-manylinux_2_39_riscv64.whl", hash = "sha256:509735237ae0d849e8a843551d423d2500d2e0a9ac1611a145658b29c0fb9f85", size = 992191, upload-time = "2026-08-28T10:26:33.544Z" }, + { url = "https://files.pythonhosted.org/packages/b6/55/d893f5ede0e50f9e3fcf01f6015f42ec7d9cd221e26772701fe4a98745f9/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:824c3d763a05ea9e9003610145186b0e9848c7584a5575c79bac5a8e7cd80bad", size = 2233854, upload-time = "2026-08-28T10:26:35.282Z" }, + { url = "https://files.pythonhosted.org/packages/b1/82/f85f6279555a6ee1639fef7bfe83adb037a03e11a6fc9eaa54b8d0380339/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:1fff05e239575b1481b6ed1a782f6fad616efbf1f0b1f44e6e85c4dfe426e483", size = 2330621, upload-time = "2026-08-28T10:26:36.9Z" }, + { url = "https://files.pythonhosted.org/packages/56/31/e11aea078f66fc2fffcc179d38ca90d9da97652a241b64519169742ba46a/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:0627b9bceb9c3cdcf12b8a18655eedfed2692b038df27423383c120d0b7dc2d6", size = 1982848, upload-time = "2026-08-28T10:26:39.01Z" }, + { url = "https://files.pythonhosted.org/packages/af/ea/2956b63bf5140ca46aa2c2818e6aa03e2d5754dd2fa41db1c6b28922940c/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:8a708a47ade1fe19e8371d5da076bac0dd4b0a5a7985ad6c637f7f7e361b6baa", size = 2494850, upload-time = "2026-08-28T10:26:40.837Z" }, + { url = "https://files.pythonhosted.org/packages/11/d1/3829542258d8b3fc0898d221e7ef0e2c83eca0d348709bb8dbe54f3d4005/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:007a5553dfc4f4e8d184f588a0200e2cd4b63a59cc8796df3c39909e679dc7a0", size = 2298067, upload-time = "2026-08-28T10:26:42.803Z" }, + { url = "https://files.pythonhosted.org/packages/4e/0e/49522e1ab5788cbaf63a26fbd3b851f9028616828c961b8a31b35cb96df8/kiwisolver-1.5.1-cp314-cp314-win_amd64.whl", hash = "sha256:f4167e87b397f273dc2356fcf1eaf50a6bac51e6105f45103ef7129c8efb0255", size = 72282, upload-time = "2026-08-28T10:26:44.268Z" }, + { url = "https://files.pythonhosted.org/packages/f5/b6/22e7ca5315d363e6f81c9f37c9472e12e7b298731e77c0428e6a911a2c39/kiwisolver-1.5.1-cp314-cp314-win_arm64.whl", hash = "sha256:5c490db2168a508088f59140dd392556a54b8bd1048fc6383c8baff13c359673", size = 69855, upload-time = "2026-08-28T10:26:45.725Z" }, + { url = "https://files.pythonhosted.org/packages/30/8c/03a9cfbe871964c8758a816eb03ac96c806da2795a9a7cd9bf9648bfb594/kiwisolver-1.5.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:4d4ca09bf13cff792b1884f64b98ee6c2467930d632233be25c56b442d99f10e", size = 126289, upload-time = "2026-08-28T10:26:47.023Z" }, + { url = "https://files.pythonhosted.org/packages/f2/e3/14ce3041ca79dff9c9d884ca00c7bf32374e76028a865a9ecd99b4f5a517/kiwisolver-1.5.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:44b8faef94f1857e77fa0238f3390ff1ac51d2ea20a487e2e452a59fd2b5f5ca", size = 67709, upload-time = "2026-08-28T10:26:48.268Z" }, + { url = "https://files.pythonhosted.org/packages/af/c4/45030471a66ec8ef042e9f96ffe1d522c9ab12da180186a0898966fc1385/kiwisolver-1.5.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2ae70bc59790d2af72a3f76f24b272403e135070340281108b447cb77ea70819", size = 65909, upload-time = "2026-08-28T10:26:49.523Z" }, + { url = "https://files.pythonhosted.org/packages/42/73/17dce073a6ae259bb32cf9d686c4079d2e538868bc45967462bf33df914a/kiwisolver-1.5.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:43844c1a7ad6d723d5b5b4c4fc7f5bd399c40e288120d16257c7c9e8765c6e85", size = 1584907, upload-time = "2026-08-28T10:26:50.933Z" }, + { url = "https://files.pythonhosted.org/packages/8c/84/ae3c75909f507283cbfcc7e916c7e822579ef962020b97e6882b27b4478f/kiwisolver-1.5.1-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:22d5e5aaad6be121f2515765e3b1c444352cb8eb4c86510801db8f2e50757316", size = 1392474, upload-time = "2026-08-28T10:26:52.638Z" }, + { url = "https://files.pythonhosted.org/packages/34/31/8bcc83caad5bce8fa4577152389848bf6bc110e51e573a2b4e7c2aa34c89/kiwisolver-1.5.1-cp314-cp314t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:3fa5855898f6d3d01b72ccd48a2d65cbdee301251603fefe34e2025bddba219c", size = 1405246, upload-time = "2026-08-28T10:26:54.248Z" }, + { url = "https://files.pythonhosted.org/packages/55/72/220345537d790cf4ae54f8acfff4b5cc2468e0702a384d651cf7a771c63e/kiwisolver-1.5.1-cp314-cp314t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d66a64dd5dec136040ec2ae94aa026a912ee60fdd45bc28d3db30037fd809e88", size = 1456099, upload-time = "2026-08-28T10:26:56.042Z" }, + { url = "https://files.pythonhosted.org/packages/cd/10/3725fd2398f66d18c34b4e0f81a8d03764cd4f4f089f58a527f0b4428086/kiwisolver-1.5.1-cp314-cp314t-manylinux_2_39_riscv64.whl", hash = "sha256:9e51c119992ea8820706871c30a4642ec76de20ae82f9b50b9a45517d8e9f810", size = 1073695, upload-time = "2026-08-28T10:26:57.658Z" }, + { url = "https://files.pythonhosted.org/packages/86/cb/28d6e09e66b93e4588b2e6b7d84d020ccefea09e2f4de788510a07efeab7/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:70ed9a45c7484d2b30cdacf60d220f494a1763b9fec1ad03285c6553fa0889f2", size = 2335355, upload-time = "2026-08-28T10:26:59.202Z" }, + { url = "https://files.pythonhosted.org/packages/6a/b3/a0f31d5e4e40af7dc97c36b8a74fdd3a36cf3c8bbd098da9a23466ff6a94/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:98b208a7cc42c803445ef551d6753cc42a5ea13e9cab1ee66cd8b9cb70195330", size = 2426524, upload-time = "2026-08-28T10:27:01.181Z" }, + { url = "https://files.pythonhosted.org/packages/2f/c9/728f63bd58c72cafdc79fc306abeeac7391bec03b757a48dadeb30906521/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:c6834b92dd2428e2dd85ef3d85f723d3c12f20aaf43a2ddd4f944ca25d833408", size = 2063430, upload-time = "2026-08-28T10:27:03.06Z" }, + { url = "https://files.pythonhosted.org/packages/84/df/ce188b96f92f9a2c958231da140768918cba53c9713dc887b82f85462118/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:5d142e352eb13facc7dd047489aebdff6ba78576c239f1ea04931979caaf0567", size = 2597513, upload-time = "2026-08-28T10:27:05.072Z" }, + { url = "https://files.pythonhosted.org/packages/69/d6/76947c8203768968382e5bd74d9cc95654746703a61ea53015f2c74a2e06/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f9b1c4900736e489a812c529100de4b8fb617d4db075e931e213c57424b83d9b", size = 2394488, upload-time = "2026-08-28T10:27:07.423Z" }, + { url = "https://files.pythonhosted.org/packages/e4/d4/14b21e4eb203c4d15425e8b6a2c625a320b4a1f2f7557eead63ffc30ffb7/kiwisolver-1.5.1-cp314-cp314t-win_amd64.whl", hash = "sha256:5978c3340f16a35c30f8ab2fa7bcf559973c55f1a5ef6970e1f621acf3c4db13", size = 75404, upload-time = "2026-08-28T10:27:08.892Z" }, + { url = "https://files.pythonhosted.org/packages/cb/f5/53157899fc7f45f76421b77b99eb1639dd0f83f26ff9d76300c96bb4a3b0/kiwisolver-1.5.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ca307d6c259e5c98d3cb9ade55342b47a6839762caf2536f3d7b46ee660cc82e", size = 72946, upload-time = "2026-08-28T10:27:10.944Z" }, + { url = "https://files.pythonhosted.org/packages/75/62/f786c3a27f181fa339d851a77e266d208e776b9883cabc40a5b041a31b5a/kiwisolver-1.5.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:bb7c99f0673c03017a3ee01e54a5c2617a05468b11eabe513b0080e063ed95b1", size = 62420, upload-time = "2026-08-28T10:27:12.308Z" }, + { url = "https://files.pythonhosted.org/packages/02/cd/58a91ed25fbad0facdf503297b03768efab04bdf3141e5e3b49a34be7443/kiwisolver-1.5.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:0d8924877ce22e17326a99a418c3c82037da078df3c6a260b13eca677444e6e7", size = 64577, upload-time = "2026-08-28T10:27:13.502Z" }, + { url = "https://files.pythonhosted.org/packages/f6/5c/d501ef5a0958b226eac28306d24d5e5f114be0ace50e19cabae7b6b3b197/kiwisolver-1.5.1-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:534f02c1abb31ed6dbd3515545285c330b2f12d00fdb1fdb71658b9ca5a13a6a", size = 66284, upload-time = "2026-08-28T10:27:14.813Z" }, + { url = "https://files.pythonhosted.org/packages/a3/a6/8fbecaf4fc18c02f31f05e47a84c010a80e3ec391ed2f0bdade1d62b5954/kiwisolver-1.5.1-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:cea20da04494e662b83c872683bf4ff2345206043d036315ed0e924b652e7294", size = 124031, upload-time = "2026-08-28T10:27:16.193Z" }, + { url = "https://files.pythonhosted.org/packages/7c/c6/bf3090d2983b4204347cbdbe952116e7c3b2abf62b4e33e50167a13e75ee/kiwisolver-1.5.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:7fd82debf43c6acd0a94359d232f6bb516ee13f269a7993736a9ac9f988bb5d9", size = 66489, upload-time = "2026-08-28T10:27:17.506Z" }, + { url = "https://files.pythonhosted.org/packages/85/de/562dddef55fdd7c291da8626d6619e72b5fc0870e6ccca0e149a5731e7f3/kiwisolver-1.5.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:18170a77ddfecf40ec60d0928268dc95880c881864e015a8f34094ed18b9b9ad", size = 64806, upload-time = "2026-08-28T10:27:18.673Z" }, + { url = "https://files.pythonhosted.org/packages/89/b1/ba7b9c0164ce1cf62bf2872db63b8483289cf0f3110d6f9390eb09e409ed/kiwisolver-1.5.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ca7f6fe0f37ca978a1e5eb7a3a68e6413f417e78e838324947ffd420202b198b", size = 1482211, upload-time = "2026-08-28T10:27:20.039Z" }, + { url = "https://files.pythonhosted.org/packages/13/dc/34da54efb4976616d45c20aae32d70e89d6e7395ed908029154d1609ef22/kiwisolver-1.5.1-cp315-cp315-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5b973887ff782cfd6b67c9904ad8ca542e0bc5e4961503408b423b5a688b4d38", size = 1283739, upload-time = "2026-08-28T10:27:21.82Z" }, + { url = "https://files.pythonhosted.org/packages/5a/3a/30ffb62bee646e266e98a1b5cd276d9c75b6116fbfcb87c1190838c1b6df/kiwisolver-1.5.1-cp315-cp315-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f76fc85bd054c806960f917ec0f329e24e436f1712267d90588e4c39890caa63", size = 1301681, upload-time = "2026-08-28T10:27:23.876Z" }, + { url = "https://files.pythonhosted.org/packages/a9/8d/13c70be22a8506880b35fdc38dca36629613bc493405c79f4037f2cd2bb9/kiwisolver-1.5.1-cp315-cp315-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:828f75af2b0080c8a972e75f649ab46af008e92c6104a57a759157200b835b75", size = 1349159, upload-time = "2026-08-28T10:27:25.899Z" }, + { url = "https://files.pythonhosted.org/packages/82/0e/993972b8ec6767f47cd69818fb3a5ff14510557d29f7d1a839be7574fa1b/kiwisolver-1.5.1-cp315-cp315-manylinux_2_39_riscv64.whl", hash = "sha256:431dc224a1a92a5c8f582d96e505196a3b5997a7271076678da2dfde67b77e9a", size = 997613, upload-time = "2026-08-28T10:27:27.507Z" }, + { url = "https://files.pythonhosted.org/packages/36/82/ca26eddd2eda2420dfc56693449c1f821f78b485da9cbde9904c03af3f93/kiwisolver-1.5.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:61e9a64c7635095a6bfe483e2ff055d437c59bd45f3617a228b37277f0185d62", size = 2235109, upload-time = "2026-08-28T10:27:30.113Z" }, + { url = "https://files.pythonhosted.org/packages/c7/84/97d920881e10840b8d7c7185620298e3e4c88820b05514e3a15a258b08a6/kiwisolver-1.5.1-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:3c24cd69455e1b00ddf770c13b6e2c33e07d6dc3f2d34add0bf9277c5c6bbd46", size = 2331207, upload-time = "2026-08-28T10:27:32.795Z" }, + { url = "https://files.pythonhosted.org/packages/e2/ce/34d74b8f25acc58800f4c09268371e8d6159cf0f1206f1e4dc7835629b48/kiwisolver-1.5.1-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:27add358abe374ebaa3b8763ef380bc99051b5a4b18d94878366a9e4f59efef0", size = 1986696, upload-time = "2026-08-28T10:27:34.628Z" }, + { url = "https://files.pythonhosted.org/packages/0e/01/f892644014612527aef7031d3306a2ffc60b3cb044f802c1561f8e5e14f3/kiwisolver-1.5.1-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:255605693a483db7bd5c79f60437f7bf658f7f520d61aa42722e32257c941951", size = 2496400, upload-time = "2026-08-28T10:27:36.818Z" }, + { url = "https://files.pythonhosted.org/packages/32/6d/d8284e66e697026536e5f418b9cfe56567bffd3c775e3ecfbae373605854/kiwisolver-1.5.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:7d38b0c279c3032e8c9cc013b405c6df8e1668dbf15465779aa7f15f61201812", size = 2302967, upload-time = "2026-08-28T10:27:38.803Z" }, + { url = "https://files.pythonhosted.org/packages/46/0a/69a355e27f32ba50d5b6369949b6a1702e122f5277c89bc76d452b81c1c4/kiwisolver-1.5.1-cp315-cp315-win_amd64.whl", hash = "sha256:958254518717542d02d0688d0d20cbf771da5e415e6f49543f92481c850a4540", size = 72283, upload-time = "2026-08-28T10:27:40.491Z" }, + { url = "https://files.pythonhosted.org/packages/ef/d8/7a95be90c33dcdd52204d4aa6384d731443225b887283bbd8b61e7931f6c/kiwisolver-1.5.1-cp315-cp315-win_arm64.whl", hash = "sha256:da3275833be0edbaf4830fae08bae3dc7219f40ce0c37eaa6c25825957e06612", size = 69860, upload-time = "2026-08-28T10:27:41.835Z" }, + { url = "https://files.pythonhosted.org/packages/31/f8/9bc493e7f5707788ba7f621902c68f82dc3a7ba03c78fbd337b026cef1ed/kiwisolver-1.5.1-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:470d420f98d368d6f010633a20659b544c5fdfa5329e6b70219f2ef08fd4a7ef", size = 126336, upload-time = "2026-08-28T10:27:43.379Z" }, + { url = "https://files.pythonhosted.org/packages/d1/82/3aea86b3f99712db825e9ac5631bf99571e818a8b8961ff98cebd798413e/kiwisolver-1.5.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:83f78128fa28705fa85d01c59771c72fe81c11bd0e6155edbb9f818983a7d761", size = 67698, upload-time = "2026-08-28T10:27:44.613Z" }, + { url = "https://files.pythonhosted.org/packages/84/7d/8daafc5d2e7f9c47a4f78f8865d86d2a9cf399c2a85f86c44a993594410c/kiwisolver-1.5.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:9506e892bcc3b409831d363c6f53e5985e1c8d1f6f6b0256d00358684ff85378", size = 65945, upload-time = "2026-08-28T10:27:45.932Z" }, + { url = "https://files.pythonhosted.org/packages/3d/c9/51dc974d9130da70a8c47a96160123443d387ffe1b6b833d6f91d9429339/kiwisolver-1.5.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:cea90547bfd93807e0013a004dc76552be44fad3bc1cc2b38610a9e889ed098f", size = 1588030, upload-time = "2026-08-28T10:27:47.678Z" }, + { url = "https://files.pythonhosted.org/packages/e6/86/f3e1a730e7a995149d8d3ff9e313b6d8a17b2cf1d98a8eff139dc30463fb/kiwisolver-1.5.1-cp315-cp315t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e8e4d953faaded9ec7ede36824e9814082d22d4c7b1eafbfa079ecba8cd0d076", size = 1390760, upload-time = "2026-08-28T10:27:49.676Z" }, + { url = "https://files.pythonhosted.org/packages/4f/3b/8ba25a2b5a0d2375e046f1b72de5179513f0be95aba6e7b094c89303929f/kiwisolver-1.5.1-cp315-cp315t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7e9c01d3dd7ceba4d1d436cc021d40d592466e40b9bc7f5d83dc4e98a5c9cd8c", size = 1403279, upload-time = "2026-08-28T10:27:51.242Z" }, + { url = "https://files.pythonhosted.org/packages/18/d0/278d5cb8be812740027d5ca0a7eda0c375488a88d6dce0fa60fcc2591ad2/kiwisolver-1.5.1-cp315-cp315t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:37f801b5d7cc0e5a548921308e059fd2b057bb42972b591cfa3049f95423c4ed", size = 1454429, upload-time = "2026-08-28T10:27:53.213Z" }, + { url = "https://files.pythonhosted.org/packages/94/37/bcbab41063ec284c1d200efe5087cf087798c2f8916960aa8a20dd303290/kiwisolver-1.5.1-cp315-cp315t-manylinux_2_39_riscv64.whl", hash = "sha256:e68e151428b5384f766cd25739bf77c7e4a3dc93b5ded7a12118d9fbfdf78ab6", size = 1073225, upload-time = "2026-08-28T10:27:55.089Z" }, + { url = "https://files.pythonhosted.org/packages/cb/c5/ab79dcdf5ae28909a51210ae0a1c579e97ff997b3466414f0d04c0994583/kiwisolver-1.5.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:8f8fddb8e323bd6eee4e54e69a39243beab22689070f4c66b472c4cc88bb89d8", size = 2334335, upload-time = "2026-08-28T10:27:56.78Z" }, + { url = "https://files.pythonhosted.org/packages/8d/8e/71d047468a189041d9c93f3b76844b924f9793b188c44bd149fa258912da/kiwisolver-1.5.1-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:3cc210010fd2f438a3ed430b45f1b501fd13a8618bf984dc2c5ce5b69b78752e", size = 2424982, upload-time = "2026-08-28T10:27:58.639Z" }, + { url = "https://files.pythonhosted.org/packages/7d/37/1347461bbea6d0e1f0580b94ef603b18e72c2be5f667fa1653867361a00b/kiwisolver-1.5.1-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:b5664603a253efd3a75716d793d1d3a6a82723b61dc6db767b2460bbbeec4c0f", size = 2062857, upload-time = "2026-08-28T10:28:00.407Z" }, + { url = "https://files.pythonhosted.org/packages/1f/87/c7f0976c9cd0d127643351bc0c9929e0b8899d7f49d4ec238cd909e39c42/kiwisolver-1.5.1-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:a7b85b2cc6ea45e5f7e8c9a30bc9fabd47cda09106cbb4b967335c3e6c43b69d", size = 2596022, upload-time = "2026-08-28T10:28:02.183Z" }, + { url = "https://files.pythonhosted.org/packages/e3/9a/59a6f6ae6f938c15076be2c21b6cedea973d71bb1349ec84fa485fab82cf/kiwisolver-1.5.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:ab620eb663952455271ac37f9aaad86b73c969c02f11f53cea405b38e96a4300", size = 2395634, upload-time = "2026-08-28T10:28:03.977Z" }, + { url = "https://files.pythonhosted.org/packages/e9/2d/8982c1fb7926da5bb7ed60318c3665b5c3f941447271ac982960a11b8637/kiwisolver-1.5.1-cp315-cp315t-win_amd64.whl", hash = "sha256:cb6fae641357ed2f6e533c0d3c6504a4a5703621a50c89459e46051d56b61140", size = 75379, upload-time = "2026-08-28T10:28:06.307Z" }, + { url = "https://files.pythonhosted.org/packages/07/78/ba7b6dfa1708b82b373ac056928a30c545d5c1a627df9839dcec3c6c1881/kiwisolver-1.5.1-cp315-cp315t-win_arm64.whl", hash = "sha256:b390aec180a7c054919c04898835e1c77bced23ea8383eb2c570213bf25d1a86", size = 73011, upload-time = "2026-08-28T10:28:07.578Z" }, +] + [[package]] name = "markdown" version = "3.11.3" @@ -1127,6 +1275,53 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/92/f9/ecbde7149e95b8a0f18e16d5d747f7dc06049d5da2e4f77f6f5e4a1f46a8/markupsafe-3.0.4-cp315-cp315t-win_arm64.whl", hash = "sha256:39dbacefc411633db5b4378b066a9aca70a3d7e2922c9e578d825f844026eeba", size = 14417, upload-time = "2026-10-02T23:06:56.246Z" }, ] +[[package]] +name = "matplotlib" +version = "3.11.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "contourpy" }, + { name = "cycler" }, + { name = "fonttools" }, + { name = "kiwisolver" }, + { name = "numpy" }, + { name = "packaging" }, + { name = "pillow" }, + { name = "pyparsing" }, + { name = "python-dateutil" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e7/c8/9aa712a0afb882649424dd8de8ad9aa6235e796e84c6052e8f6dc1598d0d/matplotlib-3.11.2.tar.gz", hash = "sha256:cec596316640f2b394b8f0daa0ea61a8eae82d017b620b9f202befb972a59ea4", size = 32660610, upload-time = "2026-09-11T19:05:31.214Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/54/b4/4facdb700bc236e4c676495ca3798d8134ab8668cbfe0f6b2e9ebf962a38/matplotlib-3.11.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:c9721f81275499da1feeb36a2cf8192ea086283b3bd16b7dc4c9d7aedb7396d6", size = 9478976, upload-time = "2026-09-11T19:04:00.12Z" }, + { url = "https://files.pythonhosted.org/packages/4c/a0/bba05f0a25bfeb0475c2f2a87958b31103aa6b7a5386017afb1a96212825/matplotlib-3.11.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1a3040b209f3968b4e84161df7b174f07a9fad33b0f2d7e48ea3bbd3075e2863", size = 9307932, upload-time = "2026-09-11T19:04:02.976Z" }, + { url = "https://files.pythonhosted.org/packages/d4/42/81d5cba4bb39b41b0998efc880e129f2d7cdb94256ca49678fdcd9c21be5/matplotlib-3.11.2-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bf3fe71fbfb8ec0e310e0bc8537c3405a01f38f25f9394ed2135e6202fed542b", size = 10674370, upload-time = "2026-09-11T19:04:06.912Z" }, + { url = "https://files.pythonhosted.org/packages/29/5e/52f56f93d5b20815ee0ae352f7a38eff25580edb180b4fa7df87cfeba68f/matplotlib-3.11.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8c8255de28f986d935a64c9ca71c0ec2d2f41d355691f5ea684725dc91413f71", size = 10954597, upload-time = "2026-09-11T19:04:09.948Z" }, + { url = "https://files.pythonhosted.org/packages/6e/ae/f8918a1b564db49c53cd603eb3c8748c5767e4ce0fb2cf1d7c38653e4c5d/matplotlib-3.11.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:a8756cc73d9af9a7fe0deb54ea2e75ef73b01d9e575877e72acad5458e660943", size = 10812583, upload-time = "2026-09-11T19:04:12.887Z" }, + { url = "https://files.pythonhosted.org/packages/ea/61/4315ef0d63937fe56f451887b4a0be3b8e8b22cf1d92a8d157caac54570d/matplotlib-3.11.2-cp314-cp314-win_amd64.whl", hash = "sha256:ecea603dd2fbf8242fd31a305a8b12a4ece2de28096870c65fdd0d1e35b8d9a6", size = 9505972, upload-time = "2026-09-11T19:04:15.788Z" }, + { url = "https://files.pythonhosted.org/packages/d5/00/02398b0a1a62ef73d9af0a957fe1773363eec9a6ca7e433c72ae2790fbce/matplotlib-3.11.2-cp314-cp314-win_arm64.whl", hash = "sha256:01dc8eaaab5a9fce9ff615eca82345728f289e4715b186ee10c6d85272fc26bb", size = 9184534, upload-time = "2026-09-11T19:04:18.691Z" }, + { url = "https://files.pythonhosted.org/packages/ec/c5/1e6ca10baa7e04f113c37856aadb4adc3dbb1c55fc7da6dc830bba1292d7/matplotlib-3.11.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:79a258f58253dfa025af80a9e9bb228d75fced007f0e93ae7423fefbde81a74d", size = 9526415, upload-time = "2026-09-11T19:04:21.39Z" }, + { url = "https://files.pythonhosted.org/packages/e0/93/7561727af07ccc84747953c6a33eee3981cc436d04f465032e707ca0e429/matplotlib-3.11.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c0b83f044ce10a98027b105b3931548719a6e8c7ef986b4362651e0b5367c8dc", size = 9361064, upload-time = "2026-09-11T19:04:24.107Z" }, + { url = "https://files.pythonhosted.org/packages/c1/40/ce270ef2a6794d94a409fe28b8dabedffc07c07f9e5dbb89e0f605bd157d/matplotlib-3.11.2-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e43b188f0a5b75447bcc197728258166aa64365770ed1caa36595a5e1ca4bbba", size = 10684626, upload-time = "2026-09-11T19:04:27.201Z" }, + { url = "https://files.pythonhosted.org/packages/45/46/396e0307dbf1c1f2d0a3654caa6dbc780dd5379f5f11257369cf8d21d9fe/matplotlib-3.11.2-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d3304eb5a59442a8867f6920d484591c0fa09ffc29e9260be2feec3351e25869", size = 10960602, upload-time = "2026-09-11T19:04:30.254Z" }, + { url = "https://files.pythonhosted.org/packages/1c/97/4defb84695477340aa88b27c9482cc1ca4de11f36f66b6c8c0ddd685def1/matplotlib-3.11.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:02329432ae5c6af87cf208ee575b701d698bdf0b1a3bb28cc6d53c36e967e575", size = 10822603, upload-time = "2026-09-11T19:04:32.964Z" }, + { url = "https://files.pythonhosted.org/packages/7d/e7/eab54551c1ec6b72dcd678a078b6c6da8d4c85ec1ff0016e81fe52866304/matplotlib-3.11.2-cp314-cp314t-win_amd64.whl", hash = "sha256:f2ac30cf5eb5dff1b584627ae0b0e1186551a4f69ae3c75073911da497a29170", size = 9551206, upload-time = "2026-09-11T19:04:35.811Z" }, + { url = "https://files.pythonhosted.org/packages/4e/0e/04698032cb4d8fb1e30d8ffec5ded20f6f582b03c8c58b2385c95245f158/matplotlib-3.11.2-cp314-cp314t-win_arm64.whl", hash = "sha256:cf41ecd1b0c0b6f7177ed965a54c2afbe888715c7cf6054dc12d53bc1494002c", size = 9234977, upload-time = "2026-09-11T19:04:38.972Z" }, + { url = "https://files.pythonhosted.org/packages/44/a9/ca827c184b87364378964e36e7c0ae23651d146fdbc4000635205490cf82/matplotlib-3.11.2-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:894a9cbbecbe30ae6787d464df2e8fc7a8d475cfc68f87c3029f7c11152899b3", size = 9478997, upload-time = "2026-09-11T19:04:41.914Z" }, + { url = "https://files.pythonhosted.org/packages/48/60/01aaafc9c3159f3fae9a65bbcddaa4a6d4d72b0aeffdd636d7f6d00a5c8d/matplotlib-3.11.2-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:bbf1062991d826ed27e2144f3afa4461afbb8ff56e8f703043e191a8163b1ee9", size = 9307947, upload-time = "2026-09-11T19:04:44.834Z" }, + { url = "https://files.pythonhosted.org/packages/1e/a0/6aa72c7cd7cf4dfac652744d7a3310007cec3ce8e5ab9be607bec7096471/matplotlib-3.11.2-cp315-cp315-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:399fef672f7046ef7d6a57572b2a6f9845f3f5afcff04e7b2df7a363a9f42190", size = 10674370, upload-time = "2026-09-11T19:04:47.745Z" }, + { url = "https://files.pythonhosted.org/packages/a1/97/d7e90225ac145046787a2ee0fa4cdc7e4d5cb6772ea232130b10f8a4095a/matplotlib-3.11.2-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cc82dde2a0d3e3ad472edce04897ad7146b8d8bfd1df8a32992eebb81af18fdc", size = 10954581, upload-time = "2026-09-11T19:04:50.712Z" }, + { url = "https://files.pythonhosted.org/packages/58/18/89cf056a9d2cae01f4b8baf01c7e809d613244fcdfa2a2acf28c1e0d79fa/matplotlib-3.11.2-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:930efb28f59fda124e39265d177bab302625297bb147d2910de725a2fc2aef54", size = 10812605, upload-time = "2026-09-11T19:04:53.552Z" }, + { url = "https://files.pythonhosted.org/packages/9d/4d/c61b9f4c34af802d4d84e58803e009013d626b5f468bafe1416131863b5b/matplotlib-3.11.2-cp315-cp315-win_amd64.whl", hash = "sha256:3da3bc0cbf7245e7db72cc6d29d12c5abef72cb73059c73b945f14e3545f3eb2", size = 9506068, upload-time = "2026-09-11T19:04:56.519Z" }, + { url = "https://files.pythonhosted.org/packages/03/7b/047f2fa8708d47430d8e7fa45e9fffb0aee5d4e300f978e087be2ee11fbc/matplotlib-3.11.2-cp315-cp315-win_arm64.whl", hash = "sha256:f25446b2981717dca9786bac841cb3fd7efb568e3e3c755dd980481c5cb9228d", size = 9184576, upload-time = "2026-09-11T19:04:59.318Z" }, + { url = "https://files.pythonhosted.org/packages/03/6e/ad9c5989950785a98642667df265a47c6637e924cb69b5dcf68c3299ae7c/matplotlib-3.11.2-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:fea03cf56568cc1cba08b470be6a0559e71c3a5b688d54b7179bb35ba23d0821", size = 9525988, upload-time = "2026-09-11T19:05:02.304Z" }, + { url = "https://files.pythonhosted.org/packages/a6/c3/25c61701fb655dd412428b15eee2591ce554cdd593e39a045a153373f428/matplotlib-3.11.2-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:254d4ddb2fa8df3b4c689c0c306063aee10521df82cfb438185e499c75fe37c1", size = 9360774, upload-time = "2026-09-11T19:05:05.092Z" }, + { url = "https://files.pythonhosted.org/packages/58/5a/4552878fce8f9d249a5e264c16f5c267c27eac08fb039fa3e207a06feff5/matplotlib-3.11.2-cp315-cp315t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e60cf3047a51edecdc4535a9196bbd6a732936b8e9f8184aabf4d16165884aaf", size = 10685892, upload-time = "2026-09-11T19:05:07.686Z" }, + { url = "https://files.pythonhosted.org/packages/af/dd/b3b19ec0124fc4aafd8a4b3bae859c562a7ff0fd8ae3b2099947f78bde19/matplotlib-3.11.2-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:eb3712dc9b464793de0a4e42a7313d50293c751f94bddaf7332a1bc71bccdda9", size = 10964946, upload-time = "2026-09-11T19:05:10.943Z" }, + { url = "https://files.pythonhosted.org/packages/7b/30/687ccce22f66a57fed85942450e88062773bcbf1a42914e70c7148ec71dc/matplotlib-3.11.2-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:75b6d88402770e181b5d06a67dda4129c31da7d05004d63a21c310ec78d1b83c", size = 10824960, upload-time = "2026-09-11T19:05:13.9Z" }, + { url = "https://files.pythonhosted.org/packages/d3/34/117fe35a8d05054b4b34d2d29287099927c24c3841d36e06d9fa2f20c1cf/matplotlib-3.11.2-cp315-cp315t-win_amd64.whl", hash = "sha256:a6939df7567114b6bac7f4c5e06c84a67f197c1b2f2e4b234d4eecb3bfec9482", size = 9551204, upload-time = "2026-09-11T19:05:16.48Z" }, + { url = "https://files.pythonhosted.org/packages/63/5a/9f440e7bec8b80d0af2a65d1165b2f4e718982dad785531f62255d9ff19b/matplotlib-3.11.2-cp315-cp315t-win_arm64.whl", hash = "sha256:d480038c83691532ed52ff3147db51fa902fc78cb2d8349993a1cdb684435bff", size = 9233946, upload-time = "2026-09-11T19:05:19.063Z" }, +] + [[package]] name = "multidict" version = "7.2.1" @@ -1278,6 +1473,57 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/91/86/2aa5eb1c6ff4aff0fee28dfd36f823a42010a59bce3dcd042c6c7dc8c822/nh3-0.3.8-cp39-abi3-win_arm64.whl", hash = "sha256:4fb7fb01e726a39addbafa3dd9e008ac905a1219b0a82f6f0ad5bb410fdfe283", size = 637545, upload-time = "2026-11-17T11:29:19.276Z" }, ] +[[package]] +name = "numpy" +version = "2.5.5" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/4e/3a/8770c288c47f0b5c2a786d3c20e79f66fd245f2d42cd232d7cd5e00e83e5/numpy-2.5.5.tar.gz", hash = "sha256:5cddc243c75114ba845f01b1f87aca1572dbf7b6c2d88636ed3e1d2bccd7f1bf", size = 20873892, upload-time = "2026-11-15T21:32:28.607Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6a/9a/f1493d897f51947644c45516ba63a67e66a7b06692f930fe37c58346cfbd/numpy-2.5.5-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:ab3ff087826c49d07953d0219eb00663ce5b1a0ef0a6b757e1ac041b09387428", size = 14754557, upload-time = "2026-11-15T21:30:58.008Z" }, + { url = "https://files.pythonhosted.org/packages/18/46/5d1c70b54257a56b3137d6fcc90c6db306f6177c02951eac7ebb42e7e1c7/numpy-2.5.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:7ca51125c76817de53473dae31ddc17213776472761bea9cca68a1a0037a4827", size = 10754769, upload-time = "2026-11-15T21:31:00.146Z" }, + { url = "https://files.pythonhosted.org/packages/4c/e1/016c3d9c9c6e5a457d615cfbcf6bcd01a4cabde82c639776be23365186c1/numpy-2.5.5-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:229743571f901a082f031f511dc4f926b4b4a714075d98b1ff2af62d836365ac", size = 5518338, upload-time = "2026-11-15T21:31:02.38Z" }, + { url = "https://files.pythonhosted.org/packages/12/7f/f2369b42edb1a32a7f048c2126e6ab5b8bc527308ce9eb6e680ad9c3d2e7/numpy-2.5.5-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:1c24be6a82f5f257afc4dbefde4c3b56dee02146dfed2be2811940e79576b237", size = 6800110, upload-time = "2026-11-15T21:31:04.211Z" }, + { url = "https://files.pythonhosted.org/packages/26/5b/5cd4b88a64bb57ca6d3bd6a9e057db445544a2179a2ebf985660e0454648/numpy-2.5.5-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:cc6eb7502facce90349b4097a26821af224aaa0ab36e78304711cdb544352882", size = 15300777, upload-time = "2026-11-15T21:31:05.967Z" }, + { url = "https://files.pythonhosted.org/packages/a4/1f/fcdce1061fba2bfb2e9bfda01fbd8132d5f7522a4f7c8e2b2f629d54ee38/numpy-2.5.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c48960d420e90cf305cb1fde0d4e6082cc90512cda87a9acf0b6e04e91cf4abe", size = 15718051, upload-time = "2026-11-15T21:31:08.12Z" }, + { url = "https://files.pythonhosted.org/packages/5c/bd/9b7de1d0b747e3d1d24874b1cba374c8b0eab6c2034b785387677ecc4dba/numpy-2.5.5-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:5e202d5facc9c0681834018062466d0b3eabd48c540c3570f72905c97f641a90", size = 16518123, upload-time = "2026-11-15T21:31:10.714Z" }, + { url = "https://files.pythonhosted.org/packages/66/14/60c3fc30e63876e44212392eacd4ea1bd201c29835c99f42daa04c2501e4/numpy-2.5.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:e10e81d1db6c8fa507f61bebfd1ea383971dbc40c2005ed4db88fac5538b1ef6", size = 17079719, upload-time = "2026-11-15T21:31:13.245Z" }, + { url = "https://files.pythonhosted.org/packages/ac/b9/c0d3a63804a58823155ae221ce48afa4530e0cab8a33fcfb76a7b46b11ef/numpy-2.5.5-cp314-cp314-win32.whl", hash = "sha256:ef2a874cc70e2132c1c499268bdc34e211a715e481bc33c97b8a0190f2559295", size = 6193548, upload-time = "2026-11-15T21:31:15.602Z" }, + { url = "https://files.pythonhosted.org/packages/74/e2/494516771374b43060c1b778b371cba53d576abd3aee1275eecd73896e3b/numpy-2.5.5-cp314-cp314-win_amd64.whl", hash = "sha256:20145b11776d2f7570cd61351b156a51d3a341822282095baa819d87272bc710", size = 12710543, upload-time = "2026-11-15T21:31:17.461Z" }, + { url = "https://files.pythonhosted.org/packages/1b/e7/abe56b23f4dddf8277429d0efa442abac4c1940ec776c1b707c1e58435e8/numpy-2.5.5-cp314-cp314-win_arm64.whl", hash = "sha256:2abd39cfbb3d2af11e9bc8cc92b08cd089b0975fe9b1a30c8b7c740c67d397ce", size = 10812026, upload-time = "2026-11-15T21:31:19.692Z" }, + { url = "https://files.pythonhosted.org/packages/06/76/2974340b984ecd43bb4ee91c06a3fd59968330752c316d36fb8a23310ac1/numpy-2.5.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f82a7567c590ff266f8c18fd527a0662edde074de11be256541a656e274f2b05", size = 10857031, upload-time = "2026-11-15T21:31:21.953Z" }, + { url = "https://files.pythonhosted.org/packages/38/d2/cc6d1f0f4c848f18e30d0f464a70598369336591920952f6aee440da4a2f/numpy-2.5.5-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:31e5be6cd4b896004cb9e416741612ade530fc9a04bceca5219cf66a675113b4", size = 5620763, upload-time = "2026-11-15T21:31:24.1Z" }, + { url = "https://files.pythonhosted.org/packages/c7/d0/2d014e5b68965530ebe46c0d2b07b1242210a029acba5800f53fcb4d4973/numpy-2.5.5-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:b3d328eebe0056c634878c251131d73d74e0c4af317a3aea718816d6fa0bb963", size = 6897520, upload-time = "2026-11-15T21:31:25.976Z" }, + { url = "https://files.pythonhosted.org/packages/b1/ee/a0fb000c6a57602a7a2958f72a5d07837dd88cb9a158f1edb0a279126428/numpy-2.5.5-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e99bf8a3d54693f2063fa6c7d13955d460a9f543d9dbc80e69a92da288259b28", size = 15342131, upload-time = "2026-11-15T21:31:27.707Z" }, + { url = "https://files.pythonhosted.org/packages/93/43/85cfae380e4e2fe1d246c39a12c88c7a224e751604b6fa13236df3b86600/numpy-2.5.5-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:479e43c183049ec1a820eeb36549e493924f56b3e893a1d5865d0fff12abad47", size = 15751077, upload-time = "2026-11-15T21:31:29.851Z" }, + { url = "https://files.pythonhosted.org/packages/cd/41/5938f05404d2f4531409b658cfd578b0b653a87f22915759afa7f414b4f3/numpy-2.5.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:9f44875964889bd9088cf838d191b58c04088d10b4dc9b140e9da2431ecfbb60", size = 16569544, upload-time = "2026-11-15T21:31:32.017Z" }, + { url = "https://files.pythonhosted.org/packages/a0/b1/75f51d9e2fb970228bd7599d46f34eb0829070b4df8b293c43fdf1c81c44/numpy-2.5.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:2a9c502cdb9a3050ac1686774624cc278658b11f72e11b971a3a8542d6ded357", size = 17122494, upload-time = "2026-11-15T21:31:34.267Z" }, + { url = "https://files.pythonhosted.org/packages/71/1b/68f54066eb445a98e7c677863d1ece9667151f8d8565eea5860d8445fb72/numpy-2.5.5-cp314-cp314t-win32.whl", hash = "sha256:dec156cda7322bcb1479ca992794705fe226a911b0ffebe13bff97fa1f3be63c", size = 6350011, upload-time = "2026-11-15T21:31:36.491Z" }, + { url = "https://files.pythonhosted.org/packages/58/29/c57eca063b680b23c0ca8d07789b3011a9e962fd4994a656b11f7a21226e/numpy-2.5.5-cp314-cp314t-win_amd64.whl", hash = "sha256:84dfb1611993a3525b250c955b1e2ebab6ce0ed36e4ab4dd5746432dd362fb5d", size = 12909875, upload-time = "2026-11-15T21:31:38.311Z" }, + { url = "https://files.pythonhosted.org/packages/72/06/70b2717589eb8ba57bce789c0f1e477fc5869c720fa0ad444e31fb9aef55/numpy-2.5.5-cp314-cp314t-win_arm64.whl", hash = "sha256:567994389edd2963b643d63d826138402a63401176f1daf84dbb3204eb838b39", size = 10899621, upload-time = "2026-11-15T21:31:40.518Z" }, + { url = "https://files.pythonhosted.org/packages/9c/61/8578c9fdbfb59ba2c4ee633102666937ce4e66f8c3de8bc700573c856af5/numpy-2.5.5-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:ad0c8b963f9281f2eb118e283eb61964c716c8e344ed8e8c309b49c586d41ed1", size = 14752489, upload-time = "2026-11-15T21:31:42.902Z" }, + { url = "https://files.pythonhosted.org/packages/a7/ef/d0f38ea7ca697c03af3d687cb70d8ddc8414dcf430f8f7194ab7359d80f6/numpy-2.5.5-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:d7d9be35d50366fe5ac28188364154c9e1e22ad1b977a06c9465c0680c8eeefe", size = 10753050, upload-time = "2026-11-15T21:31:45.123Z" }, + { url = "https://files.pythonhosted.org/packages/84/b7/de9e6d1ffbc33cc7bcf452c7924a7953daaf06bde559b73ebef93b7f85c6/numpy-2.5.5-cp315-cp315-macosx_14_0_arm64.whl", hash = "sha256:d0c7c0dfabdcb7cde080b7c9ef301c7533e90110198b39965141a903c7dddcf8", size = 5516639, upload-time = "2026-11-15T21:31:47.537Z" }, + { url = "https://files.pythonhosted.org/packages/ac/ac/a95824882c5818a7e31893ebdab2944f5e65b4108bc8bed9e240e3c624be/numpy-2.5.5-cp315-cp315-macosx_14_0_x86_64.whl", hash = "sha256:b7dd0287b6cdd35a27d5678a56b1bc508ff206c2b78b30b4821dd5c3197b393a", size = 6797936, upload-time = "2026-11-15T21:31:49.2Z" }, + { url = "https://files.pythonhosted.org/packages/08/64/c39a7b41df0d433ff37fd4fdd6e32b3fa3b51a82110bbcd386d0e37f5da6/numpy-2.5.5-cp315-cp315-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a207eb88a18e30add597c366c1db7e79f48fc94084b8e7dbd0eefb95a645db12", size = 15294336, upload-time = "2026-11-15T21:31:50.908Z" }, + { url = "https://files.pythonhosted.org/packages/d0/ce/ef0ca1a7dbf657a68ec52ce150cc477a7cdd8d09c7ef77662cdecbca39e4/numpy-2.5.5-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9c3e1ac3cd5d3329f4d38709ff4c21f0621bbe8779c094d6de8ec8347246fcdc", size = 15713633, upload-time = "2026-11-15T21:31:53.261Z" }, + { url = "https://files.pythonhosted.org/packages/dd/08/023029d269a7adec40749ef98439af4260ee92bc203d8a7749cc4eee8183/numpy-2.5.5-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:095113ee2ceab6a9501b184eff5ea806973d3a63d74a8cbc15e4911e754da9c1", size = 16510376, upload-time = "2026-11-15T21:31:55.401Z" }, + { url = "https://files.pythonhosted.org/packages/9f/0b/38e65a5ff61b174df3a930898a3b31e94b24caaf4155c719d18417ad63b1/numpy-2.5.5-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:bea7de36bb304a850710c1dfbb35e7cdb9a005928106a3adfc6dc3a753469dec", size = 17078342, upload-time = "2026-11-15T21:31:57.714Z" }, + { url = "https://files.pythonhosted.org/packages/4d/3e/09a62f920e5869888387ba988eeba560057c1f718404cc737e5dbc07e81e/numpy-2.5.5-cp315-cp315-win32.whl", hash = "sha256:fd47c92e0d1e53f9498b1a30305072434fbae6b5a305cbcab514f959e9ce0fab", size = 6192918, upload-time = "2026-11-15T21:31:59.798Z" }, + { url = "https://files.pythonhosted.org/packages/5a/7e/a4c5b4b30dbab285b380130dbf780bccece06de020221491058ea2c66310/numpy-2.5.5-cp315-cp315-win_amd64.whl", hash = "sha256:ae9cfe4e985139c5f2db69d4310de7348bd0abc02cfdc06991c4419065f6fdca", size = 12710024, upload-time = "2026-11-15T21:32:01.352Z" }, + { url = "https://files.pythonhosted.org/packages/7d/57/bdec7de41e7442b9ea0ac938b7597f754d4d625d853551466e8a208e3e64/numpy-2.5.5-cp315-cp315-win_arm64.whl", hash = "sha256:08f1b9abf1707fa89c125aaa17e78389c063fb20ce37a141b47821e996f4a1db", size = 10814707, upload-time = "2026-11-15T21:32:03.326Z" }, + { url = "https://files.pythonhosted.org/packages/f0/e9/7f20d2144d4fbe2876d567a1ae1266cb62a67498af7d3006e2a0ba93deed/numpy-2.5.5-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:3d59ab8f6bfc4ffd29b0f558450e17922c1bc88459882e37726fbcd5834afbfd", size = 14845589, upload-time = "2026-11-15T21:32:05.476Z" }, + { url = "https://files.pythonhosted.org/packages/66/02/ded297ac4c917f7cf90254a50f888f992c028e2ed9a3efd82349c12d4904/numpy-2.5.5-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:bf6fa5a4d73b3a9699a57b8824d4863acde7241808a5305882222843537f02a2", size = 10851494, upload-time = "2026-11-15T21:32:07.944Z" }, + { url = "https://files.pythonhosted.org/packages/c6/ac/1ae013866575827dcec6239ca413b76c05652fa5ac405afd8d904940197c/numpy-2.5.5-cp315-cp315t-macosx_14_0_arm64.whl", hash = "sha256:d64daa409e9b1ac818b0c59e47b005f802e130c8281e40c6a2f7e70c43f75e0f", size = 5615246, upload-time = "2026-11-15T21:32:09.876Z" }, + { url = "https://files.pythonhosted.org/packages/f5/e2/2d89896606a325e584157fe669578ac1b22558e4b3e45e0cb554970e5a19/numpy-2.5.5-cp315-cp315t-macosx_14_0_x86_64.whl", hash = "sha256:ff5c1ab54a637c0adcdbb69ad10e5c4f1c4dedba69c0d1de383249b70c36908f", size = 6890873, upload-time = "2026-11-15T21:32:11.545Z" }, + { url = "https://files.pythonhosted.org/packages/4f/a0/de0484dbe0665ae69cbf9c2bb777c2fa4f402e03a102384c54fe54048d44/numpy-2.5.5-cp315-cp315t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:178cb1eaed819b2cb4e398c554b0776d1499f307e30cb58b9bae1921de35dae6", size = 15340077, upload-time = "2026-11-15T21:32:13.223Z" }, + { url = "https://files.pythonhosted.org/packages/39/d8/60a70cb61b8063e4dfc5b8b55f93c247cb7f1a36515d810e70ca94446396/numpy-2.5.5-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b6e30929e3443f46aa7be2749fb003fefbbad6b6a1e2168bf8850a55b657914a", size = 15752447, upload-time = "2026-11-15T21:32:15.629Z" }, + { url = "https://files.pythonhosted.org/packages/09/14/db7e8f5560a329a118bcea53da883f077bac5f00124799c5ac7e9eb1823e/numpy-2.5.5-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:2efb2ae4e0414b6bd636dde7235c158cd65dd52891ff64a320a4847a8ce7400f", size = 16566475, upload-time = "2026-11-15T21:32:17.974Z" }, + { url = "https://files.pythonhosted.org/packages/ec/33/060b8c68e2ed79fe50a20139f7f89fa2d9862f2d3e127fc353d8e6b2589c/numpy-2.5.5-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:32dce94d74bb4d5bb058d65b0d9dad7fa61d07ff9375fd7695d8aa7ea82ee73d", size = 17120613, upload-time = "2026-11-15T21:32:20.094Z" }, + { url = "https://files.pythonhosted.org/packages/99/3a/ab02c902cb380d0b950eccda4f0b67ac4f66ba490c98756d38adc4b3ccb5/numpy-2.5.5-cp315-cp315t-win32.whl", hash = "sha256:b5d08742de581c9eb61102768ccca125a2982913de399611b56981a07278de74", size = 6344124, upload-time = "2026-11-15T21:32:22.058Z" }, + { url = "https://files.pythonhosted.org/packages/fd/49/b04b1f12231e6fbcf26fd5e7949f629530e11c46a6fcd91923f61b017243/numpy-2.5.5-cp315-cp315t-win_amd64.whl", hash = "sha256:410eab02c6718cb42d06ccbb8604659f3522d2ce06ae70cacd5042092659f5af", size = 12898288, upload-time = "2026-11-15T21:32:23.871Z" }, + { url = "https://files.pythonhosted.org/packages/36/7b/935a5896b0bd441c6dd6da81f39bc5ebf8d5da891b7dcff768e1e1c088b5/numpy-2.5.5-cp315-cp315t-win_arm64.whl", hash = "sha256:b6ecbc1ff292c6799067d8064a4dd35cd25ba9d1a24aa41dd635d701691a49b5", size = 10891314, upload-time = "2026-11-15T21:32:26.357Z" }, +] + [[package]] name = "packaging" version = "26.3"