Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

Feature/storage merge 2 (#548)

Louis Choquelf8756f97729b
diff --git a/.github/workflows/lint-check.yml b/.github/workflows/lint-check.yml
index 4f67fb047..ec5db2027 100644
--- a/.github/workflows/lint-check.yml
+++ b/.github/workflows/lint-check.yml
@@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- python-version: ["3.10", "3.11", "3.12", "3.13"]
+ python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
env:
VIRTUAL_ENV: ${{ github.workspace }}/.venv
diff --git a/.github/workflows/manual-trigger-tests-check.yml b/.github/workflows/manual-trigger-tests-check.yml
index e11374eea..2b4670c8b 100644
--- a/.github/workflows/manual-trigger-tests-check.yml
+++ b/.github/workflows/manual-trigger-tests-check.yml
@@ -27,7 +27,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- python-version: ["3.10", "3.11", "3.12", "3.13"]
+ python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
permissions:
contents: read
id-token: write
diff --git a/.github/workflows/tests-check.yml b/.github/workflows/tests-check.yml
index 532b4c43f..6e002ad2d 100644
--- a/.github/workflows/tests-check.yml
+++ b/.github/workflows/tests-check.yml
@@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- python-version: ["3.10", "3.11", "3.12", "3.13"]
+ python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
permissions:
contents: read
id-token: write
diff --git a/.gitignore b/.gitignore
index f1a7b7572..ab6c5ff83 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,6 +44,7 @@ results/
# personnal pipelex config files that overrides the default one
pipelex_super.toml
+pipelex_override.toml
telemetry_override.toml
# local pipelex service configuration
@@ -57,4 +58,4 @@ gcp_credentials.json
/pipelex.toml
settings.local.json
structures/
-telemetry_override.toml
+.pipelex/storage
diff --git a/.pipelex/inference/backends.toml b/.pipelex/inference/backends.toml
index 6191f4edd..d7bf60372 100644
--- a/.pipelex/inference/backends.toml
+++ b/.pipelex/inference/backends.toml
@@ -54,6 +54,11 @@ enabled = true
endpoint = "https://api.groq.com/openai/v1"
api_key = "${GROQ_API_KEY}"
+[huggingface]
+display_name = "Hugging Face"
+enabled = true
+api_key = "${HF_TOKEN}"
+
[mistral]
display_name = "Mistral AI"
enabled = true
diff --git a/.pipelex/inference/backends/azure_openai.toml b/.pipelex/inference/backends/azure_openai.toml
index 82d29b202..8a898985c 100644
--- a/.pipelex/inference/backends/azure_openai.toml
+++ b/.pipelex/inference/backends/azure_openai.toml
@@ -170,11 +170,13 @@ outputs = ["image"]
costs = { input = 10, output = 40 }
[gpt-image-1.rules]
+prompt = "positive_only"
num_images = "gpt"
aspect_ratio = "gpt"
background = "gpt"
inference = "gpt"
safety_checker = "unavailable"
+output_format = "gpt"
[gpt-image-1-mini]
sdk = "azure_rest_img_gen"
@@ -185,11 +187,13 @@ outputs = ["image"]
costs = { input = 2.5, output = 8 }
[gpt-image-1-mini.rules]
+prompt = "positive_only"
num_images = "gpt"
aspect_ratio = "gpt"
background = "gpt"
inference = "gpt"
safety_checker = "unavailable"
+output_format = "gpt"
["gpt-image-1.5"]
sdk = "azure_rest_img_gen"
@@ -200,8 +204,10 @@ outputs = ["image"]
costs = { input = 8, output = 32 }
["gpt-image-1.5".rules]
+prompt = "positive_only"
num_images = "gpt"
aspect_ratio = "gpt"
background = "gpt"
inference = "gpt"
safety_checker = "unavailable"
+output_format = "gpt"
diff --git a/.pipelex/inference/backends/fal.toml b/.pipelex/inference/backends/fal.toml
index 608bfed89..3433f998b 100644
--- a/.pipelex/inference/backends/fal.toml
+++ b/.pipelex/inference/backends/fal.toml
@@ -37,10 +37,12 @@ outputs = ["image"]
costs = { input = 0.05, output = 0.0 }
[flux-pro.rules]
+prompt = "positive_only"
num_images = "fal"
aspect_ratio = "flux"
inference = "flux"
safety_checker = "available"
+output_format = "flux_1"
specific = "fal"
["flux-pro/v1.1"]
@@ -50,10 +52,12 @@ outputs = ["image"]
costs = { input = 0.05, output = 0.0 }
["flux-pro/v1.1".rules]
+prompt = "positive_only"
num_images = "fal"
aspect_ratio = "flux"
inference = "flux"
safety_checker = "available"
+output_format = "flux_1"
specific = "fal"
["flux-pro/v1.1-ultra"]
@@ -63,10 +67,12 @@ outputs = ["image"]
costs = { input = 0.06, output = 0.0 }
["flux-pro/v1.1-ultra".rules]
+prompt = "positive_only"
num_images = "fal"
aspect_ratio = "flux_11_ultra"
inference = "flux_11_ultra"
safety_checker = "available"
+output_format = "flux_1"
specific = "fal"
[flux-2]
@@ -76,10 +82,12 @@ outputs = ["image"]
costs = { input = 0.05, output = 0.0 }
[flux-2.rules]
+prompt = "positive_only"
num_images = "fal"
aspect_ratio = "flux"
inference = "flux"
safety_checker = "available"
+output_format = "flux_2"
specific = "fal"
# --- SDXL models --------------------------------------------------------------
@@ -90,8 +98,10 @@ outputs = ["image"]
costs = { input = 0.0003, output = 0.0 }
[fast-lightning-sdxl.rules]
+prompt = "positive_only"
num_images = "fal"
-specific = "fal"
aspect_ratio = "flux"
inference = "sdxl_lightning"
safety_checker = "unavailable"
+output_format = "sdxl"
+specific = "fal"
diff --git a/.pipelex/inference/backends/google.toml b/.pipelex/inference/backends/google.toml
index e0d3f0af8..36e19c27b 100644
--- a/.pipelex/inference/backends/google.toml
+++ b/.pipelex/inference/backends/google.toml
@@ -68,6 +68,13 @@ outputs = ["text", "structured"]
max_prompt_images = 3000
costs = { input = 2, output = 12.0 }
+["gemini-3.0-flash-preview"]
+model_id = "gemini-3-flash-preview"
+inputs = ["text", "images"]
+outputs = ["text", "structured"]
+max_prompt_images = 3000
+costs = { input = 0.5, output = 3.0 }
+
################################################################################
# IMAGE GENERATION MODELS (Nano Banana)
################################################################################
diff --git a/.pipelex/inference/backends/huggingface.toml b/.pipelex/inference/backends/huggingface.toml
new file mode 100644
index 000000000..1a7963861
--- /dev/null
+++ b/.pipelex/inference/backends/huggingface.toml
@@ -0,0 +1,43 @@
+################################################################################
+# Hugging Face Backend Configuration
+################################################################################
+#
+# This file defines the model specifications for Hugging Face models.
+# It contains model definitions for various image generation models
+# accessible through the Hugging Face Inference API with provider="auto".
+#
+# Configuration structure:
+# - Each model is defined in its own section with the model name as the header
+# - Headers with dots or slashes must be quoted (e.g., ["stabilityai/stable-diffusion-2-1"])
+# - Model costs are in USD per million tokens (input/output)
+#
+# Documentation: https://docs.pipelex.com
+# Support: https://go.pipelex.com/discord
+#
+################################################################################
+
+################################################################################
+# MODEL DEFAULTS
+################################################################################
+
+[defaults]
+model_type = "img_gen"
+sdk = "huggingface_img_gen"
+
+################################################################################
+# IMAGE GENERATION MODELS
+################################################################################
+
+# --- Qwen Image Models --------------------------------------------------
+[qwen-image]
+model_id = "Qwen/Qwen-Image"
+inputs = ["text"]
+outputs = ["image"]
+costs = { input = 0.0, output = 0.0 }
+variant = "fal-ai"
+# variant = "replicate"
+
+[qwen-image.rules]
+prompt = "with_negative"
+aspect_ratio = "qwen_image"
+inference = "qwen_image"
diff --git a/.pipelex/inference/backends/mistral.toml b/.pipelex/inference/backends/mistral.toml
index c4b49e377..c8c4b05d9 100644
--- a/.pipelex/inference/backends/mistral.toml
+++ b/.pipelex/inference/backends/mistral.toml
@@ -133,11 +133,33 @@ costs = { input = 0.4, output = 2.0 }
# EXTRACTION MODELS
################################################################################
+# TODO: add support to pricing per page
+
# --- OCR Models ---------------------------------------------------------------
+[mistral-ocr-2503]
+model_type = "text_extractor"
+model_id = "mistral-ocr-2503"
+max_tokens = 16384
+inputs = ["pdf", "image"]
+outputs = ["pages"]
+
+[mistral-ocr-2505]
+model_type = "text_extractor"
+model_id = "mistral-ocr-2505"
+max_tokens = 16384
+inputs = ["pdf", "image"]
+outputs = ["pages"]
+
+[mistral-ocr-2512]
+model_type = "text_extractor"
+model_id = "mistral-ocr-2512"
+max_tokens = 16384
+inputs = ["pdf", "image"]
+outputs = ["pages"]
+
[mistral-ocr]
model_type = "text_extractor"
model_id = "mistral-ocr-latest"
-max_tokens = 131072
+max_tokens = 16384
inputs = ["pdf", "image"]
outputs = ["pages"]
-costs = { input = 0.4, output = 2.0 }
diff --git a/.pipelex/inference/deck/base_deck.toml b/.pipelex/inference/deck/base_deck.toml
index b2561f5ab..bb28c3a96 100644
--- a/.pipelex/inference/deck/base_deck.toml
+++ b/.pipelex/inference/deck/base_deck.toml
@@ -108,7 +108,11 @@ cheap_llm_for_creativity = [
]
# --- Waterfalls for Extracts ---------------------------------------------------------------------
-pdf_text_extractor = ["mistral-ocr", "pypdfium2-extract-text"]
+pdf_text_extractor = [
+ "azure-document-intelligence",
+ "mistral-ocr",
+ "pypdfium2-extract-text",
+]
image_text_extractor = ["mistral-ocr"]
####################################################################################################
@@ -172,7 +176,7 @@ for_object = "cheap_llm_for_structured"
choice_default = "extract_text_from_visuals"
[extract.presets]
-extract_text_from_visuals = { model = "mistral-ocr", max_nb_images = 100, image_min_size = 50 }
+extract_text_from_visuals = { model = "azure-document-intelligence", max_nb_images = 100, image_min_size = 50 }
extract_text_from_pdf = { model = "pypdfium2-extract-text", max_nb_images = 100, image_min_size = 50 }
####################################################################################################
diff --git a/.pipelex/inference/routing_profiles.toml b/.pipelex/inference/routing_profiles.toml
index 68faae398..d27e659ac 100644
--- a/.pipelex/inference/routing_profiles.toml
+++ b/.pipelex/inference/routing_profiles.toml
@@ -85,6 +85,10 @@ default = "google"
description = "Use groq backend for all its supported models"
default = "groq"
+[profiles.all_huggingface]
+description = "Use HuggingFace backend for all its supported models"
+default = "huggingface"
+
[profiles.all_mistral]
description = "Use Mistral backend for all its supported models"
default = "mistral"
diff --git a/.pipelex/pipelex.toml b/.pipelex/pipelex.toml
index e9cba8125..2983ada3a 100644
--- a/.pipelex/pipelex.toml
+++ b/.pipelex/pipelex.toml
@@ -26,6 +26,14 @@
#
####################################################################################################
+
+[pipelex.storage_config]
+# Uncomment to change the storage method: "local" (default) or "in_memory"
+# is_fetch_remote_content_enabled = true
+# uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"
+# method = "local"
+# local_storage_path = ".pipelex/storage"
+
[pipelex.scan_config]
# Uncomment to customize the excluded directories for scanning
# excluded_dirs = [
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 1ad5317d4..3aea59838 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -23,12 +23,12 @@
"args": [
"-s",
"-vv",
- "-k test_discord_newsletter_dry_run_working_memory"
+ "-k test_compose_image_content_multiple"
],
"console": "integratedTerminal"
},
{
- "name": "Debug test inference",
+ "name": "Debug test inference LLM structured",
"type": "debugpy",
"request": "launch",
"module": "pytest",
@@ -40,6 +40,34 @@
],
"console": "integratedTerminal"
},
+ {
+ "name": "Debug test inference img gen",
+ "type": "debugpy",
+ "request": "launch",
+ "module": "pytest",
+ "args": [
+ "-s",
+ "-vv",
+ "-m inference",
+ "-k test_img_gen_single_opaque"
+ ],
+ "console": "integratedTerminal",
+ "justMyCode": false
+ },
+ {
+ "name": "Debug test inference PipeExtract",
+ "type": "debugpy",
+ "request": "launch",
+ "module": "pytest",
+ "args": [
+ "-s",
+ "-vv",
+ "-m inference",
+ "-k test_pipe_extract_from_pdf"
+ ],
+ "console": "integratedTerminal",
+ "justMyCode": false
+ },
{
"name": "Debug validate bundle",
"type": "debugpy",
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 19ba8686b..4e2b237e5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,14 @@
**Highlights:**
+- **`PipeCompose` Construct Mode** — New mode for deterministically building `StructuredContent` objects without an LLM. Compose fields from working memory variables, fixed values, templates, and nested structures.
+
+- **Content Storage System** — Configurable storage for generated artifacts (images, extracted pages). Supports `local` filesystem (`.pipelex/storage/`) and `in_memory` backends. Content referenced via stable `pipelex-storage://` URIs.
+
+- **Hugging Face Backend** — Support for Hugging Face Inference API, including `qwen-image` text-to-image model.
+
+- **Python 3.14 Support** — Officially tested and supported.
+
- **Pipelex Gateway** — The deprecated `pipelex_inference` backend is now replaced by `pipelex_gateway`, featuring remote model configuration fetching so you always have access to the latest models without updating Pipelex.
**Getting your API key:**
@@ -29,6 +37,8 @@
### Added
- New backends & models
+ - Google `gemini-3.0-flash-preview`
+ - Mistral OCR models `mistral-ocr-2503`, `mistral-ocr-2505`, `mistral-ocr-2512`
- **Scaleway** inference provider support for open-source models
- **Mistral** Document AI (OCR) via Pipelex Gateway (disclaimer: it's flaky, needs many retries via tenacity)
- **Portkey AI** backend integration for unified access to multiple models through a single API key
@@ -48,6 +58,11 @@
### Changed
+- **Breaking**: User override config renamed from `pipelex_super.toml` to `pipelex_override.toml`.
+- **Image Generation Architecture**: Refactored to taxonomy-based approach. Standardizes parameter translation (`aspect_ratio`, `quality`, `output_format`) to provider-specific APIs.
+- **Content Handling Overhaul**: `GeneratedImage` replaced by internal `GeneratedImageRawDetails`; `ImageContent` is now standard (without `base_64` field). `PipeExtract` outputs `PageContent` list directly. Content persistence now handled automatically by storage system.
+- **Document Extraction Improvements**: `pypdfium2` extractor now extracts embedded images from PDFs. Response parsing uses dedicated Pydantic schemas for validation.
+- **Default Model Change**: `extract_text_from_visuals` deck now defaults to `azure-document-intelligence` instead of `mistral-ocr`.
- **`pipelex_inference` replaced by `pipelex_gateway`** with remote model configuration fetching for always-current model support
- New environment variable `PIPELEX_GATEWAY_API_KEY`
- Default routing profiles updated from `pipelex_first` to `pipelex_gateway_first` with automatic migration in `pipelex init`
@@ -60,7 +75,7 @@
- **Main configuration defaults updated** in `.pipelex/pipelex.toml`:
- Most settings now commented out by default (shown as examples rather than active overrides)
- `is_generate_cost_report_file_enabled` default changed from `true` to `false`
- - `pipelex_super.toml` (final override) moved from repo root to `.pipelex/` directory
+ - `pipelex_override.toml` (final override) moved from repo root to `.pipelex/` directory
- `telemetry_override.toml` (personal telemetry settings) moved from repo root to `.pipelex/` directory
- Documentation: clarified **Setup (first run)** vs **Configuration (TOML reference)**, added a Setup overview page, and added contributor docs for configuration defaults/overrides.
- `pipelex init` now creates a documented `telemetry.toml` template instead of prompting for preferences
diff --git a/Makefile b/Makefile
index f11921ed1..6c4126ede 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ VIRTUAL_ENV := $(CURDIR)/.venv
PROJECT_NAME := $(shell grep '^name = ' pyproject.toml | sed -E 's/name = "(.*)"/\1/')
# The "?" is used to make the variable optional, so that it can be overridden by the user.
-PYTHON_VERSION ?= 3.11
+PYTHON_VERSION ?= 3.13
# Note: VENV_* variables include quotes to handle paths with spaces (e.g., "My Projects/pipelex")
VENV_PYTHON := "$(VIRTUAL_ENV)/bin/python"
VENV_PYTEST := "$(VIRTUAL_ENV)/bin/pytest"
@@ -199,8 +199,9 @@ up-kit-configs:
@rsync -av --delete \
--exclude='.DS_Store' \
--exclude='pipelex_service.toml' \
- --exclude='pipelex_super.toml' \
+ --exclude='pipelex_override.toml' \
--exclude='telemetry_override.toml' \
+ --exclude='storage' \
.pipelex/ pipelex/kit/configs/
ukc: up-kit-configs
diff --git a/docs/contribute/configuration-defaults-and-overrides.md b/docs/contribute/configuration-defaults-and-overrides.md
index 33eee645a..99713fa90 100644
--- a/docs/contribute/configuration-defaults-and-overrides.md
+++ b/docs/contribute/configuration-defaults-and-overrides.md
@@ -31,7 +31,7 @@ At a high level, the load order is:
1. `pipelex_local.toml`
2. `pipelex_{environment}.toml`
3. `pipelex_{run_mode}.toml`
- 4. `pipelex_super.toml`
+ 4. `pipelex_override.toml`
!!! note "Unit test special case"
When unit testing, run-mode overrides may be loaded from `tests/pipelex_{run_mode}.toml` (example: `tests/pipelex_unit_test.toml`).
diff --git a/docs/home/7-configuration/config-technical/cogt-config.md b/docs/home/7-configuration/config-technical/cogt-config.md
index 53980a522..8b57566df 100644
--- a/docs/home/7-configuration/config-technical/cogt-config.md
+++ b/docs/home/7-configuration/config-technical/cogt-config.md
@@ -65,7 +65,7 @@ guidance_scale = 3.5 # Controls adherence to prompt
is_moderated = true # Enable content moderation
safety_tolerance = 5 # Safety level (1-6)
is_raw = false # Raw output mode
-output_format = "jpg" # Options: png, jpg, webp
+output_format = "jpeg" # Options: png, jpeg, webp
seed = "auto" # "auto" or specific integer
```
@@ -101,7 +101,6 @@ Configuration for Optical Character Recognition:
```toml
[cogt.extract_config]
-page_output_text_file_name = "page_text.md"
default_page_views_dpi = 72
## Unified Backend Integration
@@ -185,9 +184,9 @@ guidance_scale = 3.5
is_moderated = true
safety_tolerance = 5
is_raw = false
-output_format = "jpg"
+output_format = "jpeg"
seed = "auto"
[cogt.extract_config]
-page_output_text_file_name = "page_text.md"
+default_page_views_dpi = 72
```
diff --git a/docs/home/7-configuration/index.md b/docs/home/7-configuration/index.md
index 6674978d3..0c4eab764 100644
--- a/docs/home/7-configuration/index.md
+++ b/docs/home/7-configuration/index.md
@@ -34,7 +34,7 @@ In addition to `.pipelex/pipelex.toml`, Pipelex can apply override files at the
1. `pipelex_local.toml`
2. `pipelex_{environment}.toml` (example: `pipelex_dev.toml`)
3. `pipelex_{run_mode}.toml` (example: `pipelex_normal.toml`; unit tests may use `tests/pipelex_unit_test.toml`)
-4. `pipelex_super.toml` (recommended to gitignore)
+4. `pipelex_override.toml` (recommended to gitignore)
!!! info "Contributor details"
For the full “where defaults live” and “how config is merged” explanation, see [Configuration Internals](../../contribute/configuration-defaults-and-overrides.md).
@@ -62,7 +62,7 @@ The exact loading sequence is:
- Example environments: dev, staging, prod -> based on the environment variable `ENV` in your .env file
5. Run mode overrides (`pipelex_{run_mode}.toml`)
- Example run modes: normal, unit_test
-6. Super user overrides (`pipelex_super.toml`) (recommended to put in .gitignore)
+6. Final overrides (`pipelex_override.toml`) (recommended to put in .gitignore)
Each subsequent configuration file in this sequence can override settings from the previous ones. This means:
@@ -77,7 +77,7 @@ Each subsequent configuration file in this sequence can override settings from t
- Local overrides: `pipelex_local.toml`
- Environment overrides: `pipelex_dev.toml`, `pipelex_staging.toml`, `pipelex_prod.toml`, etc.
- Run mode overrides: `pipelex_normal.toml`, `tests/pipelex_unit_test.toml`, etc.
-- Super user overrides: `pipelex_super.toml`
+- Final overrides: `pipelex_override.toml`
NB: The run_mode unit_test is used for testing purposes.
@@ -87,7 +87,7 @@ NB: The run_mode unit_test is used for testing purposes.
2. Use `pipelex_local.toml` for machine-specific settings
3. Use environment files for environment-specific settings (dev, staging, prod)
4. Use run mode files for normal or unit_test configurations
-5. Use `pipelex_super.toml` sparingly, only for temporary overrides (add to .gitignore)
+5. Use `pipelex_override.toml` sparingly, only for temporary overrides (add to .gitignore)
## Best Practices
diff --git a/pipelex/__init__.py b/pipelex/__init__.py
index 567519bf5..78db51d69 100644
--- a/pipelex/__init__.py
+++ b/pipelex/__init__.py
@@ -1,8 +1,9 @@
from pipelex.tools.log.log import log
-from pipelex.tools.misc.pretty import pretty_print, pretty_print_md
+from pipelex.tools.misc.pretty import pretty_print, pretty_print_md, pretty_print_url
__all__ = [
"log",
"pretty_print",
"pretty_print_md",
+ "pretty_print_url",
]
diff --git a/pipelex/cli/commands/init/command.py b/pipelex/cli/commands/init/command.py
index a52604806..64ad3e3a4 100644
--- a/pipelex/cli/commands/init/command.py
+++ b/pipelex/cli/commands/init/command.py
@@ -325,7 +325,7 @@ def init_cmd(
# Show info message if config already exists
if not is_first_time_backends_setup and not skip_confirmation:
console.print()
- console.print("[dim]ℹ Config updates are not yet supported. Running a full reset.[/dim]")
+ console.print("[dim]ℹ Config update requires running a full reset.[/dim]")
try:
# Show unified initialization prompt (skip if skip_confirmation is True)
diff --git a/pipelex/cli/dev_cli/commands/check_config_sync_cmd.py b/pipelex/cli/dev_cli/commands/check_config_sync_cmd.py
index e624cab9d..da7204c21 100644
--- a/pipelex/cli/dev_cli/commands/check_config_sync_cmd.py
+++ b/pipelex/cli/dev_cli/commands/check_config_sync_cmd.py
@@ -8,7 +8,7 @@ from pathlib import Path
from rich.panel import Panel
from pipelex.hub import get_console
-from pipelex.kit.paths import GIT_IGNORED_CONFIG_FILES
+from pipelex.kit.paths import GIT_IGNORED_CONFIG_DIRS, GIT_IGNORED_CONFIG_FILES
from pipelex.tools.misc.diff import has_diff_dirs, make_diff_dirs_pretty
from pipelex.types import StrEnum
@@ -72,8 +72,8 @@ def check_config_sync_cmd(
left_label = "pipelex/kit/configs"
right_label = ".pipelex"
- # Check for differences (excluding files that intentionally differ)
- has_diff = has_diff_dirs(left_dir, right_dir, exclude_files=GIT_IGNORED_CONFIG_FILES)
+ # Check for differences (excluding files and directories that intentionally differ)
+ has_diff = has_diff_dirs(left_dir, right_dir, exclude_files=GIT_IGNORED_CONFIG_FILES, exclude_dirs=GIT_IGNORED_CONFIG_DIRS)
if not has_diff:
# No differences found
@@ -108,7 +108,7 @@ def check_config_sync_cmd(
if show_diff:
console.print()
- pretty_diff = make_diff_dirs_pretty(left_dir, right_dir, exclude_files=GIT_IGNORED_CONFIG_FILES)
+ pretty_diff = make_diff_dirs_pretty(left_dir, right_dir, exclude_files=GIT_IGNORED_CONFIG_FILES, exclude_dirs=GIT_IGNORED_CONFIG_DIRS)
console.print(pretty_diff)
console.print()
diff --git a/pipelex/cogt/config_cogt.py b/pipelex/cogt/config_cogt.py
index a52c6aaa2..54e856e6b 100644
--- a/pipelex/cogt/config_cogt.py
+++ b/pipelex/cogt/config_cogt.py
@@ -1,26 +1,60 @@
-from pydantic import Field
+from pydantic import Field, field_validator
from pipelex.cogt.exceptions import LLMConfigError
-from pipelex.cogt.img_gen.img_gen_job_components import ImgGenJobConfig, ImgGenJobParams, ImgGenJobParamsDefaults
+from pipelex.cogt.img_gen.img_gen_job_components import ImgGenJobConfig, ImgGenJobParams, ImgGenJobParamsDefaults, Quality
from pipelex.cogt.llm.llm_job_components import LLMJobConfig
from pipelex.cogt.models.model_deck_config import ModelDeckConfig
-from pipelex.plugins.fal.fal_config import FalConfig
from pipelex.system.configuration.config_model import ConfigModel
+from pipelex.system.exceptions import ConfigValidationError
class ExtractConfig(ConfigModel):
- page_output_text_file_name: str
default_page_views_dpi: int
+QualityToStepsMap = dict[str, int]
+
+
class ImgGenConfig(ConfigModel):
img_gen_job_config: ImgGenJobConfig
img_gen_param_defaults: ImgGenJobParamsDefaults
- fal_config: FalConfig
+ quality_to_steps_maps: dict[str, QualityToStepsMap]
def make_default_img_gen_job_params(self) -> ImgGenJobParams:
return self.img_gen_param_defaults.make_img_gen_job_params()
+ def get_num_inference_steps(self, model_name: str, quality: Quality) -> int:
+ quality_to_steps_map = self.quality_to_steps_maps.get(model_name)
+ if not quality_to_steps_map:
+ msg = f"No quality-to-steps map found for model '{model_name}'"
+ raise ConfigValidationError(msg)
+ num_inference_steps = quality_to_steps_map.get(quality.value)
+ if num_inference_steps is None:
+ msg = f"No number of inference steps found for quality '{quality.value}' and model '{model_name}'"
+ raise ConfigValidationError(msg)
+ return num_inference_steps
+
+ @field_validator("quality_to_steps_maps")
+ @classmethod
+ def validate_quality_mapping(cls, value: dict[str, QualityToStepsMap]) -> dict[str, QualityToStepsMap]:
+ valid_qualities = {quality.value for quality in Quality}
+ missing_qualities: set[str]
+ invalid_qualities: set[str]
+ for model_name, quality_to_steps_map in value.items():
+ missing_qualities = valid_qualities - set(quality_to_steps_map.keys())
+ invalid_qualities = set(quality_to_steps_map.keys()) - valid_qualities
+
+ if missing_qualities and invalid_qualities:
+ msg = f"Missing ({missing_qualities}) and invalid ({invalid_qualities}) quality levels in mapping for model '{model_name}'"
+ raise ConfigValidationError(msg)
+ if missing_qualities:
+ msg = f"Missing quality levels in mapping: {missing_qualities} for model '{model_name}'"
+ raise ConfigValidationError(msg)
+ if invalid_qualities:
+ msg = f"Invalid quality levels in mapping: {invalid_qualities} for model '{model_name}'"
+ raise ConfigValidationError(msg)
+ return value
+
class InstructorConfig(ConfigModel):
is_dump_kwargs_enabled: bool
@@ -52,9 +86,14 @@ class TenacityConfig(ConfigModel):
wait_exp_base: float = Field(..., ge=1.1, le=10, description="Base for exponential backoff calculation")
+class GatewayTestConfig(ConfigModel):
+ config_id_substitutions: dict[str, str]
+
+
class Cogt(ConfigModel):
model_deck_config: ModelDeckConfig
tenacity_config: TenacityConfig
llm_config: LLMConfig
img_gen_config: ImgGenConfig
extract_config: ExtractConfig
+ gateway_test_config: GatewayTestConfig
diff --git a/pipelex/cogt/content_generation/content_generator.py b/pipelex/cogt/content_generation/content_generator.py
index 1f61aef26..be3e3f8ea 100644
--- a/pipelex/cogt/content_generation/content_generator.py
+++ b/pipelex/cogt/content_generation/content_generator.py
@@ -14,13 +14,14 @@ from pipelex.cogt.content_generation.assignment_models import (
)
from pipelex.cogt.content_generation.content_generator_protocol import ContentGeneratorProtocol, update_job_metadata
from pipelex.cogt.content_generation.extract_generate import extract_gen_pages
+from pipelex.cogt.content_generation.generated_content_factory import GeneratedContentFactory
from pipelex.cogt.content_generation.img_gen_generate import img_gen_image_list, img_gen_single_image
from pipelex.cogt.content_generation.llm_generate import llm_gen_object, llm_gen_object_list, llm_gen_text
from pipelex.cogt.content_generation.templating_generate import templating_gen_text
from pipelex.cogt.extract.extract_input import ExtractInput
from pipelex.cogt.extract.extract_job_components import ExtractJobConfig, ExtractJobParams
from pipelex.cogt.extract.extract_output import ExtractOutput
-from pipelex.cogt.image.generated_image import GeneratedImage
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
from pipelex.cogt.img_gen.img_gen_job_components import ImgGenJobConfig, ImgGenJobParams
from pipelex.cogt.img_gen.img_gen_prompt import ImgGenPrompt
from pipelex.cogt.llm.llm_prompt import LLMPrompt
@@ -30,11 +31,18 @@ from pipelex.cogt.llm.llm_setting import LLMSetting
from pipelex.cogt.templating.template_category import TemplateCategory
from pipelex.cogt.templating.templating_style import TemplatingStyle
from pipelex.config import get_config
+from pipelex.core.stuffs.image_content import ImageContent
+from pipelex.core.stuffs.page_content import PageContent
from pipelex.pipeline.job_metadata import JobMetadata
+from pipelex.tools.misc.image_utils import ImageFormat
+from pipelex.tools.pdf.pypdfium2_renderer import pypdfium2_renderer
from pipelex.tools.typing.pydantic_utils import BaseModelTypeVar
class ContentGenerator(ContentGeneratorProtocol):
+ def __init__(self, generated_content_factory: GeneratedContentFactory) -> None:
+ self._generated_content_factory = generated_content_factory
+
@override
@update_job_metadata
async def make_llm_text(
@@ -194,6 +202,35 @@ class ContentGenerator(ContentGeneratorProtocol):
log.verbose(f"{self.__class__.__name__} generated object list after text: {obj_list}")
return cast("list[BaseModelTypeVar]", obj_list)
+ @override
+ async def make_image_content(
+ self,
+ job_metadata: JobMetadata,
+ generated_image_raw_details: GeneratedImageRawDetails,
+ img_gen_prompt: ImgGenPrompt | None,
+ ) -> ImageContent:
+ image_content = await self._generated_content_factory.make_image_content(
+ primary_id=job_metadata.user_id,
+ secondary_id=job_metadata.pipeline_run_id,
+ raw_details=generated_image_raw_details,
+ )
+ if img_gen_prompt:
+ image_content.source_prompt = img_gen_prompt.positive_text
+ image_content.source_negative_prompt = img_gen_prompt.negative_text
+ return image_content
+
+ @override
+ async def make_page_contents(
+ self,
+ job_metadata: JobMetadata,
+ extract_output: ExtractOutput,
+ ) -> list[PageContent]:
+ return await self._generated_content_factory.make_page_contents(
+ primary_id=job_metadata.user_id,
+ secondary_id=job_metadata.pipeline_run_id,
+ extract_output=extract_output,
+ )
+
@override
@update_job_metadata
async def make_single_image(
@@ -203,19 +240,25 @@ class ContentGenerator(ContentGeneratorProtocol):
img_gen_prompt: ImgGenPrompt,
img_gen_job_params: ImgGenJobParams | None = None,
img_gen_job_config: ImgGenJobConfig | None = None,
- ) -> GeneratedImage:
+ ) -> ImageContent:
img_gen_config = get_config().cogt.img_gen_config
+ img_gen_job_params = img_gen_job_params or img_gen_config.make_default_img_gen_job_params()
+ img_gen_job_config = img_gen_job_config or img_gen_config.img_gen_job_config
img_gen_assignment = ImgGenAssignment(
job_metadata=job_metadata,
img_gen_handle=img_gen_handle,
img_gen_prompt=img_gen_prompt,
- img_gen_job_params=img_gen_job_params or img_gen_config.make_default_img_gen_job_params(),
- img_gen_job_config=img_gen_job_config or img_gen_config.img_gen_job_config,
+ img_gen_job_params=img_gen_job_params,
+ img_gen_job_config=img_gen_job_config,
nb_images=1,
)
- generated_image = await img_gen_single_image(img_gen_assignment=img_gen_assignment)
- log.verbose(f"{self.__class__.__name__} generated image: {generated_image}")
- return generated_image
+ generated_image_raw_details = await img_gen_single_image(img_gen_assignment=img_gen_assignment)
+ log.verbose(f"{self.__class__.__name__} generated image raw details: {generated_image_raw_details}")
+ return await self.make_image_content(
+ job_metadata=job_metadata,
+ img_gen_prompt=img_gen_prompt,
+ generated_image_raw_details=generated_image_raw_details,
+ )
@override
@update_job_metadata
@@ -227,7 +270,7 @@ class ContentGenerator(ContentGeneratorProtocol):
nb_images: int,
img_gen_job_params: ImgGenJobParams | None = None,
img_gen_job_config: ImgGenJobConfig | None = None,
- ) -> list[GeneratedImage]:
+ ) -> list[ImageContent]:
img_gen_config = get_config().cogt.img_gen_config
img_gen_assignment = ImgGenAssignment(
job_metadata=job_metadata,
@@ -237,9 +280,16 @@ class ContentGenerator(ContentGeneratorProtocol):
img_gen_job_config=img_gen_job_config or img_gen_config.img_gen_job_config,
nb_images=nb_images,
)
- generated_image_list = await img_gen_image_list(img_gen_assignment=img_gen_assignment)
- log.verbose(f"{self.__class__.__name__} generated image list: {generated_image_list}")
- return generated_image_list
+ generated_images_as_raw_details = await img_gen_image_list(img_gen_assignment=img_gen_assignment)
+ log.verbose(f"{self.__class__.__name__} generated image list: {generated_images_as_raw_details}")
+ return [
+ await self.make_image_content(
+ job_metadata=job_metadata,
+ generated_image_raw_details=raw_details,
+ img_gen_prompt=img_gen_prompt,
+ )
+ for raw_details in generated_images_as_raw_details
+ ]
@override
async def make_templated_text(
@@ -257,6 +307,35 @@ class ContentGenerator(ContentGeneratorProtocol):
)
return await templating_gen_text(templating_assignment=templating_assignment)
+ @override
+ async def make_render_page_views(
+ self,
+ job_metadata: JobMetadata,
+ extract_input: ExtractInput,
+ extract_handle: str,
+ extract_job_params: ExtractJobParams | None = None,
+ extract_job_config: ExtractJobConfig | None = None,
+ ) -> list[ImageContent]:
+ if not extract_input.pdf_uri:
+ msg = "PDF URI is required to render page views"
+ raise ValueError(msg)
+ job_params = extract_job_params or ExtractJobParams.make_default_extract_job_params()
+ page_views_dpi = job_params.page_views_dpi or get_config().cogt.extract_config.default_page_views_dpi
+ page_view_images = await pypdfium2_renderer.render_pdf_pages_from_uri(pdf_uri=extract_input.pdf_uri, dpi=page_views_dpi)
+ page_view_images_resolved: list[ImageContent] = []
+ for page_view_image in page_view_images:
+ image_content = await self.make_image_content(
+ job_metadata=job_metadata,
+ generated_image_raw_details=GeneratedImageRawDetails.make_from_pil_image(
+ pil_image=page_view_image,
+ output_format=ImageFormat.PNG,
+ ),
+ img_gen_prompt=None,
+ )
+ page_view_images_resolved.append(image_content)
+
+ return page_view_images_resolved
+
@override
async def make_extract_pages(
self,
@@ -265,12 +344,39 @@ class ContentGenerator(ContentGeneratorProtocol):
extract_handle: str,
extract_job_params: ExtractJobParams | None = None,
extract_job_config: ExtractJobConfig | None = None,
- ) -> ExtractOutput:
+ ) -> list[PageContent]:
+ extract_job_params = extract_job_params or ExtractJobParams.make_default_extract_job_params()
+ extract_job_config = extract_job_config or ExtractJobConfig()
extract_assignment = ExtractAssignment(
job_metadata=job_metadata,
extract_input=extract_input,
extract_handle=extract_handle,
- extract_job_params=extract_job_params or ExtractJobParams.make_default_extract_job_params(),
- extract_job_config=extract_job_config or ExtractJobConfig(),
+ extract_job_params=extract_job_params,
+ extract_job_config=extract_job_config,
)
- return await extract_gen_pages(extract_assignment=extract_assignment)
+ extract_output = await extract_gen_pages(extract_assignment=extract_assignment)
+ page_contents = await self.make_page_contents(
+ job_metadata=job_metadata,
+ extract_output=extract_output,
+ )
+ if extract_job_params and extract_job_params.should_include_page_views:
+ page_view_contents: list[ImageContent] = []
+ if extract_input.pdf_uri:
+ page_view_contents = await self.make_render_page_views(
+ extract_input=extract_input,
+ extract_handle=extract_handle,
+ job_metadata=job_metadata,
+ extract_job_params=extract_job_params,
+ extract_job_config=extract_job_config,
+ )
+ elif extract_input.image_uri:
+ page_view_contents = [ImageContent(url=extract_input.image_uri)]
+ if len(page_view_contents) != len(page_contents):
+ msg = f"Number of page view contents ({len(page_view_contents)}) does not match number of page contents ({len(page_contents)})"
+ raise ValueError(msg)
+ for page_content in page_contents:
+ page_content.page_view = page_view_contents.pop(0)
+ else:
+ log.dev(f"No page views to make because: {extract_job_params} and {extract_input}")
+
+ return page_contents
diff --git a/pipelex/cogt/content_generation/content_generator_dry.py b/pipelex/cogt/content_generation/content_generator_dry.py
index 8fa9673f5..1cd609ce6 100644
--- a/pipelex/cogt/content_generation/content_generator_dry.py
+++ b/pipelex/cogt/content_generation/content_generator_dry.py
@@ -7,8 +7,9 @@ from pipelex import log
from pipelex.cogt.content_generation.content_generator_protocol import ContentGeneratorProtocol, update_job_metadata
from pipelex.cogt.extract.extract_input import ExtractInput
from pipelex.cogt.extract.extract_job_components import ExtractJobConfig, ExtractJobParams
-from pipelex.cogt.extract.extract_output import ExtractedImageFromPage, ExtractOutput, Page
-from pipelex.cogt.image.generated_image import GeneratedImage
+from pipelex.cogt.extract.extract_output import ExtractOutput, Page
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
+from pipelex.cogt.image.image_size import ImageSize
from pipelex.cogt.img_gen.img_gen_job_components import ImgGenJobConfig, ImgGenJobParams
from pipelex.cogt.img_gen.img_gen_prompt import ImgGenPrompt
from pipelex.cogt.llm.llm_prompt import LLMPrompt
@@ -17,12 +18,14 @@ from pipelex.cogt.llm.llm_setting import LLMSetting
from pipelex.cogt.templating.template_category import TemplateCategory
from pipelex.cogt.templating.templating_style import TemplatingStyle
from pipelex.config import get_config
+from pipelex.core.stuffs.image_content import ImageContent
+from pipelex.core.stuffs.page_content import PageContent
+from pipelex.core.stuffs.text_and_images_content import TextAndImagesContent
+from pipelex.core.stuffs.text_content import TextContent
from pipelex.pipeline.job_metadata import JobMetadata
from pipelex.tools.jinja2.jinja2_parsing import check_jinja2_parsing
from pipelex.tools.typing.pydantic_utils import BaseModelTypeVar
-DRY_BASE_64_IMAGE = "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8z8BQz0AEYBxVSF+FABJADveWkH6oAAAAAElFTkSuQmCC"
-
class ContentGeneratorDry(ContentGeneratorProtocol):
"""This class is used to generate mock content for testing purposes.
@@ -33,6 +36,17 @@ class ContentGeneratorDry(ContentGeneratorProtocol):
def _text_gen_truncate_length(self) -> int:
return get_config().pipelex.dry_run_config.text_gen_truncate_length
+ def _make_generated_image_fake(
+ self,
+ raw_details: GeneratedImageRawDetails,
+ ) -> ImageContent:
+ return ImageContent(
+ url=raw_details.actual_url or "https://example.com/image.jpg",
+ display_link=raw_details.actual_url or "https://example.com/image.jpg",
+ mime_type=raw_details.mime_type or "image/jpeg",
+ size=raw_details.size,
+ )
+
@override
@update_job_metadata
async def make_llm_text(
@@ -133,6 +147,46 @@ class ContentGeneratorDry(ContentGeneratorProtocol):
nb_items=nb_items,
)
+ @override
+ async def make_image_content(
+ self,
+ job_metadata: JobMetadata,
+ generated_image_raw_details: GeneratedImageRawDetails,
+ img_gen_prompt: ImgGenPrompt | None,
+ ) -> ImageContent:
+ image_content = self._make_generated_image_fake(raw_details=generated_image_raw_details)
+ if img_gen_prompt:
+ image_content.source_prompt = img_gen_prompt.positive_text
+ image_content.source_negative_prompt = img_gen_prompt.negative_text
+ return image_content
+
+ @override
+ async def make_page_contents(
+ self,
+ job_metadata: JobMetadata,
+ extract_output: ExtractOutput,
+ ) -> list[PageContent]:
+ page_contents: list[PageContent] = []
+ for page_index in sorted(extract_output.pages.keys()):
+ page = extract_output.pages[page_index]
+ page_images: list[ImageContent] = []
+ for extracted_image in page.extracted_images:
+ image_content = await self.make_image_content(
+ job_metadata=job_metadata,
+ generated_image_raw_details=extracted_image,
+ img_gen_prompt=None,
+ )
+ page_images.append(image_content)
+ page_contents.append(
+ PageContent(
+ text_and_images=TextAndImagesContent(
+ text=TextContent(text=page.text) if page.text else None,
+ images=page_images,
+ ),
+ )
+ )
+ return page_contents
+
@override
@update_job_metadata
async def make_single_image(
@@ -142,15 +196,19 @@ class ContentGeneratorDry(ContentGeneratorProtocol):
img_gen_prompt: ImgGenPrompt,
img_gen_job_params: ImgGenJobParams | None = None,
img_gen_job_config: ImgGenJobConfig | None = None,
- ) -> GeneratedImage:
+ ) -> ImageContent:
func_name = "make_single_image"
log.verbose(f"🤡 DRY RUN: {self.__class__.__name__}.{func_name}")
image_urls = get_config().pipelex.dry_run_config.image_urls
image_url = image_urls[0]
- return GeneratedImage(
- url=image_url,
- width=1536,
- height=2752,
+ return await self.make_image_content(
+ job_metadata=job_metadata,
+ generated_image_raw_details=GeneratedImageRawDetails(
+ actual_url=image_url,
+ size=ImageSize(width=1024, height=1024),
+ mime_type="image/jpeg",
+ ),
+ img_gen_prompt=img_gen_prompt,
)
@override
@@ -163,18 +221,23 @@ class ContentGeneratorDry(ContentGeneratorProtocol):
nb_images: int,
img_gen_job_params: ImgGenJobParams | None = None,
img_gen_job_config: ImgGenJobConfig | None = None,
- ) -> list[GeneratedImage]:
+ ) -> list[ImageContent]:
func_name = "make_image_list"
log.verbose(f"🤡 DRY RUN: {self.__class__.__name__}.{func_name}")
image_urls = get_config().pipelex.dry_run_config.image_urls
- return [
- GeneratedImage(
- url=image_urls[image_index % len(image_urls)],
- width=1536,
- height=2752,
+ image_contents: list[ImageContent] = []
+ for image_index in range(nb_images):
+ image_content = await self.make_image_content(
+ job_metadata=job_metadata,
+ generated_image_raw_details=GeneratedImageRawDetails(
+ actual_url=image_urls[image_index % len(image_urls)],
+ size=ImageSize(width=1024, height=1024),
+ mime_type="image/jpeg",
+ ),
+ img_gen_prompt=img_gen_prompt,
)
- for image_index in range(nb_images)
- ]
+ image_contents.append(image_content)
+ return image_contents
@override
async def make_templated_text(
@@ -193,6 +256,31 @@ class ContentGeneratorDry(ContentGeneratorProtocol):
f"jinja2={jinja2_truncated} • templating_style={templating_style} • template_category={template_category}"
)
+ @override
+ async def make_render_page_views(
+ self,
+ job_metadata: JobMetadata,
+ extract_input: ExtractInput,
+ extract_handle: str,
+ extract_job_params: ExtractJobParams | None = None,
+ extract_job_config: ExtractJobConfig | None = None,
+ ) -> list[ImageContent]:
+ if not extract_input.pdf_uri:
+ msg = "PDF URI is required to render page views"
+ raise ValueError(msg)
+ nb_pages = get_config().pipelex.dry_run_config.nb_extract_pages
+ page_view_images_resolved: list[ImageContent] = []
+ for page_index in range(1, nb_pages + 1):
+ page_view_image = self._make_generated_image_fake(
+ raw_details=GeneratedImageRawDetails(
+ actual_url=f"https://example.com/page_{page_index}.png",
+ size=ImageSize(width=1024, height=1024),
+ mime_type="image/jpeg",
+ ),
+ )
+ page_view_images_resolved.append(page_view_image)
+ return page_view_images_resolved
+
@override
async def make_extract_pages(
self,
@@ -201,31 +289,46 @@ class ContentGeneratorDry(ContentGeneratorProtocol):
extract_handle: str,
extract_job_params: ExtractJobParams | None = None,
extract_job_config: ExtractJobConfig | None = None,
- ) -> ExtractOutput:
+ ) -> list[PageContent]:
func_name = "make_extract_pages"
log.verbose(f"🤡 DRY RUN: {self.__class__.__name__}.{func_name}")
+ nb_pages: int
if extract_input.image_uri:
- image_as_page = Page(
+ nb_pages = 1
+ else:
+ nb_pages = get_config().pipelex.dry_run_config.nb_extract_pages
+ page_contents: list[PageContent] = []
+ for _ in range(1, nb_pages + 1):
+ page = Page(
text="DRY RUN: OCR text",
extracted_images=[],
- page_view=None,
- )
- extract_output = ExtractOutput(
- pages={1: image_as_page},
)
- else:
- nb_pages = get_config().pipelex.dry_run_config.nb_extract_pages
- pages = {
- page_index: Page(
- text="DRY RUN: OCR text",
- extracted_images=[],
- page_view=ExtractedImageFromPage(
- image_id=f"page_view_{page_index}",
- base_64=DRY_BASE_64_IMAGE,
- caption="DRY RUN: OCR text",
+ page_contents.append(
+ PageContent(
+ text_and_images=TextAndImagesContent(
+ text=TextContent(text=page.text) if page.text else None,
+ images=[],
),
+ page_view=None,
)
- for page_index in range(1, nb_pages + 1)
- }
- extract_output = ExtractOutput(pages=pages)
- return extract_output
+ )
+
+ if extract_job_params and extract_job_params.should_include_page_views:
+ page_view_contents: list[ImageContent] = []
+ if extract_input.pdf_uri:
+ page_view_contents = await self.make_render_page_views(
+ extract_input=extract_input,
+ extract_handle=extract_handle,
+ job_metadata=job_metadata,
+ extract_job_params=extract_job_params,
+ extract_job_config=extract_job_config,
+ )
+ elif extract_input.image_uri:
+ page_view_contents = [ImageContent(url=extract_input.image_uri)]
+ if len(page_view_contents) != len(page_contents):
+ msg = f"Number of page view contents ({len(page_view_contents)}) does not match number of page contents ({len(page_contents)})"
+ raise ValueError(msg)
+ for page_content in page_contents:
+ page_content.page_view = page_view_contents.pop(0)
+
+ return page_contents
diff --git a/pipelex/cogt/content_generation/content_generator_protocol.py b/pipelex/cogt/content_generation/content_generator_protocol.py
index fe19411ae..d73a3e2ed 100644
--- a/pipelex/cogt/content_generation/content_generator_protocol.py
+++ b/pipelex/cogt/content_generation/content_generator_protocol.py
@@ -5,7 +5,7 @@ from typing import Any, ParamSpec, Protocol, TypeVar
from pipelex.cogt.extract.extract_input import ExtractInput
from pipelex.cogt.extract.extract_job_components import ExtractJobConfig, ExtractJobParams
from pipelex.cogt.extract.extract_output import ExtractOutput
-from pipelex.cogt.image.generated_image import GeneratedImage
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
from pipelex.cogt.img_gen.img_gen_job_components import ImgGenJobConfig, ImgGenJobParams
from pipelex.cogt.img_gen.img_gen_prompt import ImgGenPrompt
from pipelex.cogt.llm.llm_prompt import LLMPrompt
@@ -13,6 +13,8 @@ from pipelex.cogt.llm.llm_prompt_factory_abstract import LLMPromptFactoryAbstrac
from pipelex.cogt.llm.llm_setting import LLMSetting
from pipelex.cogt.templating.template_category import TemplateCategory
from pipelex.cogt.templating.templating_style import TemplatingStyle
+from pipelex.core.stuffs.image_content import ImageContent
+from pipelex.core.stuffs.page_content import PageContent
from pipelex.pipeline.job_metadata import JobMetadata
from pipelex.tools.typing.pydantic_utils import BaseModelTypeVar
@@ -34,10 +36,7 @@ def update_job_metadata(func: Callable[P, Coroutine[Any, Any, R]]) -> Callable[P
msg = "The job_metadata argument must be of type JobMetadata."
raise TypeError(msg)
- updated_metadata = JobMetadata(
- content_generation_job_id=func.__name__,
- )
- job_metadata.update(updated_metadata=updated_metadata)
+ job_metadata.content_generation_job_id = func.__name__
return await func(*args, **kwargs)
@@ -90,6 +89,19 @@ class ContentGeneratorProtocol(Protocol):
nb_items: int | None = None,
) -> Coroutine[Any, Any, list[BaseModelTypeVar]]: ...
+ async def make_image_content(
+ self,
+ job_metadata: JobMetadata,
+ generated_image_raw_details: GeneratedImageRawDetails,
+ img_gen_prompt: ImgGenPrompt | None,
+ ) -> ImageContent: ...
+
+ async def make_page_contents(
+ self,
+ job_metadata: JobMetadata,
+ extract_output: ExtractOutput,
+ ) -> list[PageContent]: ...
+
def make_single_image(
self,
job_metadata: JobMetadata,
@@ -97,7 +109,7 @@ class ContentGeneratorProtocol(Protocol):
img_gen_prompt: ImgGenPrompt,
img_gen_job_params: ImgGenJobParams | None = None,
img_gen_job_config: ImgGenJobConfig | None = None,
- ) -> Coroutine[Any, Any, GeneratedImage]: ...
+ ) -> Coroutine[Any, Any, ImageContent]: ...
def make_image_list(
self,
@@ -107,7 +119,7 @@ class ContentGeneratorProtocol(Protocol):
nb_images: int,
img_gen_job_params: ImgGenJobParams | None = None,
img_gen_job_config: ImgGenJobConfig | None = None,
- ) -> Coroutine[Any, Any, list[GeneratedImage]]: ...
+ ) -> Coroutine[Any, Any, list[ImageContent]]: ...
def make_templated_text(
self,
@@ -117,6 +129,15 @@ class ContentGeneratorProtocol(Protocol):
template_category: TemplateCategory | None = None,
) -> Coroutine[Any, Any, str]: ...
+ async def make_render_page_views(
+ self,
+ job_metadata: JobMetadata,
+ extract_input: ExtractInput,
+ extract_handle: str,
+ extract_job_params: ExtractJobParams | None = None,
+ extract_job_config: ExtractJobConfig | None = None,
+ ) -> list[ImageContent]: ...
+
def make_extract_pages(
self,
job_metadata: JobMetadata,
@@ -124,4 +145,4 @@ class ContentGeneratorProtocol(Protocol):
extract_handle: str,
extract_job_params: ExtractJobParams,
extract_job_config: ExtractJobConfig,
- ) -> Coroutine[Any, Any, ExtractOutput]: ...
+ ) -> Coroutine[Any, Any, list[PageContent]]: ...
diff --git a/pipelex/cogt/content_generation/exceptions.py b/pipelex/cogt/content_generation/exceptions.py
new file mode 100644
index 000000000..0695fe3ed
--- /dev/null
+++ b/pipelex/cogt/content_generation/exceptions.py
@@ -0,0 +1,9 @@
+from pipelex.base_exceptions import PipelexError
+
+
+class ContentGenerationError(PipelexError):
+ pass
+
+
+class NeitherUrlNorDataError(ContentGenerationError):
+ pass
diff --git a/pipelex/cogt/content_generation/generated_content_factory.py b/pipelex/cogt/content_generation/generated_content_factory.py
new file mode 100644
index 000000000..9122427aa
--- /dev/null
+++ b/pipelex/cogt/content_generation/generated_content_factory.py
@@ -0,0 +1,176 @@
+import base64
+import hashlib
+
+from pipelex.cogt.content_generation.exceptions import NeitherUrlNorDataError
+from pipelex.cogt.extract.extract_output import ExtractOutput
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
+from pipelex.config import get_config
+from pipelex.core.stuffs.image_content import ImageContent
+from pipelex.core.stuffs.page_content import PageContent
+from pipelex.core.stuffs.text_and_images_content import TextAndImagesContent
+from pipelex.core.stuffs.text_content import TextContent
+from pipelex.tools.misc.base64_utils import extract_base64_str_from_base64_url_if_possible
+from pipelex.tools.misc.file_fetch_utils import fetch_file_from_url_httpx_async
+from pipelex.tools.misc.image_utils import ImageFormat
+from pipelex.tools.storage.storage_provider_abstract import StorageProviderAbstract
+
+
+class GeneratedContentFactory:
+ def __init__(self, storage_provider: StorageProviderAbstract) -> None:
+ self.storage_provider = storage_provider
+
+ def _build_storage_key(
+ self,
+ primary_id: str,
+ secondary_id: str,
+ data: bytes,
+ mime_type: str | None,
+ output_format: ImageFormat | None,
+ ) -> str:
+ """Build a storage key using a SHA-256 hash of the data.
+
+ Args:
+ primary_id: The principal ID
+ secondary_id: The secondary ID
+ data: The binary data to hash
+ mime_type: Optional MIME type to determine file extension
+ output_format: Optional output format to determine file extension
+
+ Returns:
+ A storage key in the format "{primary_id}/{secondary_id}/{hash}.{extension}"
+ """
+ hash_digest = hashlib.sha256(data).hexdigest()[:16]
+
+ if output_format:
+ extension = output_format.as_file_extension
+ elif mime_type:
+ match mime_type:
+ case "image/jpeg":
+ extension = "jpg"
+ case "image/png":
+ extension = "png"
+ case "image/webp":
+ extension = "webp"
+ case _:
+ extension = "jpg"
+ else:
+ extension = "jpg"
+ uri_format = get_config().pipelex.storage_config.uri_format
+ return uri_format.format(primary_id=primary_id, secondary_id=secondary_id, hash=hash_digest, extension=extension)
+
+ async def _fetch_remote_content(self, url: str) -> bytes:
+ return await fetch_file_from_url_httpx_async(url=url)
+
+ async def make_image_content(
+ self,
+ primary_id: str,
+ secondary_id: str,
+ raw_details: GeneratedImageRawDetails,
+ ) -> ImageContent:
+ output_format: ImageFormat | None = None
+ base64_extracted_mime_type: str | None = None
+ is_remote_url: bool
+ if raw_details.output_format:
+ output_format = ImageFormat(raw_details.output_format)
+
+ if raw_details.actual_url:
+ url = raw_details.actual_url
+ is_remote_url = True
+ else:
+ actual_url: str | None = None
+ actual_bytes: bytes | None = None
+ if raw_details.base64_str:
+ actual_bytes = base64.b64decode(raw_details.base64_str)
+ elif raw_details.actual_url_or_prefixed_base64:
+ if raw_details.actual_url_or_prefixed_base64.startswith("http"):
+ actual_url = raw_details.actual_url_or_prefixed_base64
+ elif result := extract_base64_str_from_base64_url_if_possible(possibly_base64_url=raw_details.actual_url_or_prefixed_base64):
+ base64_str, base64_extracted_mime_type = result
+ actual_bytes = base64.b64decode(base64_str)
+ else:
+ msg = "No URL or base64 string could be extracted"
+ raise NeitherUrlNorDataError(msg)
+ elif raw_details.actual_bytes:
+ actual_bytes = raw_details.actual_bytes
+ else:
+ msg = "No URL or bytes or image found"
+ raise NeitherUrlNorDataError(msg)
+
+ if actual_url:
+ url = actual_url
+ is_remote_url = True
+ elif actual_bytes:
+ storage_key = self._build_storage_key(
+ primary_id=primary_id,
+ secondary_id=secondary_id,
+ data=actual_bytes,
+ mime_type=raw_details.mime_type or base64_extracted_mime_type,
+ output_format=output_format,
+ )
+ url = self.storage_provider.store(data=actual_bytes, key=storage_key)
+ is_remote_url = False
+ else:
+ msg = "No URL or bytes found"
+ raise NeitherUrlNorDataError(msg)
+
+ mime_type: str | None = None
+ if raw_details.mime_type:
+ mime_type = raw_details.mime_type
+ elif base64_extracted_mime_type:
+ mime_type = base64_extracted_mime_type
+ elif output_format:
+ mime_type = output_format.as_mime_type
+ else:
+ mime_type = "image/jpeg"
+
+ display_link: str | None
+ if is_remote_url and get_config().pipelex.storage_config.is_fetch_remote_content_enabled:
+ actual_bytes = await self._fetch_remote_content(url=url)
+ storage_key = self._build_storage_key(
+ primary_id=primary_id,
+ secondary_id=secondary_id,
+ data=actual_bytes,
+ mime_type=mime_type,
+ output_format=output_format,
+ )
+ url = self.storage_provider.store(data=actual_bytes, key=storage_key)
+ display_link = self.storage_provider.display_link(uri=url)
+ elif not is_remote_url:
+ display_link = self.storage_provider.display_link(uri=url)
+ else:
+ display_link = url
+
+ return ImageContent(
+ url=url,
+ display_link=display_link,
+ size=raw_details.size,
+ mime_type=mime_type,
+ caption=raw_details.caption,
+ )
+
+ async def make_page_contents(
+ self,
+ primary_id: str,
+ secondary_id: str,
+ extract_output: ExtractOutput,
+ ) -> list[PageContent]:
+ page_contents: list[PageContent] = []
+ for page_index in sorted(extract_output.pages.keys()):
+ page = extract_output.pages[page_index]
+ page_images: list[ImageContent] = []
+ for extracted_image in page.extracted_images:
+ image_content = await self.make_image_content(
+ primary_id=primary_id,
+ secondary_id=secondary_id,
+ raw_details=extracted_image,
+ )
+ page_images.append(image_content)
+ page_contents.append(
+ PageContent(
+ text_and_images=TextAndImagesContent(
+ text=TextContent(text=page.text) if page.text else None,
+ images=page_images,
+ ),
+ )
+ )
+ return page_contents
diff --git a/pipelex/cogt/content_generation/img_gen_generate.py b/pipelex/cogt/content_generation/img_gen_generate.py
index 66dec1ba7..de300b5d8 100644
--- a/pipelex/cogt/content_generation/img_gen_generate.py
+++ b/pipelex/cogt/content_generation/img_gen_generate.py
@@ -1,11 +1,11 @@
from pipelex import log
from pipelex.cogt.content_generation.assignment_models import ImgGenAssignment
-from pipelex.cogt.image.generated_image import GeneratedImage
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
from pipelex.cogt.img_gen.img_gen_job_factory import ImgGenJobFactory
from pipelex.hub import get_img_gen_worker
-async def img_gen_single_image(img_gen_assignment: ImgGenAssignment) -> GeneratedImage:
+async def img_gen_single_image(img_gen_assignment: ImgGenAssignment) -> GeneratedImageRawDetails:
img_gen_worker = get_img_gen_worker(img_gen_handle=img_gen_assignment.img_gen_handle)
img_gen_job = ImgGenJobFactory.make_img_gen_job_from_prompt(
img_gen_prompt=img_gen_assignment.img_gen_prompt,
@@ -18,7 +18,7 @@ async def img_gen_single_image(img_gen_assignment: ImgGenAssignment) -> Generate
return generated_image
-async def img_gen_image_list(img_gen_assignment: ImgGenAssignment) -> list[GeneratedImage]:
+async def img_gen_image_list(img_gen_assignment: ImgGenAssignment) -> list[GeneratedImageRawDetails]:
img_gen_worker = get_img_gen_worker(img_gen_handle=img_gen_assignment.img_gen_handle)
img_gen_job = ImgGenJobFactory.make_img_gen_job_from_prompt(
img_gen_prompt=img_gen_assignment.img_gen_prompt,
@@ -34,7 +34,7 @@ async def img_gen_image_list(img_gen_assignment: ImgGenAssignment) -> list[Gener
return generated_image_list
-async def img_gen_image(img_gen_assignment: ImgGenAssignment) -> GeneratedImage | list[GeneratedImage]:
+async def img_gen_image(img_gen_assignment: ImgGenAssignment) -> GeneratedImageRawDetails | list[GeneratedImageRawDetails]:
if img_gen_assignment.nb_images > 1:
return await img_gen_image_list(img_gen_assignment)
return await img_gen_single_image(img_gen_assignment)
diff --git a/pipelex/cogt/exceptions.py b/pipelex/cogt/exceptions.py
index b62958d85..e4eefaa24 100644
--- a/pipelex/cogt/exceptions.py
+++ b/pipelex/cogt/exceptions.py
@@ -100,7 +100,15 @@ class ExtractHandleNotFoundError(CogtError):
super().__init__(message)
-class LLMModelNotFoundError(CogtError):
+class ExtractOutputError(CogtError):
+ pass
+
+
+class GeneratedImageError(CogtError):
+ pass
+
+
+class LLMModelNotFoundError(ModelNotFoundError):
pass
@@ -136,6 +144,10 @@ class PromptImageFormatError(CogtError):
pass
+class ImgGenModelNotFoundError(ModelNotFoundError):
+ pass
+
+
class ImgGenPromptError(CogtError):
pass
diff --git a/pipelex/cogt/extract/bounding_box.py b/pipelex/cogt/extract/bounding_box.py
new file mode 100644
index 000000000..2c2b70d20
--- /dev/null
+++ b/pipelex/cogt/extract/bounding_box.py
@@ -0,0 +1,29 @@
+from __future__ import annotations
+
+from pydantic import BaseModel, Field
+
+
+class BoundingBox(BaseModel):
+ """Bounding box coordinates for a rectangle in 2D space, typically to locate an image in a page."""
+
+ top_left_x: float = Field(description="X coordinate of top-left corner")
+ top_left_y: float = Field(description="Y coordinate of top-left corner")
+ top_right_x: float = Field(description="X coordinate of top-right corner")
+ top_right_y: float = Field(description="Y coordinate of top-right corner")
+ bottom_right_x: float = Field(description="X coordinate of bottom-right corner")
+ bottom_right_y: float = Field(description="Y coordinate of bottom-right corner")
+ bottom_left_x: float = Field(description="X coordinate of bottom-left corner")
+ bottom_left_y: float = Field(description="Y coordinate of bottom-left corner")
+
+ @classmethod
+ def make_from_two_corners(cls, top_left_x: float, top_left_y: float, bottom_right_x: float, bottom_right_y: float) -> BoundingBox:
+ return BoundingBox(
+ top_left_x=top_left_x,
+ top_left_y=top_left_y,
+ top_right_x=bottom_right_x,
+ top_right_y=top_left_y,
+ bottom_right_x=bottom_right_x,
+ bottom_right_y=bottom_right_y,
+ bottom_left_x=top_left_x,
+ bottom_left_y=bottom_right_y,
+ )
diff --git a/pipelex/cogt/extract/extract_job_factory.py b/pipelex/cogt/extract/extract_job_factory.py
index 23d06e6d4..4919bd2f5 100644
--- a/pipelex/cogt/extract/extract_job_factory.py
+++ b/pipelex/cogt/extract/extract_job_factory.py
@@ -1,7 +1,7 @@
from pipelex.cogt.extract.extract_input import ExtractInput
from pipelex.cogt.extract.extract_job import ExtractJob
from pipelex.cogt.extract.extract_job_components import ExtractJobConfig, ExtractJobParams, ExtractJobReport
-from pipelex.pipeline.job_metadata import JobCategory, JobMetadata
+from pipelex.pipeline.job_metadata import JobMetadata
class ExtractJobFactory:
@@ -9,14 +9,11 @@ class ExtractJobFactory:
def make_extract_job(
cls,
extract_input: ExtractInput,
+ job_metadata: JobMetadata,
extract_job_params: ExtractJobParams | None = None,
extract_job_config: ExtractJobConfig | None = None,
- job_metadata: JobMetadata | None = None,
) -> ExtractJob:
- # TODO: manage the param default through the config
- job_metadata = job_metadata or JobMetadata(
- job_category=JobCategory.EXTRACT_JOB,
- )
+ # TODO: manage the param defaults through the config
job_params = extract_job_params or ExtractJobParams.make_default_extract_job_params()
job_config = extract_job_config or ExtractJobConfig()
job_report = ExtractJobReport()
diff --git a/pipelex/cogt/extract/extract_output.py b/pipelex/cogt/extract/extract_output.py
index 732b3475a..b21f1cece 100644
--- a/pipelex/cogt/extract/extract_output.py
+++ b/pipelex/cogt/extract/extract_output.py
@@ -1,47 +1,17 @@
from pydantic import Field
-from pipelex import log
-from pipelex.tools.misc.base_64_utils import save_base_64_str_to_binary_file
-from pipelex.tools.misc.file_utils import ensure_directory_exists, save_text_to_path
+from pipelex.cogt.extract.bounding_box import BoundingBox
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
from pipelex.tools.typing.pydantic_utils import CustomBaseModel, empty_list_factory_of
-class ExtractedImage(CustomBaseModel):
- image_id: str
- base_64: str | None = None
- caption: str | None = None
-
- def save_to_directory(self, directory: str):
- ensure_directory_exists(directory)
- log.verbose(f"Saving image to directory: {directory}")
- if base_64 := self.base_64:
- filename = self.image_id
- file_path = f"{directory}/{filename}"
- save_base_64_str_to_binary_file(base_64_str=base_64, file_path=file_path)
-
-
-class ExtractedImageFromPage(ExtractedImage):
- top_left_x: int | None = None
- top_left_y: int | None = None
- bottom_right_x: int | None = None
- bottom_right_y: int | None = None
+class ExtractedImageFromPage(GeneratedImageRawDetails):
+ bounding_box: BoundingBox | None = None
class Page(CustomBaseModel):
text: str | None = None
extracted_images: list[ExtractedImageFromPage] = Field(default_factory=empty_list_factory_of(ExtractedImageFromPage))
- page_view: ExtractedImageFromPage | None = None
-
- def save_to_directory(self, directory: str, page_text_file_name: str):
- ensure_directory_exists(directory)
- log.verbose(f"Saving page to directory: {directory}")
- if text := self.text:
- filename = page_text_file_name
- save_text_to_path(text=text, path=f"{directory}/{filename}")
- for image in self.extracted_images:
- image.save_to_directory(directory=directory)
- if page_view := self.page_view:
- page_view.save_to_directory(directory=directory)
class ExtractOutput(CustomBaseModel):
@@ -50,11 +20,3 @@ class ExtractOutput(CustomBaseModel):
@property
def concatenated_text(self) -> str:
return "\n".join([page.text for page in self.pages.values() if page.text])
-
- def save_to_directory(self, directory: str, page_text_file_name: str):
- ensure_directory_exists(directory)
- full_text = self.concatenated_text
- save_text_to_path(text=full_text, path=f"{directory}/full_text.txt")
- for page_number, page in self.pages.items():
- directory_for_page = f"{directory}/page_{page_number}"
- page.save_to_directory(directory=directory_for_page, page_text_file_name=page_text_file_name)
diff --git a/pipelex/cogt/image/generated_image.py b/pipelex/cogt/image/generated_image.py
index 4cbffcc61..7b426a21e 100644
--- a/pipelex/cogt/image/generated_image.py
+++ b/pipelex/cogt/image/generated_image.py
@@ -1,9 +1,68 @@
+from __future__ import annotations
+
+from typing import TYPE_CHECKING
+
+from pydantic import field_validator, model_validator
+
+from pipelex.cogt.exceptions import GeneratedImageError
+from pipelex.cogt.image.image_size import ImageSize
+from pipelex.tools.misc.base64_utils import extract_base64_str_from_base64_url_if_possible
+from pipelex.tools.misc.image_utils import ImageFormat, pil_image_to_bytes
from pipelex.tools.typing.pydantic_utils import CustomBaseModel
+if TYPE_CHECKING:
+ from PIL import Image
+
+ from pipelex.types import Self
+
+
+class GeneratedImageRawDetails(CustomBaseModel):
+ size: ImageSize | None
+
+ actual_url: str | None = None
+ base64_str: str | None = None
+ actual_url_or_prefixed_base64: str | None = None
+ actual_bytes: bytes | None = None
+
+ mime_type: str | None = None
+ output_format: str | None = None
+
+ caption: str | None = None
+
+ @field_validator("output_format", mode="before")
+ @classmethod
+ def validate_output_format(cls, output_format_str: str | None) -> str | None:
+ if output_format_str:
+ return ImageFormat(output_format_str).value
+ else:
+ return None
+
+ @model_validator(mode="after")
+ def validate_mime_type_or_output_format(self) -> Self:
+ if self.mime_type:
+ ImageFormat.raise_if_unsupported_mime_type(self.mime_type)
+ elif self.actual_url_or_prefixed_base64 and (
+ result := extract_base64_str_from_base64_url_if_possible(possibly_base64_url=self.actual_url_or_prefixed_base64)
+ ):
+ base64_str, base64_extracted_mime_type = result
+ ImageFormat.raise_if_unsupported_mime_type(base64_extracted_mime_type)
+ self.mime_type = base64_extracted_mime_type
+ self.base64_str = base64_str
+ elif self.output_format is None:
+ msg = "Either mime_type or output_format must be provided"
+ raise ValueError(msg)
+ return self
-class GeneratedImage(CustomBaseModel):
- # TODO: add image_format
- # image_format: str = "jpeg"
- url: str
- width: int
- height: int
+ @classmethod
+ def make_from_pil_image(cls, pil_image: Image.Image, output_format: ImageFormat) -> GeneratedImageRawDetails:
+ try:
+ width, height = pil_image.size
+ actual_bytes = pil_image_to_bytes(pil_image=pil_image, image_format=output_format)
+ return GeneratedImageRawDetails(
+ size=ImageSize(width=width, height=height),
+ actual_bytes=actual_bytes,
+ output_format=output_format,
+ )
+ except (ValueError, OSError, AttributeError) as exc:
+ msg = f"Failed to convert PIL image to GeneratedImageRawDetails: {exc}"
+ raise GeneratedImageError(msg) from exc
diff --git a/pipelex/cogt/image/image_size.py b/pipelex/cogt/image/image_size.py
new file mode 100644
index 000000000..93603d850
--- /dev/null
+++ b/pipelex/cogt/image/image_size.py
@@ -0,0 +1,6 @@
+from pipelex.tools.typing.pydantic_utils import CustomBaseModel
+
+
+class ImageSize(CustomBaseModel):
+ width: int
+ height: int
diff --git a/pipelex/cogt/image/prompt_image.py b/pipelex/cogt/image/prompt_image.py
index e06a5d24b..13bcf800a 100644
--- a/pipelex/cogt/image/prompt_image.py
+++ b/pipelex/cogt/image/prompt_image.py
@@ -2,16 +2,18 @@ import base64
from abc import ABC, abstractmethod
from typing import Literal, Union
-from pydantic import BaseModel
+from pydantic import BaseModel, field_validator
from typing_extensions import override
from pipelex.tools.misc.attribute_utils import AttributePolisher
+from pipelex.tools.misc.file_utils import MAX_FILE_PATH_LENGTH
from pipelex.tools.misc.filetype_utils import (
FileType,
detect_file_type_from_base64,
detect_file_type_from_bytes,
detect_file_type_from_path,
)
+from pipelex.tools.misc.http_utils import URL_MAX_LENGTH
from pipelex.tools.typing.pydantic_utils import CustomBaseModel
from pipelex.types import StrEnum
@@ -43,6 +45,14 @@ class PromptImage(BaseModel, ABC):
class PromptImagePath(PromptImage):
file_path: str
+ @field_validator("file_path", mode="before")
+ @classmethod
+ def validate_file_path(cls, file_path: str) -> str:
+ if len(file_path) > MAX_FILE_PATH_LENGTH:
+ msg = f"File path is too long: {file_path}"
+ raise ValueError(msg)
+ return file_path
+
def get_file_type(self) -> FileType:
return detect_file_type_from_path(self.file_path)
@@ -61,9 +71,17 @@ class PromptImagePath(PromptImage):
class PromptImageUrl(PromptImage):
url: str
+ @field_validator("url", mode="before")
+ @classmethod
+ def validate_url(cls, url: str) -> str:
+ if len(url) > URL_MAX_LENGTH:
+ msg = f"URL is too long: {url}"
+ raise ValueError(msg)
+ return url
+
@override
def __str__(self) -> str:
- truncated_url = AttributePolisher.get_truncated_value(name="url", value=self.url)
+ truncated_url = AttributePolisher.get_truncated_value(value=self.url)
return f"PromptImageUrl(url='{truncated_url!r}')"
@override
@@ -90,7 +108,7 @@ class PromptImageBase64(PromptImage):
@override
def __str__(self) -> str:
base_64_str = str(self.base_64)
- truncated_base_64 = AttributePolisher.get_truncated_value(name="base_64", value=base_64_str)
+ truncated_base_64 = AttributePolisher.get_truncated_value(value=base_64_str)
return f"PromptImageBase64(base_64={truncated_base_64!r})"
@override
diff --git a/pipelex/cogt/image/prompt_image_factory.py b/pipelex/cogt/image/prompt_image_factory.py
index 9d7d99039..4c0cdfb66 100644
--- a/pipelex/cogt/image/prompt_image_factory.py
+++ b/pipelex/cogt/image/prompt_image_factory.py
@@ -1,3 +1,5 @@
+import base64
+
from pipelex.cogt.exceptions import PromptImageFactoryError
from pipelex.cogt.image.prompt_image import (
PromptImage,
@@ -7,11 +9,7 @@ from pipelex.cogt.image.prompt_image import (
PromptImageTypedBase64,
PromptImageUrl,
)
-from pipelex.tools.misc.base_64_utils import (
- encode_to_base64_async,
- make_base_64_url,
- strip_base_64_str_if_needed,
-)
+from pipelex.tools.misc.base64_utils import make_base64_url, strip_base64_str_if_needed
from pipelex.tools.misc.file_fetch_utils import fetch_file_from_url_httpx_async
@@ -27,7 +25,7 @@ class PromptImageFactory:
if base_64:
return PromptImageBase64(base_64=base_64)
elif base_64_str:
- stripped_base_64_str = strip_base_64_str_if_needed(base_64_str)
+ stripped_base_64_str = strip_base64_str_if_needed(base_64_str)
return PromptImageBase64(base_64=stripped_base_64_str.encode())
elif file_path:
return PromptImagePath(file_path=file_path)
@@ -43,8 +41,8 @@ class PromptImageFactory:
prompt_image_url: PromptImageUrl,
) -> PromptImageBase64:
raw_image_bytes = await fetch_file_from_url_httpx_async(prompt_image_url.url)
- base_64 = await encode_to_base64_async(raw_image_bytes)
- return PromptImageBase64(base_64=base_64)
+ base64_bytes = base64.b64encode(raw_image_bytes)
+ return PromptImageBase64(base_64=base64_bytes)
@classmethod
async def make_promptimagebinary_from_url_async(
@@ -59,4 +57,4 @@ class PromptImageFactory:
cls,
prompt_image: PromptImageTypedBase64,
) -> str:
- return make_base_64_url(base_64=prompt_image.base_64, file_type=prompt_image.file_type)
+ return make_base64_url(base64_bytes=prompt_image.base_64, file_type=prompt_image.file_type)
diff --git a/pipelex/cogt/image/prompt_image_utils.py b/pipelex/cogt/image/prompt_image_utils.py
index 6e198195d..dd6bb1779 100644
--- a/pipelex/cogt/image/prompt_image_utils.py
+++ b/pipelex/cogt/image/prompt_image_utils.py
@@ -1,4 +1,5 @@
import asyncio
+import base64
from pipelex.cogt.exceptions import PromptImageFactoryError
from pipelex.cogt.image.prompt_image import (
@@ -10,12 +11,14 @@ from pipelex.cogt.image.prompt_image import (
PromptImageUrl,
)
from pipelex.cogt.image.prompt_image_factory import PromptImageFactory
-from pipelex.tools.misc.base_64_utils import (
- load_binary_as_base64_async,
- load_binary_async,
+from pipelex.hub import get_storage_provider
+from pipelex.tools.misc.base64_utils import load_binary_as_base64_async
+from pipelex.tools.misc.file_utils import load_binary_async
+from pipelex.tools.misc.filetype_utils import (
+ detect_file_type_from_base64,
+ detect_file_type_from_bytes,
)
-from pipelex.tools.misc.filetype_utils import detect_file_type_from_base64
-from pipelex.tools.misc.path_utils import clarify_path_or_url
+from pipelex.tools.misc.path_utils import clarify_path_or_url, is_pipelex_storage_uri
async def promptimage_to_b64_async(prompt_image: PromptImage) -> bytes:
@@ -54,20 +57,31 @@ async def promptimage_to_typed_bytes_or_url(
if isinstance(prompt_image, PromptImageBase64):
typed_bytes_or_url = prompt_image.make_prompt_image_typed_base64()
elif isinstance(prompt_image, PromptImageUrl):
- file_path, url = clarify_path_or_url(path_or_uri=prompt_image.url)
- if url:
- if is_http_url_enabled:
- typed_bytes_or_url = prompt_image.url
- else:
- image_bytes = await PromptImageFactory.make_promptimagebase64_from_url_async(prompt_image_url=prompt_image)
- file_type = detect_file_type_from_base64(image_bytes.base_64)
- typed_bytes_or_url = PromptImageTypedBase64(base_64=image_bytes.base_64, file_type=file_type)
- elif file_path:
- prompt_image_path = PromptImagePath(file_path=file_path)
- return await promptimage_to_typed_bytes_or_url(prompt_image=prompt_image_path, is_http_url_enabled=is_http_url_enabled)
+ # Check for Pipelex storage URI first
+ if is_pipelex_storage_uri(prompt_image.url):
+ storage_provider = get_storage_provider()
+ image_bytes = storage_provider.load(uri=prompt_image.url)
+ file_type = detect_file_type_from_bytes(image_bytes)
+ base64_bytes = base64.b64encode(image_bytes)
+ typed_bytes_or_url = PromptImageTypedBase64(base_64=base64_bytes, file_type=file_type)
else:
- msg = "No file path or URL found"
- raise PromptImageFactoryError(msg)
+ file_path, url = clarify_path_or_url(path_or_uri=prompt_image.url)
+ if url:
+ if is_http_url_enabled:
+ typed_bytes_or_url = prompt_image.url
+ else:
+ prompt_image_b64 = await PromptImageFactory.make_promptimagebase64_from_url_async(prompt_image_url=prompt_image)
+ file_type = detect_file_type_from_base64(prompt_image_b64.base_64)
+ typed_bytes_or_url = PromptImageTypedBase64(base_64=prompt_image_b64.base_64, file_type=file_type)
+ elif file_path:
+ prompt_image_path = PromptImagePath(file_path=file_path)
+ return await promptimage_to_typed_bytes_or_url(
+ prompt_image=prompt_image_path,
+ is_http_url_enabled=is_http_url_enabled,
+ )
+ else:
+ msg = "No file path or URL found"
+ raise PromptImageFactoryError(msg)
elif isinstance(prompt_image, PromptImagePath):
b64 = await load_binary_as_base64_async(prompt_image.file_path)
typed_bytes_or_url = PromptImageTypedBase64(base_64=b64, file_type=prompt_image.get_file_type())
diff --git a/pipelex/cogt/img_gen/img_gen_args_factory.py b/pipelex/cogt/img_gen/img_gen_args_factory.py
index 8913f3489..63be5d238 100644
--- a/pipelex/cogt/img_gen/img_gen_args_factory.py
+++ b/pipelex/cogt/img_gen/img_gen_args_factory.py
@@ -1,9 +1,18 @@
+"""Factory for building image generation API arguments from model rules.
+
+This module translates high-level image generation parameters into provider-specific
+API arguments using the taxonomy system defined in `img_gen_model_rules`.
+
+The factory uses the model's rules (a mapping of topics to taxonomies) to determine
+how each parameter should be formatted for the specific provider's API.
+"""
+
from typing import Any
from pipelex import log
from pipelex.cogt.exceptions import ImgGenParameterError
from pipelex.cogt.img_gen.img_gen_job import ImgGenJob
-from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, OutputFormat, Quality
+from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, Quality
from pipelex.cogt.img_gen.img_gen_model_rules import (
AspectRatioTaxonomy,
BackgroundTaxonomy,
@@ -11,14 +20,23 @@ from pipelex.cogt.img_gen.img_gen_model_rules import (
ImgGenModelRules,
InferenceTaxonomy,
NumImagesTaxonomy,
+ OutputFormatTaxonomy,
+ PromptTaxonomy,
SafetyCheckerTaxonomy,
SpecificTaxonomy,
)
from pipelex.config import get_config
from pipelex.plugins.openai.openai_img_gen_factory import OpenAIImgGenFactory
+from pipelex.tools.misc.image_utils import ImageFormat
class ImgGenArgsFactory:
+ """Factory that builds provider-specific API arguments from model rules and job parameters.
+
+ This factory iterates over the model's rules (topic -> taxonomy mappings) and uses
+ the appropriate taxonomy handler to generate the correct API arguments for each topic.
+ """
+
@classmethod
def make_args_for_model(
cls,
@@ -26,16 +44,34 @@ class ImgGenArgsFactory:
img_gen_job: ImgGenJob,
nb_images: int,
) -> dict[str, Any]:
+ """Build provider-specific API arguments from model rules and job parameters.
+
+ Iterates over each topic in the model's rules and applies the corresponding
+ taxonomy handler to generate the correct API arguments.
+
+ Args:
+ model_rules: Mapping of argument topics to their taxonomy values for the target model
+ img_gen_job: The image generation job containing prompt and parameters
+ nb_images: Number of images to generate
+
+ Returns:
+ Dictionary of API arguments ready to be passed to the provider's API
+ """
job_params = img_gen_job.job_params
- # Common args that don't need rules
- args_dict: dict[str, Any] = {
- "prompt": img_gen_job.img_gen_prompt.positive_text,
- "output_format": cls._convert_output_format(job_params.output_format),
- }
+ args_dict: dict[str, Any] = {}
for topic, taxonomy_value in model_rules.items():
match topic:
+ case ImgGenArgTopic.PROMPT:
+ prompt_taxonomy = PromptTaxonomy(taxonomy_value)
+ args_dict.update(
+ cls.make_args_from_prompt(
+ prompt_taxonomy=prompt_taxonomy,
+ positive_text=img_gen_job.img_gen_prompt.positive_text,
+ negative_text=img_gen_job.img_gen_prompt.negative_text,
+ )
+ )
case ImgGenArgTopic.NUM_IMAGES:
num_images_taxonomy = NumImagesTaxonomy(taxonomy_value)
args_dict.update(
@@ -44,13 +80,6 @@ class ImgGenArgsFactory:
nb_images=nb_images,
)
)
- case ImgGenArgTopic.SPECIFIC:
- specific_taxonomy = SpecificTaxonomy(taxonomy_value)
- args_dict.update(
- cls.make_args_from_specific(
- specific_taxonomy=specific_taxonomy,
- )
- )
case ImgGenArgTopic.ASPECT_RATIO:
aspect_ratio_taxonomy = AspectRatioTaxonomy(taxonomy_value)
args_dict.update(
@@ -59,6 +88,14 @@ class ImgGenArgsFactory:
aspect_ratio=job_params.aspect_ratio,
)
)
+ case ImgGenArgTopic.BACKGROUND:
+ background_taxonomy = BackgroundTaxonomy(taxonomy_value)
+ args_dict.update(
+ cls.make_args_from_background(
+ background_taxonomy=background_taxonomy,
+ background=job_params.background,
+ )
+ )
case ImgGenArgTopic.INFERENCE:
inference_taxonomy = InferenceTaxonomy(taxonomy_value)
args_dict.update(
@@ -79,50 +116,72 @@ class ImgGenArgsFactory:
safety_tolerance=job_params.safety_tolerance,
)
)
- case ImgGenArgTopic.BACKGROUND:
- background_taxonomy = BackgroundTaxonomy(taxonomy_value)
+ case ImgGenArgTopic.OUTPUT_FORMAT:
+ output_format_taxonomy = OutputFormatTaxonomy(taxonomy_value)
+ # TODO: test without imposing the format
args_dict.update(
- cls.make_args_from_background(
- background_taxonomy=background_taxonomy,
- background=job_params.background,
+ cls.make_args_from_output_format(
+ output_format_taxonomy=output_format_taxonomy,
+ output_format=job_params.output_format or ImageFormat.PNG,
+ )
+ )
+ case ImgGenArgTopic.SPECIFIC:
+ specific_taxonomy = SpecificTaxonomy(taxonomy_value)
+ args_dict.update(
+ cls.make_args_from_specific(
+ specific_taxonomy=specific_taxonomy,
)
)
return args_dict
- @classmethod
- def _convert_output_format(cls, output_format: OutputFormat) -> str:
- match output_format:
- case OutputFormat.PNG:
- return "png"
- case OutputFormat.JPG:
- return "jpeg"
- case OutputFormat.WEBP:
- msg = "Output format WebP is not supported"
- raise ImgGenParameterError(msg)
-
@classmethod
def make_args_from_num_images(cls, num_images_taxonomy: NumImagesTaxonomy, nb_images: int) -> dict[str, Any]:
+ """Map number of images to provider-specific parameter name."""
match num_images_taxonomy:
case NumImagesTaxonomy.FAL:
return {"num_images": nb_images}
case NumImagesTaxonomy.GPT:
return {"n": nb_images}
+ @classmethod
+ def make_args_from_prompt(
+ cls,
+ prompt_taxonomy: PromptTaxonomy,
+ positive_text: str,
+ negative_text: str | None,
+ ) -> dict[str, Any]:
+ """Map prompt parameters to provider-specific format."""
+ match prompt_taxonomy:
+ case PromptTaxonomy.POSITIVE_ONLY:
+ return {"prompt": positive_text}
+ case PromptTaxonomy.WITH_NEGATIVE:
+ args_dict: dict[str, Any] = {"prompt": positive_text}
+ if negative_text:
+ args_dict["negative_prompt"] = negative_text
+ return args_dict
+
@classmethod
def make_args_from_specific(cls, specific_taxonomy: SpecificTaxonomy) -> dict[str, Any]:
+ """Generate provider-specific parameters not covered by other taxonomies."""
match specific_taxonomy:
case SpecificTaxonomy.FAL:
return {"sync_mode": False}
@classmethod
def make_args_from_background(cls, background_taxonomy: BackgroundTaxonomy, background: Background) -> dict[str, Any]:
+ """Map background setting to provider-specific parameter."""
match background_taxonomy:
case BackgroundTaxonomy.GPT:
return {"background": background.value}
@classmethod
def make_args_from_aspect_ratio(cls, aspect_ratio_taxonomy: AspectRatioTaxonomy, aspect_ratio: AspectRatio) -> dict[str, Any]:
+ """Map aspect ratio to provider-specific parameter name and value format.
+
+ Raises:
+ ImgGenParameterError: If the aspect ratio is not supported by the target model
+ """
key: str
value: Any
match aspect_ratio_taxonomy:
@@ -168,7 +227,37 @@ class ImgGenArgsFactory:
raise ImgGenParameterError(msg)
case AspectRatioTaxonomy.GPT:
key = "size"
- value = OpenAIImgGenFactory.image_size_for_gpt_image_1(aspect_ratio)
+ value = OpenAIImgGenFactory.image_size_for_gpt_image_1(aspect_ratio)[0]
+ case AspectRatioTaxonomy.QWEN_IMAGE:
+ width: int
+ height: int
+ aspect_ratio_string: str
+ match aspect_ratio:
+ case AspectRatio.SQUARE:
+ width, height = 1328, 1328
+ aspect_ratio_string = "1:1"
+ case AspectRatio.LANDSCAPE_16_9:
+ width, height = 1664, 928
+ aspect_ratio_string = "16:9"
+ case AspectRatio.PORTRAIT_9_16:
+ width, height = 928, 1664
+ aspect_ratio_string = "9:16"
+ case AspectRatio.LANDSCAPE_4_3:
+ width, height = 1472, 1140
+ aspect_ratio_string = "4:3"
+ case AspectRatio.PORTRAIT_3_4:
+ width, height = 1140, 1472
+ aspect_ratio_string = "3:4"
+ case AspectRatio.LANDSCAPE_3_2:
+ width, height = 1584, 1056
+ aspect_ratio_string = "3:2"
+ case AspectRatio.PORTRAIT_2_3:
+ width, height = 1056, 1584
+ aspect_ratio_string = "2:3"
+ case AspectRatio.LANDSCAPE_21_9 | AspectRatio.PORTRAIT_9_21:
+ msg = f"Aspect ratio '{aspect_ratio}' is not supported by HuggingFace image generation model"
+ raise ImgGenParameterError(msg)
+ return {"width": width, "height": height, "aspect_ratio": aspect_ratio_string}
return {key: value}
@classmethod
@@ -180,6 +269,11 @@ class ImgGenArgsFactory:
guidance_scale: float | None,
is_raw: bool | None,
) -> dict[str, Any]:
+ """Map inference parameters (steps, quality, guidance) to provider-specific format.
+
+ If num_inference_steps is not provided, it will be derived from the quality setting
+ using the configured quality-to-steps mapping for the specific model.
+ """
args_dict: dict[str, Any] = {}
match inference_taxonomy:
case InferenceTaxonomy.SDXL_LIGHTNING:
@@ -189,18 +283,25 @@ class ImgGenArgsFactory:
# TODO: prevent this when building presets and params
log.warning(f"Number of inference steps {num_inference_steps} for SDXL Lightning must be one of {acceptable_steps}")
num_inference_steps = 4
- args_dict["num_inference_steps"] = num_inference_steps
else:
- sdxl_lightning_map_quality_to_steps = get_config().cogt.img_gen_config.fal_config.sdxl_lightning_map_quality_to_steps
- num_inference_steps = sdxl_lightning_map_quality_to_steps[quality or Quality.MEDIUM]
- args_dict["num_inference_steps"] = num_inference_steps
+ num_inference_steps = get_config().cogt.img_gen_config.get_num_inference_steps(
+ model_name="sdxl_lightning", quality=quality or Quality.MEDIUM
+ )
+ args_dict["num_inference_steps"] = num_inference_steps
case InferenceTaxonomy.FLUX:
- if num_inference_steps:
- args_dict["num_inference_steps"] = num_inference_steps
- else:
- flux_map_quality_to_steps = get_config().cogt.img_gen_config.fal_config.flux_map_quality_to_steps
- num_inference_steps = flux_map_quality_to_steps[quality or Quality.MEDIUM]
- args_dict["num_inference_steps"] = num_inference_steps
+ if num_inference_steps is None:
+ num_inference_steps = get_config().cogt.img_gen_config.get_num_inference_steps(
+ model_name="flux", quality=quality or Quality.MEDIUM
+ )
+ args_dict["num_inference_steps"] = num_inference_steps
+ if guidance_scale:
+ args_dict["guidance_scale"] = guidance_scale
+ case InferenceTaxonomy.QWEN_IMAGE:
+ if num_inference_steps is None:
+ num_inference_steps = get_config().cogt.img_gen_config.get_num_inference_steps(
+ model_name="qwen_image", quality=quality or Quality.MEDIUM
+ )
+ args_dict["num_inference_steps"] = num_inference_steps
if guidance_scale:
args_dict["guidance_scale"] = guidance_scale
case InferenceTaxonomy.FLUX_11_ULTRA:
@@ -218,6 +319,11 @@ class ImgGenArgsFactory:
is_moderated: bool | None,
safety_tolerance: int | None,
) -> dict[str, Any]:
+ """Map safety checker settings to provider-specific parameters.
+
+ Only generates arguments if the model supports safety checker configuration
+ (taxonomy is AVAILABLE) and the corresponding parameters are provided.
+ """
args_dict: dict[str, Any] = {}
match safety_checker_taxonomy:
case SafetyCheckerTaxonomy.UNAVAILABLE:
@@ -228,3 +334,45 @@ class ImgGenArgsFactory:
if safety_tolerance is not None:
args_dict["safety_tolerance"] = safety_tolerance
return args_dict
+
+ @classmethod
+ def make_args_from_output_format(
+ cls,
+ output_format_taxonomy: OutputFormatTaxonomy,
+ output_format: ImageFormat,
+ ) -> dict[str, Any]:
+ """Map output format to provider-specific parameter name and validate support.
+
+ Raises:
+ ImgGenParameterError: If the output format is not supported by the target model
+ """
+ key: str
+ value: str
+ match output_format_taxonomy:
+ case OutputFormatTaxonomy.SDXL:
+ key = "format"
+ match output_format:
+ case ImageFormat.PNG:
+ value = "png"
+ case ImageFormat.JPEG:
+ value = "jpeg"
+ case ImageFormat.WEBP:
+ msg = "Output format WebP is not supported by SDXL image generation models"
+ raise ImgGenParameterError(msg)
+ case OutputFormatTaxonomy.FLUX_1:
+ key = "output_format"
+ match output_format:
+ case ImageFormat.PNG:
+ value = "png"
+ case ImageFormat.JPEG:
+ value = "jpeg"
+ case ImageFormat.WEBP:
+ msg = "Output format WebP is not supported by Flux 1 image generation models"
+ raise ImgGenParameterError(msg)
+ case OutputFormatTaxonomy.FLUX_2:
+ key = "output_format"
+ value = output_format.value
+ case OutputFormatTaxonomy.GPT:
+ key = "output_format"
+ value = output_format.value
+ return {key: value}
diff --git a/pipelex/cogt/img_gen/img_gen_job_components.py b/pipelex/cogt/img_gen/img_gen_job_components.py
index 909cff63a..bd3c201d8 100644
--- a/pipelex/cogt/img_gen/img_gen_job_components.py
+++ b/pipelex/cogt/img_gen/img_gen_job_components.py
@@ -3,6 +3,7 @@ from typing import Literal
from pydantic import BaseModel, Field, model_validator
from pipelex.system.configuration.config_model import ConfigModel
+from pipelex.tools.misc.image_utils import ImageFormat
from pipelex.types import Self, StrEnum
@@ -18,12 +19,6 @@ class AspectRatio(StrEnum):
PORTRAIT_9_21 = "portrait_9_21"
-class OutputFormat(StrEnum):
- PNG = "png"
- JPG = "jpg"
- WEBP = "webp"
-
-
class Quality(StrEnum):
LOW = "low"
MEDIUM = "medium"
@@ -35,6 +30,14 @@ class Background(StrEnum):
OPAQUE = "opaque"
AUTO = "auto"
+ @property
+ def is_certainly_transparent(self) -> bool:
+ match self:
+ case Background.TRANSPARENT:
+ return True
+ case Background.OPAQUE | Background.AUTO:
+ return False
+
class ImgGenJobParams(BaseModel):
aspect_ratio: AspectRatio = Field(strict=False)
@@ -45,7 +48,7 @@ class ImgGenJobParams(BaseModel):
is_moderated: bool | None = None
safety_tolerance: int | None = Field(default=None, ge=1, le=6)
is_raw: bool | None = None
- output_format: OutputFormat = Field(strict=False)
+ output_format: ImageFormat | None = Field(default=None, strict=False)
seed: int | None = Field(default=None, ge=0)
@model_validator(mode="after")
@@ -54,12 +57,13 @@ class ImgGenJobParams(BaseModel):
case Background.OPAQUE | Background.AUTO:
pass
case Background.TRANSPARENT:
- match self.output_format:
- case OutputFormat.PNG:
- pass
- case OutputFormat.JPG | OutputFormat.WEBP:
- msg = "ImgGenJobParams cannot have a non-PNG output format when background is transparent."
- raise ValueError(msg)
+ if not self.output_format:
+ msg = "ImgGenJobParams cannot have a transparent background without setting output_format (to PNG)."
+ raise ValueError(msg)
+
+ if not self.output_format.is_transparent_compatible:
+ msg = "ImgGenJobParams transparent background requires a transparency-compatible output format (PNG)."
+ raise ValueError(msg)
return self
@@ -72,7 +76,6 @@ class ImgGenJobParamsDefaults(ConfigModel):
is_moderated: bool | None = None
safety_tolerance: int = Field(..., ge=1, le=6)
is_raw: bool | None = None
- output_format: OutputFormat = Field(strict=False)
seed: int | Literal["auto"]
def make_img_gen_job_params(self) -> ImgGenJobParams:
@@ -81,6 +84,9 @@ class ImgGenJobParamsDefaults(ConfigModel):
seed = None
else:
seed = self.seed
+ output_format: ImageFormat | None = None
+ if self.background.is_certainly_transparent:
+ output_format = ImageFormat.PNG
return ImgGenJobParams(
aspect_ratio=self.aspect_ratio,
background=self.background,
@@ -90,7 +96,7 @@ class ImgGenJobParamsDefaults(ConfigModel):
is_moderated=self.is_moderated,
safety_tolerance=self.safety_tolerance,
is_raw=self.is_raw,
- output_format=self.output_format,
+ output_format=output_format,
seed=seed,
)
diff --git a/pipelex/cogt/img_gen/img_gen_job_factory.py b/pipelex/cogt/img_gen/img_gen_job_factory.py
index e358c887f..3ac212896 100644
--- a/pipelex/cogt/img_gen/img_gen_job_factory.py
+++ b/pipelex/cogt/img_gen/img_gen_job_factory.py
@@ -2,7 +2,7 @@ from pipelex.cogt.img_gen.img_gen_job import ImgGenJob
from pipelex.cogt.img_gen.img_gen_job_components import ImgGenJobConfig, ImgGenJobParams, ImgGenJobReport
from pipelex.cogt.img_gen.img_gen_prompt import ImgGenPrompt
from pipelex.config import get_config
-from pipelex.pipeline.job_metadata import JobCategory, JobMetadata
+from pipelex.pipeline.job_metadata import JobMetadata
class ImgGenJobFactory:
@@ -10,14 +10,11 @@ class ImgGenJobFactory:
def make_img_gen_job_from_prompt(
cls,
img_gen_prompt: ImgGenPrompt,
+ job_metadata: JobMetadata,
img_gen_job_params: ImgGenJobParams | None = None,
img_gen_job_config: ImgGenJobConfig | None = None,
- job_metadata: JobMetadata | None = None,
) -> ImgGenJob:
img_gen_config = get_config().cogt.img_gen_config
- job_metadata = job_metadata or JobMetadata(
- job_category=JobCategory.IMG_GEN_JOB,
- )
job_params = img_gen_job_params or img_gen_config.make_default_img_gen_job_params()
job_config = img_gen_job_config or img_gen_config.img_gen_job_config
job_report = ImgGenJobReport()
@@ -34,15 +31,13 @@ class ImgGenJobFactory:
def make_img_gen_job_from_prompt_contents(
cls,
positive_text: str,
+ negative_text: str | None,
+ job_metadata: JobMetadata,
img_gen_job_params: ImgGenJobParams | None = None,
img_gen_job_config: ImgGenJobConfig | None = None,
- job_metadata: JobMetadata | None = None,
) -> ImgGenJob:
img_gen_config = get_config().cogt.img_gen_config
- job_metadata = job_metadata or JobMetadata(
- job_category=JobCategory.IMG_GEN_JOB,
- )
- img_gen_prompt = ImgGenPrompt(positive_text=positive_text)
+ img_gen_prompt = ImgGenPrompt(positive_text=positive_text, negative_text=negative_text)
job_params = img_gen_job_params or img_gen_config.make_default_img_gen_job_params()
job_config = img_gen_job_config or img_gen_config.img_gen_job_config
job_report = ImgGenJobReport()
diff --git a/pipelex/cogt/img_gen/img_gen_model_rules.py b/pipelex/cogt/img_gen/img_gen_model_rules.py
index ae9fb6b8b..542c9aebd 100644
--- a/pipelex/cogt/img_gen/img_gen_model_rules.py
+++ b/pipelex/cogt/img_gen/img_gen_model_rules.py
@@ -1,43 +1,139 @@
+"""Image generation model rules and taxonomy definitions.
+
+This module defines the parameter mapping strategies (taxonomies) for different image generation
+model backends. Each taxonomy enum specifies HOW a high-level parameter should be translated
+into the specific API parameters expected by different providers (Fal, OpenAI, etc.).
+
+For example, to request a square image:
+- Flux models use `image_size: "square_hd"`
+- GPT models use `size: "1024x1024"`
+
+The taxonomy system allows the factory to generate the correct API arguments for each model
+without hardcoding provider-specific logic throughout the codebase.
+"""
+
from pipelex.types import StrEnum
class ImgGenArgTopic(StrEnum):
+ """Topics/categories of arguments that can be configured for image generation.
+
+ Each topic represents a parameter category that may have different mapping strategies
+ depending on the model backend being used.
+ """
+
+ PROMPT = "prompt"
NUM_IMAGES = "num_images"
ASPECT_RATIO = "aspect_ratio"
INFERENCE = "inference"
SAFETY_CHECKER = "safety_checker"
BACKGROUND = "background"
+ OUTPUT_FORMAT = "output_format"
SPECIFIC = "specific"
class NumImagesTaxonomy(StrEnum):
+ """Taxonomy for mapping the number of images parameter.
+
+ Different providers use different parameter names:
+ - FAL: uses `num_images`
+ - GPT: uses `n`
+ """
+
FAL = "fal"
GPT = "gpt"
class SpecificTaxonomy(StrEnum):
+ """Taxonomy for provider-specific parameters not covered by other taxonomies.
+
+ - FAL: includes settings like `sync_mode`
+ """
+
FAL = "fal"
+class PromptTaxonomy(StrEnum):
+ """Taxonomy for prompt parameters.
+
+ Different models may use different parameter names and support different prompt types:
+ - POSITIVE_ONLY: uses `prompt` for positive text, no negative prompt support
+ - WITH_NEGATIVE: uses `prompt` for positive text and `negative_prompt` for negative text
+ """
+
+ POSITIVE_ONLY = "positive_only"
+ WITH_NEGATIVE = "with_negative"
+
+
class AspectRatioTaxonomy(StrEnum):
+ """Taxonomy for mapping aspect ratio parameters.
+
+ Different providers use different parameter names and value formats:
+ - FLUX: uses `image_size` with values like "square_hd", "landscape_4_3"
+ - FLUX_11_ULTRA: uses `aspect_ratio` with values like "1:1", "4:3"
+ - GPT: uses `size` with pixel dimensions like "1024x1024"
+ - QWEN_IMAGE: uses `width` and `height` with pixel dimensions mapped from aspect ratios
+ (e.g., "1:1" -> 1328x1328, "16:9" -> 1664x928, "9:16" -> 928x1664,
+ "4:3" -> 1472x1140, "3:4" -> 1140x1472, "3:2" -> 1584x1056, "2:3" -> 1056x1584)
+ """
+
FLUX = "flux"
FLUX_11_ULTRA = "flux_11_ultra"
GPT = "gpt"
+ QWEN_IMAGE = "qwen_image"
class InferenceTaxonomy(StrEnum):
+ """Taxonomy for mapping inference-related parameters (steps, quality, guidance).
+
+ Different models have different inference parameters and quality mappings:
+ - SDXL_LIGHTNING: uses `num_inference_steps` (valid: 1, 2, 4, 8)
+ - FLUX: uses `num_inference_steps` and `guidance_scale`
+ - FLUX_11_ULTRA: uses `raw` mode
+ - GPT: uses `quality` ("low", "medium", "high")
+ - QWEN_IMAGE: uses `num_inference_steps` and `guidance_scale`
+ """
+
SDXL_LIGHTNING = "sdxl_lightning"
FLUX = "flux"
FLUX_11_ULTRA = "flux_11_ultra"
GPT = "gpt"
+ QWEN_IMAGE = "qwen_image"
class SafetyCheckerTaxonomy(StrEnum):
+ """Taxonomy for safety checker availability.
+
+ - AVAILABLE: model supports `enable_safety_checker` and `safety_tolerance` parameters
+ - UNAVAILABLE: model does not expose safety checker configuration
+ """
+
AVAILABLE = "available"
UNAVAILABLE = "unavailable"
class BackgroundTaxonomy(StrEnum):
+ """Taxonomy for background transparency/removal parameters.
+
+ - GPT: supports `background` parameter for transparency control
+ """
+
+ GPT = "gpt"
+
+
+class OutputFormatTaxonomy(StrEnum):
+ """Taxonomy for output format parameters.
+
+ Different models use different parameter names and support different formats:
+ - SDXL: uses `format`, supports png/jpeg only
+ - FLUX_1: uses `output_format`, supports png/jpeg only
+ - FLUX_2: uses `output_format`, supports png/jpeg/webp
+ - GPT: uses `output_format`, supports png/jpeg/webp
+ """
+
+ SDXL = "sdxl"
+ FLUX_1 = "flux_1"
+ FLUX_2 = "flux_2"
GPT = "gpt"
diff --git a/pipelex/cogt/img_gen/img_gen_prompt.py b/pipelex/cogt/img_gen/img_gen_prompt.py
index e9b1b7216..5112931e2 100644
--- a/pipelex/cogt/img_gen/img_gen_prompt.py
+++ b/pipelex/cogt/img_gen/img_gen_prompt.py
@@ -9,6 +9,7 @@ from pipelex.tools.misc.json_utils import json_str
class ImgGenPrompt(BaseModel):
positive_text: str
+ negative_text: str | None = None
def validate_before_execution(self):
reaction = runtime_manager.problem_reactions.job
diff --git a/pipelex/cogt/img_gen/img_gen_worker_abstract.py b/pipelex/cogt/img_gen/img_gen_worker_abstract.py
index 1ee135953..ce3733a85 100644
--- a/pipelex/cogt/img_gen/img_gen_worker_abstract.py
+++ b/pipelex/cogt/img_gen/img_gen_worker_abstract.py
@@ -3,7 +3,7 @@ from abc import abstractmethod
from typing_extensions import override
from pipelex import log
-from pipelex.cogt.image.generated_image import GeneratedImage
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
from pipelex.cogt.img_gen.img_gen_job import ImgGenJob
from pipelex.cogt.inference.inference_worker_abstract import InferenceWorkerAbstract
from pipelex.cogt.model_backends.model_spec import InferenceModelSpec
@@ -36,7 +36,7 @@ class ImgGenWorkerAbstract(InferenceWorkerAbstract):
async def gen_image(
self,
img_gen_job: ImgGenJob,
- ) -> GeneratedImage:
+ ) -> GeneratedImageRawDetails:
log.dev(f"✨ {self.desc} ✨")
# Verify that the job is valid
@@ -65,14 +65,14 @@ class ImgGenWorkerAbstract(InferenceWorkerAbstract):
async def _gen_image(
self,
img_gen_job: ImgGenJob,
- ) -> GeneratedImage:
+ ) -> GeneratedImageRawDetails:
pass
async def gen_image_list(
self,
img_gen_job: ImgGenJob,
nb_images: int,
- ) -> list[GeneratedImage]:
+ ) -> list[GeneratedImageRawDetails]:
log.dev(f"✨ {self.desc} ✨")
# Verify that the job is valid
@@ -102,5 +102,5 @@ class ImgGenWorkerAbstract(InferenceWorkerAbstract):
self,
img_gen_job: ImgGenJob,
nb_images: int,
- ) -> list[GeneratedImage]:
+ ) -> list[GeneratedImageRawDetails]:
pass
diff --git a/pipelex/cogt/img_gen/img_gen_worker_factory.py b/pipelex/cogt/img_gen/img_gen_worker_factory.py
index bc5105fc6..6e388d2bd 100644
--- a/pipelex/cogt/img_gen/img_gen_worker_factory.py
+++ b/pipelex/cogt/img_gen/img_gen_worker_factory.py
@@ -1,4 +1,5 @@
import importlib.util
+from typing import TYPE_CHECKING
from pipelex.cogt.exceptions import MissingDependencyError
from pipelex.cogt.img_gen.img_gen_worker_abstract import ImgGenWorkerAbstract
@@ -65,6 +66,33 @@ class ImgGenWorkerFactory:
inference_model=inference_model,
reporting_delegate=reporting_delegate,
)
+ case "huggingface_img_gen":
+ from huggingface_hub import AsyncInferenceClient # noqa: PLC0415
+
+ from pipelex.plugins.huggingface.huggingface_factory import HuggingFaceFactory # noqa: PLC0415
+ from pipelex.plugins.huggingface.huggingface_img_gen_worker import HuggingFaceImgGenWorker # noqa: PLC0415
+
+ if TYPE_CHECKING:
+ from huggingface_hub.inference._providers import PROVIDER_OR_POLICY_T # noqa: PLC0415
+
+ provider_literal: PROVIDER_OR_POLICY_T
+ if provider_str := plugin.variant:
+ provider_literal = HuggingFaceFactory.make_huggingface_inference_provider(provider_str=provider_str)
+ else:
+ provider_literal = "auto"
+ img_gen_sdk_instance = plugin_sdk_registry.get_sdk_instance(plugin=plugin) or plugin_sdk_registry.set_sdk_instance(
+ plugin=plugin,
+ sdk_instance=AsyncInferenceClient(
+ provider=provider_literal,
+ token=backend.api_key,
+ ),
+ )
+
+ img_gen_worker = HuggingFaceImgGenWorker(
+ sdk_instance=img_gen_sdk_instance,
+ inference_model=inference_model,
+ reporting_delegate=reporting_delegate,
+ )
case "openai_img_gen":
from pipelex.plugins.openai.openai_client_factory import OpenAIClientFactory # noqa: PLC0415
from pipelex.plugins.openai.openai_img_gen_worker import OpenAIImgGenWorker # noqa: PLC0415
diff --git a/pipelex/cogt/inference/inference_constants.py b/pipelex/cogt/inference/inference_constants.py
index 2399b68bb..a4f973647 100644
--- a/pipelex/cogt/inference/inference_constants.py
+++ b/pipelex/cogt/inference/inference_constants.py
@@ -5,6 +5,7 @@ class InferenceOutputType(StrEnum):
TEXT = "Text"
OBJECT = "Object"
IMAGE = "Image"
+ PAGES = "Pages"
@classmethod
def is_text(cls, output_desc: str) -> bool:
@@ -19,3 +20,5 @@ class InferenceOutputType(StrEnum):
return False
case cls.IMAGE:
return False
+ case cls.PAGES:
+ return False
diff --git a/pipelex/cogt/llm/llm_job_factory.py b/pipelex/cogt/llm/llm_job_factory.py
index 468d6cffd..4730fdb34 100644
--- a/pipelex/cogt/llm/llm_job_factory.py
+++ b/pipelex/cogt/llm/llm_job_factory.py
@@ -10,22 +10,13 @@ class LLMJobFactory:
def make_llm_job(
cls,
llm_prompt: LLMPrompt,
+ job_metadata: JobMetadata,
llm_job_params: LLMJobParams,
llm_job_config: LLMJobConfig | None = None,
- job_metadata: JobMetadata | None = None,
) -> LLMJob:
config = get_config()
llm_config = config.cogt.llm_config
- if job_metadata:
- job_metadata.update(
- JobMetadata(
- job_category=JobCategory.LLM_JOB,
- ),
- )
- else:
- job_metadata = JobMetadata(
- job_category=JobCategory.LLM_JOB,
- )
+ job_metadata.job_category = JobCategory.LLM_JOB
job_params = llm_job_params
job_config = llm_job_config or llm_config.llm_job_config
diff --git a/pipelex/cogt/llm/llm_worker_abstract.py b/pipelex/cogt/llm/llm_worker_abstract.py
index 03b3eff55..4b1cc07b6 100644
--- a/pipelex/cogt/llm/llm_worker_abstract.py
+++ b/pipelex/cogt/llm/llm_worker_abstract.py
@@ -121,7 +121,7 @@ class LLMWorkerAbstract(InferenceWorkerAbstract, ABC):
case InferenceOutputType.OBJECT:
# Always use full class name in span name, exporter will redact if needed
output_desc = output_class_name or output_type
- case InferenceOutputType.IMAGE:
+ case InferenceOutputType.IMAGE | InferenceOutputType.PAGES:
msg = "Image output type is not supported for LLM span"
raise NotImplementedError(msg)
diff --git a/pipelex/cogt/model_backends/model_spec.py b/pipelex/cogt/model_backends/model_spec.py
index 627b57cc3..c40878bd0 100644
--- a/pipelex/cogt/model_backends/model_spec.py
+++ b/pipelex/cogt/model_backends/model_spec.py
@@ -17,6 +17,7 @@ class InferenceModelSpec(ConfigModel):
backend_name: str
name: str
sdk: str
+ variant: str | None = None
model_type: ModelType = Field(strict=False)
model_id: str
inputs: list[str] = Field(default_factory=list)
diff --git a/pipelex/cogt/model_backends/model_spec_factory.py b/pipelex/cogt/model_backends/model_spec_factory.py
index 340c7384c..22a669c5e 100644
--- a/pipelex/cogt/model_backends/model_spec_factory.py
+++ b/pipelex/cogt/model_backends/model_spec_factory.py
@@ -18,11 +18,12 @@ BackendModelSpecs = dict[str, Any]
class InferenceModelSpecBlueprint(ConfigModel):
enabled: bool = True
sdk: str
+ variant: str | None = None
model_type: ModelType = Field(default=ModelType.LLM, strict=False)
model_id: str | None = None
inputs: list[str] = Field(default_factory=list)
outputs: list[str] = Field(default_factory=list)
- costs: CostsByCategoryDict = Field(strict=False)
+ costs: CostsByCategoryDict | None = Field(default=None, strict=False)
structure_method: StructureMethod | None = Field(default=None, strict=False)
max_tokens: int | None = None
max_prompt_images: int | None = None
@@ -87,11 +88,12 @@ class InferenceModelSpecFactory(BaseModel):
backend_name=backend_name,
name=name,
sdk=blueprint.sdk,
+ variant=blueprint.variant,
model_type=blueprint.model_type,
model_id=blueprint.model_id or name,
inputs=blueprint.inputs,
outputs=blueprint.outputs,
- costs=blueprint.costs,
+ costs=blueprint.costs or {},
structure_method=blueprint.structure_method,
max_tokens=blueprint.max_tokens,
max_prompt_images=blueprint.max_prompt_images,
diff --git a/pipelex/core/memory/working_memory_factory.py b/pipelex/core/memory/working_memory_factory.py
index 320dccf24..5db72394d 100644
--- a/pipelex/core/memory/working_memory_factory.py
+++ b/pipelex/core/memory/working_memory_factory.py
@@ -81,18 +81,14 @@ class WorkingMemoryFactory(BaseModel):
@classmethod
def create_mock_content(cls, typed_named_stuff_spec: TypedNamedStuffSpec) -> StuffContent:
"""Helper method to create mock content for a typed_named_stuff_spec."""
- if typed_named_stuff_spec.structure_class:
- # Create mock object using polyfactory
- class MockFactory(ModelFactory[typed_named_stuff_spec.structure_class]): # type: ignore[name-defined]
- __model__ = typed_named_stuff_spec.structure_class
- __check_model__ = True
- __use_examples__ = True
- __allow_none_optionals__ = False # Ensure Optional fields always get values
-
- return MockFactory.build(factory_use_construct=True) # type: ignore[no-any-return]
-
- # Fallback to text content
- return TextContent(text=f"DRY RUN: Mock content for '{typed_named_stuff_spec.variable_name}' ({typed_named_stuff_spec.concept.code})")
+
+ class MockFactory(ModelFactory[typed_named_stuff_spec.structure_class]): # type: ignore[name-defined]
+ __model__ = typed_named_stuff_spec.structure_class
+ __check_model__ = True
+ __use_examples__ = True
+ __allow_none_optionals__ = False # Ensure Optional fields always get values
+
+ return MockFactory.build(factory_use_construct=True) # type: ignore[no-any-return]
@classmethod
def make_for_dry_run(cls, needed_inputs: list[TypedNamedStuffSpec]) -> "WorkingMemory":
diff --git a/pipelex/core/pipes/pipe_abstract.py b/pipelex/core/pipes/pipe_abstract.py
index e266812e6..7c261e351 100644
--- a/pipelex/core/pipes/pipe_abstract.py
+++ b/pipelex/core/pipes/pipe_abstract.py
@@ -406,11 +406,9 @@ class PipeAbstract(ABC, BaseModel):
# otel_context is passed separately because it must always be set explicitly
# (even when None in dry mode) to avoid inheriting stale parent context
child_metadata = job_metadata.copy_with_update(
- updated_metadata=JobMetadata(
- pipe_code=self.code,
- pipe_run_id=this_pipe_run_id,
- ),
otel_context=this_otel_context,
+ pipe_code=self.code,
+ pipe_run_id=this_pipe_run_id,
)
# Run pipe ------------------------------------------------------------
diff --git a/pipelex/core/stuffs/exceptions.py b/pipelex/core/stuffs/exceptions.py
index 60078562d..f16010acb 100644
--- a/pipelex/core/stuffs/exceptions.py
+++ b/pipelex/core/stuffs/exceptions.py
@@ -1,15 +1,23 @@
from pipelex.base_exceptions import PipelexError
-class StuffArtefactError(PipelexError):
+class StuffError(PipelexError):
pass
-class StuffArtefactReservedFieldError(StuffArtefactError):
+class StuffFactoryError(StuffError):
pass
-class StuffError(PipelexError):
+class StuffContentFactoryError(StuffError):
+ pass
+
+
+class StuffArtefactError(StuffError):
+ pass
+
+
+class StuffArtefactReservedFieldError(StuffArtefactError):
pass
diff --git a/pipelex/core/stuffs/image_content.py b/pipelex/core/stuffs/image_content.py
index d5fc5d3f5..9a7d9c303 100644
--- a/pipelex/core/stuffs/image_content.py
+++ b/pipelex/core/stuffs/image_content.py
@@ -1,27 +1,26 @@
-import base64
import json
-from io import BytesIO
-from PIL import Image
+from rich.console import Group
+from rich.markdown import Markdown
+from rich.text import Text
from typing_extensions import override
-from pipelex.cogt.exceptions import ImageContentError
-from pipelex.cogt.extract.extract_output import ExtractedImage
+from pipelex.cogt.image.image_size import ImageSize
from pipelex.cogt.templating.template_category import TemplateCategory
from pipelex.core.stuffs.stuff_content import StuffContent
from pipelex.tools.jinja2.jinja2_rendering import render_jinja2_sync
-from pipelex.tools.misc.base_64_utils import prefixed_base64_str_from_base64_str, save_base_64_str_to_binary_file
-from pipelex.tools.misc.file_utils import ensure_directory_exists, get_incremental_file_path, save_text_to_path
-from pipelex.tools.misc.filetype_utils import detect_file_type_from_base64
-from pipelex.tools.misc.path_utils import InterpretedPathOrUrl, interpret_path_or_url
-from pipelex.types import Self
+from pipelex.tools.misc.path_utils import interpret_path_or_url
+from pipelex.tools.misc.pretty import PrettyPrintable
class ImageContent(StuffContent):
url: str
+ display_link: str | None = None
source_prompt: str | None = None
+ source_negative_prompt: str | None = None
caption: str | None = None
- base_64: str | None = None
+ mime_type: str | None = None
+ size: ImageSize | None = None
@property
@override
@@ -52,68 +51,61 @@ class ImageContent(StuffContent):
def rendered_json(self) -> str:
return json.dumps({"image_url": self.url, "source_prompt": self.source_prompt})
- @classmethod
- def make_from_extracted_image(cls, extracted_image: ExtractedImage) -> Self:
- if base_64 := extracted_image.base_64:
- # Check if it's already a prefixed base64 string
- if base_64.startswith("data:"):
- prefixed_base64_str = base_64
- else:
- prefixed_base64_str = prefixed_base64_str_from_base64_str(b64_str=base_64)
- return cls(
- url=prefixed_base64_str,
- base_64=extracted_image.base_64,
- caption=extracted_image.caption,
- )
- else:
- msg = f"Base 64 is required for image content: {extracted_image}"
- raise ImageContentError(msg)
-
- @classmethod
- def make_from_image(cls, image: Image.Image) -> Self:
- buffer = BytesIO()
- image.save(buffer, format="PNG")
- base_64 = base64.b64encode(buffer.getvalue()).decode("utf-8")
- prefixed_base64_str = prefixed_base64_str_from_base64_str(b64_str=base_64)
- return cls(
- url=prefixed_base64_str,
- base_64=base_64,
- )
+ @override
+ def rendered_pretty(self, title: str | None = None, depth: int = 0) -> PrettyPrintable:
+ group = Group()
+
+ # title indicating it's an image:
+ title_text = Text("Image:", style="bold cyan")
+ group.renderables.append(title_text)
+
+ # URL with clickable markdown link
+ display_url = f"{self.url[:200]}…" if len(self.url) > 201 else self.url
+ url_markdown = Markdown(f"**URL:** [{display_url}]({self.url})")
+ group.renderables.append(url_markdown)
+
+ # Display link if present
+ if self.display_link is not None:
+ link_text = Text()
+ link_text.append("Display: ", style="bold")
+ link_text.append("Open Image", style=f"cyan link {self.display_link}")
+ group.renderables.append(link_text)
+
+ # Caption if present
+ if self.caption:
+ caption_text = Text()
+ caption_text.append("Caption: ", style="bold")
+ caption_text.append(self.caption, style="yellow italic")
+ group.renderables.append(caption_text)
+
+ # Size if present
+ if self.size:
+ size_text = Text()
+ size_text.append("Size: ", style="bold")
+ size_text.append(f"{self.size.width}x{self.size.height}", style="dim")
+ group.renderables.append(size_text)
+
+ # Source prompt if present
+ if self.source_prompt:
+ group.renderables.append(Text()) # Add spacing
+ prompt_text = Text()
+ prompt_text.append("Source Prompt: ", style="bold")
+ prompt_text.append(self.source_prompt, style="dim italic")
+ group.renderables.append(prompt_text)
+
+ # Source negative prompt if present
+ if self.source_negative_prompt:
+ group.renderables.append(Text()) # Add spacing
+ negative_prompt_text = Text()
+ negative_prompt_text.append("Source Negative Prompt: ", style="bold")
+ negative_prompt_text.append(self.source_negative_prompt, style="dim italic")
+ group.renderables.append(negative_prompt_text)
+
+ # MIME type if present
+ if self.mime_type:
+ mime_type_text = Text()
+ mime_type_text.append("MIME Type: ", style="bold")
+ mime_type_text.append(self.mime_type, style="dim")
+ group.renderables.append(mime_type_text)
- def save_to_directory(self, directory: str, base_name: str | None = None, extension: str | None = None):
- ensure_directory_exists(directory)
- base_name = base_name or "img"
- if (base_64 := self.base_64) and not extension:
- match interpret_path_or_url(path_or_uri=self.url):
- case InterpretedPathOrUrl.FILE_NAME:
- parts = self.url.rsplit(".", 1)
- base_name = parts[0]
- extension = parts[1]
- case InterpretedPathOrUrl.FILE_PATH | InterpretedPathOrUrl.FILE_URI | InterpretedPathOrUrl.URL | InterpretedPathOrUrl.BASE_64:
- file_type = detect_file_type_from_base64(b64=base_64)
- base_name = base_name or "img"
- extension = file_type.extension
- file_path = get_incremental_file_path(
- base_path=directory,
- base_name=base_name,
- extension=extension,
- avoid_suffix_if_possible=True,
- )
- save_base_64_str_to_binary_file(base_64_str=base_64, file_path=file_path)
-
- if caption := self.caption:
- caption_file_path = get_incremental_file_path(
- base_path=directory,
- base_name=f"{base_name}_caption",
- extension="txt",
- avoid_suffix_if_possible=True,
- )
- save_text_to_path(text=caption, path=caption_file_path)
- if source_prompt := self.source_prompt:
- source_prompt_file_path = get_incremental_file_path(
- base_path=directory,
- base_name=f"{base_name}_source_prompt",
- extension="txt",
- avoid_suffix_if_possible=True,
- )
- save_text_to_path(text=source_prompt, path=source_prompt_file_path)
+ return group
diff --git a/pipelex/core/stuffs/page_content.py b/pipelex/core/stuffs/page_content.py
index 2b4909b54..1bd8734fb 100644
--- a/pipelex/core/stuffs/page_content.py
+++ b/pipelex/core/stuffs/page_content.py
@@ -6,7 +6,6 @@ from typing_extensions import override
from pipelex.core.stuffs.image_content import ImageContent
from pipelex.core.stuffs.structured_content import StructuredContent
from pipelex.core.stuffs.text_and_images_content import TextAndImagesContent
-from pipelex.tools.misc.file_utils import ensure_directory_exists
from pipelex.tools.misc.pretty import PrettyPrintable
@@ -30,11 +29,9 @@ class PageContent(StructuredContent):
group.renderables.append(Text("\nPage View:", style="bold cyan"))
url_markdown = Markdown(f"[{self.page_view.url}…]({self.page_view.url})")
group.renderables.append(url_markdown)
+ link = self.page_view.display_link
+ if link is not None:
+ link_text = Text("Display", style=f"cyan link {link}")
+ group.renderables.append(link_text)
return group
-
- def save_to_directory(self, directory: str):
- ensure_directory_exists(directory)
- self.text_and_images.save_to_directory(directory=directory)
- if page_view := self.page_view:
- page_view.save_to_directory(directory=directory, base_name="page_view")
diff --git a/pipelex/core/stuffs/stuff_content.py b/pipelex/core/stuffs/stuff_content.py
index 7686901ff..b9e1367c3 100644
--- a/pipelex/core/stuffs/stuff_content.py
+++ b/pipelex/core/stuffs/stuff_content.py
@@ -6,7 +6,6 @@ from rich.json import JSON
from typing_extensions import override
from pipelex.cogt.templating.templating_style import TextFormat
-from pipelex.tools.misc.json_utils import remove_none_values
from pipelex.tools.misc.pretty import PrettyPrintable, PrettyPrinter, PrettyRenderable, pretty_print
from pipelex.tools.typing.pydantic_utils import CustomBaseModel
@@ -63,8 +62,8 @@ class StuffContent(PrettyRenderable, CustomBaseModel, ABC):
title: Optional title for the rendering
depth: Current nesting depth, used to prevent nesting too many sub-tables which would end up too narrow in the console
"""
- json_content = remove_none_values(json_content=self.smart_dump())
- return JSON.from_data(json_content, indent=4)
+ json_data = self.smart_dump()
+ return JSON.from_data(json_data, indent=4)
def pretty_print_content(self, title: str | None = None) -> None:
pretty = self.rendered_pretty()
diff --git a/pipelex/core/stuffs/stuff_content_factory.py b/pipelex/core/stuffs/stuff_content_factory.py
new file mode 100644
index 000000000..979bc9240
--- /dev/null
+++ b/pipelex/core/stuffs/stuff_content_factory.py
@@ -0,0 +1,38 @@
+from typing import Any
+
+from pipelex.core.concepts.concept import Concept
+from pipelex.core.stuffs.exceptions import StuffContentFactoryError
+from pipelex.core.stuffs.stuff_content import StuffContent
+from pipelex.core.stuffs.text_content import TextContent
+from pipelex.hub import get_class_registry
+
+
+class StuffContentFactory:
+ @classmethod
+ def make_content_from_value(cls, stuff_content_subclass: type[StuffContent], value: dict[str, Any] | str) -> StuffContent:
+ if isinstance(value, str) and stuff_content_subclass == TextContent:
+ return TextContent(text=value)
+ return stuff_content_subclass.model_validate(obj=value)
+
+ @classmethod
+ def make_stuff_content_from_concept_required(cls, concept: Concept, value: dict[str, Any] | str) -> StuffContent:
+ """Create StuffContent from concept code, requiring the concept to be linked to a class in the registry.
+ Raises StuffContentFactoryError if no registry class is found.
+ """
+ the_subclass_name = concept.structure_class_name
+ the_subclass = get_class_registry().get_required_subclass(name=the_subclass_name, base_class=StuffContent)
+ return cls.make_content_from_value(stuff_content_subclass=the_subclass, value=value)
+
+ @classmethod
+ def make_stuff_content_from_concept_with_fallback(cls, concept: Concept, value: dict[str, Any] | str) -> StuffContent:
+ """Create StuffContent from concept code, falling back to TextContent if no registry class is found."""
+ the_structure_class = get_class_registry().get_class(name=concept.structure_class_name)
+
+ if the_structure_class is None:
+ return cls.make_content_from_value(stuff_content_subclass=TextContent, value=value)
+
+ if not issubclass(the_structure_class, StuffContent):
+ msg = f"Concept '{concept.code}', subclass '{the_structure_class}' is not a subclass of StuffContent"
+ raise StuffContentFactoryError(msg)
+
+ return cls.make_content_from_value(stuff_content_subclass=the_structure_class, value=value)
diff --git a/pipelex/core/stuffs/stuff_factory.py b/pipelex/core/stuffs/stuff_factory.py
index b96096cbb..53e86c3c7 100644
--- a/pipelex/core/stuffs/stuff_factory.py
+++ b/pipelex/core/stuffs/stuff_factory.py
@@ -3,25 +3,22 @@ from typing import Any, cast
import shortuuid
from pydantic import BaseModel, ValidationError, field_validator
-from pipelex.base_exceptions import PipelexError
from pipelex.client.protocol import StuffContentOrData
from pipelex.core.concepts.concept import Concept
from pipelex.core.concepts.concept_factory import ConceptFactory
from pipelex.core.concepts.native.concept_native import NativeConceptCode
from pipelex.core.concepts.validation import validate_concept_ref
+from pipelex.core.stuffs.exceptions import StuffFactoryError
from pipelex.core.stuffs.list_content import ListContent
from pipelex.core.stuffs.stuff import DictStuff, Stuff
from pipelex.core.stuffs.stuff_content import StuffContent
+from pipelex.core.stuffs.stuff_content_factory import StuffContentFactory
from pipelex.core.stuffs.text_content import TextContent
from pipelex.hub import get_class_registry, get_concept_library, get_native_concept, get_required_concept
from pipelex.libraries.concept.concept_library import ConceptLibraryConceptNotFoundError
from pipelex.tools.typing.pydantic_utils import format_pydantic_validation_error
-class StuffFactoryError(PipelexError):
- pass
-
-
class StuffBlueprint(BaseModel):
stuff_name: str
concept_ref: str
@@ -498,38 +495,3 @@ class StuffFactory:
msg = f"Unexpected type for content value: {type(content)}"
raise StuffFactoryError(msg)
-
-
-class StuffContentFactoryError(PipelexError):
- pass
-
-
-class StuffContentFactory:
- @classmethod
- def make_content_from_value(cls, stuff_content_subclass: type[StuffContent], value: dict[str, Any] | str) -> StuffContent:
- if isinstance(value, str) and stuff_content_subclass == TextContent:
- return TextContent(text=value)
- return stuff_content_subclass.model_validate(obj=value)
-
- @classmethod
- def make_stuff_content_from_concept_required(cls, concept: Concept, value: dict[str, Any] | str) -> StuffContent:
- """Create StuffContent from concept code, requiring the concept to be linked to a class in the registry.
- Raises StuffContentFactoryError if no registry class is found.
- """
- the_subclass_name = concept.structure_class_name
- the_subclass = get_class_registry().get_required_subclass(name=the_subclass_name, base_class=StuffContent)
- return cls.make_content_from_value(stuff_content_subclass=the_subclass, value=value)
-
- @classmethod
- def make_stuff_content_from_concept_with_fallback(cls, concept: Concept, value: dict[str, Any] | str) -> StuffContent:
- """Create StuffContent from concept code, falling back to TextContent if no registry class is found."""
- the_structure_class = get_class_registry().get_class(name=concept.structure_class_name)
-
- if the_structure_class is None:
- return cls.make_content_from_value(stuff_content_subclass=TextContent, value=value)
-
- if not issubclass(the_structure_class, StuffContent):
- msg = f"Concept '{concept.code}', subclass '{the_structure_class}' is not a subclass of StuffContent"
- raise StuffContentFactoryError(msg)
-
- return cls.make_content_from_value(stuff_content_subclass=the_structure_class, value=value)
diff --git a/pipelex/core/stuffs/text_and_images_content.py b/pipelex/core/stuffs/text_and_images_content.py
index ded5bdb97..5a713e778 100644
--- a/pipelex/core/stuffs/text_and_images_content.py
+++ b/pipelex/core/stuffs/text_and_images_content.py
@@ -7,7 +7,6 @@ from typing_extensions import override
from pipelex.core.stuffs.image_content import ImageContent
from pipelex.core.stuffs.stuff_content import StuffContent
from pipelex.core.stuffs.text_content import TextContent
-from pipelex.tools.misc.file_utils import ensure_directory_exists
from pipelex.tools.misc.pretty import PrettyPrintable
@@ -61,6 +60,7 @@ class TextAndImagesContent(StuffContent):
if self.images:
# Check if any image has a caption (for table column headers)
has_captions = any(image.caption for image in self.images)
+ has_display_links = any(image.display_link for image in self.images)
table = Table(
title=f"Images ({len(self.images)}):",
@@ -72,6 +72,8 @@ class TextAndImagesContent(StuffContent):
)
table.add_column("Index")
table.add_column("URL", width=36)
+ if has_display_links:
+ table.add_column("")
if has_captions:
table.add_column("Caption", style="yellow italic")
@@ -79,19 +81,20 @@ class TextAndImagesContent(StuffContent):
index_text = Text.from_markup(f"[dim]img-[/dim][yellow]{idx}[/yellow]")
display_url = f"{image.url[:35]}…" if len(image.url) > 36 else image.url
url_markdown = Markdown(f"[{display_url}]({image.url})")
- if has_captions:
+ link = image.display_link
+ if link is not None:
+ link_text = Text("Display", style=f"cyan link {link}")
+ else:
+ link_text = Text()
+ if has_captions and has_display_links:
+ table.add_row(index_text, url_markdown, link_text, image.caption or "/")
+ elif has_captions:
table.add_row(index_text, url_markdown, image.caption or "/")
+ elif has_display_links:
+ table.add_row(index_text, url_markdown, link_text)
else:
table.add_row(index_text, url_markdown)
group.renderables.append(table)
return group
-
- def save_to_directory(self, directory: str):
- ensure_directory_exists(directory)
- if text_content := self.text:
- text_content.save_to_directory(directory=directory)
- if images := self.images:
- for image_content in images:
- image_content.save_to_directory(directory=directory)
diff --git a/pipelex/core/stuffs/text_content.py b/pipelex/core/stuffs/text_content.py
index dfbef2c25..1b86dbf8b 100644
--- a/pipelex/core/stuffs/text_content.py
+++ b/pipelex/core/stuffs/text_content.py
@@ -6,7 +6,6 @@ from rich.markdown import Markdown
from typing_extensions import override
from pipelex.core.stuffs.stuff_content import StuffContent
-from pipelex.tools.misc.file_utils import ensure_directory_exists, save_text_to_path
from pipelex.tools.misc.pretty import PrettyPrintable
@@ -46,8 +45,3 @@ class TextContent(StuffContent):
@override
def rendered_pretty(self, title: str | None = None, depth: int = 0) -> PrettyPrintable:
return Markdown(self.text)
-
- def save_to_directory(self, directory: str):
- ensure_directory_exists(directory)
- filename = "text_content.txt"
- save_text_to_path(text=self.text, path=f"{directory}/{filename}")
diff --git a/pipelex/kit/agent_rules/write_pipelex.md b/pipelex/kit/agent_rules/write_pipelex.md
index 23adb8c9a..8ee5488e8 100644
--- a/pipelex/kit/agent_rules/write_pipelex.md
+++ b/pipelex/kit/agent_rules/write_pipelex.md
@@ -585,15 +585,16 @@ $sales_rep.phone | $sales_rep.email
"""
```
-### Key Parameters
+### Key Parameters (Template Mode)
-- `template`: Inline template string (mutually exclusive with template_name)
+- `template`: Inline template string (mutually exclusive with template_name and construct)
- `template_name`: Name of a predefined template (mutually exclusive with template)
- `template_category`: Template type ("llm_prompt", "html", "markdown", "mermaid", etc.)
- `templating_style`: Styling options for template rendering
- `extra_context`: Additional context variables for template
For more control, you can use a nested `template` section instead of the `template` field:
+
- `template.template`: The template string
- `template.category`: Template type
- `template.templating_style`: Styling options
@@ -601,9 +602,143 @@ For more control, you can use a nested `template` section instead of the `templa
### Template Variables
Use the same variable insertion rules as PipeLLM:
+
- `@variable` for block insertion (multi-line content)
- `$variable` for inline insertion (short text)
+### Construct Mode (for StructuredContent Output)
+
+PipeCompose can also generate `StructuredContent` objects using the `construct` section. This mode composes field values from fixed values, variable references, templates, or nested structures.
+
+**When to use construct mode:**
+
+- You need to output a structured object (not just Text)
+- You want to deterministically compose fields from existing data
+- No LLM is needed - just data composition and templating
+
+#### Basic Construct Usage
+
+```plx
+[concept.SalesSummary]
+description = "A structured sales summary"
+
+[concept.SalesSummary.structure]
+report_title = { type = "text", description = "Title of the report" }
+customer_name = { type = "text", description = "Customer name" }
+deal_value = { type = "number", description = "Deal value" }
+summary_text = { type = "text", description = "Generated summary text" }
+
+[pipe.compose_summary]
+type = "PipeCompose"
+description = "Compose a sales summary from deal data"
+inputs = { deal = "Deal" }
+output = "SalesSummary"
+
+[pipe.compose_summary.construct]
+report_title = "Monthly Sales Report"
+customer_name = { from = "deal.customer_name" }
+deal_value = { from = "deal.amount" }
+summary_text = { template = "Deal worth $deal.amount with $deal.customer_name" }
+```
+
+#### Field Composition Methods
+
+There are four ways to define field values in a construct:
+
+**1. Fixed Value (literal)**
+
+Use a literal value directly:
+
+```plx
+[pipe.compose_report.construct]
+report_title = "Annual Report"
+report_year = 2024
+is_draft = false
+```
+
+**2. Variable Reference (`from`)**
+
+Get a value from working memory using a dotted path:
+
+```plx
+[pipe.compose_report.construct]
+customer_name = { from = "deal.customer_name" }
+total_amount = { from = "order.total" }
+street_address = { from = "customer.address.street" }
+```
+
+**3. Template (`template`)**
+
+Render a Jinja2 template with variable substitution:
+
+```plx
+[pipe.compose_report.construct]
+invoice_number = { template = "INV-$order.id" }
+summary = { template = "Deal worth $deal.amount with $deal.customer_name on {{ current_date }}" }
+```
+
+**4. Nested Construct**
+
+For nested structures, use a TOML subsection:
+
+```plx
+[pipe.compose_invoice.construct]
+invoice_number = { template = "INV-$order.id" }
+total = { from = "order.total_amount" }
+
+[pipe.compose_invoice.construct.billing_address]
+street = { from = "customer.address.street" }
+city = { from = "customer.address.city" }
+country = "France"
+```
+
+#### Complete Construct Example
+
+```plx
+domain = "invoicing"
+
+[concept.Address]
+description = "A postal address"
+
+[concept.Address.structure]
+street = { type = "text", description = "Street address" }
+city = { type = "text", description = "City name" }
+country = { type = "text", description = "Country name" }
+
+[concept.Invoice]
+description = "An invoice document"
+
+[concept.Invoice.structure]
+invoice_number = { type = "text", description = "Invoice number" }
+total = { type = "number", description = "Total amount" }
+
+[pipe.compose_invoice]
+type = "PipeCompose"
+description = "Compose an invoice from order and customer data"
+inputs = { order = "Order", customer = "Customer" }
+output = "Invoice"
+
+[pipe.compose_invoice.construct]
+invoice_number = { template = "INV-$order.id" }
+total = { from = "order.total_amount" }
+
+[pipe.compose_invoice.construct.billing_address]
+street = { from = "customer.address.street" }
+city = { from = "customer.address.city" }
+country = "France"
+```
+
+#### Key Parameters (Construct Mode)
+
+- `construct`: Dictionary mapping field names to their composition rules
+- Each field can be:
+ - A literal value (string, number, boolean)
+ - A dict with `from` key for variable reference
+ - A dict with `template` key for template rendering
+ - A nested dict for nested structures
+
+**Note:** You must use either `template` or `construct`, not both. They are mutually exclusive.
+
## PipeImgGen operator
The PipeImgGen operator is used to generate images using AI image generation models.
diff --git a/pipelex/kit/configs/inference/backends.toml b/pipelex/kit/configs/inference/backends.toml
index 6191f4edd..d7bf60372 100644
--- a/pipelex/kit/configs/inference/backends.toml
+++ b/pipelex/kit/configs/inference/backends.toml
@@ -54,6 +54,11 @@ enabled = true
endpoint = "https://api.groq.com/openai/v1"
api_key = "${GROQ_API_KEY}"
+[huggingface]
+display_name = "Hugging Face"
+enabled = true
+api_key = "${HF_TOKEN}"
+
[mistral]
display_name = "Mistral AI"
enabled = true
diff --git a/pipelex/kit/configs/inference/backends/azure_openai.toml b/pipelex/kit/configs/inference/backends/azure_openai.toml
index 82d29b202..8a898985c 100644
--- a/pipelex/kit/configs/inference/backends/azure_openai.toml
+++ b/pipelex/kit/configs/inference/backends/azure_openai.toml
@@ -170,11 +170,13 @@ outputs = ["image"]
costs = { input = 10, output = 40 }
[gpt-image-1.rules]
+prompt = "positive_only"
num_images = "gpt"
aspect_ratio = "gpt"
background = "gpt"
inference = "gpt"
safety_checker = "unavailable"
+output_format = "gpt"
[gpt-image-1-mini]
sdk = "azure_rest_img_gen"
@@ -185,11 +187,13 @@ outputs = ["image"]
costs = { input = 2.5, output = 8 }
[gpt-image-1-mini.rules]
+prompt = "positive_only"
num_images = "gpt"
aspect_ratio = "gpt"
background = "gpt"
inference = "gpt"
safety_checker = "unavailable"
+output_format = "gpt"
["gpt-image-1.5"]
sdk = "azure_rest_img_gen"
@@ -200,8 +204,10 @@ outputs = ["image"]
costs = { input = 8, output = 32 }
["gpt-image-1.5".rules]
+prompt = "positive_only"
num_images = "gpt"
aspect_ratio = "gpt"
background = "gpt"
inference = "gpt"
safety_checker = "unavailable"
+output_format = "gpt"
diff --git a/pipelex/kit/configs/inference/backends/fal.toml b/pipelex/kit/configs/inference/backends/fal.toml
index 608bfed89..3433f998b 100644
--- a/pipelex/kit/configs/inference/backends/fal.toml
+++ b/pipelex/kit/configs/inference/backends/fal.toml
@@ -37,10 +37,12 @@ outputs = ["image"]
costs = { input = 0.05, output = 0.0 }
[flux-pro.rules]
+prompt = "positive_only"
num_images = "fal"
aspect_ratio = "flux"
inference = "flux"
safety_checker = "available"
+output_format = "flux_1"
specific = "fal"
["flux-pro/v1.1"]
@@ -50,10 +52,12 @@ outputs = ["image"]
costs = { input = 0.05, output = 0.0 }
["flux-pro/v1.1".rules]
+prompt = "positive_only"
num_images = "fal"
aspect_ratio = "flux"
inference = "flux"
safety_checker = "available"
+output_format = "flux_1"
specific = "fal"
["flux-pro/v1.1-ultra"]
@@ -63,10 +67,12 @@ outputs = ["image"]
costs = { input = 0.06, output = 0.0 }
["flux-pro/v1.1-ultra".rules]
+prompt = "positive_only"
num_images = "fal"
aspect_ratio = "flux_11_ultra"
inference = "flux_11_ultra"
safety_checker = "available"
+output_format = "flux_1"
specific = "fal"
[flux-2]
@@ -76,10 +82,12 @@ outputs = ["image"]
costs = { input = 0.05, output = 0.0 }
[flux-2.rules]
+prompt = "positive_only"
num_images = "fal"
aspect_ratio = "flux"
inference = "flux"
safety_checker = "available"
+output_format = "flux_2"
specific = "fal"
# --- SDXL models --------------------------------------------------------------
@@ -90,8 +98,10 @@ outputs = ["image"]
costs = { input = 0.0003, output = 0.0 }
[fast-lightning-sdxl.rules]
+prompt = "positive_only"
num_images = "fal"
-specific = "fal"
aspect_ratio = "flux"
inference = "sdxl_lightning"
safety_checker = "unavailable"
+output_format = "sdxl"
+specific = "fal"
diff --git a/pipelex/kit/configs/inference/backends/google.toml b/pipelex/kit/configs/inference/backends/google.toml
index e0d3f0af8..36e19c27b 100644
--- a/pipelex/kit/configs/inference/backends/google.toml
+++ b/pipelex/kit/configs/inference/backends/google.toml
@@ -68,6 +68,13 @@ outputs = ["text", "structured"]
max_prompt_images = 3000
costs = { input = 2, output = 12.0 }
+["gemini-3.0-flash-preview"]
+model_id = "gemini-3-flash-preview"
+inputs = ["text", "images"]
+outputs = ["text", "structured"]
+max_prompt_images = 3000
+costs = { input = 0.5, output = 3.0 }
+
################################################################################
# IMAGE GENERATION MODELS (Nano Banana)
################################################################################
diff --git a/pipelex/kit/configs/inference/backends/huggingface.toml b/pipelex/kit/configs/inference/backends/huggingface.toml
new file mode 100644
index 000000000..1a7963861
--- /dev/null
+++ b/pipelex/kit/configs/inference/backends/huggingface.toml
@@ -0,0 +1,43 @@
+################################################################################
+# Hugging Face Backend Configuration
+################################################################################
+#
+# This file defines the model specifications for Hugging Face models.
+# It contains model definitions for various image generation models
+# accessible through the Hugging Face Inference API with provider="auto".
+#
+# Configuration structure:
+# - Each model is defined in its own section with the model name as the header
+# - Headers with dots or slashes must be quoted (e.g., ["stabilityai/stable-diffusion-2-1"])
+# - Model costs are in USD per million tokens (input/output)
+#
+# Documentation: https://docs.pipelex.com
+# Support: https://go.pipelex.com/discord
+#
+################################################################################
+
+################################################################################
+# MODEL DEFAULTS
+################################################################################
+
+[defaults]
+model_type = "img_gen"
+sdk = "huggingface_img_gen"
+
+################################################################################
+# IMAGE GENERATION MODELS
+################################################################################
+
+# --- Qwen Image Models --------------------------------------------------
+[qwen-image]
+model_id = "Qwen/Qwen-Image"
+inputs = ["text"]
+outputs = ["image"]
+costs = { input = 0.0, output = 0.0 }
+variant = "fal-ai"
+# variant = "replicate"
+
+[qwen-image.rules]
+prompt = "with_negative"
+aspect_ratio = "qwen_image"
+inference = "qwen_image"
diff --git a/pipelex/kit/configs/inference/backends/mistral.toml b/pipelex/kit/configs/inference/backends/mistral.toml
index c4b49e377..c8c4b05d9 100644
--- a/pipelex/kit/configs/inference/backends/mistral.toml
+++ b/pipelex/kit/configs/inference/backends/mistral.toml
@@ -133,11 +133,33 @@ costs = { input = 0.4, output = 2.0 }
# EXTRACTION MODELS
################################################################################
+# TODO: add support to pricing per page
+
# --- OCR Models ---------------------------------------------------------------
+[mistral-ocr-2503]
+model_type = "text_extractor"
+model_id = "mistral-ocr-2503"
+max_tokens = 16384
+inputs = ["pdf", "image"]
+outputs = ["pages"]
+
+[mistral-ocr-2505]
+model_type = "text_extractor"
+model_id = "mistral-ocr-2505"
+max_tokens = 16384
+inputs = ["pdf", "image"]
+outputs = ["pages"]
+
+[mistral-ocr-2512]
+model_type = "text_extractor"
+model_id = "mistral-ocr-2512"
+max_tokens = 16384
+inputs = ["pdf", "image"]
+outputs = ["pages"]
+
[mistral-ocr]
model_type = "text_extractor"
model_id = "mistral-ocr-latest"
-max_tokens = 131072
+max_tokens = 16384
inputs = ["pdf", "image"]
outputs = ["pages"]
-costs = { input = 0.4, output = 2.0 }
diff --git a/pipelex/kit/configs/inference/deck/base_deck.toml b/pipelex/kit/configs/inference/deck/base_deck.toml
index b2561f5ab..bb28c3a96 100644
--- a/pipelex/kit/configs/inference/deck/base_deck.toml
+++ b/pipelex/kit/configs/inference/deck/base_deck.toml
@@ -108,7 +108,11 @@ cheap_llm_for_creativity = [
]
# --- Waterfalls for Extracts ---------------------------------------------------------------------
-pdf_text_extractor = ["mistral-ocr", "pypdfium2-extract-text"]
+pdf_text_extractor = [
+ "azure-document-intelligence",
+ "mistral-ocr",
+ "pypdfium2-extract-text",
+]
image_text_extractor = ["mistral-ocr"]
####################################################################################################
@@ -172,7 +176,7 @@ for_object = "cheap_llm_for_structured"
choice_default = "extract_text_from_visuals"
[extract.presets]
-extract_text_from_visuals = { model = "mistral-ocr", max_nb_images = 100, image_min_size = 50 }
+extract_text_from_visuals = { model = "azure-document-intelligence", max_nb_images = 100, image_min_size = 50 }
extract_text_from_pdf = { model = "pypdfium2-extract-text", max_nb_images = 100, image_min_size = 50 }
####################################################################################################
diff --git a/pipelex/kit/configs/inference/routing_profiles.toml b/pipelex/kit/configs/inference/routing_profiles.toml
index 68faae398..d27e659ac 100644
--- a/pipelex/kit/configs/inference/routing_profiles.toml
+++ b/pipelex/kit/configs/inference/routing_profiles.toml
@@ -85,6 +85,10 @@ default = "google"
description = "Use groq backend for all its supported models"
default = "groq"
+[profiles.all_huggingface]
+description = "Use HuggingFace backend for all its supported models"
+default = "huggingface"
+
[profiles.all_mistral]
description = "Use Mistral backend for all its supported models"
default = "mistral"
diff --git a/pipelex/kit/configs/pipelex.toml b/pipelex/kit/configs/pipelex.toml
index e9cba8125..2983ada3a 100644
--- a/pipelex/kit/configs/pipelex.toml
+++ b/pipelex/kit/configs/pipelex.toml
@@ -26,6 +26,14 @@
#
####################################################################################################
+
+[pipelex.storage_config]
+# Uncomment to change the storage method: "local" (default) or "in_memory"
+# is_fetch_remote_content_enabled = true
+# uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"
+# method = "local"
+# local_storage_path = ".pipelex/storage"
+
[pipelex.scan_config]
# Uncomment to customize the excluded directories for scanning
# excluded_dirs = [
diff --git a/pipelex/kit/cursor_rules.py b/pipelex/kit/cursor_rules.py
index a89082fc7..f9eed993d 100644
--- a/pipelex/kit/cursor_rules.py
+++ b/pipelex/kit/cursor_rules.py
@@ -1,5 +1,4 @@
from collections.abc import Iterable
-from importlib.abc import Traversable
from pathlib import Path
from typing import Any
@@ -9,6 +8,7 @@ import yaml
from pipelex.kit.exceptions import KitError
from pipelex.kit.index_models import KitIndex
from pipelex.kit.paths import get_kit_agents_dir
+from pipelex.types import Traversable
def _iter_agent_files(agents_dir: Traversable) -> Iterable[tuple[str, str]]:
diff --git a/pipelex/kit/paths.py b/pipelex/kit/paths.py
index 5526e117c..165806442 100644
--- a/pipelex/kit/paths.py
+++ b/pipelex/kit/paths.py
@@ -1,19 +1,29 @@
-from importlib.abc import Traversable
from importlib.resources import files
+from pipelex.types import Traversable
+
# Git-ignored config files that should not be synced between .pipelex and kit/configs.
# These are personal override files that differ per developer/environment:
# - pipelex_service.toml: Contains terms_accepted (False for new users, True for devs)
-# - pipelex_super.toml: Personal config overrides
+# - pipelex_override.toml: Personal config overrides
# - telemetry_override.toml: Personal telemetry settings
GIT_IGNORED_CONFIG_FILES: frozenset[str] = frozenset(
{
"pipelex_service.toml",
- "pipelex_super.toml",
+ "pipelex_override.toml",
"telemetry_override.toml",
}
)
+# Directories that should not be synced between .pipelex and kit/configs.
+# These are runtime directories created locally:
+# - storage: Local storage directory for runtime data
+GIT_IGNORED_CONFIG_DIRS: frozenset[str] = frozenset(
+ {
+ "storage",
+ }
+)
+
def get_kit_root() -> Traversable:
"""Get the root directory of the kit package.
diff --git a/pipelex/kit/single_file_agent_rules.py b/pipelex/kit/single_file_agent_rules.py
index 862185485..8a0916a51 100644
--- a/pipelex/kit/single_file_agent_rules.py
+++ b/pipelex/kit/single_file_agent_rules.py
@@ -1,6 +1,5 @@
import difflib
import re
-from importlib.abc import Traversable
from pathlib import Path
import typer
@@ -8,6 +7,7 @@ import typer
from pipelex.kit.index_models import KitIndex, Target
from pipelex.kit.markers import find_span, replace_span, wrap
from pipelex.kit.paths import get_kit_agents_dir
+from pipelex.types import Traversable
def _read_agent_file(agents_dir: Traversable, name: str) -> str:
diff --git a/pipelex/libraries/library_utils.py b/pipelex/libraries/library_utils.py
index 95aab196e..127a85f67 100644
--- a/pipelex/libraries/library_utils.py
+++ b/pipelex/libraries/library_utils.py
@@ -1,4 +1,3 @@
-from importlib.abc import Traversable
from importlib.resources import files
from pathlib import Path
@@ -7,6 +6,7 @@ from pipelex.builder import builder
from pipelex.config import get_config
from pipelex.core.interpreter.interpreter import PipelexInterpreter
from pipelex.tools.misc.file_utils import find_files_in_dir
+from pipelex.types import Traversable
def get_pipelex_plx_files_from_package() -> list[Path]:
diff --git a/pipelex/pipe_controllers/condition/pipe_condition.py b/pipelex/pipe_controllers/condition/pipe_condition.py
index 160cc2ca4..c3a033629 100644
--- a/pipelex/pipe_controllers/condition/pipe_condition.py
+++ b/pipelex/pipe_controllers/condition/pipe_condition.py
@@ -63,7 +63,7 @@ class PipeCondition(PipeController):
template_category=TemplateCategory.EXPRESSION,
template_source=self.expression,
)
- required_variables.update(path.split(".")[0] for path in full_paths)
+ required_variables.update(get_root_from_dotted_path(path) for path in full_paths)
# Variables from the outcomes map and default_outcome
for pipe_code in self.pipe_dependencies():
diff --git a/pipelex/pipe_controllers/sub_pipe.py b/pipelex/pipe_controllers/sub_pipe.py
index 542ba7f6c..e6c622724 100644
--- a/pipelex/pipe_controllers/sub_pipe.py
+++ b/pipelex/pipe_controllers/sub_pipe.py
@@ -14,6 +14,7 @@ from pipelex.pipe_controllers.batch.pipe_batch_blueprint import PipeBatchBluepri
from pipelex.pipe_controllers.condition.pipe_condition import PipeCondition
from pipelex.pipe_run.pipe_run_params import BatchParams, PipeRunParams
from pipelex.pipeline.job_metadata import JobMetadata
+from pipelex.tools.misc.string_utils import get_root_from_dotted_path
class SubPipe(BaseModel):
@@ -103,7 +104,10 @@ class SubPipe(BaseModel):
required_variables = sub_pipe.required_variables()
# Extract root names from full paths for looking up stuffs in working memory
# TODO: Merge `needed_inputs` and `required_variables` methods for cleaner code.
- required_stuff_names = {req_var.split(".")[0] for req_var in required_variables if not req_var.startswith("_")}
+ required_stuff_names: set[str] = set()
+ for req_var in required_variables:
+ if not req_var.startswith("_"):
+ required_stuff_names.add(get_root_from_dotted_path(req_var))
try:
required_stuffs = working_memory.get_stuffs(names=required_stuff_names)
except WorkingMemoryStuffNotFoundError as exc:
diff --git a/pipelex/pipe_operators/compose/construct_blueprint.py b/pipelex/pipe_operators/compose/construct_blueprint.py
new file mode 100644
index 000000000..e78b57963
--- /dev/null
+++ b/pipelex/pipe_operators/compose/construct_blueprint.py
@@ -0,0 +1,256 @@
+"""Blueprint for construct sections in PipeCompose.
+
+This module defines how to compose StructuredContent objects from working memory:
+- ConstructFieldMethod: Enum defining the 4 composition methods
+- ConstructFieldBlueprint: How a single field is composed
+- ConstructBlueprint: Container for all field blueprints in a construct
+"""
+
+from __future__ import annotations
+
+from typing import Any, cast
+
+from pydantic import BaseModel, ConfigDict, field_validator, model_validator
+
+from pipelex.cogt.templating.template_category import TemplateCategory
+from pipelex.cogt.templating.template_preprocessor import preprocess_template
+from pipelex.pipe_operators.compose.exceptions import ConstructFieldBlueprintTypeError, ConstructFieldBlueprintValueError
+from pipelex.tools.jinja2.jinja2_errors import Jinja2DetectVariablesError
+from pipelex.tools.jinja2.jinja2_required_variables import detect_jinja2_required_variables
+from pipelex.tools.misc.string_utils import get_root_from_dotted_path
+from pipelex.types import Self, StrEnum
+
+
+class ConstructFieldMethod(StrEnum):
+ """Method used to compose a field value."""
+
+ FIXED = "fixed"
+ FROM_VAR = "from_var"
+ TEMPLATE = "template"
+ NESTED = "nested"
+
+
+class ConstructFieldBlueprint(BaseModel):
+ """Blueprint for composing a single field in a StructuredContent.
+
+ Defines how a field value is composed using one of 4 methods:
+ 1. Fixed value: literal string, number, bool
+ 2. Variable reference (from): path to variable in working memory
+ 3. Template: Jinja2 template string (with $ preprocessing)
+ 4. Nested construct: recursive ConstructBlueprint
+
+ Attributes:
+ method: The composition method to use
+ fixed_value: Literal value (for FIXED method)
+ from_path: Variable path in working memory (for FROM_VAR method)
+ template: Jinja2 template string (for TEMPLATE method)
+ nested: Nested ConstructBlueprint (for NESTED method)
+ """
+
+ model_config = ConfigDict(extra="forbid")
+
+ method: ConstructFieldMethod
+ fixed_value: Any | None = None
+ from_path: str | None = None
+ template: str | None = None
+ nested: ConstructBlueprint | None = None
+
+ @model_validator(mode="after")
+ def validate_method_data_consistency(self) -> Self:
+ """Ensure the data matches the declared method."""
+ match self.method:
+ case ConstructFieldMethod.FIXED:
+ if self.fixed_value is None:
+ msg = "fixed_value is required for FIXED method"
+ raise ValueError(msg)
+ case ConstructFieldMethod.FROM_VAR:
+ if self.from_path is None:
+ msg = "from_path is required for FROM_VAR method"
+ raise ValueError(msg)
+ case ConstructFieldMethod.TEMPLATE:
+ if self.template is None:
+ msg = "template is required for TEMPLATE method"
+ raise ValueError(msg)
+ case ConstructFieldMethod.NESTED:
+ if self.nested is None:
+ msg = "nested is required for NESTED method"
+ raise ValueError(msg)
+ return self
+
+ @classmethod
+ def make_from_raw(cls, raw: Any) -> ConstructFieldBlueprint:
+ """Create a ConstructFieldBlueprint from raw TOML input.
+
+ Args:
+ raw: The raw value from TOML parsing. Can be:
+ - str/int/float/bool: Fixed value
+ - dict with 'from' key: Variable reference
+ - dict with 'template' key: Template
+ - dict with other keys: Nested construct
+
+ Returns:
+ ConstructFieldBlueprint with appropriate method and data
+
+ Raises:
+ ValueError: If the raw input is invalid or ambiguous
+ """
+ if raw is None:
+ msg = "Field value cannot be None"
+ raise ConstructFieldBlueprintValueError(msg)
+
+ if isinstance(raw, (str, int, float, bool)):
+ return cls(
+ method=ConstructFieldMethod.FIXED,
+ fixed_value=raw,
+ )
+ elif isinstance(raw, dict):
+ raw_dict = cast("dict[str, Any]", raw)
+ if len(raw_dict) == 0:
+ msg = "Field dict cannot be empty"
+ raise ConstructFieldBlueprintValueError(msg)
+
+ has_from = "from" in raw_dict
+ has_template = "template" in raw_dict
+
+ # Check for mutually exclusive keys
+ if has_from and has_template:
+ msg = "'from' and 'template' are mutually exclusive in field definition"
+ raise ConstructFieldBlueprintValueError(msg)
+
+ if has_from:
+ # Variable reference
+ if len(raw_dict) != 1:
+ msg = "'from' field should only have the 'from' key"
+ raise ConstructFieldBlueprintValueError(msg)
+ from_value = raw_dict["from"]
+ if not isinstance(from_value, str):
+ msg = "'from' value must be a string path"
+ raise ConstructFieldBlueprintTypeError(msg)
+ return cls(
+ method=ConstructFieldMethod.FROM_VAR,
+ from_path=from_value,
+ )
+ elif has_template:
+ # Template
+ if len(raw_dict) != 1:
+ msg = "'template' field should only have the 'template' key"
+ raise ConstructFieldBlueprintValueError(msg)
+ template_value = raw_dict["template"]
+ if not isinstance(template_value, str):
+ msg = "'template' value must be a string"
+ raise ConstructFieldBlueprintTypeError(msg)
+ return cls(
+ method=ConstructFieldMethod.TEMPLATE,
+ template=template_value,
+ )
+ else:
+ # Otherwise it's a nested construct
+ nested_blueprint = ConstructBlueprint.make_from_raw(raw_dict)
+ return cls(
+ method=ConstructFieldMethod.NESTED,
+ nested=nested_blueprint,
+ )
+ else:
+ msg = f"Unsupported field value type: {type(raw).__name__}"
+ raise ConstructFieldBlueprintTypeError(msg)
+
+
+class ConstructBlueprint(BaseModel):
+ """Blueprint for composing a StructuredContent from working memory.
+
+ Parsed from `[pipe.name.construct]` section in PLX files.
+
+ Attributes:
+ fields: Dictionary mapping field names to their composition blueprints
+ """
+
+ model_config = ConfigDict(extra="forbid")
+
+ fields: dict[str, ConstructFieldBlueprint]
+
+ @field_validator("fields", mode="before")
+ @classmethod
+ def validate_fields(cls, fields: dict[str, ConstructFieldBlueprint]) -> dict[str, ConstructFieldBlueprint]:
+ if len(fields) == 0:
+ msg = "Construct fields dictionary cannot be empty"
+ raise ValueError(msg)
+ return fields
+
+ @property
+ def field_names(self) -> list[str]:
+ """Return list of all top-level field names."""
+ return list(self.fields.keys())
+
+ def get_required_variables(self) -> set[str]:
+ """Extract all variable names/paths required to compose this construct.
+
+ This includes:
+ - All 'from' paths (variable references)
+ - All variables used in templates (base names only, e.g., 'deal' from 'deal.amount')
+ - Variables from nested constructs (recursively)
+
+ Returns:
+ Set of variable names/paths needed from working memory
+ """
+ required: set[str] = set()
+
+ for field_blueprint in self.fields.values():
+ match field_blueprint.method:
+ case ConstructFieldMethod.FROM_VAR:
+ if field_blueprint.from_path:
+ # Also only the base variable name for input validation
+ base_var = get_root_from_dotted_path(field_blueprint.from_path)
+ required.add(base_var)
+
+ case ConstructFieldMethod.TEMPLATE:
+ if field_blueprint.template:
+ # Use the same approach as template mode: preprocess then detect variables
+ preprocessed = preprocess_template(field_blueprint.template)
+ try:
+ template_vars = detect_jinja2_required_variables(
+ template_category=TemplateCategory.BASIC,
+ template_source=preprocessed,
+ )
+ except Jinja2DetectVariablesError as exc:
+ msg = f"Error detecting required variables in construct template: {exc}"
+ raise ValueError(msg) from exc
+ # Extract root names and filter out internal variables (same approach as template mode)
+ for var in template_vars:
+ root_var = get_root_from_dotted_path(var)
+ if not root_var.startswith("_") and root_var not in {"preliminary_text", "place_holder"}:
+ required.add(root_var)
+
+ case ConstructFieldMethod.NESTED:
+ if field_blueprint.nested:
+ nested_vars = field_blueprint.nested.get_required_variables()
+ required.update(nested_vars)
+
+ case ConstructFieldMethod.FIXED:
+ # Fixed values don't require any variables
+ pass
+
+ return required
+
+ @classmethod
+ def make_from_raw(cls, raw: dict[str, Any]) -> ConstructBlueprint:
+ """Create a ConstructBlueprint from raw TOML construct section.
+
+ Args:
+ raw: The raw dict from TOML parsing of construct section
+
+ Returns:
+ ConstructBlueprint with all field blueprints
+
+ Raises:
+ TypeError: If the raw input is not a dict
+ ValueError: If the raw dict is empty
+ """
+ fields: dict[str, ConstructFieldBlueprint] = {}
+ for field_name, field_raw in raw.items():
+ fields[field_name] = ConstructFieldBlueprint.make_from_raw(field_raw)
+
+ return cls(fields=fields)
+
+
+# The two models reference each other, so we need to rebuild the model to resolve forward references
+ConstructFieldBlueprint.model_rebuild()
diff --git a/pipelex/pipe_operators/compose/exceptions.py b/pipelex/pipe_operators/compose/exceptions.py
index a97b10757..cd6e220fe 100644
--- a/pipelex/pipe_operators/compose/exceptions.py
+++ b/pipelex/pipe_operators/compose/exceptions.py
@@ -1,5 +1,25 @@
from pipelex.base_exceptions import PipelexError
-class PipeComposeFactoryError(PipelexError):
+class PipeComposeError(PipelexError):
+ pass
+
+
+class PipeComposeFactoryError(PipeComposeError):
+ pass
+
+
+class ConstructFieldBlueprintTypeError(PipeComposeError, TypeError):
+ pass
+
+
+class ConstructFieldBlueprintValueError(PipeComposeError, ValueError):
+ pass
+
+
+class StructuredContentComposerTypeError(PipeComposeError, TypeError):
+ pass
+
+
+class StructuredContentComposerValueError(PipeComposeError, ValueError):
pass
diff --git a/pipelex/pipe_operators/compose/pipe_compose.py b/pipelex/pipe_operators/compose/pipe_compose.py
index 6cc45b46e..f709dff95 100644
--- a/pipelex/pipe_operators/compose/pipe_compose.py
+++ b/pipelex/pipe_operators/compose/pipe_compose.py
@@ -1,6 +1,5 @@
from typing import Any, Literal
-from pydantic import ConfigDict
from typing_extensions import override
from pipelex import log
@@ -18,6 +17,8 @@ from pipelex.core.pipes.pipe_output import PipeOutput
from pipelex.core.stuffs.stuff_content import StuffContent
from pipelex.core.stuffs.stuff_factory import StuffFactory
from pipelex.hub import get_class_registry, get_concept_library, get_content_generator, get_native_concept
+from pipelex.pipe_operators.compose.construct_blueprint import ConstructBlueprint
+from pipelex.pipe_operators.compose.structured_content_composer import StructuredContentComposer
from pipelex.pipe_operators.pipe_operator import PipeOperator
from pipelex.pipe_run.pipe_run_mode import PipeRunMode
from pipelex.pipe_run.pipe_run_params import PipeRunParams
@@ -25,6 +26,7 @@ from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
from pipelex.pipeline.job_metadata import JobMetadata
from pipelex.tools.jinja2.jinja2_errors import Jinja2DetectVariablesError
from pipelex.tools.jinja2.jinja2_required_variables import detect_jinja2_required_variables
+from pipelex.tools.misc.string_utils import get_root_from_dotted_path
class PipeComposeOutput(PipeOutput):
@@ -33,18 +35,40 @@ class PipeComposeOutput(PipeOutput):
class PipeCompose(PipeOperator[PipeComposeOutput]):
type: Literal["PipeCompose"] = "PipeCompose"
- model_config = ConfigDict(extra="forbid", strict=False)
- template: str
+
+ # Template mode fields (used when template is provided)
+ template: str | None = None
templating_style: TemplatingStyle | None = None
category: TemplateCategory = TemplateCategory.BASIC
extra_context: dict[str, Any] | None = None
+ # Construct mode field (used when construct is provided)
+ construct_blueprint: ConstructBlueprint | None = None
+
+ @property
+ def is_construct_mode(self) -> bool:
+ """Return True if this pipe uses construct mode instead of template mode."""
+ return self.construct_blueprint is not None
+
@property
def desc(self) -> str:
- return f"Jinja2 included template, prompting style {self.templating_style}"
+ if self.is_construct_mode:
+ return f"PipeCompose in construct mode for StructuredContent output of type '{self.output.concept.structure_class_name}'"
+ else:
+ return f"PipeCompose in template mode with Jinja2 template, prompting style {self.templating_style}, category {self.category}"
@override
def required_variables(self) -> set[str]:
+ if self.construct_blueprint is not None:
+ return self.construct_blueprint.get_required_variables()
+ else:
+ return self._required_variables_for_template()
+
+ def _required_variables_for_template(self) -> set[str]:
+ """Get required variables for template mode."""
+ if self.template is None:
+ return set()
+
try:
full_paths = detect_jinja2_required_variables(
template_category=self.category,
@@ -53,11 +77,12 @@ class PipeCompose(PipeOperator[PipeComposeOutput]):
except Jinja2DetectVariablesError as exc:
msg = f"Error detecting required variables for PipeCompose: {exc}"
raise ValueError(msg) from exc
- return {
- path.split(".")[0]
- for path in full_paths
- if not path.split(".")[0].startswith("_") and path.split(".")[0] not in {"preliminary_text", "place_holder"}
- }
+ roots: set[str] = set()
+ for path in full_paths:
+ root = get_root_from_dotted_path(path)
+ if not root.startswith("_") and root not in {"preliminary_text", "place_holder"}:
+ roots.add(root)
+ return roots
@override
# TODO: this needs testing!!!
@@ -81,15 +106,20 @@ class PipeCompose(PipeOperator[PipeComposeOutput]):
@override
def validate_output_with_library(self):
+ # In construct mode, output can be any StructuredContent (not just Text)
+ if self.is_construct_mode:
+ return
+
+ # In template mode, output must be Text-compatible
if not get_concept_library().is_compatible(
tested_concept=self.output.concept,
wanted_concept=get_native_concept(native_concept=NativeConceptCode.TEXT),
strict=True,
):
msg = (
- f"The output of a PipeCompose must be strictly compatible with the Text concept. "
+ f"The output of a PipeCompose in template mode must be strictly compatible with the Text concept. "
f"In the pipe '{self.code}' the output is '{self.output.concept.concept_ref}'. "
- "Make sure this concept refines the native Text concept."
+ "Make sure this concept refines the native Text concept, or use construct mode for StructuredContent."
)
raise PipeValidationError(
message=msg,
@@ -111,6 +141,36 @@ class PipeCompose(PipeOperator[PipeComposeOutput]):
) -> PipeComposeOutput:
content_generator = content_generator or get_content_generator()
+ if self.is_construct_mode:
+ return await self._run_construct_mode(
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=pipe_run_params,
+ output_name=output_name,
+ content_generator=content_generator,
+ )
+ else:
+ return await self._run_template_mode(
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=pipe_run_params,
+ output_name=output_name,
+ content_generator=content_generator,
+ )
+
+ async def _run_template_mode(
+ self,
+ job_metadata: JobMetadata,
+ working_memory: WorkingMemory,
+ pipe_run_params: PipeRunParams,
+ output_name: str | None,
+ content_generator: ContentGeneratorProtocol,
+ ) -> PipeComposeOutput:
+ """Run PipeCompose in template mode (produces Text output)."""
+ if self.template is None:
+ msg = "Template is required for template mode"
+ raise ValueError(msg)
+
context: dict[str, Any] = working_memory.generate_context()
if pipe_run_params:
context.update(**pipe_run_params.params)
@@ -145,6 +205,50 @@ class PipeCompose(PipeOperator[PipeComposeOutput]):
pipeline_run_id=job_metadata.pipeline_run_id,
)
+ async def _run_construct_mode(
+ self,
+ job_metadata: JobMetadata,
+ working_memory: WorkingMemory,
+ pipe_run_params: PipeRunParams,
+ output_name: str | None,
+ content_generator: ContentGeneratorProtocol,
+ ) -> PipeComposeOutput:
+ """Run PipeCompose in construct mode (produces StructuredContent output)."""
+ if self.construct_blueprint is None:
+ msg = "Construct blueprint is required for construct mode"
+ raise ValueError(msg)
+
+ # Get the output class from the registry
+ output_class = get_class_registry().get_required_subclass(
+ name=self.output.concept.structure_class_name,
+ base_class=StuffContent,
+ )
+
+ # Create composer and compose the structured content
+ # Pass runtime params, extra context, and content generator for template fields (consistent with _run_template_mode)
+ composer = StructuredContentComposer(
+ construct_blueprint=self.construct_blueprint,
+ working_memory=working_memory,
+ output_class=output_class,
+ runtime_params=pipe_run_params.params if pipe_run_params else None,
+ extra_context=self.extra_context,
+ content_generator=content_generator,
+ )
+ the_content = await composer.compose()
+ log.verbose(f"Composed structured content: {the_content}")
+
+ output_stuff = StuffFactory.make_stuff(concept=self.output.concept, content=the_content, name=output_name)
+
+ working_memory.set_new_main_stuff(
+ stuff=output_stuff,
+ name=output_name,
+ )
+
+ return PipeComposeOutput(
+ working_memory=working_memory,
+ pipeline_run_id=job_metadata.pipeline_run_id,
+ )
+
@override
async def _dry_run_operator_pipe(
self,
diff --git a/pipelex/pipe_operators/compose/pipe_compose_blueprint.py b/pipelex/pipe_operators/compose/pipe_compose_blueprint.py
index 4fd686f42..0ccf0c8ba 100644
--- a/pipelex/pipe_operators/compose/pipe_compose_blueprint.py
+++ b/pipelex/pipe_operators/compose/pipe_compose_blueprint.py
@@ -1,5 +1,6 @@
from typing import Any, Literal
+from pydantic import ConfigDict, Field, model_validator
from typing_extensions import override
from pipelex.cogt.templating.template_blueprint import TemplateBlueprint
@@ -8,45 +9,89 @@ from pipelex.cogt.templating.template_preprocessor import preprocess_template
from pipelex.cogt.templating.templating_style import TemplatingStyle
from pipelex.core.pipes.pipe_blueprint import PipeBlueprint
from pipelex.core.pipes.variable_multiplicity import parse_concept_with_multiplicity
+from pipelex.pipe_operators.compose.construct_blueprint import ConstructBlueprint
from pipelex.tools.jinja2.jinja2_errors import Jinja2TemplateSyntaxError
from pipelex.tools.jinja2.jinja2_parsing import check_jinja2_parsing
from pipelex.tools.jinja2.jinja2_required_variables import detect_jinja2_required_variables
+from pipelex.tools.misc.string_utils import get_root_from_dotted_path
class PipeComposeBlueprint(PipeBlueprint):
+ model_config = ConfigDict(populate_by_name=True)
+
type: Literal["PipeCompose"] = "PipeCompose"
pipe_category: Literal["PipeOperator"] = "PipeOperator"
- template: str | TemplateBlueprint
+
+ # Either template or construct must be provided, but not both
+ # Note: The field is named 'construct_spec' internally to avoid conflict with Pydantic's
+ # BaseModel.construct() method. In PLX/TOML files, use 'construct' (via validation_alias).
+ template: str | TemplateBlueprint | None = None
+ construct_blueprint: ConstructBlueprint | None = Field(default=None, validation_alias="construct")
+
+ @model_validator(mode="before")
+ @classmethod
+ def validate_template_or_construct(cls, values: dict[str, Any]) -> dict[str, Any]:
+ """Validate that exactly one of template or construct is provided."""
+ has_template = values.get("template") is not None
+ construct_raw = values.get("construct")
+
+ if not has_template and construct_raw is None:
+ msg = "PipeComposeBlueprint requires either 'template' or 'construct' to be provided"
+ raise ValueError(msg)
+ if has_template and construct_raw is not None:
+ msg = "PipeComposeBlueprint cannot have both 'template' and 'construct' - use one or the other"
+ raise ValueError(msg)
+
+ if construct_raw is not None:
+ construct_blueprint = ConstructBlueprint.make_from_raw(raw=construct_raw)
+ values["construct_blueprint"] = construct_blueprint
+ # Remove the raw 'construct' key to avoid conflict with the validation_alias
+ values.pop("construct")
+ return values
@property
- def template_source(self) -> str:
+ def template_source(self) -> str | None:
+ """Get the template source string, or None if in construct mode."""
+ if self.template is None:
+ return None
if isinstance(self.template, TemplateBlueprint):
return self.template.template
return self.template
@property
def template_category(self) -> TemplateCategory:
+ """Get the template category (only relevant in template mode)."""
if isinstance(self.template, TemplateBlueprint):
return self.template.category
- else:
- return TemplateCategory.BASIC
+ return TemplateCategory.BASIC
@property
def templating_style(self) -> TemplatingStyle | None:
+ """Get the templating style (only relevant in template mode)."""
if isinstance(self.template, TemplateBlueprint):
return self.template.templating_style
- else:
- return None
+ return None
@property
def extra_context(self) -> dict[str, Any] | None:
+ """Get extra context (only relevant in template mode)."""
if isinstance(self.template, TemplateBlueprint):
return self.template.extra_context
- else:
- return None
+ return None
@override
def validate_inputs(self):
+ """Validate inputs based on mode (template or construct)."""
+ if self.construct_blueprint is not None:
+ self._validate_construct_inputs()
+ else:
+ self._validate_template_inputs()
+
+ def _validate_template_inputs(self):
+ """Validate inputs for template mode."""
+ if self.template_source is None:
+ return
+
preprocessed_template = preprocess_template(self.template_source)
try:
check_jinja2_parsing(
@@ -60,16 +105,35 @@ class PipeComposeBlueprint(PipeBlueprint):
template_category=self.template_category,
template_source=preprocessed_template,
)
- required_variables = {
- path.split(".")[0]
- for path in full_paths
- if not path.split(".")[0].startswith("_") and path.split(".")[0] not in {"preliminary_text", "place_holder"}
- }
+ required_variables: set[str] = set()
+ for path in full_paths:
+ root = get_root_from_dotted_path(path)
+ if not root.startswith("_") and root not in {"preliminary_text", "place_holder"}:
+ required_variables.add(root)
for required_variable_name in required_variables:
if required_variable_name not in self.input_names:
msg = f"Required variable '{required_variable_name}' is not in the inputs of PipeCompose."
raise ValueError(msg)
+ def _validate_construct_inputs(self):
+ """Validate inputs for construct mode.
+
+ The construct blueprint may reference variables from working memory.
+ We validate that the root variable names (before any dots) are declared in inputs.
+ For example, 'deal.customer_name' requires 'deal' to be in inputs.
+ """
+ construct_bp = self.construct_blueprint
+ if construct_bp is None:
+ return
+
+ required_variables = construct_bp.get_required_variables()
+
+ for required_variable in required_variables:
+ root_variable_name = get_root_from_dotted_path(required_variable)
+ if root_variable_name not in self.input_names:
+ msg = f"Required variable '{root_variable_name}' from construct is not in the inputs of PipeCompose for field '{required_variable}'."
+ raise ValueError(msg)
+
@override
def validate_output(self):
parsed_output = parse_concept_with_multiplicity(concept_ref=self.output)
diff --git a/pipelex/pipe_operators/compose/pipe_compose_factory.py b/pipelex/pipe_operators/compose/pipe_compose_factory.py
index 2c28fcc2e..bb1b9812a 100644
--- a/pipelex/pipe_operators/compose/pipe_compose_factory.py
+++ b/pipelex/pipe_operators/compose/pipe_compose_factory.py
@@ -27,7 +27,42 @@ class PipeComposeFactory(PipeFactoryProtocol[PipeComposeBlueprint, PipeCompose])
output: StuffSpec,
blueprint: PipeComposeBlueprint,
) -> PipeCompose:
- preprocessed_template = preprocess_template(blueprint.template_source)
+ if blueprint.construct_blueprint is not None:
+ return PipeCompose(
+ domain_code=domain_code,
+ code=pipe_code,
+ description=description,
+ inputs=inputs,
+ output=output,
+ construct_blueprint=blueprint.construct_blueprint,
+ )
+ else:
+ return cls._make_template_mode(
+ pipe_code=pipe_code,
+ domain_code=domain_code,
+ description=description,
+ inputs=inputs,
+ output=output,
+ blueprint=blueprint,
+ )
+
+ @classmethod
+ def _make_template_mode(
+ cls,
+ pipe_code: str,
+ domain_code: str,
+ description: str,
+ inputs: InputStuffSpecs,
+ output: StuffSpec,
+ blueprint: PipeComposeBlueprint,
+ ) -> PipeCompose:
+ """Create PipeCompose in template mode (produces Text output)."""
+ template_source = blueprint.template_source
+ if template_source is None:
+ msg = "Template source is required for template mode"
+ raise PipeComposeFactoryError(msg)
+
+ preprocessed_template = preprocess_template(template_source)
try:
check_jinja2_parsing(
template_source=preprocessed_template,
diff --git a/pipelex/pipe_operators/compose/structured_content_composer.py b/pipelex/pipe_operators/compose/structured_content_composer.py
new file mode 100644
index 000000000..e4fc767f6
--- /dev/null
+++ b/pipelex/pipe_operators/compose/structured_content_composer.py
@@ -0,0 +1,602 @@
+import types
+from typing import Any, Union, cast, get_args, get_origin
+
+from pydantic import ValidationError
+
+from pipelex import log
+from pipelex.cogt.content_generation.content_generator_protocol import ContentGeneratorProtocol
+from pipelex.cogt.templating.template_category import TemplateCategory
+from pipelex.cogt.templating.template_preprocessor import preprocess_template
+from pipelex.core.memory.working_memory import WorkingMemory
+from pipelex.core.stuffs.list_content import ListContent
+from pipelex.core.stuffs.stuff_content import StuffContent
+from pipelex.core.stuffs.text_content import TextContent
+from pipelex.hub import get_content_generator
+from pipelex.pipe_operators.compose.construct_blueprint import ConstructBlueprint, ConstructFieldBlueprint, ConstructFieldMethod
+from pipelex.pipe_operators.compose.exceptions import StructuredContentComposerTypeError, StructuredContentComposerValueError
+from pipelex.tools.typing.class_utils import are_classes_equivalent
+from pipelex.tools.typing.pydantic_utils import format_pydantic_validation_error
+
+
+class StructuredContentComposer:
+ """Composes a StructuredContent instance from a ConstructBlueprint.
+
+ The composer resolves each field in the blueprint according to its method:
+ - FIXED: Use the literal value directly
+ - FROM_VAR: Get value from working memory via path
+ - TEMPLATE: Render Jinja2 template with working memory context and runtime params
+ - NESTED: Recursively compose a nested StructuredContent
+
+ Attributes:
+ construct_blueprint: The blueprint defining how to compose each field
+ working_memory: The working memory containing input variables
+ output_class: The StructuredContent subclass to instantiate
+ runtime_params: Additional runtime parameters for template context (from PipeRunParams.params)
+ extra_context: Extra context values for template rendering (from PipeCompose.extra_context)
+ content_generator: The content generator to use for template rendering (supports dry run mode)
+ """
+
+ def __init__(
+ self,
+ construct_blueprint: ConstructBlueprint,
+ working_memory: WorkingMemory,
+ output_class: type[StuffContent],
+ runtime_params: dict[str, Any] | None = None,
+ extra_context: dict[str, Any] | None = None,
+ content_generator: ContentGeneratorProtocol | None = None,
+ ):
+ self.construct_blueprint = construct_blueprint
+ self.working_memory = working_memory
+ self.output_class = output_class
+ self.runtime_params = runtime_params or {}
+ self.extra_context = extra_context or {}
+ self.content_generator = content_generator or get_content_generator()
+
+ async def compose(self) -> StuffContent:
+ """Compose the StructuredContent asynchronously.
+
+ Returns:
+ Populated StructuredContent instance
+ """
+ field_values = await self._resolve_all_fields()
+ return self.output_class.model_validate(field_values)
+
+ async def _resolve_all_fields(self) -> dict[str, Any]:
+ """Resolve all fields in the blueprint to their values.
+
+ Returns:
+ Dictionary mapping field names to resolved values
+ """
+ field_values: dict[str, Any] = {}
+
+ for field_name, field_blueprint in self.construct_blueprint.fields.items():
+ field_values[field_name] = await self._resolve_field(field_blueprint=field_blueprint, field_name=field_name)
+
+ return field_values
+
+ async def _resolve_field(self, field_blueprint: ConstructFieldBlueprint, field_name: str) -> Any:
+ """Resolve a single field according to its composition method.
+
+ Args:
+ field_blueprint: The blueprint for this field
+ field_name: The name of the field (for error messages and nested class lookup)
+
+ Returns:
+ The resolved value for the field
+ """
+ match field_blueprint.method:
+ case ConstructFieldMethod.FIXED:
+ return field_blueprint.fixed_value
+
+ case ConstructFieldMethod.FROM_VAR:
+ return self._resolve_from_var(field_blueprint=field_blueprint, field_name=field_name)
+
+ case ConstructFieldMethod.TEMPLATE:
+ return await self._resolve_template(field_blueprint=field_blueprint)
+
+ case ConstructFieldMethod.NESTED:
+ return await self._resolve_nested(field_blueprint=field_blueprint, field_name=field_name)
+
+ def _resolve_from_var(self, field_blueprint: ConstructFieldBlueprint, field_name: str) -> Any:
+ """Resolve a FROM_VAR field by getting value from working memory.
+
+ The resolution is type-aware: it checks what the target field expects
+ and converts content accordingly:
+ - TextContent -> str: extract .text
+ - TextContent -> TextContent/subclass: keep object
+ - ListContent -> list[X]: extract items as dicts
+ - ListContent -> ListContent: keep object
+
+ Args:
+ field_blueprint: The field blueprint with from_path
+ field_name: The name of the target field (for type lookup)
+
+ Returns:
+ The value from working memory, converted as appropriate for the target field
+ """
+ if not field_blueprint.from_path:
+ msg = "from_path is required for FROM_VAR method"
+ raise StructuredContentComposerValueError(msg)
+
+ path = field_blueprint.from_path
+ expected_type: type[Any] | None = self._get_field_expected_type(field_name=field_name)
+ log.verbose(f"_resolve_from_var: resolving path '{path}' for field '{field_name}' (expected: {expected_type})")
+
+ if "." in path:
+ return self._resolve_dotted_path(path=path, expected_type=expected_type)
+ else:
+ return self._resolve_from_stuff_name(name=path, expected_type=expected_type)
+
+ def _resolve_dotted_path(self, path: str, expected_type: type[Any] | None) -> Any:
+ """Resolve a dotted path by navigating through object attributes.
+
+ Handles paths like "deal.customer_name" by getting the base object
+ from working memory and then navigating through its attributes.
+ Applies type conversion based on expected_type (same as non-dotted paths).
+
+ Args:
+ path: The dotted path (e.g., "deal.customer_name")
+ expected_type: The expected type annotation for the target field
+
+ Returns:
+ The value at the end of the attribute path, converted as appropriate
+ """
+ parts = path.split(".", 1)
+ base_name = parts[0]
+ attr_path = parts[1]
+
+ stuff = self.working_memory.get_stuff(base_name)
+ stuff_content: StuffContent = stuff.content
+ log.verbose(f" Stuff '{base_name}' content type: {type(stuff_content).__name__}")
+
+ # Navigate the attribute path - this is dynamic attribute access at runtime
+ current_value: Any = stuff_content
+ for attr in attr_path.split("."):
+ if hasattr(current_value, attr): # pyright: ignore[reportUnknownArgumentType]
+ current_value = getattr(current_value, attr) # pyright: ignore[reportUnknownArgumentType]
+ elif isinstance(current_value, dict) and attr in current_value: # pyright: ignore[reportUnknownVariableType]
+ current_value = current_value[attr] # pyright: ignore[reportUnknownVariableType]
+ else:
+ msg = f"Cannot resolve path '{path}': attribute '{attr}' not found"
+ raise StructuredContentComposerValueError(msg)
+ log.verbose(f" Resolved value type: {type(current_value).__name__}") # pyright: ignore[reportUnknownArgumentType]
+
+ # Apply type conversion if the resolved value is a StuffContent
+ if isinstance(current_value, StuffContent):
+ return self._convert_for_target_type(stuff_content=current_value, expected_type=expected_type)
+ else:
+ return current_value # pyright: ignore[reportUnknownVariableType]
+
+ def _resolve_from_stuff_name(self, name: str, expected_type: type[Any] | None) -> StuffContent | list[dict[str, Any]] | str:
+ """Resolve a simple (non-dotted) path and convert content based on expected type.
+
+ Args:
+ name: A non-dotted path, hence it's the stuff name in working memory
+ expected_type: The expected type annotation for the target field
+
+ Returns:
+ The content, converted as appropriate for the target field type
+ """
+ stuff = self.working_memory.get_stuff(name=name)
+ stuff_content: StuffContent = stuff.content
+ log.verbose(f" Stuff '{name}' content type: {type(stuff_content).__name__}")
+ return self._convert_for_target_type(stuff_content=stuff_content, expected_type=expected_type)
+
+ def _convert_for_target_type(self, stuff_content: StuffContent, expected_type: type[Any] | None) -> StuffContent | list[dict[str, Any]] | str:
+ """Convert content based on the expected target field type.
+
+ Central dispatcher for type-aware conversion. Routes to specific
+ conversion methods based on content type.
+
+ Args:
+ stuff_content: The content to convert
+ expected_type: The expected type annotation for the target field
+
+ Returns:
+ The content, converted as appropriate for the target field type
+ """
+ if isinstance(stuff_content, TextContent):
+ return self._convert_text_content(text_content=stuff_content, expected_type=expected_type)
+ elif isinstance(stuff_content, ListContent):
+ list_content = cast("ListContent[StuffContent]", stuff_content)
+ return self._convert_list_content(list_content=list_content, expected_type=expected_type)
+ elif expected_type is not None and self._expects_type(expected_type=expected_type, target_type=StuffContent):
+ log.verbose(f" -> Target expects {expected_type.__name__}, converting content")
+ return self._convert_content_for_field(stuff_content=stuff_content, expected_type=expected_type)
+ else:
+ # Fallback: return as-is
+ log.verbose(f" -> Unknown target type, returning {type(stuff_content).__name__} object")
+ return stuff_content
+
+ def _convert_text_content(self, text_content: TextContent, expected_type: Any) -> TextContent | str:
+ """Convert TextContent based on expected type (str, TextContent, or subclass).
+
+ Args:
+ text_content: The TextContent to convert
+ expected_type: The expected type annotation for the target field
+
+ Returns:
+ Either the text string, or the TextContent object (potentially converted)
+ """
+ if self._expects_type(expected_type=expected_type, target_type=str):
+ # Target field expects str, extract the text
+ log.verbose(" -> Target expects str, returning TextContent.text")
+ return text_content.text
+ elif self._expects_type(expected_type=expected_type, target_type=TextContent):
+ # Target field expects TextContent or subclass
+ converted_text_content = self._convert_content_for_field(stuff_content=text_content, expected_type=expected_type)
+ assert isinstance(converted_text_content, TextContent)
+ return converted_text_content
+ else:
+ # Default: return the object as-is
+ log.verbose(f" -> Unknown target type, returning {type(text_content).__name__} object")
+ return text_content
+
+ def _convert_list_content(
+ self, list_content: ListContent[StuffContent], expected_type: type[Any] | None
+ ) -> ListContent[StuffContent] | list[dict[str, Any]]:
+ """Convert ListContent based on expected type (list[X] or ListContent[X]).
+
+ Args:
+ list_content: The ListContent to convert
+ expected_type: The expected type annotation for the target field
+
+ Returns:
+ Either a list of dicts, or a ListContent object with converted items
+ """
+ expected_item_type: type[Any] | None
+ if expected_type and self._expects_list_content_type(expected_type=expected_type):
+ # Target field expects ListContent[X], check item compatibility and return as ListContent
+ expected_item_type = self._get_list_item_type(expected_type=expected_type)
+ log.verbose(f" -> Target expects ListContent[{expected_item_type}]")
+ converted_items = self._convert_list_items_as_objects(items=list_content.items, expected_item_type=expected_item_type)
+ return ListContent(items=converted_items)
+ elif expected_type and self._expects_list_type(expected_type=expected_type):
+ # Target expects list[X], extract items as dicts for Pydantic reconstruction
+ expected_item_type = self._get_list_item_type(expected_type=expected_type)
+ log.verbose(f" -> Target expects list[{expected_item_type}], extracting items from ListContent")
+ return self._convert_list_items_as_dicts(items=list_content.items, expected_item_type=expected_item_type)
+ else:
+ # Default: return the object as-is
+ log.verbose(f" -> Unknown target type, returning ListContent object with {list_content.nb_items} items")
+ return list_content
+
+ def _get_field_expected_type(self, field_name: str) -> type[Any] | None:
+ """Get the expected type annotation for a field from the output class.
+
+ Args:
+ field_name: The name of the field
+
+ Returns:
+ The type annotation for the field
+ """
+ field_info = self.output_class.model_fields.get(field_name)
+ if field_info and field_info.annotation:
+ return field_info.annotation
+ else:
+ return None
+
+ def _expects_type(self, expected_type: type[Any], target_type: type) -> bool:
+ """Check if the expected type matches or is a subclass of target_type.
+
+ Args:
+ expected_type: The type annotation to check
+ target_type: The type to match against (e.g., str, TextContent, StuffContent)
+
+ Returns:
+ True if expected_type is target_type or a subclass of it
+ """
+ if expected_type is target_type:
+ return True
+ try:
+ return issubclass(expected_type, target_type)
+ except TypeError:
+ # expected_type is not a class (e.g., it's a generic like list[X])
+ return False
+
+ def _convert_content_for_field(self, stuff_content: StuffContent, expected_type: type[StuffContent]) -> StuffContent:
+ """Convert any StuffContent to the expected type if needed.
+
+ This is a generic conversion method that handles class compatibility for
+ any StuffContent subclass (TextContent, StructuredContent, etc.):
+ 1. If actual class is the expected class or a subclass -> return as-is
+ 2. If classes are structurally equivalent -> rebuild using expected class
+ 3. Otherwise -> attempt rebuild, error on failure
+
+ Args:
+ stuff_content: The StuffContent object to convert
+ expected_type: The expected StuffContent class/subclass
+
+ Returns:
+ The content object, potentially rebuilt as the expected class
+
+ Raises:
+ ValueError: If the content cannot be converted to the expected type
+ """
+ actual_type = type(stuff_content)
+
+ if isinstance(stuff_content, expected_type):
+ # Exact match or subclass - return as-is
+ log.verbose(f" -> {actual_type.__name__} is compatible with {expected_type.__name__}, returning as-is")
+ return stuff_content
+ elif are_classes_equivalent(class_1=actual_type, class_2=expected_type):
+ # Check structural equivalence and rebuild if compatible
+ log.verbose(f" -> {actual_type.__name__} is structurally equivalent to {expected_type.__name__}, rebuilding")
+ content_dict = stuff_content.model_dump(exclude_none=False, serialize_as_any=True)
+ return expected_type.model_validate(content_dict)
+ else:
+ # Try to rebuild anyway if expected_type accepts the content's fields
+ try:
+ log.verbose(f" -> Attempting to rebuild {actual_type.__name__} as {expected_type.__name__}")
+ content_dict = stuff_content.model_dump(exclude_none=False, serialize_as_any=True)
+ return expected_type.model_validate(content_dict)
+ except ValidationError as exc:
+ formatted_error = format_pydantic_validation_error(exc)
+ msg = f"Cannot convert {actual_type.__name__} to {expected_type.__name__}: classes are not compatible. {formatted_error}"
+ raise StructuredContentComposerTypeError(msg) from exc
+
+ def _expects_list_content_type(self, expected_type: type[Any]) -> bool:
+ """Check if the expected type is ListContent (not list[X]).
+
+ Args:
+ expected_type: The type annotation to check
+
+ Returns:
+ True if the expected type is ListContent or a subclass
+ """
+ # Check if it's a generic ListContent[X]
+ origin = get_origin(expected_type)
+ if origin is not None:
+ try:
+ return isinstance(origin, type) and issubclass(origin, ListContent)
+ except TypeError:
+ return False
+
+ # Check if it's the ListContent class itself
+ try:
+ return issubclass(expected_type, ListContent)
+ except TypeError:
+ return False
+
+ def _expects_list_type(self, expected_type: type[Any]) -> bool:
+ """Check if the expected type is list[X] (not ListContent).
+
+ Args:
+ expected_type: The type annotation to check
+
+ Returns:
+ True if the expected type is list[X]
+ """
+ origin = get_origin(expected_type)
+ return origin is list
+
+ def _get_list_item_type(self, expected_type: type[Any]) -> type[Any] | None:
+ """Extract the item type from list[X] or ListContent[X].
+
+ Args:
+ expected_type: The type annotation (e.g., list[Address] or ListContent[TeamMember])
+
+ Returns:
+ The item type X, or None if not determinable
+ """
+ args = get_args(expected_type)
+ if args:
+ return args[0] # type: ignore[return-value, no-any-return]
+ else:
+ return None
+
+ def _convert_list_items_as_dicts(self, items: list[StuffContent], expected_item_type: type[Any] | None) -> list[dict[str, Any]]:
+ """Convert list items to dicts for Pydantic model_validate reconstruction.
+
+ Used when target is list[X] - items are returned as dicts so Pydantic
+ can reconstruct them during model_validate().
+
+ Args:
+ items: The list of items to convert
+ expected_item_type: The expected type for each item
+
+ Returns:
+ List of item dicts
+ """
+ log.verbose(f" Converting {len(items)} items to dicts, expected item type: {expected_item_type}")
+
+ if expected_item_type is None:
+ log.verbose(" No expected item type, converting all items to dicts")
+ return [item.model_dump(exclude_none=False, serialize_as_any=True) for item in items]
+
+ converted_items: list[dict[str, Any]] = []
+ for idx, item in enumerate(items):
+ self._validate_item_compatibility(item=item, expected_type=expected_item_type, idx=idx)
+ converted_items.append(item.model_dump(exclude_none=False, serialize_as_any=True))
+
+ log.verbose(f" Returning {len(converted_items)} items as dicts")
+ return converted_items
+
+ def _convert_list_items_as_objects(self, items: list[StuffContent], expected_item_type: type[Any] | None) -> list[StuffContent]:
+ """Convert list items while keeping them as objects (for ListContent target).
+
+ Used when target is ListContent[X] - items are validated and potentially
+ rebuilt as the expected type, but returned as actual objects.
+
+ Args:
+ items: The list of items to convert
+ expected_item_type: The expected type for each item
+
+ Returns:
+ List of StuffContent objects
+ """
+ log.verbose(f" Converting {len(items)} items as objects, expected item type: {expected_item_type}")
+
+ if expected_item_type is None:
+ log.verbose(" No expected item type, returning items as-is")
+ return items
+
+ converted_items: list[StuffContent] = []
+ for idx, item in enumerate(items):
+ converted_item = self._convert_single_item_as_object(item, expected_item_type, idx)
+ converted_items.append(converted_item)
+
+ log.verbose(f" Returning {len(converted_items)} items as objects")
+ return converted_items
+
+ def _validate_item_compatibility(self, item: StuffContent, expected_type: type[Any], idx: int) -> None:
+ """Validate that an item can be converted to the expected type.
+
+ Args:
+ item: The item to validate
+ expected_type: The expected type for the item
+ idx: The item index (for error messages)
+
+ Raises:
+ ValueError: If the item cannot be converted to the expected type
+ """
+ actual_type = type(item)
+
+ # Case 1: Exact match or subclass - OK
+ if isinstance(item, expected_type):
+ log.verbose(f" Item[{idx}]: {actual_type.__name__} is compatible with {expected_type.__name__}")
+ return
+
+ # Case 2: Check structural equivalence - OK
+ if hasattr(actual_type, "model_fields") and hasattr(expected_type, "model_fields"):
+ if are_classes_equivalent(class_1=actual_type, class_2=expected_type):
+ log.verbose(f" Item[{idx}]: {actual_type.__name__} is structurally equivalent to {expected_type.__name__}")
+ return
+
+ # Case 3: Try to validate via dict
+ log.verbose(f" Item[{idx}]: Validating conversion {actual_type.__name__} -> {expected_type.__name__}")
+ item_dict = item.model_dump(exclude_none=False, serialize_as_any=True)
+
+ if hasattr(expected_type, "model_validate"):
+ try:
+ expected_type.model_validate(item_dict)
+ except ValidationError as exc:
+ formatted_error = format_pydantic_validation_error(exc)
+ msg = f"Cannot convert item[{idx}] from {actual_type.__name__} to {expected_type.__name__}: {formatted_error}"
+ raise StructuredContentComposerTypeError(msg) from exc
+
+ def _convert_single_item_as_object(self, item: StuffContent, expected_type: type[Any], idx: int) -> StuffContent:
+ """Convert a single list item while keeping it as an object.
+
+ Delegates to the generic _convert_content_for_field method,
+ adding item index information to error messages.
+
+ Args:
+ item: The item to convert
+ expected_type: The expected type for the item
+ idx: The item index (for error messages)
+
+ Returns:
+ The item, potentially rebuilt as the expected type
+
+ Raises:
+ ValueError: If the item cannot be converted to the expected type
+ """
+ try:
+ log.verbose(f" Item[{idx}]: Converting {type(item).__name__} to {expected_type.__name__}")
+ return self._convert_content_for_field(item, expected_type)
+ except StructuredContentComposerTypeError as exc:
+ # Re-raise with item index in message
+ msg = f"Item[{idx}]: {exc}"
+ raise StructuredContentComposerTypeError(msg) from exc
+
+ async def _resolve_template(self, field_blueprint: ConstructFieldBlueprint) -> str:
+ """Resolve a TEMPLATE field by rendering the Jinja2 template.
+
+ The context is built consistently with _run_template_mode in PipeCompose:
+ 1. Working memory context (stuffs as variables)
+ 2. Runtime params from PipeRunParams.params (keys prefixed with _)
+ 3. Extra context from PipeCompose.extra_context
+
+ This ensures templates in construct fields can access the same variables
+ as templates in template mode.
+
+ Args:
+ field_blueprint: The field blueprint with template
+
+ Returns:
+ The rendered template string
+ """
+ if not field_blueprint.template:
+ msg = "template is required for TEMPLATE method"
+ raise StructuredContentComposerValueError(msg)
+
+ # Build context consistently with _run_template_mode in PipeCompose:
+ # 1. Working memory context (stuffs as variables)
+ context: dict[str, Any] = self.working_memory.generate_context()
+ # 2. Runtime params (from PipeRunParams.params)
+ if self.runtime_params:
+ context.update(**self.runtime_params)
+ # 3. Extra context (from PipeCompose.extra_context)
+ if self.extra_context:
+ context.update(**self.extra_context)
+
+ # Preprocess the template (handles $ -> {{ }} conversion)
+ preprocessed = preprocess_template(field_blueprint.template)
+
+ # Render the template using the provided content generator (supports dry run mode)
+ return await self.content_generator.make_templated_text(
+ context=context,
+ template=preprocessed,
+ template_category=TemplateCategory.BASIC,
+ )
+
+ async def _resolve_nested(self, field_blueprint: ConstructFieldBlueprint, field_name: str) -> StuffContent:
+ """Resolve a NESTED field by recursively composing a nested StructuredContent.
+
+ Args:
+ field_blueprint: The field blueprint with nested ConstructBlueprint
+ field_name: The field name (used to look up the expected class from output_class)
+
+ Returns:
+ The composed nested StructuredContent
+ """
+ if not field_blueprint.nested:
+ msg = "nested is required for NESTED method"
+ raise StructuredContentComposerValueError(msg)
+
+ # Get the field type from the output class to determine nested class
+ nested_class: type[StuffContent] = self._get_nested_field_class(field_name=field_name)
+
+ # Create a new composer for the nested structure, passing through runtime params, extra context, and content generator
+ nested_composer = StructuredContentComposer(
+ construct_blueprint=field_blueprint.nested,
+ working_memory=self.working_memory,
+ output_class=nested_class,
+ runtime_params=self.runtime_params,
+ extra_context=self.extra_context,
+ content_generator=self.content_generator,
+ )
+
+ return await nested_composer.compose()
+
+ def _get_nested_field_class(self, field_name: str) -> type[StuffContent]:
+ """Get the class for a nested field from the output class's field annotations.
+
+ Args:
+ field_name: The name of the nested field
+
+ Returns:
+ The class expected for the nested field
+ """
+ # Get the field info from the Pydantic model
+ field_info = self.output_class.model_fields.get(field_name)
+ if field_info and field_info.annotation:
+ annotation = field_info.annotation
+ # Handle Optional types (both `Optional[X]` and Python 3.10+ `X | None` syntax)
+ # We need to specifically detect Optional types, not all generic types.
+ # - Optional[X] has origin Union and type(None) in args
+ # - X | None (Python 3.10+) has origin types.UnionType and type(None) in args
+ # Other generic types like list[X] should NOT be unwrapped.
+ origin = get_origin(annotation)
+ if origin is Union or origin is types.UnionType:
+ args = get_args(annotation)
+ if type(None) in args:
+ # It's an Optional type, get the non-None type
+ non_none_args = [arg for arg in args if arg is not type(None)]
+ if non_none_args:
+ annotation = non_none_args[0]
+ return annotation # type: ignore[return-value]
+ else:
+ msg = f"Cannot determine class for nested field '{field_name}' in {self.output_class.__name__}"
+ raise StructuredContentComposerTypeError(msg)
diff --git a/pipelex/pipe_operators/extract/pipe_extract.py b/pipelex/pipe_operators/extract/pipe_extract.py
index 4a9a78bd7..76ef2d47b 100644
--- a/pipelex/pipe_operators/extract/pipe_extract.py
+++ b/pipelex/pipe_operators/extract/pipe_extract.py
@@ -1,9 +1,8 @@
-from typing import Literal
+from typing import TYPE_CHECKING, Literal
from pydantic import model_validator
from typing_extensions import Self, override
-from pipelex import log
from pipelex.cogt.content_generation.content_generator_dry import ContentGeneratorDry
from pipelex.cogt.content_generation.content_generator_protocol import ContentGeneratorProtocol
from pipelex.cogt.exceptions import ModelChoiceNotFoundError
@@ -16,12 +15,8 @@ from pipelex.core.memory.working_memory import WorkingMemory
from pipelex.core.pipes.exceptions import PipeValidationError, PipeValidationErrorType
from pipelex.core.pipes.inputs.input_stuff_specs import InputStuffSpecs
from pipelex.core.pipes.pipe_output import PipeOutput
-from pipelex.core.stuffs.image_content import ImageContent
from pipelex.core.stuffs.list_content import ListContent
-from pipelex.core.stuffs.page_content import PageContent
from pipelex.core.stuffs.stuff_factory import StuffFactory
-from pipelex.core.stuffs.text_and_images_content import TextAndImagesContent
-from pipelex.core.stuffs.text_content import TextContent
from pipelex.hub import (
get_content_generator,
get_model_deck,
@@ -30,7 +25,9 @@ from pipelex.hub import (
from pipelex.pipe_operators.pipe_operator import PipeOperator
from pipelex.pipe_run.pipe_run_params import PipeRunParams
from pipelex.pipeline.job_metadata import JobMetadata
-from pipelex.tools.pdf.pypdfium2_renderer import pypdfium2_renderer
+
+if TYPE_CHECKING:
+ from pipelex.core.stuffs.page_content import PageContent
class PipeExtractOutput(PipeOutput):
@@ -128,7 +125,7 @@ class PipeExtract(PipeOperator[PipeExtractOutput]):
image_uri=image_uri,
pdf_uri=pdf_uri,
)
- extract_output = await content_generator.make_extract_pages(
+ page_contents = await content_generator.make_extract_pages(
extract_input=extract_input,
extract_handle=extract_setting.model,
job_metadata=job_metadata,
@@ -136,47 +133,6 @@ class PipeExtract(PipeOperator[PipeExtractOutput]):
extract_job_config=ExtractJobConfig(),
)
- # Build the output stuff, which is a list of page contents
- page_view_contents: list[ImageContent] = []
- if self.should_include_page_views:
- log.verbose(f"should_include_page_views: {self.should_include_page_views}, pdf_uri: {pdf_uri}, image_uri: {image_uri}")
- if pdf_uri:
- page_view_contents.extend(
- ImageContent.make_from_extracted_image(extracted_image=page.page_view) for page in extract_output.pages.values() if page.page_view
- )
- log.verbose(f"page_view_contents: {page_view_contents}")
- needs_to_generate_page_views: bool
- if len(page_view_contents) == 0:
- log.verbose("No page views found in the OCR output")
- needs_to_generate_page_views = True
- elif len(page_view_contents) < len(extract_output.pages):
- log.warning(f"Only {len(page_view_contents)} page found in the OCR output, but {len(extract_output.pages)} pages")
- needs_to_generate_page_views = True
- else:
- log.verbose("All page views found in the OCR output")
- needs_to_generate_page_views = False
-
- if needs_to_generate_page_views:
- page_views = await pypdfium2_renderer.render_pdf_pages_from_uri(pdf_uri=pdf_uri, dpi=self.page_views_dpi)
- page_view_contents = [ImageContent.make_from_image(image=img) for img in page_views]
- elif image_uri:
- page_view_contents = [ImageContent(url=image_uri)]
-
- page_contents: list[PageContent] = []
- for page_index, page in extract_output.pages.items():
- images = [ImageContent.make_from_extracted_image(extracted_image=img) for img in page.extracted_images]
- log.verbose(f"images: {images}, page_view_contents: {page_view_contents}, index: {page_index}")
- page_view = page_view_contents[page_index - 1] if self.should_include_page_views else None
- page_contents.append(
- PageContent(
- text_and_images=TextAndImagesContent(
- text=TextContent(text=page.text) if page.text else None,
- images=images,
- ),
- page_view=page_view,
- ),
- )
-
content: ListContent[PageContent] = ListContent(items=page_contents)
output_stuff = StuffFactory.make_stuff(
diff --git a/pipelex/pipe_operators/img_gen/pipe_img_gen.py b/pipelex/pipe_operators/img_gen/pipe_img_gen.py
index 123c77670..b19486745 100644
--- a/pipelex/pipe_operators/img_gen/pipe_img_gen.py
+++ b/pipelex/pipe_operators/img_gen/pipe_img_gen.py
@@ -6,7 +6,7 @@ from typing_extensions import override
from pipelex import log
from pipelex.cogt.content_generation.content_generator_dry import ContentGeneratorDry
from pipelex.cogt.content_generation.content_generator_protocol import ContentGeneratorProtocol
-from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, ImgGenJobParams, OutputFormat
+from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, ImgGenJobParams
from pipelex.cogt.img_gen.img_gen_prompt import ImgGenPrompt
from pipelex.cogt.img_gen.img_gen_setting import ImgGenModelChoice, ImgGenSetting
from pipelex.cogt.models.model_deck_check import check_img_gen_choice_with_deck
@@ -31,8 +31,8 @@ from pipelex.pipe_run.pipe_run_mode import PipeRunMode
from pipelex.pipe_run.pipe_run_params import PipeRunParams, output_multiplicity_to_apply
from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
from pipelex.pipeline.job_metadata import JobMetadata
-from pipelex.tools.misc.base_64_utils import extract_base_64_str_from_base64_url_if_possible
from pipelex.tools.misc.dict_utils import substitute_nested_in_context
+from pipelex.tools.misc.image_utils import ImageFormat
if TYPE_CHECKING:
from pipelex.core.stuffs.stuff_content import StuffContent
@@ -45,6 +45,7 @@ class PipeImgGenOutput(PipeOutput):
class PipeImgGen(PipeOperator[PipeImgGenOutput]):
type: Literal["PipeImgGen"] = "PipeImgGen"
prompt_blueprint: TemplateBlueprint
+ negative_prompt_blueprint: TemplateBlueprint | None = None
img_gen_choice: ImgGenModelChoice | None = None
# One-time settings (not in ImgGenSetting)
@@ -52,7 +53,7 @@ class PipeImgGen(PipeOperator[PipeImgGenOutput]):
is_raw: bool | None = None
seed: int | Literal["auto"] | None = None
background: Background | None = Field(default=None, strict=False)
- output_format: OutputFormat | None = Field(default=None, strict=False)
+ output_format: ImageFormat | None = Field(default=None, strict=False)
output_multiplicity: VariableMultiplicity
@override
@@ -63,7 +64,12 @@ class PipeImgGen(PipeOperator[PipeImgGenOutput]):
@override
def required_variables(self) -> set[str]:
"""Required variables are the variables that are used in the prompt template"""
- return {variable_name for variable_name in self.prompt_blueprint.required_variables() if not variable_name.startswith("_")}
+ required_variables = {variable_name for variable_name in self.prompt_blueprint.required_variables() if not variable_name.startswith("_")}
+ if self.negative_prompt_blueprint:
+ required_variables.update(
+ {variable_name for variable_name in self.negative_prompt_blueprint.required_variables() if not variable_name.startswith("_")}
+ )
+ return required_variables
@override
def validate_inputs_static(self):
@@ -116,17 +122,31 @@ class PipeImgGen(PipeOperator[PipeImgGenOutput]):
applied_output_multiplicity = multiplicity_resolution.resolved_multiplicity
try:
- context: dict[str, Any] = working_memory.generate_context()
+ base_context: dict[str, Any] = working_memory.generate_context()
+ positive_prompt_context = base_context.copy()
if extra_params := pipe_run_params.params:
- context = substitute_nested_in_context(context=context, extra_params=extra_params)
+ positive_prompt_context = substitute_nested_in_context(context=positive_prompt_context, extra_params=extra_params)
if extra_context := self.prompt_blueprint.extra_context:
- context.update(**extra_context)
- img_gen_prompt_text = await content_generator.make_templated_text(
- context=context,
+ positive_prompt_context.update(**extra_context)
+ positive_prompt_text = await content_generator.make_templated_text(
+ context=positive_prompt_context,
template=self.prompt_blueprint.template,
templating_style=self.prompt_blueprint.templating_style,
template_category=self.prompt_blueprint.category,
)
+ negative_prompt_text: str | None = None
+ if self.negative_prompt_blueprint:
+ negative_prompt_context = base_context.copy()
+ if extra_params := pipe_run_params.params:
+ negative_prompt_context = substitute_nested_in_context(context=negative_prompt_context, extra_params=extra_params)
+ if extra_context := self.negative_prompt_blueprint.extra_context:
+ negative_prompt_context.update(**extra_context)
+ negative_prompt_text = await content_generator.make_templated_text(
+ context=negative_prompt_context,
+ template=self.negative_prompt_blueprint.template,
+ templating_style=self.negative_prompt_blueprint.templating_style,
+ template_category=self.negative_prompt_blueprint.category,
+ )
except WorkingMemoryStuffNotFoundError as stuff_not_found_error:
msg = f"While runnning the PipeImgGen '{self.code}' some inputs could not be found in the working_memory: {stuff_not_found_error}"
raise PipeImgGenRunError(message=msg) from stuff_not_found_error
@@ -165,7 +185,7 @@ class PipeImgGen(PipeOperator[PipeImgGenOutput]):
is_moderated=img_gen_setting.is_moderated,
safety_tolerance=img_gen_setting.safety_tolerance,
is_raw=self.is_raw if self.is_raw is not None else img_gen_param_defaults.is_raw,
- output_format=self.output_format or img_gen_param_defaults.output_format,
+ output_format=self.output_format,
seed=seed,
)
# Get the image generation handle
@@ -187,57 +207,44 @@ class PipeImgGen(PipeOperator[PipeImgGenOutput]):
else:
nb_images = 1
- # Get the structure class from the registry (Has to be a subclass of ImageContent)
- structure_class = get_class_registry().get_required_subclass(
+ # Get the structure class from the registry (must be a subclass of ImageContent)
+ image_content_subclass = get_class_registry().get_required_subclass(
name=self.output.concept.structure_class_name,
base_class=ImageContent,
)
- base_64_str: str | None
if nb_images > 1:
- generated_image_list = await content_generator.make_image_list(
+ image_content_list = await content_generator.make_image_list(
job_metadata=job_metadata,
img_gen_handle=img_gen_handle,
img_gen_prompt=ImgGenPrompt(
- positive_text=img_gen_prompt_text,
+ positive_text=positive_prompt_text,
+ negative_text=negative_prompt_text,
),
nb_images=nb_images,
img_gen_job_params=img_gen_job_params,
img_gen_job_config=img_gen_config.img_gen_job_config,
)
- image_content_items: list[StuffContent] = []
- for generated_image in generated_image_list:
- generated_image_url = generated_image.url
- base_64_str = extract_base_64_str_from_base64_url_if_possible(possibly_base64_url=generated_image_url)
- image_content_items.append(
- structure_class(
- url=generated_image_url,
- source_prompt=img_gen_prompt_text,
- base_64=base_64_str,
- ),
- )
+ subclass_content_items: list[ImageContent] = []
+ for image_content in image_content_list:
+ subclass_content = image_content_subclass.model_validate(image_content)
+ subclass_content_items.append(subclass_content)
the_content = ListContent(
- items=image_content_items,
+ items=subclass_content_items,
)
log.verbose(the_content, title="List of image contents")
else:
- generated_image = await content_generator.make_single_image(
+ image_content = await content_generator.make_single_image(
job_metadata=job_metadata,
img_gen_handle=img_gen_handle,
img_gen_prompt=ImgGenPrompt(
- positive_text=img_gen_prompt_text,
+ positive_text=positive_prompt_text,
+ negative_text=negative_prompt_text,
),
img_gen_job_params=img_gen_job_params,
img_gen_job_config=img_gen_config.img_gen_job_config,
)
- generated_image_url = generated_image.url
- base_64_str = extract_base_64_str_from_base64_url_if_possible(possibly_base64_url=generated_image_url)
-
- the_content = structure_class(
- url=generated_image_url,
- source_prompt=img_gen_prompt_text,
- base_64=base_64_str,
- )
+ the_content = image_content_subclass.model_validate(image_content)
log.verbose(the_content, title=f"output stuff content of PipeImg {self.code}")
output_stuff = StuffFactory.make_stuff(
diff --git a/pipelex/pipe_operators/img_gen/pipe_img_gen_blueprint.py b/pipelex/pipe_operators/img_gen/pipe_img_gen_blueprint.py
index 6fb498fec..9d56c32a6 100644
--- a/pipelex/pipe_operators/img_gen/pipe_img_gen_blueprint.py
+++ b/pipelex/pipe_operators/img_gen/pipe_img_gen_blueprint.py
@@ -3,7 +3,7 @@ from typing import Literal
from pydantic import Field
from typing_extensions import override
-from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, OutputFormat
+from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background
from pipelex.cogt.img_gen.img_gen_setting import ImgGenModelChoice
from pipelex.cogt.templating.template_category import TemplateCategory
from pipelex.cogt.templating.template_preprocessor import preprocess_template
@@ -11,12 +11,15 @@ from pipelex.core.pipes.pipe_blueprint import PipeBlueprint
from pipelex.tools.jinja2.jinja2_errors import Jinja2TemplateSyntaxError
from pipelex.tools.jinja2.jinja2_parsing import check_jinja2_parsing
from pipelex.tools.jinja2.jinja2_required_variables import detect_jinja2_required_variables
+from pipelex.tools.misc.image_utils import ImageFormat
+from pipelex.tools.misc.string_utils import get_root_from_dotted_path
class PipeImgGenBlueprint(PipeBlueprint):
type: Literal["PipeImgGen"] = "PipeImgGen"
pipe_category: Literal["PipeOperator"] = "PipeOperator"
prompt: str
+ negative_prompt: str | None = None
model: ImgGenModelChoice | None = None
@@ -25,7 +28,7 @@ class PipeImgGenBlueprint(PipeBlueprint):
is_raw: bool | None = None
seed: int | Literal["auto"] | None = None
background: Background | None = Field(default=None, strict=False)
- output_format: OutputFormat | None = Field(default=None, strict=False)
+ output_format: ImageFormat | None = Field(default=None, strict=False)
@override
def validate_inputs(self):
@@ -45,7 +48,11 @@ class PipeImgGenBlueprint(PipeBlueprint):
template_category=template_category,
template_source=preprocessed_template,
)
- required_variables = {path.split(".")[0] for path in full_paths if not path.split(".")[0].startswith("_")}
+ required_variables: set[str] = set()
+ for path in full_paths:
+ root = get_root_from_dotted_path(path)
+ if not root.startswith("_"):
+ required_variables.add(root)
# Check that all required variables are in inputs
input_names: set[str] = set(self.inputs.keys()) if self.inputs else set()
diff --git a/pipelex/pipe_operators/img_gen/pipe_img_gen_factory.py b/pipelex/pipe_operators/img_gen/pipe_img_gen_factory.py
index c1a774162..1bcf4da27 100644
--- a/pipelex/pipe_operators/img_gen/pipe_img_gen_factory.py
+++ b/pipelex/pipe_operators/img_gen/pipe_img_gen_factory.py
@@ -36,7 +36,14 @@ class PipeImgGenFactory(PipeFactoryProtocol[PipeImgGenBlueprint, PipeImgGen]):
template=blueprint.prompt,
category=TemplateCategory.IMG_GEN_PROMPT,
)
-
+ negative_prompt_blueprint = (
+ TemplateBlueprint(
+ template=blueprint.negative_prompt,
+ category=TemplateCategory.IMG_GEN_PROMPT,
+ )
+ if blueprint.negative_prompt
+ else None
+ )
return PipeImgGen(
domain_code=domain_code,
code=pipe_code,
@@ -45,6 +52,7 @@ class PipeImgGenFactory(PipeFactoryProtocol[PipeImgGenBlueprint, PipeImgGen]):
output=output,
output_multiplicity=final_multiplicity,
prompt_blueprint=prompt_blueprint,
+ negative_prompt_blueprint=negative_prompt_blueprint,
img_gen_choice=blueprint.model,
aspect_ratio=blueprint.aspect_ratio,
is_raw=blueprint.is_raw,
diff --git a/pipelex/pipe_operators/llm/llm_prompt_blueprint.py b/pipelex/pipe_operators/llm/llm_prompt_blueprint.py
index fb0823887..221eb5695 100644
--- a/pipelex/pipe_operators/llm/llm_prompt_blueprint.py
+++ b/pipelex/pipe_operators/llm/llm_prompt_blueprint.py
@@ -64,7 +64,7 @@ class LLMPromptBlueprint(BaseModel):
accept_list=True,
)
if isinstance(prompt_image_content, ImageContent):
- user_image = PromptImageFactory.make_prompt_image(url=prompt_image_content.url, base_64_str=prompt_image_content.base_64)
+ user_image = PromptImageFactory.make_prompt_image(url=prompt_image_content.url)
prompt_user_images[user_image_name] = user_image
elif isinstance(prompt_image_content, list):
prompt_image_content = cast("list[ImageContent]", prompt_image_content)
@@ -72,7 +72,7 @@ class LLMPromptBlueprint(BaseModel):
if not isinstance(image_item, ImageContent): # pyright: ignore[reportUnnecessaryIsInstance]
msg = f"Item of '{user_image_name}' is of type '{type(image_item).__name__}', it should be ImageContent"
raise LLMPromptBlueprintValueError(msg)
- user_image = PromptImageFactory.make_prompt_image(url=image_item.url, base_64_str=image_item.base_64)
+ user_image = PromptImageFactory.make_prompt_image(url=image_item.url)
user_image_item_name = f"{user_image_name}[{image_index}]"
prompt_user_images[user_image_item_name] = user_image
else:
@@ -89,7 +89,7 @@ class LLMPromptBlueprint(BaseModel):
if isinstance(image_collection, (list, tuple)):
image_collection = cast("list[ImageContent] | tuple[ImageContent]", image_collection)
for image_index, image_item in enumerate(image_collection, start=1):
- user_image = PromptImageFactory.make_prompt_image(url=image_item.url, base_64_str=image_item.base_64)
+ user_image = PromptImageFactory.make_prompt_image(url=image_item.url)
user_image_item_name = f"{user_image_name}[{image_index}]"
prompt_user_images[user_image_item_name] = user_image
else:
diff --git a/pipelex/pipe_operators/llm/pipe_llm_blueprint.py b/pipelex/pipe_operators/llm/pipe_llm_blueprint.py
index 7214caac4..7c38a6575 100644
--- a/pipelex/pipe_operators/llm/pipe_llm_blueprint.py
+++ b/pipelex/pipe_operators/llm/pipe_llm_blueprint.py
@@ -9,6 +9,7 @@ from pipelex.core.pipes.pipe_blueprint import PipeBlueprint
from pipelex.core.pipes.validation import is_input_used_by_variables, is_variable_satisfied_by_inputs
from pipelex.tools.jinja2.jinja2_errors import Jinja2DetectVariablesError
from pipelex.tools.jinja2.jinja2_required_variables import detect_jinja2_required_variables
+from pipelex.tools.misc.string_utils import get_root_from_dotted_path
from pipelex.types import StrEnum
@@ -63,7 +64,9 @@ class PipeLLMBlueprint(PipeBlueprint):
# Filter out internal variables that start with underscore and special variables
# TODO: replace magic strings by StrEnum and also, make this check clearer and more readable
filtered_variable_paths = {
- var for var in required_variable_paths if not var.startswith("_") and var.split(".")[0] not in {"preliminary_text", "place_holder"}
+ var
+ for var in required_variable_paths
+ if not var.startswith("_") and get_root_from_dotted_path(var) not in {"preliminary_text", "place_holder"}
}
input_names: set[str] = set(self.inputs.keys()) if self.inputs else set()
diff --git a/pipelex/pipe_run/dry_run.py b/pipelex/pipe_run/dry_run.py
index 2b9c9cead..aa450d150 100644
--- a/pipelex/pipe_run/dry_run.py
+++ b/pipelex/pipe_run/dry_run.py
@@ -1,6 +1,6 @@
import time
-from pydantic import BaseModel
+from pydantic import BaseModel, ValidationError
from pipelex import log
from pipelex.base_exceptions import PipelexError
@@ -11,10 +11,14 @@ from pipelex.core.pipes.pipe_abstract import PipeAbstract
from pipelex.core.stuffs.stuff_content import StuffContent
from pipelex.core.stuffs.text_content import TextContent
from pipelex.hub import get_class_registry
+from pipelex.pipe_run.exceptions import PipeRunError
from pipelex.pipe_run.pipe_run_params import PipeRunMode
from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
from pipelex.pipeline.exceptions import PipeStackOverflowError
from pipelex.pipeline.job_metadata import JobMetadata
+from pipelex.pipeline.pipeline_models import SpecialPipelineId
+from pipelex.system.telemetry.otel_constants import OTelConstants
+from pipelex.tools.typing.pydantic_utils import format_pydantic_validation_error
from pipelex.types import StrEnum
@@ -47,19 +51,21 @@ async def dry_run_pipe(pipe: PipeAbstract, raise_on_failure: bool = False) -> Dr
working_memory = WorkingMemoryFactory.make_for_dry_run(needed_inputs=needed_inputs_for_factory)
pipe.validate_with_libraries()
await pipe.run_pipe(
- job_metadata=JobMetadata(),
+ job_metadata=JobMetadata(user_id=OTelConstants.DEFAULT_USER_ID, pipeline_run_id=SpecialPipelineId.DRY_RUN_UNTITLED),
working_memory=working_memory,
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=PipeRunMode.DRY),
)
- except PipeStackOverflowError as exc:
+ except (PipeStackOverflowError, ValidationError) as exc:
+ formatted_error = format_pydantic_validation_error(exc) if isinstance(exc, ValidationError) else str(exc)
if pipe.code in get_config().pipelex.dry_run_config.allowed_to_fail_pipes:
- error_message = f"Allowed to fail dry run for pipe '{pipe.code}': {exc}"
+ error_message = f"Allowed to fail dry run for pipe '{pipe.code}': {formatted_error}"
return DryRunOutput(pipe_code=pipe.code, status=DryRunStatus.FAILURE, error_message=error_message)
elif raise_on_failure:
- raise
-
- error_message = f"Dry run failed for pipe '{pipe.code}': {exc}"
- return DryRunOutput(pipe_code=pipe.code, status=DryRunStatus.FAILURE, error_message=error_message)
+ msg = f"Dry run failed for pipe '{pipe.code}': {formatted_error}"
+ raise PipeRunError(message=msg, run_mode=PipeRunMode.DRY, pipe_code=pipe.code) from exc
+ else:
+ error_message = f"Dry run failed for pipe '{pipe.code}': {formatted_error}"
+ return DryRunOutput(pipe_code=pipe.code, status=DryRunStatus.FAILURE, error_message=error_message)
log.dev(f"✅ Pipe '{pipe.code}' dry run completed successfully")
return DryRunOutput(pipe_code=pipe.code, status=DryRunStatus.SUCCESS)
diff --git a/pipelex/pipe_run/pipe_job_factory.py b/pipelex/pipe_run/pipe_job_factory.py
index 9ce085ef4..7c05cdf08 100644
--- a/pipelex/pipe_run/pipe_job_factory.py
+++ b/pipelex/pipe_run/pipe_job_factory.py
@@ -12,12 +12,11 @@ class PipeJobFactory:
def make_pipe_job(
cls,
pipe: PipeAbstract,
+ job_metadata: JobMetadata,
pipe_run_params: PipeRunParams | None = None,
working_memory: WorkingMemory | None = None,
- job_metadata: JobMetadata | None = None,
output_name: str | None = None,
) -> PipeJob:
- job_metadata = job_metadata or JobMetadata()
working_memory = working_memory or WorkingMemoryFactory.make_empty()
if not pipe_run_params:
pipe_run_params = PipeRunParamsFactory.make_run_params()
diff --git a/pipelex/pipelex.py b/pipelex/pipelex.py
index 1139cd688..dfa8a6ed6 100644
--- a/pipelex/pipelex.py
+++ b/pipelex/pipelex.py
@@ -1,4 +1,5 @@
import types
+from pathlib import Path
from typing import TYPE_CHECKING, Any, cast
from kajson.class_registry import ClassRegistry
@@ -12,6 +13,7 @@ from pipelex.cogt.content_generation.content_generator import ContentGenerator
from pipelex.cogt.content_generation.content_generator_protocol import (
ContentGeneratorProtocol,
)
+from pipelex.cogt.content_generation.generated_content_factory import GeneratedContentFactory
from pipelex.cogt.exceptions import (
InferenceBackendCredentialsError,
InferenceBackendLibraryNotFoundError,
@@ -49,7 +51,7 @@ from pipelex.reporting.reporting_manager import ReportingManager
from pipelex.reporting.reporting_protocol import ReportingNoOp, ReportingProtocol
from pipelex.system.configuration.config_loader import config_manager
from pipelex.system.configuration.config_root import ConfigRoot
-from pipelex.system.configuration.configs import ConfigPaths, PipelexConfig
+from pipelex.system.configuration.configs import ConfigPaths, PipelexConfig, StorageMethod
from pipelex.system.pipelex_service.exceptions import (
GatewayTermsNotAcceptedError,
)
@@ -73,6 +75,8 @@ from pipelex.test_extras.registry_test_models import TestRegistryModels
from pipelex.tools.misc.package_utils import get_package_info
from pipelex.tools.secrets.env_secrets_provider import EnvSecretsProvider
from pipelex.tools.secrets.secrets_provider_abstract import SecretsProviderAbstract
+from pipelex.tools.storage.in_memory_storage_provider import InMemoryStorageProvider
+from pipelex.tools.storage.local_storage_provider import LocalStorageProvider
from pipelex.tools.storage.storage_provider_abstract import StorageProviderAbstract
from pipelex.types import Self
from pipelex.urls import URLs
@@ -212,6 +216,14 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.
self.pipelex_hub.set_class_registry(self.class_registry)
self.kajson_manager = KajsonManager(class_registry=self.class_registry)
self.pipelex_hub.set_secrets_provider(secrets_provider=secrets_provider)
+ if storage_provider is None:
+ match get_config().pipelex.storage_config.method:
+ case StorageMethod.LOCAL:
+ log.dev(f"Using local storage at: {get_config().pipelex.storage_config.storage_path}")
+ storage_provider = LocalStorageProvider(root_path=Path(get_config().pipelex.storage_config.storage_path))
+ case StorageMethod.IN_MEMORY:
+ log.dev("Using in-memory storage")
+ storage_provider = InMemoryStorageProvider()
self.pipelex_hub.set_storage_provider(storage_provider)
self.library_manager = library_manager or LibraryManager()
@@ -259,7 +271,11 @@ If you need help, drop by our Discord: we're happy to assist: {URLs.discord}.
var_name=var_name,
)
raise PipelexSetupError(error_msg) from credentials_exc
- self.pipelex_hub.set_content_generator(content_generator or ContentGenerator())
+
+ if content_generator is None:
+ generated_content_factory = GeneratedContentFactory(storage_provider=storage_provider)
+ content_generator = ContentGenerator(generated_content_factory=generated_content_factory)
+ self.pipelex_hub.set_content_generator(content_generator)
self.inference_manager = inference_manager or InferenceManager()
self.pipelex_hub.set_inference_manager(self.inference_manager)
diff --git a/pipelex/pipelex.toml b/pipelex/pipelex.toml
index 1e47c2174..db5ba5089 100644
--- a/pipelex/pipelex.toml
+++ b/pipelex/pipelex.toml
@@ -1,6 +1,13 @@
[pipelex]
+
+[pipelex.storage_config]
+is_fetch_remote_content_enabled = true
+uri_format = "{primary_id}/{secondary_id}/{hash}.{extension}"
+method = "local"
+local_storage_path = ".pipelex/storage"
+
[pipelex.observer_config]
observer_dir = "results/observer"
@@ -173,26 +180,33 @@ is_sync_mode = false
nb_steps = 28 # 28 is a good default for Flux, possible values are [1,2,4,8] for SDXL Lightning
quality = "low"
aspect_ratio = "square" # "square", "landscape_4_3", "landscape_16_9", "landscape_21_9", "portrait_3_4", "portrait_9_16", "portrait_9_21"
-guidance_scale = 3.5
+guidance_scale = 2.5
background = "auto"
is_moderated = true
safety_tolerance = 5
is_raw = false
-output_format = "jpg"
seed = "auto"
-[cogt.img_gen_config.fal_config]
-flux_map_quality_to_steps = { "low" = 14, "medium" = 28, "high" = 56 }
-sdxl_lightning_map_quality_to_steps = { "low" = 2, "medium" = 4, "high" = 8 }
+[cogt.img_gen_config.quality_to_steps_maps]
+flux = { "low" = 14, "medium" = 28, "high" = 56 }
+sdxl_lightning = { "low" = 2, "medium" = 4, "high" = 8 }
+qwen_image = { "low" = 10, "medium" = 20, "high" = 28 }
####################################################################################################
-# OCR config
+# Extract config
####################################################################################################
[cogt.extract_config]
-page_output_text_file_name = "page_text.md"
default_page_views_dpi = 72
+####################################################################################################
+# Gateway test config
+####################################################################################################
+
+[cogt.gateway_test_config.config_id_substitutions]
+# this is an empty dict, it's only used by Pipelex staff to override the ¨Pipelex Gateway¨ config
+# in order to test new model integrations or debug issues with the Gateway
+
####################################################################################################
# Pipelex prompting config
####################################################################################################
diff --git a/pipelex/pipeline/execute.py b/pipelex/pipeline/execute.py
index b52c73100..01b8fc3c0 100644
--- a/pipelex/pipeline/execute.py
+++ b/pipelex/pipeline/execute.py
@@ -19,6 +19,7 @@ from pipelex.system.telemetry.events import EventName, EventProperty, Outcome
async def execute_pipeline(
+ user_id: str | None = None,
library_id: str | None = None,
library_dirs: list[str] | None = None,
pipe_code: str | None = None,
@@ -71,6 +72,8 @@ async def execute_pipeline(
search_domain_codes:
List of domain codes to search for pipes. The executed pipe's domain is automatically
added if not already present.
+ user_id:
+ Unique identifier for the user.
Returns:
-------
@@ -89,6 +92,7 @@ async def execute_pipeline(
dynamic_output_concept_code=dynamic_output_concept_code,
pipe_run_mode=pipe_run_mode,
search_domain_codes=search_domain_codes,
+ user_id=user_id,
)
properties: dict[EventProperty, Any]
diff --git a/pipelex/pipeline/job_metadata.py b/pipelex/pipeline/job_metadata.py
index 9279c6889..8cf8ace0a 100644
--- a/pipelex/pipeline/job_metadata.py
+++ b/pipelex/pipeline/job_metadata.py
@@ -1,8 +1,8 @@
from datetime import datetime
+from typing import Any
from pydantic import BaseModel, Field
-from pipelex.pipeline.pipeline_models import SpecialPipelineId
from pipelex.system.telemetry.otel_context import OtelContext
from pipelex.types import StrEnum
@@ -35,7 +35,8 @@ class UnitJobId(StrEnum):
class JobMetadata(BaseModel):
- pipeline_run_id: str = Field(default=SpecialPipelineId.UNTITLED)
+ user_id: str
+ pipeline_run_id: str
pipe_code: str | None = None
# Business ID for the current pipe execution (16-char hex string).
@@ -58,34 +59,17 @@ class JobMetadata(BaseModel):
return (self.completed_at - self.started_at).total_seconds()
return None
- def update(self, updated_metadata: "JobMetadata"):
- if updated_metadata.job_category:
- self.job_category = updated_metadata.job_category
- if updated_metadata.pipe_code:
- self.pipe_code = updated_metadata.pipe_code
- if updated_metadata.pipe_run_id:
- self.pipe_run_id = updated_metadata.pipe_run_id
- if updated_metadata.otel_context:
- self.otel_context = updated_metadata.otel_context
- if updated_metadata.content_generation_job_id:
- self.content_generation_job_id = updated_metadata.content_generation_job_id
- if updated_metadata.unit_job_id:
- self.unit_job_id = updated_metadata.unit_job_id
- if updated_metadata.started_at:
- self.started_at = updated_metadata.started_at
- if updated_metadata.completed_at:
- self.completed_at = updated_metadata.completed_at
-
- def copy_with_update(self, updated_metadata: "JobMetadata", otel_context: OtelContext | None) -> "JobMetadata":
+ def copy_with_update(
+ self,
+ otel_context: OtelContext | None,
+ **updates: Any,
+ ) -> "JobMetadata":
"""Create a copy of this metadata with updates applied.
Args:
- updated_metadata: Metadata with fields to update (sparse update - only truthy fields are applied)
- otel_context: OTel context to set on the copy. Unlike other fields, this is always set explicitly
+ otel_context: OTel context to set on the copy. Always set explicitly
because it's computed fresh per pipe run and should replace the parent's context
(even when None, e.g. in dry mode or when tracing is disabled).
+ **updates: Fields to update on the copy.
"""
- new_metadata = self.model_copy(deep=True)
- new_metadata.update(updated_metadata=updated_metadata)
- new_metadata.otel_context = otel_context
- return new_metadata
+ return self.model_copy(deep=True, update={"otel_context": otel_context, **updates})
diff --git a/pipelex/pipeline/pipeline_models.py b/pipelex/pipeline/pipeline_models.py
index 5fd4308e6..9a79f08cd 100644
--- a/pipelex/pipeline/pipeline_models.py
+++ b/pipelex/pipeline/pipeline_models.py
@@ -3,3 +3,4 @@ from pipelex.types import StrEnum
class SpecialPipelineId(StrEnum):
UNTITLED = "untitled"
+ DRY_RUN_UNTITLED = "dry_run_untitled"
diff --git a/pipelex/pipeline/pipeline_run_setup.py b/pipelex/pipeline/pipeline_run_setup.py
index f5e36a2e6..821f42008 100644
--- a/pipelex/pipeline/pipeline_run_setup.py
+++ b/pipelex/pipeline/pipeline_run_setup.py
@@ -45,6 +45,7 @@ async def pipeline_run_setup(
dynamic_output_concept_code: str | None = None,
pipe_run_mode: PipeRunMode | None = None,
search_domain_codes: list[str] | None = None,
+ user_id: str | None = None,
) -> tuple[PipeJob, str, str]:
"""Set up a pipeline for execution.
@@ -88,6 +89,8 @@ async def pipeline_run_setup(
search_domain_codes:
List of domain codes to search for pipes. The executed pipe's domain is automatically
added if not already present.
+ user_id:
+ Unique identifier for the user (optional).
Returns:
-------
@@ -96,6 +99,7 @@ async def pipeline_run_setup(
and the library ID.
"""
+ user_id = user_id or OTelConstants.DEFAULT_USER_ID
if not plx_content and not pipe_code:
msg = "Either pipe_code or plx_content must be provided to the pipeline API."
raise ValueError(msg)
@@ -180,6 +184,7 @@ async def pipeline_run_setup(
get_telemetry_manager().handle_trace_start(trace_name=trace_name, trace_name_redacted=trace_name_redacted, trace_id=trace_id)
job_metadata = JobMetadata(
+ user_id=user_id,
pipeline_run_id=pipeline.pipeline_run_id,
otel_context=otel_context,
)
diff --git a/pipelex/pipeline/start.py b/pipelex/pipeline/start.py
index 5a2662918..5c0a3b961 100644
--- a/pipelex/pipeline/start.py
+++ b/pipelex/pipeline/start.py
@@ -20,6 +20,7 @@ async def start_pipeline(
dynamic_output_concept_code: str | None = None,
pipe_run_mode: PipeRunMode | None = None,
search_domain_codes: list[str] | None = None,
+ user_id: str | None = None,
) -> tuple[str, asyncio.Task[PipeOutput]]:
"""Start a pipeline in the background.
@@ -64,6 +65,8 @@ async def start_pipeline(
search_domain_codes:
List of domain codes to search for pipes. The executed pipe's domain is automatically
added if not already present.
+ user_id:
+ Unique identifier for the user.
Returns:
-------
@@ -83,6 +86,7 @@ async def start_pipeline(
dynamic_output_concept_code=dynamic_output_concept_code,
pipe_run_mode=pipe_run_mode,
search_domain_codes=search_domain_codes,
+ user_id=user_id,
)
task: asyncio.Task[PipeOutput] = asyncio.create_task(get_pipe_router().run(pipe_job))
diff --git a/pipelex/plugins/azure_rest/azure_img_gen_worker.py b/pipelex/plugins/azure_rest/azure_img_gen_worker.py
index c6b1dd077..f2a2684a8 100644
--- a/pipelex/plugins/azure_rest/azure_img_gen_worker.py
+++ b/pipelex/plugins/azure_rest/azure_img_gen_worker.py
@@ -2,7 +2,8 @@ import httpx
from typing_extensions import override
from pipelex.cogt.exceptions import CogtError, ImgGenGenerationError, ImgGenParameterError
-from pipelex.cogt.image.generated_image import GeneratedImage
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
+from pipelex.cogt.image.image_size import ImageSize
from pipelex.cogt.img_gen.img_gen_args_factory import ImgGenArgsFactory
from pipelex.cogt.img_gen.img_gen_job import ImgGenJob
from pipelex.cogt.img_gen.img_gen_worker_abstract import ImgGenWorkerAbstract
@@ -11,7 +12,6 @@ from pipelex.hub import get_models_manager
from pipelex.plugins.plugin import Plugin
from pipelex.reporting.reporting_protocol import ReportingProtocol
from pipelex.system.exceptions import CredentialsError
-from pipelex.tools.misc.base_64_utils import prefixed_base64_str_from_base64_str
class AzureCredentialsError(CredentialsError):
@@ -56,7 +56,7 @@ class AzureImgGenWorker(ImgGenWorkerAbstract):
async def _gen_image(
self,
img_gen_job: ImgGenJob,
- ) -> GeneratedImage:
+ ) -> GeneratedImageRawDetails:
one_image_list = await self._gen_image_list(img_gen_job=img_gen_job, nb_images=1)
return one_image_list[0]
@@ -65,7 +65,7 @@ class AzureImgGenWorker(ImgGenWorkerAbstract):
self,
img_gen_job: ImgGenJob,
nb_images: int,
- ) -> list[GeneratedImage]:
+ ) -> list[GeneratedImageRawDetails]:
if self.inference_model.rules is None:
msg = f"Model '{self.inference_model.name}' does not have rules configured"
raise ImgGenParameterError(msg)
@@ -99,7 +99,11 @@ class AzureImgGenWorker(ImgGenWorkerAbstract):
response.raise_for_status()
response_dict = response.json()
- generated_images: list[GeneratedImage] = []
+ response_output_format: str | None = response_dict.get("output_format")
+ if not response_output_format:
+ msg = "No output format received from Azure"
+ raise ImgGenGenerationError(msg)
+ generated_images: list[GeneratedImageRawDetails] = []
if images := response_dict.get("data"):
size = response_dict.get("size")
if not isinstance(size, str):
@@ -113,16 +117,15 @@ class AzureImgGenWorker(ImgGenWorkerAbstract):
width = int(width_str)
height = int(height_str)
for image in images:
- b64_str = image.get("b64_json")
- if not isinstance(b64_str, str):
+ base64_str = image.get("b64_json")
+ if not isinstance(base64_str, str):
msg = f"No base64 image data received from model '{self.inference_model.model_id}'"
raise ImgGenGenerationError(msg)
- base64_url = prefixed_base64_str_from_base64_str(b64_str=b64_str)
generated_images.append(
- GeneratedImage(
- url=base64_url,
- width=width,
- height=height,
+ GeneratedImageRawDetails(
+ base64_str=base64_str,
+ size=ImageSize(width=width, height=height),
+ output_format=response_output_format,
),
)
else:
diff --git a/pipelex/plugins/fal/fal_config.py b/pipelex/plugins/fal/fal_config.py
deleted file mode 100644
index 7dfc5fb09..000000000
--- a/pipelex/plugins/fal/fal_config.py
+++ /dev/null
@@ -1,28 +0,0 @@
-from pydantic import field_validator
-
-from pipelex.cogt.img_gen.img_gen_job_components import Quality
-from pipelex.system.configuration.config_model import ConfigModel
-from pipelex.system.exceptions import ConfigValidationError
-
-
-class FalConfig(ConfigModel):
- flux_map_quality_to_steps: dict[str, int]
- sdxl_lightning_map_quality_to_steps: dict[str, int]
-
- @field_validator("flux_map_quality_to_steps", "sdxl_lightning_map_quality_to_steps")
- @classmethod
- def validate_quality_mapping(cls, value: dict[str, int]) -> dict[str, int]:
- valid_qualities = {quality.value for quality in Quality}
- missing_qualities = valid_qualities - set(value.keys())
- invalid_qualities = set(value.keys()) - valid_qualities
-
- if missing_qualities and invalid_qualities:
- msg = f"Missing ({missing_qualities}) and invalid ({invalid_qualities}) quality levels in mapping"
- raise ConfigValidationError(msg)
- if missing_qualities:
- msg = f"Missing quality levels in mapping: {missing_qualities}"
- raise ConfigValidationError(msg)
- if invalid_qualities:
- msg = f"Invalid quality levels in mapping: {invalid_qualities}"
- raise ConfigValidationError(msg)
- return value
diff --git a/pipelex/plugins/fal/fal_factory.py b/pipelex/plugins/fal/fal_factory.py
index b853ca0a9..20abc5dbb 100644
--- a/pipelex/plugins/fal/fal_factory.py
+++ b/pipelex/plugins/fal/fal_factory.py
@@ -3,12 +3,13 @@ from typing import Any, cast
from pydantic import ValidationError
from pipelex.cogt.exceptions import ImgGenGenerationError
-from pipelex.cogt.image.generated_image import GeneratedImage
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
+from pipelex.cogt.image.image_size import ImageSize
class FalFactory:
@classmethod
- def make_generated_image(cls, fal_result: dict[str, Any]) -> GeneratedImage:
+ def make_generated_image(cls, fal_result: dict[str, Any]) -> GeneratedImageRawDetails:
generated_image_list = cls.make_generated_image_list(fal_result=fal_result)
if len(generated_image_list) != 1:
msg = f"Expected 1 image, got {len(generated_image_list)}"
@@ -16,12 +17,8 @@ class FalFactory:
return generated_image_list[0]
@classmethod
- def make_generated_image_list(cls, fal_result: dict[str, Any]) -> list[GeneratedImage]:
- return cls._unpack_fal_result(fal_result=fal_result)
-
- @classmethod
- def _unpack_fal_result(cls, fal_result: dict[str, Any]) -> list[GeneratedImage]:
- generated_image_list: list[GeneratedImage] = []
+ def make_generated_image_list(cls, fal_result: dict[str, Any]) -> list[GeneratedImageRawDetails]:
+ generated_image_list: list[GeneratedImageRawDetails] = []
try:
image_dicts = fal_result["images"]
if not isinstance(image_dicts, list):
@@ -29,10 +26,10 @@ class FalFactory:
raise ImgGenGenerationError(msg)
image_dicts = cast("list[dict[str, Any]]", image_dicts)
for image_dict in image_dicts:
- generated_image = GeneratedImage(
- url=image_dict["url"],
- width=image_dict["width"],
- height=image_dict["height"],
+ generated_image = GeneratedImageRawDetails(
+ actual_url_or_prefixed_base64=image_dict["url"],
+ size=ImageSize(width=image_dict["width"], height=image_dict["height"]),
+ mime_type=image_dict["content_type"],
)
generated_image_list.append(generated_image)
except (KeyError, TypeError, ValidationError) as exc:
diff --git a/pipelex/plugins/fal/fal_img_gen_worker.py b/pipelex/plugins/fal/fal_img_gen_worker.py
index 08a21ca6e..e8f384a70 100644
--- a/pipelex/plugins/fal/fal_img_gen_worker.py
+++ b/pipelex/plugins/fal/fal_img_gen_worker.py
@@ -5,14 +5,13 @@ from typing_extensions import override
from pipelex import log
from pipelex.cogt.exceptions import ImgGenParameterError, SdkTypeError
-from pipelex.cogt.image.generated_image import GeneratedImage
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
from pipelex.cogt.img_gen.img_gen_args_factory import ImgGenArgsFactory
from pipelex.cogt.img_gen.img_gen_job import ImgGenJob
from pipelex.cogt.img_gen.img_gen_worker_abstract import ImgGenWorkerAbstract
from pipelex.cogt.model_backends.model_spec import InferenceModelSpec
from pipelex.plugins.fal.fal_factory import FalFactory
from pipelex.reporting.reporting_protocol import ReportingProtocol
-from pipelex.tools.misc.terminal_utils import print_to_stderr
class FalImgGenWorker(ImgGenWorkerAbstract):
@@ -30,18 +29,18 @@ class FalImgGenWorker(ImgGenWorkerAbstract):
self.fal_async_client = sdk_instance
- @override
- async def _gen_image(
+ async def _submit_and_get_result(
self,
img_gen_job: ImgGenJob,
- ) -> GeneratedImage:
+ nb_images: int,
+ ) -> Any:
if self.inference_model.rules is None:
msg = f"Model '{self.inference_model.name}' does not have rules configured"
raise ImgGenParameterError(msg)
args_dict = ImgGenArgsFactory.make_args_for_model(
model_rules=self.inference_model.rules,
img_gen_job=img_gen_job,
- nb_images=1,
+ nb_images=nb_images,
)
fal_application = self.inference_model.model_id
log.verbose(args_dict, title=f"Fal arguments, application={fal_application}")
@@ -57,10 +56,17 @@ class FalImgGenWorker(ImgGenWorkerAbstract):
continue
new_logs = event.logs[log_index:]
for event_log in new_logs:
- print_to_stderr(event_log["message"])
+ log.verbose(event_log["message"], title="FAL Log")
log_index = len(event.logs)
- fal_result = await handler.get()
+ return await handler.get()
+
+ @override
+ async def _gen_image(
+ self,
+ img_gen_job: ImgGenJob,
+ ) -> GeneratedImageRawDetails:
+ fal_result = await self._submit_and_get_result(img_gen_job=img_gen_job, nb_images=1)
generated_image = FalFactory.make_generated_image(fal_result=fal_result)
log.verbose(generated_image, title="generated_image")
return generated_image
@@ -70,33 +76,8 @@ class FalImgGenWorker(ImgGenWorkerAbstract):
self,
img_gen_job: ImgGenJob,
nb_images: int,
- ) -> list[GeneratedImage]:
- if self.inference_model.rules is None:
- msg = f"Model '{self.inference_model.name}' does not have rules configured"
- raise ImgGenParameterError(msg)
- args_dict = ImgGenArgsFactory.make_args_for_model(
- model_rules=self.inference_model.rules,
- img_gen_job=img_gen_job,
- nb_images=nb_images,
- )
- fal_application = self.inference_model.model_id
- log.verbose(args_dict, title=f"Fal arguments, application={fal_application}")
- handler = await self.fal_async_client.submit(
- application=fal_application,
- arguments=args_dict,
- )
-
- log_index = 0
- async for event in handler.iter_events(with_logs=True):
- if isinstance(event, InProgress):
- if not event.logs:
- continue
- new_fal_logs = event.logs[log_index:]
- for fal_log in new_fal_logs:
- log.verbose(fal_log["message"], title="FAL Log")
- log_index = len(event.logs)
-
- fal_result = await handler.get()
+ ) -> list[GeneratedImageRawDetails]:
+ fal_result = await self._submit_and_get_result(img_gen_job=img_gen_job, nb_images=nb_images)
generated_image_list = FalFactory.make_generated_image_list(fal_result=fal_result)
log.verbose(generated_image_list, title="generated_image_list")
return generated_image_list
diff --git a/pipelex/plugins/gateway/gateway_completions_factory.py b/pipelex/plugins/gateway/gateway_completions_factory.py
index eeb0a4ef7..0f600b813 100644
--- a/pipelex/plugins/gateway/gateway_completions_factory.py
+++ b/pipelex/plugins/gateway/gateway_completions_factory.py
@@ -6,12 +6,16 @@ import openai
from portkey_ai import (
createHeaders, # type: ignore[reportUnknownVariableType]
)
+from pydantic import ValidationError
from typing_extensions import override
+from pipelex.cogt.extract.bounding_box import BoundingBox
from pipelex.cogt.extract.extract_output import ExtractedImageFromPage, ExtractOutput, Page
from pipelex.plugins.gateway.gateway_constants import GatewayOpenAISdkVariant
-from pipelex.plugins.gateway.gateway_exceptions import GatewayFactoryError
+from pipelex.plugins.gateway.gateway_exceptions import GatewayExtractResponseError, GatewayFactoryError
from pipelex.plugins.gateway.gateway_factory import GatewayFactory
+from pipelex.plugins.gateway.gateway_protocols import GatewayExtractProtocol
+from pipelex.plugins.gateway.gateway_schemas import GatewayExtractPageAzure, GatewayExtractPageMistral
from pipelex.plugins.openai.openai_completions_factory import OpenAICompletionsFactory
if TYPE_CHECKING:
@@ -49,47 +53,102 @@ class GatewayCompletionsFactory(OpenAICompletionsFactory):
)
@classmethod
- def make_extract_output_from_portkey_response(
+ def make_extract_output_from_response(
+ cls,
+ inference_model: InferenceModelSpec,
+ response: GenericResponse,
+ ) -> ExtractOutput:
+ extract_protocol = GatewayExtractProtocol.make_from_model_handle(model_handle=inference_model.name)
+ match extract_protocol:
+ case GatewayExtractProtocol.MISTRAL_DOC_AI:
+ return cls._make_extract_output_from_response_mistral(response=response)
+ case GatewayExtractProtocol.AZURE_DOC_INTEL:
+ return cls._make_extract_output_from_response_azure(response=response)
+
+ @classmethod
+ def _make_extract_output_from_response_azure(
cls,
response: GenericResponse,
) -> ExtractOutput:
if not hasattr(response, "pages"):
- msg = "Portkey extract response does not have pages"
- raise GatewayFactoryError(msg)
- pages: dict[int, Page] = {}
- for extracted_page in response.pages: # pyright: ignore[reportUnknownMemberType, reportAttributeAccessIssue, reportUnknownVariableType]
- if not isinstance(extracted_page, dict):
- msg = "Extracted page is not a dictionary"
- raise GatewayFactoryError(msg)
- extracted_page_dict = cast("dict[str, Any]", extracted_page)
- page_index = extracted_page_dict.get("index")
- if page_index is None:
- msg = "Page index is not set"
- raise GatewayFactoryError(msg)
- extracted_page_text = extracted_page_dict.get("markdown")
- if extracted_page_text is None:
- msg = "Page text is not set"
- raise GatewayFactoryError(msg)
- extracted_page_images = extracted_page_dict.get("images")
- if extracted_page_images is None:
- msg = "Page images are not set"
- raise GatewayFactoryError(msg)
- page_images: list[ExtractedImageFromPage] = []
- for extracted_page_image in extracted_page_images:
- extracted_image = ExtractedImageFromPage(
- image_id=extracted_page_image["id"],
- base_64=extracted_page_image["image_base64"],
- caption=extracted_page_image["image_annotation"],
+ msg = "Gateway extract response does not have pages"
+ raise GatewayExtractResponseError(msg)
+ try:
+ response_page_dicts = cast("list[dict[str, Any]]", response.pages) # pyright: ignore[reportUnknownMemberType, reportAttributeAccessIssue]
+ pages: dict[int, Page] = {}
+ for response_page_dict in response_page_dicts:
+ response_page = GatewayExtractPageAzure.model_validate(response_page_dict)
+ page_index = response_page.index
+ extracted_page_text = response_page.markdown
+ extracted_page_images = response_page.images
+ page_images: list[ExtractedImageFromPage] = []
+ for extracted_page_image in extracted_page_images:
+ extracted_image = ExtractedImageFromPage(
+ size=None,
+ base64_str=extracted_page_image.base64_str,
+ mime_type=extracted_page_image.mime_type,
+ caption=extracted_page_image.caption,
+ bounding_box=extracted_page_image.bounding_box,
+ )
+ page_images.append(extracted_image)
+ pages[page_index] = Page(
+ text=extracted_page_text,
+ extracted_images=page_images,
)
- page_images.append(extracted_image)
- pages[page_index] = Page(
- text=extracted_page_text,
- extracted_images=page_images,
- page_view=None,
- )
- return ExtractOutput(
- pages=pages,
- )
+ return ExtractOutput(pages=pages)
+ except (TypeError, ValidationError) as exc:
+ msg = f"Error parsing Gateway extract response from pages using Azure schema: {exc}"
+ raise GatewayExtractResponseError(msg) from exc
+
+ @classmethod
+ def _make_extract_output_from_response_mistral(
+ cls,
+ response: GenericResponse,
+ ) -> ExtractOutput:
+ if not hasattr(response, "pages"):
+ msg = "Gateway extract response does not have pages"
+ raise GatewayExtractResponseError(msg)
+ try:
+ response_page_dicts = cast("list[dict[str, Any]]", response.pages) # pyright: ignore[reportUnknownMemberType, reportAttributeAccessIssue]
+ pages: dict[int, Page] = {}
+ for response_page_dict in response_page_dicts:
+ response_page = GatewayExtractPageMistral.model_validate(response_page_dict)
+ page_index = response_page.index
+ extracted_page_text = response_page.markdown
+ extracted_page_images = response_page.images
+ page_images: list[ExtractedImageFromPage] = []
+ for extracted_page_image in extracted_page_images:
+ prefixed_base64 = extracted_page_image.image_base64
+ if not prefixed_base64:
+ continue
+ bounding_box: BoundingBox | None = None
+ if (
+ extracted_page_image.top_left_x is not None
+ and extracted_page_image.top_left_y is not None
+ and extracted_page_image.bottom_right_x is not None
+ and extracted_page_image.bottom_right_y is not None
+ ):
+ bounding_box = BoundingBox.make_from_two_corners(
+ top_left_x=cast("float", extracted_page_image.top_left_x),
+ top_left_y=cast("float", extracted_page_image.top_left_y),
+ bottom_right_x=cast("float", extracted_page_image.bottom_right_x),
+ bottom_right_y=cast("float", extracted_page_image.bottom_right_y),
+ )
+ extracted_image = ExtractedImageFromPage(
+ size=None,
+ actual_url_or_prefixed_base64=prefixed_base64,
+ caption=extracted_page_image.image_annotation,
+ bounding_box=bounding_box,
+ )
+ page_images.append(extracted_image)
+ pages[page_index] = Page(
+ text=extracted_page_text,
+ extracted_images=page_images,
+ )
+ return ExtractOutput(pages=pages)
+ except (TypeError, ValidationError) as exc:
+ msg = f"Error parsing Gateway extract response from pages using Mistral schema: {exc}"
+ raise GatewayExtractResponseError(msg) from exc
@override
def make_extras(
diff --git a/pipelex/plugins/gateway/gateway_deck.py b/pipelex/plugins/gateway/gateway_deck.py
index 4d7afb85f..d2e7545da 100644
--- a/pipelex/plugins/gateway/gateway_deck.py
+++ b/pipelex/plugins/gateway/gateway_deck.py
@@ -1,3 +1,5 @@
+from pipelex import log
+from pipelex.config import get_config
from pipelex.plugins.gateway.gateway_exceptions import GatewayDeckError
from pipelex.plugins.portkey.portkey_constants import PortkeyHeaderKey
@@ -9,4 +11,8 @@ class GatewayDeck:
if not config_id:
msg = f"Could not get '{PortkeyHeaderKey.CONFIG}' field from headers"
raise GatewayDeckError(msg)
+ config_id_substitutions = get_config().cogt.gateway_test_config.config_id_substitutions
+ if config_id_substitutions and (substitute := config_id_substitutions.get(config_id)) and substitute != config_id:
+ log.warning(f"Substituting config ID '{config_id}' with '{substitute}'")
+ return substitute
return config_id
diff --git a/pipelex/plugins/gateway/gateway_exceptions.py b/pipelex/plugins/gateway/gateway_exceptions.py
index e922d1579..35eaac4b0 100644
--- a/pipelex/plugins/gateway/gateway_exceptions.py
+++ b/pipelex/plugins/gateway/gateway_exceptions.py
@@ -15,3 +15,7 @@ class GatewayCredentialsError(GatewayError):
class GatewayDeckError(GatewayError):
pass
+
+
+class GatewayExtractResponseError(GatewayError):
+ pass
diff --git a/pipelex/plugins/gateway/gateway_extract_worker.py b/pipelex/plugins/gateway/gateway_extract_worker.py
index 738274e9f..ef2ebc7fa 100644
--- a/pipelex/plugins/gateway/gateway_extract_worker.py
+++ b/pipelex/plugins/gateway/gateway_extract_worker.py
@@ -12,13 +12,14 @@ from pipelex.cogt.extract.extract_input import ExtractInputError
from pipelex.cogt.extract.extract_job import ExtractJob
from pipelex.cogt.extract.extract_output import ExtractOutput
from pipelex.cogt.extract.extract_worker_abstract import ExtractWorkerAbstract
+from pipelex.cogt.inference.inference_constants import InferenceOutputType
from pipelex.cogt.model_backends.model_spec import InferenceModelSpec
from pipelex.config import get_config
from pipelex.plugins.gateway.gateway_completions_factory import GatewayCompletionsFactory
from pipelex.plugins.gateway.gateway_deck import GatewayDeck
from pipelex.plugins.gateway.gateway_factory import GatewayFactory
from pipelex.reporting.reporting_protocol import ReportingProtocol
-from pipelex.tools.misc.base_64_utils import make_base_64_url_from_location_async
+from pipelex.tools.misc.base64_utils import make_base64_url_from_location_async
from pipelex.types import StrEnum
@@ -83,8 +84,9 @@ class GatewayExtractWorker(ExtractWorkerAbstract):
if extract_job.job_params.should_caption_images:
msg = f"Captioning is not implemented by '{self.inference_model.tag}'."
raise NotImplementedError(msg)
- base64_url = await make_base_64_url_from_location_async(location=image_uri)
+ base64_url = await make_base64_url_from_location_async(location=image_uri)
extract_output = await self.extract_base64_url(
+ extract_job=extract_job,
base64_url=base64_url,
document_type=DocumentKind.IMAGE,
should_include_images=False,
@@ -92,15 +94,12 @@ class GatewayExtractWorker(ExtractWorkerAbstract):
elif pdf_uri := extract_job.extract_input.pdf_uri:
if extract_job.job_params.should_caption_images:
+ # TODO: handle model capability and skip UT when it's not supported
msg = f"Captioning is not implemented by '{self.inference_model.tag}'."
raise ExtractCapabilityError(msg)
- if extract_job.job_params.should_include_page_views:
- log.verbose(f"Page views are not implemented by '{self.inference_model.tag}'.")
- # TODO: use a model capability flag to check possibility before asking for it
- # it it's asked and not available, raise
- # the caller will be responsible to get the page views using other solution if needed
- base64_url = await make_base_64_url_from_location_async(location=pdf_uri)
+ base64_url = await make_base64_url_from_location_async(location=pdf_uri)
extract_output = await self.extract_base64_url(
+ extract_job=extract_job,
base64_url=base64_url,
document_type=DocumentKind.PDF,
should_include_images=extract_job.job_params.should_include_images,
@@ -112,18 +111,22 @@ class GatewayExtractWorker(ExtractWorkerAbstract):
async def extract_base64_url(
self,
+ extract_job: ExtractJob,
base64_url: str,
document_type: DocumentKind,
should_include_images: bool = False,
) -> ExtractOutput:
config_id = GatewayDeck.get_config_id(headers=self.inference_model.extra_headers or {})
log.dev(f"Extracting using config '{config_id}' with should_include_images: {should_include_images}")
- doc_tag = document_type.document_tag
+ doc_tag = document_type.document_tag
attempt_number = 0
response: GenericResponse | None = None
retryer = self._make_retryer()
try:
+ extra_headers, extra_body = GatewayFactory.make_extras(
+ inference_model=self.inference_model, inference_job=extract_job, output_desc=InferenceOutputType.PAGES
+ )
async for attempt in retryer:
with attempt:
attempt_number += 1
@@ -131,7 +134,8 @@ class GatewayExtractWorker(ExtractWorkerAbstract):
"/",
model=self.inference_model.model_id,
document={"type": doc_tag, doc_tag: base64_url},
- include_image_base64=True,
+ headers=extra_headers,
+ **extra_body,
)
except portkey_exceptions.APIError as exc:
error_summary = GatewayFactory.make_error_summary_from_portkey_error(exc)
@@ -146,9 +150,7 @@ class GatewayExtractWorker(ExtractWorkerAbstract):
msg = "Response is not of type GenericResponse"
raise TypeError(msg)
- return GatewayCompletionsFactory.make_extract_output_from_portkey_response(
- response=response,
- )
+ return GatewayCompletionsFactory.make_extract_output_from_response(inference_model=self.inference_model, response=response)
def _is_retryable_portkey_error(self, exc: BaseException) -> bool:
if isinstance(exc, portkey_exceptions.NotFoundError):
diff --git a/pipelex/plugins/gateway/gateway_factory.py b/pipelex/plugins/gateway/gateway_factory.py
index 7bca7e553..1cee68c67 100644
--- a/pipelex/plugins/gateway/gateway_factory.py
+++ b/pipelex/plugins/gateway/gateway_factory.py
@@ -9,9 +9,12 @@ from portkey_ai import (
from portkey_ai.api_resources import exceptions as portkey_exc
from pipelex import log
+from pipelex.cogt.extract.extract_job import ExtractJob
from pipelex.cogt.inference.inference_constants import InferenceOutputType
from pipelex.hub import get_telemetry_manager
from pipelex.plugins.gateway.gateway_exceptions import GatewayCredentialsError
+from pipelex.plugins.gateway.gateway_protocols import GatewayExtractProtocol
+from pipelex.plugins.gateway.gateway_schemas import GatewayExtractRequestParams
from pipelex.plugins.portkey.portkey_constants import PortkeyHeaderKey
from pipelex.system.telemetry.otel_constants import OTelConstants
from pipelex.urls import URLs
@@ -62,11 +65,23 @@ class GatewayFactory:
cls, inference_model: InferenceModelSpec, inference_job: InferenceJobAbstract, output_desc: str
) -> tuple[dict[str, str], dict[str, Any]]:
extra_headers: dict[str, str] = {}
+ extra_body: dict[str, Any] = {}
if inference_model.extra_headers:
extra_headers.update(inference_model.extra_headers)
if not extra_headers.get(PortkeyHeaderKey.CONFIG) and not extra_headers.get(PortkeyHeaderKey.PROVIDER):
extra_headers[PortkeyHeaderKey.PROVIDER] = inference_model.backend_name
+ if isinstance(inference_job, ExtractJob):
+ should_include_images = inference_job.job_params.should_include_images
+ extract_protocol = GatewayExtractProtocol.make_from_model_handle(model_handle=inference_model.name)
+ match extract_protocol:
+ case GatewayExtractProtocol.MISTRAL_DOC_AI:
+ extra_body["include_image_base64"] = should_include_images
+ case GatewayExtractProtocol.AZURE_DOC_INTEL:
+ request_params = GatewayExtractRequestParams(should_include_images=should_include_images)
+ messages: list[dict[str, str]] = [{"role": "user", "content": request_params.model_dump_json()}]
+ extra_body["messages"] = messages
+
# OTel-correlated Portkey tracing (only when enabled and OTel context available)
if get_telemetry_manager().is_pipelex_gateway_portkey_tracing_enabled() and (otel_context := inference_job.job_metadata.otel_context):
# Use OTel trace_id and span_id for correlation
@@ -79,7 +94,7 @@ class GatewayFactory:
display_output = output_desc if output_desc == InferenceOutputType.TEXT else OTelConstants.OUTPUT_CLASS_REDACTED
extra_headers[PortkeyHeaderKey.SPAN_NAME] = f"{unit_job_id} -> {display_output}"
- return extra_headers, {}
+ return extra_headers, extra_body
@classmethod
def make_error_summary_from_portkey_error(cls, exc: portkey_exceptions.APIError) -> str:
diff --git a/pipelex/plugins/gateway/gateway_img_gen_factory.py b/pipelex/plugins/gateway/gateway_img_gen_factory.py
deleted file mode 100644
index 6cab6c772..000000000
--- a/pipelex/plugins/gateway/gateway_img_gen_factory.py
+++ /dev/null
@@ -1,63 +0,0 @@
-from typing import Literal
-
-from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, OutputFormat
-
-GatewayImageSizeType = Literal[
- "square",
- "landscape_4_3",
- "landscape_3_2",
- "landscape_16_9",
- "landscape_21_9",
- "portrait_3_4",
- "portrait_2_3",
- "portrait_9_16",
- "portrait_9_21",
-]
-
-GatewayMimeSubtypeType = Literal["png", "jpeg", "webp"]
-
-
-class GatewayImgGenFactory:
- @classmethod
- def image_size_for_gateway(cls, aspect_ratio: AspectRatio) -> GatewayImageSizeType:
- # Pipelex AspectRatio values match Gateway expected strings (see sample: "landscape_4_3")
- match aspect_ratio:
- case AspectRatio.SQUARE:
- return "square"
- case AspectRatio.LANDSCAPE_4_3:
- return "landscape_4_3"
- case AspectRatio.LANDSCAPE_3_2:
- return "landscape_3_2"
- case AspectRatio.LANDSCAPE_16_9:
- return "landscape_16_9"
- case AspectRatio.LANDSCAPE_21_9:
- return "landscape_21_9"
- case AspectRatio.PORTRAIT_3_4:
- return "portrait_3_4"
- case AspectRatio.PORTRAIT_2_3:
- return "portrait_2_3"
- case AspectRatio.PORTRAIT_9_16:
- return "portrait_9_16"
- case AspectRatio.PORTRAIT_9_21:
- return "portrait_9_21"
-
- @classmethod
- def output_format_for_gateway(cls, output_format: OutputFormat) -> str:
- match output_format:
- case OutputFormat.PNG:
- return "png"
- case OutputFormat.JPG:
- return "jpeg"
- case OutputFormat.WEBP:
- return "webp"
-
- @classmethod
- def mime_subtype_for_output_format(cls, output_format: OutputFormat) -> GatewayMimeSubtypeType:
- # For data URIs / mime types, jpg should use jpeg.
- match output_format:
- case OutputFormat.PNG:
- return "png"
- case OutputFormat.JPG:
- return "jpeg"
- case OutputFormat.WEBP:
- return "webp"
diff --git a/pipelex/plugins/gateway/gateway_img_gen_worker.py b/pipelex/plugins/gateway/gateway_img_gen_worker.py
index ce3150c00..fd3d80fac 100644
--- a/pipelex/plugins/gateway/gateway_img_gen_worker.py
+++ b/pipelex/plugins/gateway/gateway_img_gen_worker.py
@@ -8,13 +8,13 @@ from portkey_ai.api_resources.utils import GenericResponse
from typing_extensions import override
from pipelex.cogt.exceptions import ImgGenGenerationError, ImgGenParameterError, SdkTypeError
-from pipelex.cogt.image.generated_image import GeneratedImage
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
+from pipelex.cogt.image.image_size import ImageSize
from pipelex.cogt.img_gen.img_gen_args_factory import ImgGenArgsFactory
from pipelex.cogt.img_gen.img_gen_worker_abstract import ImgGenWorkerAbstract
from pipelex.plugins.fal.fal_poller import FalPoller
from pipelex.plugins.gateway.gateway_deck import GatewayDeck
from pipelex.plugins.gateway.gateway_factory import GatewayFactory
-from pipelex.tools.misc.base_64_utils import prefixed_base64_str_from_base64_str
if TYPE_CHECKING:
from pipelex.cogt.img_gen.img_gen_job import ImgGenJob
@@ -41,7 +41,7 @@ class GatewayImgGenWorker(ImgGenWorkerAbstract):
async def _gen_image(
self,
img_gen_job: ImgGenJob,
- ) -> GeneratedImage:
+ ) -> GeneratedImageRawDetails:
one_image_list = await self._gen_image_list(img_gen_job=img_gen_job, nb_images=1)
return one_image_list[0]
@@ -50,7 +50,7 @@ class GatewayImgGenWorker(ImgGenWorkerAbstract):
self,
img_gen_job: ImgGenJob,
nb_images: int,
- ) -> list[GeneratedImage]:
+ ) -> list[GeneratedImageRawDetails]:
if self.inference_model.rules is None:
msg = f"Model '{self.inference_model.name}' does not have rules configured"
raise ImgGenParameterError(msg)
@@ -79,9 +79,12 @@ class GatewayImgGenWorker(ImgGenWorkerAbstract):
raise TypeError(msg)
response_dict: dict[str, Any] = response.model_dump()
- generated_images: list[GeneratedImage] = []
-
+ generated_images: list[GeneratedImageRawDetails] = []
if images := response_dict.get("data"):
+ response_output_format: str | None = response_dict.get("output_format")
+ if not response_output_format:
+ msg = "No output format received from Gateway"
+ raise ImgGenGenerationError(msg)
size = response_dict.get("size")
if not isinstance(size, str):
msg = f"Size from img gen response is not a string: '{size}'"
@@ -94,16 +97,15 @@ class GatewayImgGenWorker(ImgGenWorkerAbstract):
width = int(width_str)
height = int(height_str)
for image in images:
- b64_str = image.get("b64_json")
- if not isinstance(b64_str, str):
+ base64_str = image.get("b64_json")
+ if not isinstance(base64_str, str):
msg = f"No base64 image data received from model '{self.inference_model.model_id}'"
raise ImgGenGenerationError(msg)
- base64_url = prefixed_base64_str_from_base64_str(b64_str=b64_str)
generated_images.append(
- GeneratedImage(
- url=base64_url,
- width=width,
- height=height,
+ GeneratedImageRawDetails(
+ base64_str=base64_str,
+ size=ImageSize(width=width, height=height),
+ output_format=response_output_format,
),
)
@@ -112,8 +114,28 @@ class GatewayImgGenWorker(ImgGenWorkerAbstract):
fal_poller = FalPoller()
response_dict = await fal_poller.poll_queue_until_complete(response_dict=response_dict)
- for item in response_dict.get("images", []):
- generated_image = GeneratedImage(url=item.get("url"), width=item.get("width"), height=item.get("height"))
+ for image in response_dict.get("images", []):
+ url = image.get("url")
+ if not isinstance(url, str):
+ msg = "Missing url field in image response"
+ raise ImgGenGenerationError(msg)
+ width = image.get("width")
+ if not isinstance(width, int):
+ msg = "Missing width field in image response"
+ raise ImgGenGenerationError(msg)
+ height = image.get("height")
+ if not isinstance(height, int):
+ msg = "Missing height field in image response"
+ raise ImgGenGenerationError(msg)
+ content_type = image.get("content_type")
+ if not isinstance(content_type, str):
+ msg = "Missing content_type field in image response"
+ raise ImgGenGenerationError(msg)
+ generated_image = GeneratedImageRawDetails(
+ actual_url_or_prefixed_base64=url,
+ size=ImageSize(width=width, height=height),
+ mime_type=content_type,
+ )
generated_images.append(generated_image)
else:
msg = f"Unexpected response from model '{self.inference_model.model_id}' has no 'data' or 'images' key"
diff --git a/pipelex/plugins/gateway/gateway_protocols.py b/pipelex/plugins/gateway/gateway_protocols.py
new file mode 100644
index 000000000..b8653f461
--- /dev/null
+++ b/pipelex/plugins/gateway/gateway_protocols.py
@@ -0,0 +1,19 @@
+from __future__ import annotations
+
+from pipelex.types import StrEnum
+
+
+class GatewayExtractProtocol(StrEnum):
+ MISTRAL_DOC_AI = "mistral-doc-ai"
+ AZURE_DOC_INTEL = "azure-doc-intel"
+
+ @classmethod
+ def make_from_model_handle(cls, model_handle: str) -> GatewayExtractProtocol:
+ match model_handle:
+ case "mistral-document-ai-2505":
+ return cls.MISTRAL_DOC_AI
+ case "azure-document-intelligence":
+ return cls.AZURE_DOC_INTEL
+ case _:
+ msg = f"Invalid model ID: {model_handle}"
+ raise ValueError(msg)
diff --git a/pipelex/plugins/gateway/gateway_schemas.py b/pipelex/plugins/gateway/gateway_schemas.py
new file mode 100644
index 000000000..f057352ad
--- /dev/null
+++ b/pipelex/plugins/gateway/gateway_schemas.py
@@ -0,0 +1,44 @@
+from pydantic import BaseModel, Field
+
+from pipelex.cogt.extract.bounding_box import BoundingBox
+
+
+class GatewayExtractRequestParams(BaseModel):
+ should_include_images: bool
+
+
+class GatewayExtractImageAzure(BaseModel):
+ """An extracted image with its base64 content and bounding box."""
+
+ base64_str: str = Field(description="Base64-encoded image content")
+ mime_type: str = Field(description="MIME type of the image")
+ bounding_box: BoundingBox | None = Field(description="Bounding box coordinates of the image in the page", default=None)
+ caption: str | None = Field(description="Caption text associated with the image", default=None)
+
+
+class GatewayExtractPageAzure(BaseModel):
+ """Result for a single page extracted by Azure Doc Intel."""
+
+ index: int = Field(description="The index of the page")
+ markdown: str = Field(description="The markdown content of the page")
+ images: list[GatewayExtractImageAzure] = Field(description="The images on the page")
+
+
+class GatewayExtractImageMistral(BaseModel):
+ """An extracted image with its base64 content and bounding box."""
+
+ id: str | None = Field(description="The ID of the image", default=None)
+ top_left_x: int | None = Field(description="The X coordinate of the top left corner of the image", default=None)
+ top_left_y: int | None = Field(description="The Y coordinate of the top left corner of the image", default=None)
+ bottom_right_x: int | None = Field(description="The X coordinate of the bottom right corner of the image", default=None)
+ bottom_right_y: int | None = Field(description="The Y coordinate of the bottom right corner of the image", default=None)
+ image_base64: str | None = Field(description="Base64-encoded image content", default=None)
+ image_annotation: str | None = Field(description="Annotation text associated with the image", default=None)
+
+
+class GatewayExtractPageMistral(BaseModel):
+ """Result for a single page extracted by Mistral Doc AI."""
+
+ index: int = Field(description="The index of the page")
+ markdown: str = Field(description="The markdown content of the page")
+ images: list[GatewayExtractImageMistral] = Field(description="The images on the page")
diff --git a/pipelex/plugins/google/google_factory.py b/pipelex/plugins/google/google_factory.py
index 35e17430a..5254b0588 100644
--- a/pipelex/plugins/google/google_factory.py
+++ b/pipelex/plugins/google/google_factory.py
@@ -14,7 +14,7 @@ from pipelex.cogt.image.prompt_image_factory import PromptImageFactory
from pipelex.cogt.llm.llm_prompt import LLMPrompt
from pipelex.cogt.model_backends.backend import InferenceBackend
from pipelex.cogt.usage.token_category import NbTokensByCategoryDict, TokenCategory
-from pipelex.tools.misc.base_64_utils import load_binary_async
+from pipelex.tools.misc.base64_utils import load_binary_async
class GoogleFactoryError(CogtError):
diff --git a/pipelex/plugins/google/google_img_gen_worker.py b/pipelex/plugins/google/google_img_gen_worker.py
index 2ea22476e..3af03b4ea 100644
--- a/pipelex/plugins/google/google_img_gen_worker.py
+++ b/pipelex/plugins/google/google_img_gen_worker.py
@@ -1,5 +1,4 @@
import asyncio
-import base64
from typing import Any
from google import genai
@@ -9,13 +8,13 @@ from typing_extensions import override
from pipelex import log
from pipelex.base_exceptions import PipelexError
from pipelex.cogt.exceptions import ImgGenGenerationError, SdkTypeError
-from pipelex.cogt.image.generated_image import GeneratedImage
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
+from pipelex.cogt.image.image_size import ImageSize
from pipelex.cogt.img_gen.img_gen_job import ImgGenJob
from pipelex.cogt.img_gen.img_gen_worker_abstract import ImgGenWorkerAbstract
from pipelex.cogt.model_backends.model_spec import InferenceModelSpec
from pipelex.plugins.google.google_img_gen_factory import GoogleImgGenFactory
from pipelex.reporting.reporting_protocol import ReportingProtocol
-from pipelex.tools.misc.base_64_utils import prefixed_base64_str_from_base64_str
class GoogleImgGenWorkerError(PipelexError):
@@ -85,7 +84,7 @@ class GoogleImgGenWorker(ImgGenWorkerAbstract):
async def _gen_image(
self,
img_gen_job: ImgGenJob,
- ) -> GeneratedImage:
+ ) -> GeneratedImageRawDetails:
"""Generate a single image using Google Gemini Image API."""
prompt_text = img_gen_job.img_gen_prompt.positive_text
aspect_ratio_str = GoogleImgGenFactory.aspect_ratio_string(img_gen_job.job_params.aspect_ratio)
@@ -109,6 +108,10 @@ class GoogleImgGenWorker(ImgGenWorkerAbstract):
config=generation_config,
)
+ usage_metadata: genai_types.GenerateContentResponseUsageMetadata | None = response.usage_metadata
+ if not usage_metadata:
+ log.warning("No usage metadata returned from Google")
+
# Extract image from response
if not response.candidates:
msg = f"No candidates returned from model: {self.inference_model.desc}"
@@ -125,13 +128,14 @@ class GoogleImgGenWorker(ImgGenWorkerAbstract):
image_bytes = part.inline_data.data
if image_bytes is None:
continue
- # Convert bytes to base64 data URL
- base64_str = base64.b64encode(image_bytes).decode("utf-8")
- base64_url = prefixed_base64_str_from_base64_str(base64_str)
- return GeneratedImage(
- url=base64_url,
- width=width,
- height=height,
+ mime_type = part.inline_data.mime_type
+ if not mime_type:
+ msg = "No mime type returned from Google"
+ raise ImgGenGenerationError(msg)
+ return GeneratedImageRawDetails(
+ actual_bytes=image_bytes,
+ size=ImageSize(width=width, height=height),
+ mime_type=mime_type,
)
msg = f"No image data in response from model: {self.inference_model.desc}"
@@ -142,13 +146,14 @@ class GoogleImgGenWorker(ImgGenWorkerAbstract):
self,
img_gen_job: ImgGenJob,
nb_images: int,
- ) -> list[GeneratedImage]:
+ ) -> list[GeneratedImageRawDetails]:
"""Generate multiple images by calling _gen_image multiple times.
Google Gemini Image API does not support generating multiple images in a single call,
so we generate them sequentially.
"""
- generated_images: list[GeneratedImage] = []
+ generated_images: list[GeneratedImageRawDetails] = []
+ # TODO: async gen images in parallel
for _ in range(nb_images):
image = await self._gen_image(img_gen_job=img_gen_job)
generated_images.append(image)
diff --git a/pipelex/plugins/huggingface/__init__.py b/pipelex/plugins/huggingface/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/pipelex/plugins/huggingface/huggingface_factory.py b/pipelex/plugins/huggingface/huggingface_factory.py
new file mode 100644
index 000000000..a09405c47
--- /dev/null
+++ b/pipelex/plugins/huggingface/huggingface_factory.py
@@ -0,0 +1,52 @@
+from huggingface_hub.inference._providers import PROVIDER_OR_POLICY_T
+
+
+class HuggingFaceFactory:
+ @classmethod
+ def make_huggingface_inference_provider(cls, provider_str: str) -> PROVIDER_OR_POLICY_T:
+ match provider_str:
+ case "black-forest-labs":
+ return "black-forest-labs"
+ case "cerebras":
+ return "cerebras"
+ case "clarifai":
+ return "clarifai"
+ case "cohere":
+ return "cohere"
+ case "fal-ai":
+ return "fal-ai"
+ case "featherless-ai":
+ return "featherless-ai"
+ case "fireworks-ai":
+ return "fireworks-ai"
+ case "groq":
+ return "groq"
+ case "hf-inference":
+ return "hf-inference"
+ case "hyperbolic":
+ return "hyperbolic"
+ case "nebius":
+ return "nebius"
+ case "novita":
+ return "novita"
+ case "nscale":
+ return "nscale"
+ case "openai":
+ return "openai"
+ case "publicai":
+ return "publicai"
+ case "replicate":
+ return "replicate"
+ case "sambanova":
+ return "sambanova"
+ case "scaleway":
+ return "scaleway"
+ case "together":
+ return "together"
+ case "zai-org":
+ return "zai-org"
+ case "auto":
+ return "auto"
+ case _:
+ msg = f"Unknown HuggingFace inference provider: {provider_str}"
+ raise ValueError(msg)
diff --git a/pipelex/plugins/huggingface/huggingface_img_gen_worker.py b/pipelex/plugins/huggingface/huggingface_img_gen_worker.py
new file mode 100644
index 000000000..51e81ebb2
--- /dev/null
+++ b/pipelex/plugins/huggingface/huggingface_img_gen_worker.py
@@ -0,0 +1,78 @@
+from typing import Any
+
+from huggingface_hub import AsyncInferenceClient
+from PIL import Image
+from typing_extensions import override
+
+from pipelex import log
+from pipelex.cogt.exceptions import ImgGenParameterError, SdkTypeError
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
+from pipelex.cogt.img_gen.img_gen_args_factory import ImgGenArgsFactory
+from pipelex.cogt.img_gen.img_gen_job import ImgGenJob
+from pipelex.cogt.img_gen.img_gen_worker_abstract import ImgGenWorkerAbstract
+from pipelex.cogt.model_backends.model_spec import InferenceModelSpec
+from pipelex.reporting.reporting_protocol import ReportingProtocol
+from pipelex.tools.misc.image_utils import ImageFormat
+
+
+class HuggingFaceImgGenWorker(ImgGenWorkerAbstract):
+ def __init__(
+ self,
+ sdk_instance: Any,
+ inference_model: InferenceModelSpec,
+ reporting_delegate: ReportingProtocol | None = None,
+ ):
+ super().__init__(inference_model=inference_model, reporting_delegate=reporting_delegate)
+
+ if not isinstance(sdk_instance, AsyncInferenceClient):
+ msg = f"Provided ImgGen sdk_instance is not of type huggingface_hub.AsyncInferenceClient: it's a '{type(sdk_instance)}'"
+ raise SdkTypeError(msg)
+
+ self.hf_async_client = sdk_instance
+
+ async def _generate_single_image(
+ self,
+ img_gen_job: ImgGenJob,
+ ) -> Image.Image:
+ if self.inference_model.rules is None:
+ msg = f"Model '{self.inference_model.name}' does not have rules configured"
+ raise ImgGenParameterError(msg)
+ args_dict = ImgGenArgsFactory.make_args_for_model(
+ model_rules=self.inference_model.rules,
+ img_gen_job=img_gen_job,
+ nb_images=1,
+ )
+ prompt = args_dict.pop("prompt")
+ model_id = self.inference_model.model_id
+ return await self.hf_async_client.text_to_image(
+ prompt=prompt,
+ model=model_id,
+ extra_body=args_dict,
+ )
+
+ @override
+ async def _gen_image(
+ self,
+ img_gen_job: ImgGenJob,
+ ) -> GeneratedImageRawDetails:
+ pil_image = await self._generate_single_image(img_gen_job=img_gen_job)
+ output_format = img_gen_job.job_params.output_format or ImageFormat.PNG
+ generated_image = GeneratedImageRawDetails.make_from_pil_image(pil_image=pil_image, output_format=output_format)
+ log.verbose(generated_image, title="generated_image")
+ return generated_image
+
+ @override
+ async def _gen_image_list(
+ self,
+ img_gen_job: ImgGenJob,
+ nb_images: int,
+ ) -> list[GeneratedImageRawDetails]:
+ # HuggingFace's text_to_image doesn't support batch generation directly,
+ # so we generate images one at a time
+ generated_image_list: list[GeneratedImageRawDetails] = []
+ for idx in range(nb_images):
+ log.verbose(f"Generating image {idx + 1}/{nb_images}")
+ generated_image = await self._gen_image(img_gen_job=img_gen_job)
+ generated_image_list.append(generated_image)
+
+ return generated_image_list
diff --git a/pipelex/plugins/mistral/mistral_exceptions.py b/pipelex/plugins/mistral/mistral_exceptions.py
index 1318bb466..9228acb1b 100644
--- a/pipelex/plugins/mistral/mistral_exceptions.py
+++ b/pipelex/plugins/mistral/mistral_exceptions.py
@@ -1,9 +1,17 @@
from pipelex.cogt.exceptions import CogtError
-class MistralModelListingError(CogtError):
+class MistralPluginError(CogtError):
pass
-class MistralWorkerConfigurationError(CogtError):
+class MistralModelListingError(MistralPluginError):
+ pass
+
+
+class MistralWorkerConfigurationError(MistralPluginError):
+ pass
+
+
+class MistralExtractResponseError(MistralPluginError):
pass
diff --git a/pipelex/plugins/mistral/mistral_extract_worker.py b/pipelex/plugins/mistral/mistral_extract_worker.py
index 2aabe2d05..6ffb158cd 100644
--- a/pipelex/plugins/mistral/mistral_extract_worker.py
+++ b/pipelex/plugins/mistral/mistral_extract_worker.py
@@ -3,7 +3,6 @@ from typing import Any
from mistralai import Mistral
from typing_extensions import override
-from pipelex import log
from pipelex.cogt.exceptions import ExtractCapabilityError, SdkTypeError
from pipelex.cogt.extract.extract_input import ExtractInputError
from pipelex.cogt.extract.extract_job import ExtractJob
@@ -12,7 +11,7 @@ from pipelex.cogt.extract.extract_worker_abstract import ExtractWorkerAbstract
from pipelex.cogt.model_backends.model_spec import InferenceModelSpec
from pipelex.plugins.mistral.mistral_factory import MistralFactory
from pipelex.reporting.reporting_protocol import ReportingProtocol
-from pipelex.tools.misc.base_64_utils import load_binary_as_base64_async
+from pipelex.tools.misc.base64_utils import load_binary_as_base64_async
from pipelex.tools.misc.filetype_utils import detect_file_type_from_base64
from pipelex.tools.misc.path_utils import clarify_path_or_url
@@ -54,7 +53,6 @@ class MistralExtractWorker(ExtractWorkerAbstract):
pdf_uri=pdf_uri,
should_include_images=extract_job.job_params.should_include_images,
should_caption_images=extract_job.job_params.should_caption_images,
- should_include_page_views=extract_job.job_params.should_include_page_views,
)
else:
msg = "No image nor PDF URI provided in ExtractJob"
@@ -71,30 +69,20 @@ class MistralExtractWorker(ExtractWorkerAbstract):
raise NotImplementedError(msg)
image_path, image_url = clarify_path_or_url(path_or_uri=image_uri)
if image_url:
- return await self.extract_from_image_url(
- image_url=image_url,
- )
- assert image_path is not None
- return await self.extract_from_image_file(
- image_path=image_path,
- )
+ return await self._extract_from_image_url(image_url=image_url)
+ else:
+ assert image_path is not None
+ return await self._extract_from_image_file(image_path=image_path)
async def _make_extract_output_from_pdf(
self,
pdf_uri: str,
should_include_images: bool,
should_caption_images: bool,
- should_include_page_views: bool,
) -> ExtractOutput:
if should_caption_images:
msg = "Captioning is not implemented for Mistral OCR."
raise ExtractCapabilityError(msg)
- if should_include_page_views:
- log.verbose("Page views are not implemented for Mistral OCR.")
- # TODO: use a model capability flag to check possibility before asking for it
- # it it's asked and not available, raise
- # the caller will be responsible to get the page views using other solution if needed
- # raise OcrCapabilityError("Page views are not implemented for Mistral OCR.")
pdf_path, pdf_url = clarify_path_or_url(path_or_uri=pdf_uri)
extract_output: ExtractOutput
if pdf_url:
@@ -110,7 +98,7 @@ class MistralExtractWorker(ExtractWorkerAbstract):
)
return extract_output
- async def extract_from_image_url(
+ async def _extract_from_image_url(
self,
image_url: str,
) -> ExtractOutput:
@@ -125,13 +113,13 @@ class MistralExtractWorker(ExtractWorkerAbstract):
mistral_extract_response=extract_response,
)
- async def extract_from_image_file(
+ async def _extract_from_image_file(
self,
image_path: str,
) -> ExtractOutput:
b64 = await load_binary_as_base64_async(path=image_path)
- file_type = detect_file_type_from_base64(b64=b64)
+ file_type = detect_file_type_from_base64(base64_data=b64)
mime_type = file_type.mime
extract_response = await self.mistral_client.ocr.process_async(
diff --git a/pipelex/plugins/mistral/mistral_factory.py b/pipelex/plugins/mistral/mistral_factory.py
index 01d595ef9..7a10b5a8a 100644
--- a/pipelex/plugins/mistral/mistral_factory.py
+++ b/pipelex/plugins/mistral/mistral_factory.py
@@ -22,13 +22,16 @@ from openai.types.chat import (
)
from pipelex.cogt.exceptions import PromptImageFormatError
+from pipelex.cogt.extract.bounding_box import BoundingBox
from pipelex.cogt.extract.extract_output import ExtractedImageFromPage, ExtractOutput, Page
+from pipelex.cogt.image.image_size import ImageSize
from pipelex.cogt.image.prompt_image import PromptImage, PromptImageBase64, PromptImagePath, PromptImageUrl
from pipelex.cogt.llm.llm_job import LLMJob
from pipelex.cogt.model_backends.backend import InferenceBackend
from pipelex.cogt.usage.token_category import NbTokensByCategoryDict, TokenCategory
+from pipelex.plugins.mistral.mistral_exceptions import MistralExtractResponseError
from pipelex.plugins.openai.openai_utils import make_image_url_obj
-from pipelex.tools.misc.base_64_utils import load_binary_as_base64
+from pipelex.tools.misc.base64_utils import load_binary_as_base64
from pipelex.tools.misc.filetype_utils import detect_file_type_from_base64, detect_file_type_from_path
@@ -137,13 +140,39 @@ class MistralFactory:
cls,
mistral_ocr_image_obj: mistralai.OCRImageObject,
) -> ExtractedImageFromPage:
+ if not mistral_ocr_image_obj.image_base64:
+ msg = "Mistral OCR image object does not have an image base64"
+ raise MistralExtractResponseError(msg)
+ width: int | None = None
+ height: int | None = None
+ if mistral_ocr_image_obj.top_left_x is not None and mistral_ocr_image_obj.bottom_right_x is not None:
+ width = mistral_ocr_image_obj.bottom_right_x - mistral_ocr_image_obj.top_left_x
+ if mistral_ocr_image_obj.top_left_y is not None and mistral_ocr_image_obj.bottom_right_y is not None:
+ height = mistral_ocr_image_obj.bottom_right_y - mistral_ocr_image_obj.top_left_y
+ size: ImageSize | None = None
+ if width is not None and height is not None:
+ size = ImageSize(width=width, height=height)
+ bounding_box: BoundingBox | None
+ if (
+ mistral_ocr_image_obj.top_left_x is not None
+ and mistral_ocr_image_obj.top_left_y is not None
+ and mistral_ocr_image_obj.bottom_right_x is not None
+ and mistral_ocr_image_obj.bottom_right_y is not None
+ ):
+ bounding_box = BoundingBox.make_from_two_corners(
+ top_left_x=mistral_ocr_image_obj.top_left_x,
+ top_left_y=mistral_ocr_image_obj.top_left_y,
+ bottom_right_x=mistral_ocr_image_obj.bottom_right_x,
+ bottom_right_y=mistral_ocr_image_obj.bottom_right_y,
+ )
+ else:
+ bounding_box = None
+
return ExtractedImageFromPage(
- image_id=mistral_ocr_image_obj.id,
- top_left_x=mistral_ocr_image_obj.top_left_x,
- top_left_y=mistral_ocr_image_obj.top_left_y,
- bottom_right_x=mistral_ocr_image_obj.bottom_right_x,
- bottom_right_y=mistral_ocr_image_obj.bottom_right_y,
- base_64=mistral_ocr_image_obj.image_base64 or None,
+ size=size,
+ base64_str=mistral_ocr_image_obj.image_base64,
+ mime_type="image/jpeg", # Mistral OCR returns JPEG images
+ bounding_box=bounding_box,
)
#########################################################
diff --git a/pipelex/plugins/openai/openai_completions_img_gen_worker.py b/pipelex/plugins/openai/openai_completions_img_gen_worker.py
index 9d955a1e2..7b8ef43ec 100644
--- a/pipelex/plugins/openai/openai_completions_img_gen_worker.py
+++ b/pipelex/plugins/openai/openai_completions_img_gen_worker.py
@@ -5,14 +5,18 @@ from openai import APIConnectionError, BadRequestError, NotFoundError
from typing_extensions import override
from pipelex import log
-from pipelex.cogt.exceptions import LLMCompletionError, LLMModelNotFoundError, SdkTypeError
-from pipelex.cogt.image.generated_image import GeneratedImage
+from pipelex.cogt.exceptions import ImgGenGenerationError, ImgGenModelNotFoundError, ImgGenParameterError, SdkTypeError
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
+from pipelex.cogt.image.image_size import ImageSize
from pipelex.cogt.img_gen.img_gen_job import ImgGenJob
+from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio
from pipelex.cogt.img_gen.img_gen_worker_abstract import ImgGenWorkerAbstract
from pipelex.cogt.inference.inference_constants import InferenceOutputType
from pipelex.cogt.model_backends.model_spec import InferenceModelSpec
from pipelex.plugins.openai.openai_completions_factory import OpenAICompletionsFactory
from pipelex.reporting.reporting_protocol import ReportingProtocol
+from pipelex.tools.misc.base64_utils import extract_base64_str_from_base64_url_if_possible
+from pipelex.tools.misc.image_utils import ImageFormat
if TYPE_CHECKING:
from openai.types.chat import ChatCompletionMessage
@@ -40,8 +44,28 @@ class OpenAICompletionsImgGenWorker(ImgGenWorkerAbstract):
async def _gen_image(
self,
img_gen_job: ImgGenJob,
- ) -> GeneratedImage:
+ ) -> GeneratedImageRawDetails:
log.debug(f"Generating image with model: {self.inference_model.tag}")
+ output_format: ImageFormat | None = None
+ if self.inference_model.backend_name == "pipelex_gateway":
+ if img_gen_job.job_params.output_format and not img_gen_job.job_params.output_format.is_png:
+ msg = (
+ f"Completions ImgGen worker for Pipelex Gateway only supports PNG output format. "
+ f"Requested output format: {img_gen_job.job_params.output_format}"
+ )
+ raise ImgGenParameterError(msg)
+ output_format = ImageFormat.PNG
+ if self.inference_model.backend_name == "blackboxai":
+ if img_gen_job.job_params.output_format and not img_gen_job.job_params.output_format.is_jpeg:
+ msg = (
+ f"Completions ImgGen worker for BlackboxAI only supports JPEG output format. "
+ f"Requested output format: {img_gen_job.job_params.output_format}"
+ )
+ raise ImgGenParameterError(msg)
+ output_format = ImageFormat.JPEG
+ if img_gen_job.job_params.aspect_ratio != AspectRatio.SQUARE:
+ msg = f"OpenAI Completions ImgGen worker only supports square images. Aspect ratio: {img_gen_job.job_params.aspect_ratio}"
+ raise ImgGenParameterError(msg)
img_gen_prompt_text = img_gen_job.img_gen_prompt.positive_text
messages: list[ChatCompletionMessageParam] = [{"role": "user", "content": img_gen_prompt_text}]
try:
@@ -55,35 +79,51 @@ class OpenAICompletionsImgGenWorker(ImgGenWorkerAbstract):
extra_body=extra_body,
)
except NotFoundError as not_found_error:
- # TODO: record llm config so it can be displayed here
- msg = f"OpenAI model or deployment not found:\n{self.inference_model.desc}\nmodel: {self.inference_model.desc}\n{not_found_error}"
- raise LLMModelNotFoundError(msg) from not_found_error
+ msg = f"ImgGen model or deployment not found:\n{self.inference_model.desc}\nmodel: {self.inference_model.desc}\n{not_found_error}"
+ raise ImgGenModelNotFoundError(message=msg, model_handle=self.inference_model.name) from not_found_error
except APIConnectionError as api_connection_error:
- msg = f"OpenAI API connection error: {api_connection_error}"
- raise LLMCompletionError(msg) from api_connection_error
+ msg = f"ImgGen API connection error: {api_connection_error}"
+ raise ImgGenGenerationError(msg) from api_connection_error
except BadRequestError as bad_request_error:
- msg = f"OpenAI bad request error with model: {self.inference_model.desc}:\n{bad_request_error}"
- raise LLMCompletionError(msg) from bad_request_error
+ msg = f"ImgGen bad request error with model: {self.inference_model.desc}:\n{bad_request_error}"
+ raise ImgGenGenerationError(msg) from bad_request_error
openai_message: ChatCompletionMessage = response.choices[0].message
- url: str | None = None
+ actual_url: str | None = None
+ base64_str: str | None = None
+ base64_extracted_mime_type: str | None = None
if (content := openai_message.content) and content.startswith("http"):
- url = openai_message.content
+ # OpenAI response message is a URL, this happens with blackboxai and pipelex_gateway which have a fixed output format.
+ # Otherwise we won't know what format the image is in.
+ if output_format is None:
+ msg = (
+ f"OpenAI response message is a URL but output_format is not set. This shouldn't be possible. "
+ f"This response should only happen when using backend 'blackboxai' or 'pipelex_gateway'. "
+ f"Backend is: '{self.inference_model.backend_name}'"
+ )
+ raise ImgGenParameterError(msg)
+ actual_url = openai_message.content
elif hasattr(openai_message, "content_blocks"):
content_blocks = cast("list[dict[str, Any]]", openai_message.content_blocks) # pyright: ignore[reportAttributeAccessIssue, reportUnknownMemberType]
for part in content_blocks:
if part.get("type") == "image_url":
if image_url := part.get("image_url"):
if the_url := image_url.get("url"):
- url = the_url
+ extracted = extract_base64_str_from_base64_url_if_possible(possibly_base64_url=the_url)
+ if not extracted:
+ msg = "No base64 string found in ImgGenCompletions response message"
+ raise ImgGenGenerationError(msg)
+ base64_str, base64_extracted_mime_type = extracted
break
- if not url:
- msg = f"OpenAI response has no image. Model: {self.inference_model.desc}"
- raise LLMCompletionError(msg)
- return GeneratedImage(
- url=url,
- width=1024,
- height=1024,
+ if not base64_str and not actual_url:
+ msg = f"ImgGenCompletions response has no image. Model: {self.inference_model.desc}"
+ raise ImgGenGenerationError(msg)
+ return GeneratedImageRawDetails(
+ actual_url=actual_url,
+ base64_str=base64_str,
+ size=ImageSize(width=1024, height=1024),
+ mime_type=base64_extracted_mime_type,
+ output_format=output_format,
)
@override
@@ -91,7 +131,7 @@ class OpenAICompletionsImgGenWorker(ImgGenWorkerAbstract):
self,
img_gen_job: ImgGenJob,
nb_images: int,
- ) -> list[GeneratedImage]:
+ ) -> list[GeneratedImageRawDetails]:
if nb_images > 1:
msg = f"The image genration backend '{self.inference_model.desc}' can't generate multiple images at once: {nb_images}"
raise NotImplementedError(msg)
diff --git a/pipelex/plugins/openai/openai_img_gen_factory.py b/pipelex/plugins/openai/openai_img_gen_factory.py
index 8215c22fc..450ee1fe8 100644
--- a/pipelex/plugins/openai/openai_img_gen_factory.py
+++ b/pipelex/plugins/openai/openai_img_gen_factory.py
@@ -3,7 +3,8 @@ from typing import Literal
from openai import Omit, omit
from pipelex.cogt.exceptions import ImgGenParameterError
-from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, OutputFormat, Quality
+from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, Quality
+from pipelex.tools.misc.image_utils import ImageFormat
GptImage1SizeType = Literal["1024x1024", "1536x1024", "1024x1536"]
GptImage1OutputFormatType = Literal["png", "jpeg", "webp"]
@@ -14,14 +15,14 @@ GptImage1BackgroundType = Literal["transparent", "opaque", "auto"]
class OpenAIImgGenFactory:
@classmethod
- def image_size_for_gpt_image_1(cls, aspect_ratio: AspectRatio) -> GptImage1SizeType:
+ def image_size_for_gpt_image_1(cls, aspect_ratio: AspectRatio) -> tuple[GptImage1SizeType, int, int]:
match aspect_ratio:
case AspectRatio.SQUARE:
- return "1024x1024"
+ return "1024x1024", 1024, 1024
case AspectRatio.LANDSCAPE_3_2:
- return "1536x1024"
+ return "1536x1024", 1536, 1024
case AspectRatio.PORTRAIT_2_3:
- return "1024x1536"
+ return "1024x1536", 1024, 1536
case (
AspectRatio.LANDSCAPE_4_3
| AspectRatio.LANDSCAPE_16_9
@@ -34,13 +35,16 @@ class OpenAIImgGenFactory:
raise ImgGenParameterError(msg)
@classmethod
- def output_format_for_gpt_image_1(cls, output_format: OutputFormat) -> GptImage1OutputFormatType:
+ def output_format_for_gpt_image_1(cls, output_format: ImageFormat | None) -> GptImage1OutputFormatType | None:
+ """This method only converts the OutputFormat StrEnum value to a Literal, as expected by the OpenAI API"""
+ if output_format is None:
+ return None
match output_format:
- case OutputFormat.PNG:
+ case ImageFormat.PNG:
return "png"
- case OutputFormat.JPG:
+ case ImageFormat.JPEG:
return "jpeg"
- case OutputFormat.WEBP:
+ case ImageFormat.WEBP:
return "webp"
@classmethod
diff --git a/pipelex/plugins/openai/openai_img_gen_worker.py b/pipelex/plugins/openai/openai_img_gen_worker.py
index 65086d537..ac1e81d50 100644
--- a/pipelex/plugins/openai/openai_img_gen_worker.py
+++ b/pipelex/plugins/openai/openai_img_gen_worker.py
@@ -1,17 +1,20 @@
-from typing import Any
+from typing import TYPE_CHECKING, Any
import openai
from typing_extensions import override
from pipelex.cogt.exceptions import ImgGenGenerationError, SdkTypeError
-from pipelex.cogt.image.generated_image import GeneratedImage
+from pipelex.cogt.image.generated_image import GeneratedImageRawDetails
+from pipelex.cogt.image.image_size import ImageSize
from pipelex.cogt.img_gen.img_gen_job import ImgGenJob
from pipelex.cogt.img_gen.img_gen_job_components import Quality
from pipelex.cogt.img_gen.img_gen_worker_abstract import ImgGenWorkerAbstract
from pipelex.cogt.model_backends.model_spec import InferenceModelSpec
from pipelex.plugins.openai.openai_img_gen_factory import OpenAIImgGenFactory
from pipelex.reporting.reporting_protocol import ReportingProtocol
-from pipelex.tools.misc.base_64_utils import prefixed_base64_str_from_base64_str
+
+if TYPE_CHECKING:
+ from openai.types.images_response import ImagesResponse, Usage
class OpenAIImgGenWorker(ImgGenWorkerAbstract):
@@ -33,7 +36,7 @@ class OpenAIImgGenWorker(ImgGenWorkerAbstract):
async def _gen_image(
self,
img_gen_job: ImgGenJob,
- ) -> GeneratedImage:
+ ) -> GeneratedImageRawDetails:
one_image_list = await self._gen_image_list(img_gen_job=img_gen_job, nb_images=1)
return one_image_list[0]
@@ -42,14 +45,14 @@ class OpenAIImgGenWorker(ImgGenWorkerAbstract):
self,
img_gen_job: ImgGenJob,
nb_images: int,
- ) -> list[GeneratedImage]:
- image_size = OpenAIImgGenFactory.image_size_for_gpt_image_1(aspect_ratio=img_gen_job.job_params.aspect_ratio)
+ ) -> list[GeneratedImageRawDetails]:
+ image_size, width, height = OpenAIImgGenFactory.image_size_for_gpt_image_1(aspect_ratio=img_gen_job.job_params.aspect_ratio)
output_format = OpenAIImgGenFactory.output_format_for_gpt_image_1(output_format=img_gen_job.job_params.output_format)
moderation = OpenAIImgGenFactory.moderation_for_gpt_image_1(is_moderated=img_gen_job.job_params.is_moderated)
background = OpenAIImgGenFactory.background_for_gpt_image_1(background=img_gen_job.job_params.background)
quality = OpenAIImgGenFactory.quality_for_gpt_image_1(quality=img_gen_job.job_params.quality or Quality.LOW)
output_compression = OpenAIImgGenFactory.output_compression_for_gpt_image_1()
- result = await self.openai_client.images.generate(
+ images_response: ImagesResponse = await self.openai_client.images.generate(
prompt=img_gen_job.img_gen_prompt.positive_text,
model=self.inference_model.model_id,
moderation=moderation,
@@ -60,23 +63,43 @@ class OpenAIImgGenWorker(ImgGenWorkerAbstract):
output_compression=output_compression,
n=nb_images,
)
- if not result.data:
+ if not images_response.data:
msg = "No result from OpenAI"
raise ImgGenGenerationError(msg)
- generated_images: list[GeneratedImage] = []
- for image_data in result.data:
- image_base64 = image_data.b64_json
- if not image_base64:
+ response_output_format: str | None = images_response.output_format
+ if response_output_format is None:
+ msg = "No output format received from OpenAI"
+ raise ImgGenGenerationError(msg)
+ size: str | None = images_response.size
+ if not size:
+ msg = "No size received from OpenAI"
+ raise ImgGenGenerationError(msg)
+ size_split = size.split("x")
+ if len(size_split) != 2:
+ msg = f"Size from OpenAI is not a valid size: '{size}'"
+ raise ImgGenGenerationError(msg)
+ width_str, height_str = size_split
+ width = int(width_str)
+ height = int(height_str)
+
+ usage: Usage | None = images_response.usage
+ if not usage:
+ msg = "No usage received from OpenAI"
+ raise ImgGenGenerationError(msg)
+
+ generated_images: list[GeneratedImageRawDetails] = []
+ for image_data in images_response.data:
+ base64_str = image_data.b64_json
+ if not base64_str:
msg = "No base64 image data received from OpenAI"
raise ImgGenGenerationError(msg)
- base64_url = prefixed_base64_str_from_base64_str(b64_str=image_base64)
generated_images.append(
- GeneratedImage(
- url=base64_url,
- width=1024,
- height=1024,
+ GeneratedImageRawDetails(
+ base64_str=base64_str,
+ size=ImageSize(width=width, height=height),
+ output_format=response_output_format,
),
)
return generated_images
diff --git a/pipelex/plugins/openai/openai_responses_llm_worker.py b/pipelex/plugins/openai/openai_responses_llm_worker.py
index 72445b5ef..3c50495a9 100644
--- a/pipelex/plugins/openai/openai_responses_llm_worker.py
+++ b/pipelex/plugins/openai/openai_responses_llm_worker.py
@@ -88,7 +88,7 @@ class OpenAIResponsesLLMWorker(LLMWorkerInternalAbstract):
msg = (
f"OpenAI Responses model or deployment not found:\n{self.inference_model.desc}\nmodel: {self.inference_model.desc}\n{not_found_error}"
)
- raise LLMModelNotFoundError(msg) from not_found_error
+ raise LLMModelNotFoundError(message=msg, model_handle=self.inference_model.name) from not_found_error
except APIConnectionError as api_connection_error:
msg = f"OpenAI API connection error: {api_connection_error}"
raise LLMCompletionError(msg) from api_connection_error
diff --git a/pipelex/plugins/openai/openai_utils.py b/pipelex/plugins/openai/openai_utils.py
index c5f07f160..689fa763c 100644
--- a/pipelex/plugins/openai/openai_utils.py
+++ b/pipelex/plugins/openai/openai_utils.py
@@ -2,7 +2,7 @@ from openai.types.chat.chat_completion_content_part_image_param import ImageURL
from pipelex.cogt.exceptions import LLMPromptParameterError
from pipelex.cogt.image.prompt_image import PromptImage, PromptImageBase64, PromptImageDetail, PromptImagePath, PromptImageUrl
-from pipelex.tools.misc.base_64_utils import load_binary_as_base64
+from pipelex.tools.misc.base64_utils import load_binary_as_base64
async def make_image_url_obj(prompt_image: PromptImage, detail: PromptImageDetail | None) -> ImageURL:
diff --git a/pipelex/plugins/plugin.py b/pipelex/plugins/plugin.py
index 54da29a20..ca555040d 100644
--- a/pipelex/plugins/plugin.py
+++ b/pipelex/plugins/plugin.py
@@ -6,14 +6,19 @@ from pipelex.cogt.model_backends.model_spec import InferenceModelSpec
class Plugin(BaseModel):
sdk: str
backend: str
+ variant: str | None = None
@property
def sdk_handle(self) -> str:
- return f"{self.sdk}@{self.backend}"
+ if self.variant:
+ return f"{self.sdk}@{self.backend}/{self.variant}"
+ else:
+ return f"{self.sdk}@{self.backend}"
@classmethod
def make_for_inference_model(cls, inference_model: InferenceModelSpec) -> "Plugin":
return Plugin(
sdk=inference_model.sdk,
backend=inference_model.backend_name,
+ variant=inference_model.variant,
)
diff --git a/pipelex/plugins/pypdfium2/pypdfium2_worker.py b/pipelex/plugins/pypdfium2/pypdfium2_worker.py
index 9d4ff1faa..e8e8ddbab 100644
--- a/pipelex/plugins/pypdfium2/pypdfium2_worker.py
+++ b/pipelex/plugins/pypdfium2/pypdfium2_worker.py
@@ -8,7 +8,6 @@ from pipelex.cogt.extract.extract_output import ExtractOutput, Page
from pipelex.cogt.extract.extract_worker_abstract import ExtractWorkerAbstract
from pipelex.cogt.model_backends.model_spec import InferenceModelSpec
from pipelex.reporting.reporting_protocol import ReportingProtocol
-from pipelex.tools.misc.path_utils import clarify_path_or_url
from pipelex.tools.pdf.pypdfium2_renderer import pypdfium2_renderer
@@ -27,50 +26,24 @@ class Pypdfium2Worker(ExtractWorkerAbstract):
extract_job: ExtractJob,
) -> ExtractOutput:
if extract_job.extract_input.image_uri:
- msg = "Pypdfium2 only extracts text from PDFs, not images"
+ msg = "Pypdfium2 only extracts text from PDFs, not from images"
raise NotImplementedError(msg)
- if pdf_uri := extract_job.extract_input.pdf_uri:
- pdf_path, pdf_url = clarify_path_or_url(path_or_uri=pdf_uri)
- extract_output: ExtractOutput
- if pdf_url:
- extract_output = await self.extract_from_pdf_url(
- pdf_url=pdf_url,
- )
- else: # pdf_path must be provided based on validation
- assert pdf_path is not None # Type narrowing for mypy
- extract_output = await self.extract_from_pdf_file(
- pdf_path=pdf_path,
- )
- else:
+ pdf_uri = extract_job.extract_input.pdf_uri
+ if not pdf_uri:
msg = "No PDF URI provided in ExtractJob"
raise ExtractInputError(msg)
- return extract_output
- async def extract_from_pdf_url(
- self,
- pdf_url: str,
- ) -> ExtractOutput:
- page_texts = await pypdfium2_renderer.get_text_from_pdf_pages_from_uri(pdf_uri=pdf_url)
- pages: dict[int, Page] = {}
- for page_index, page_text in enumerate(page_texts):
- pages[page_index + 1] = Page(
- text=page_text,
- )
- return ExtractOutput(
- pages=pages,
- )
+ if extract_job.job_params.should_include_images:
+ all_page_images = await pypdfium2_renderer.extract_embedded_images_from_pdf_uri(pdf_uri=pdf_uri)
+ else:
+ all_page_images = {}
- async def extract_from_pdf_file(
- self,
- pdf_path: str,
- ) -> ExtractOutput:
- page_texts = await pypdfium2_renderer.get_text_from_pdf_pages(pdf_input=pdf_path)
+ all_page_texts = await pypdfium2_renderer.extract_text_from_pdf_pages_from_uri(pdf_uri=pdf_uri)
pages: dict[int, Page] = {}
- for page_index, page_text in enumerate(page_texts):
- pages[page_index + 1] = Page(
- text=page_text,
- )
- return ExtractOutput(
- pages=pages,
- )
+ for page_index, page_text in enumerate(all_page_texts):
+ if extract_job.job_params.should_include_images:
+ pages[page_index + 1] = Page(text=page_text, extracted_images=all_page_images[page_index + 1])
+ else:
+ pages[page_index + 1] = Page(text=page_text)
+ return ExtractOutput(pages=pages)
diff --git a/pipelex/system/configuration/config_loader.py b/pipelex/system/configuration/config_loader.py
index 6c3a282f9..ebf1aba00 100644
--- a/pipelex/system/configuration/config_loader.py
+++ b/pipelex/system/configuration/config_loader.py
@@ -33,7 +33,7 @@ class ConfigLoader:
- pipelex_local.toml (local execution)
- pipelex_{environment}.toml
- pipelex_{run_mode}.toml
- - pipelex_super.toml (final override)
+ - pipelex_override.toml (final override)
Returns:
Dict[str, Any]: The merged configuration dictionary
@@ -60,7 +60,7 @@ class ConfigLoader:
list_of_configs.append(os.path.join(self.pipelex_config_dir, f"pipelex_{runtime_manager.run_mode}.toml"))
# Final override
- list_of_configs.append(os.path.join(self.pipelex_config_dir, "pipelex_super.toml"))
+ list_of_configs.append(os.path.join(self.pipelex_config_dir, "pipelex_override.toml"))
return load_toml_from_path_and_merge_with_overrides(paths=list_of_configs)
diff --git a/pipelex/system/configuration/configs.py b/pipelex/system/configuration/configs.py
index b38fec174..47316b911 100644
--- a/pipelex/system/configuration/configs.py
+++ b/pipelex/system/configuration/configs.py
@@ -1,7 +1,7 @@
from typing import cast
import shortuuid
-from pydantic import Field, field_validator
+from pydantic import Field, field_validator, model_validator
from pipelex.base_exceptions import PipelexConfigError
from pipelex.cogt.config_cogt import Cogt
@@ -14,7 +14,7 @@ from pipelex.system.configuration.config_model import ConfigModel
from pipelex.system.configuration.config_root import ConfigRoot
from pipelex.tools.aws.aws_config import AwsConfig
from pipelex.tools.log.log_config import LogConfig
-from pipelex.types import StrEnum
+from pipelex.types import Self, StrEnum
class ConfigPaths:
@@ -35,6 +35,11 @@ class ConfigPaths:
OVERRIDES_DECK_FILE_PATH = f"{MODEL_DECKS_DIR_PATH}/{OVERRIDES_DECK_FILE_NAME}"
+class StorageMethod(StrEnum):
+ LOCAL = "local"
+ IN_MEMORY = "in_memory"
+
+
class ValidationErrorReaction(StrEnum):
RAISE = "raise"
LOG = "log"
@@ -58,6 +63,31 @@ class ValidationErrorConfig(ConfigModel):
)
+class StorageConfig(ConfigModel):
+ is_fetch_remote_content_enabled: bool
+ uri_format: str
+ method: StorageMethod = Field(strict=False)
+ local_storage_path: str | None = None
+
+ @model_validator(mode="after")
+ def validate_storage_config(self) -> Self:
+ match self.method:
+ case StorageMethod.LOCAL:
+ if not self.local_storage_path:
+ msg = "local_storage_path is required when method is local"
+ raise PipelexConfigError(msg)
+ case StorageMethod.IN_MEMORY:
+ pass
+ return self
+
+ @property
+ def storage_path(self) -> str:
+ if not self.local_storage_path:
+ msg = "local_storage_path is required when method is local"
+ raise PipelexConfigError(msg)
+ return self.local_storage_path
+
+
class PipeRunConfig(ConfigModel):
pipe_stack_limit: int
@@ -130,6 +160,7 @@ class BuilderConfig(ConfigModel):
class Pipelex(ConfigModel):
+ storage_config: StorageConfig
feature_config: FeatureConfig
log_config: LogConfig
aws_config: AwsConfig
diff --git a/pipelex/system/pipelex_service/pipelex_details.py b/pipelex/system/pipelex_service/pipelex_details.py
index 8eab3f453..e882a09f2 100644
--- a/pipelex/system/pipelex_service/pipelex_details.py
+++ b/pipelex/system/pipelex_service/pipelex_details.py
@@ -2,7 +2,7 @@ from pipelex.tools.misc.hash_utils import hash_sha256
class PipelexDetails:
- REMOTE_CONFIG_URL = "https://pipelex-config.s3.eu-west-3.amazonaws.com/pipelex_remote_config_01.json"
+ REMOTE_CONFIG_URL = "https://pipelex-config.s3.eu-west-3.amazonaws.com/pipelex_remote_config_02.json"
PIPELEX_GATEWAY_API_KEY_VAR = "PIPELEX_GATEWAY_API_KEY"
@classmethod
diff --git a/pipelex/system/telemetry/otel_constants.py b/pipelex/system/telemetry/otel_constants.py
index c1b887dd0..4e934e16e 100644
--- a/pipelex/system/telemetry/otel_constants.py
+++ b/pipelex/system/telemetry/otel_constants.py
@@ -100,6 +100,8 @@ def make_otel_gen_ai_output_type(output_type: str) -> otel_gen_ai_attributes.Gen
return otel_gen_ai_attributes.GenAiOutputTypeValues.JSON
case InferenceOutputType.IMAGE:
return otel_gen_ai_attributes.GenAiOutputTypeValues.IMAGE
+ case InferenceOutputType.PAGES:
+ return otel_gen_ai_attributes.GenAiOutputTypeValues.JSON
except ValueError as exc:
msg = f"Invalid LLM output type: {output_type}, and we only support LLM output types for now in OpenTelemetry"
raise ValueError(msg) from exc
diff --git a/pipelex/test_extras/shared_pytest_plugins.py b/pipelex/test_extras/shared_pytest_plugins.py
index f91b9c8a7..63c8bee91 100644
--- a/pipelex/test_extras/shared_pytest_plugins.py
+++ b/pipelex/test_extras/shared_pytest_plugins.py
@@ -38,6 +38,7 @@ ENV_VAR_KEYS_WHICH_MAY_NEED_PLACEHOLDERS_IN_CI = [
"FAL_API_KEY",
"BLACKBOX_API_KEY",
"GOOGLE_API_KEY",
+ "HF_TOKEN",
]
diff --git a/pipelex/tools/jinja2/jinja2_required_variables.py b/pipelex/tools/jinja2/jinja2_required_variables.py
index 7316e56ef..71e64abe1 100644
--- a/pipelex/tools/jinja2/jinja2_required_variables.py
+++ b/pipelex/tools/jinja2/jinja2_required_variables.py
@@ -7,6 +7,7 @@ from jinja2.exceptions import (
from pipelex.cogt.templating.template_category import TemplateCategory
from pipelex.tools.jinja2.jinja2_environment import make_jinja2_env_without_loader
from pipelex.tools.jinja2.jinja2_errors import Jinja2DetectVariablesError, Jinja2StuffError
+from pipelex.tools.misc.string_utils import get_root_from_dotted_path
def _build_full_path(node: nodes.Node) -> str | None:
@@ -86,7 +87,7 @@ def _collect_full_variable_paths(node: nodes.Node, paths: set[str], declared_nam
if isinstance(node, (nodes.Name, nodes.Getattr)):
full_path = _build_full_path(node)
if full_path:
- root_name = full_path.split(".")[0]
+ root_name = get_root_from_dotted_path(full_path)
# Only add if the root is not a declared local variable
if root_name not in new_declared:
paths.add(full_path)
diff --git a/pipelex/tools/log/log_config.py b/pipelex/tools/log/log_config.py
index 572c020cd..68a62955d 100644
--- a/pipelex/tools/log/log_config.py
+++ b/pipelex/tools/log/log_config.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
import sys
from typing import cast
@@ -36,7 +38,7 @@ class CallerInfoTemplate(StrEnum):
FUNC_MODULE_LINE = "func_module_line"
@classmethod
- def for_template_key(cls, key: "CallerInfoTemplate") -> str:
+ def for_template_key(cls, key: CallerInfoTemplate) -> str:
match key:
case cls.FILE_LINE:
return "{file}:{line}"
diff --git a/pipelex/tools/misc/attribute_utils.py b/pipelex/tools/misc/attribute_utils.py
index 868449156..2eb4ce9a3 100644
--- a/pipelex/tools/misc/attribute_utils.py
+++ b/pipelex/tools/misc/attribute_utils.py
@@ -2,9 +2,10 @@ from typing import Any, ClassVar, cast
class AttributePolisher:
- base_64_truncate_length: ClassVar[int] = 100
+ bytes_truncate_length: ClassVar[int] = 100
url_truncate_length: ClassVar[int] = 100
- long_string_truncate_length: ClassVar[int] = 512
+ base64_truncate_length: ClassVar[int] = 128
+ text_truncate_length: ClassVar[int] = 2048
truncate_suffix: ClassVar[str] = "…"
@classmethod
@@ -18,62 +19,47 @@ class AttributePolisher:
def _truncate_bytes(cls, value: bytes, max_length: int) -> bytes:
"""Truncate a bytes to the specified maximum length and append the truncate suffix."""
if len(value) > max_length:
- return value[:max_length] + cls.truncate_suffix.encode("utf-8")
+ return value[:max_length]
return value
@classmethod
- def should_truncate(cls, name: str, value: Any) -> bool:
- if not isinstance(value, (str, bytes)):
- return False
-
- return (name == "base_64" and len(value) > cls.base_64_truncate_length) or (
- name == "url" and isinstance(value, str) and value.startswith("data:image/") and len(value) > cls.url_truncate_length
- )
-
- @classmethod
- def should_truncate_any_long_string(cls, value: Any) -> bool:
- """Check if a value should be truncated based on common patterns for long strings.
-
- This is a more aggressive truncation that catches base64-like patterns
- regardless of field name, useful for pretty printing unknown structures.
- """
- if not isinstance(value, str):
- return False
-
- # Truncate data URLs (base64 images)
- if value.startswith("data:"):
- return len(value) > cls.url_truncate_length
-
- # Truncate any very long string that looks like base64
- # (long alphanumeric strings without spaces are likely encoded data)
- if len(value) > cls.long_string_truncate_length:
- # Check if it looks like base64: mostly alphanumeric, +, /, =
- sample = value[:200]
- base64_chars = set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")
- non_base64_count = sum(1 for char in sample if char not in base64_chars)
- # If less than 5% non-base64 chars, it's probably encoded data
- if non_base64_count < len(sample) * 0.05:
- return True
-
+ def should_truncate(cls, value: Any) -> bool:
+ if isinstance(value, str):
+ if value.startswith("http"):
+ return len(value) > cls.url_truncate_length
+ elif value.startswith("data:") or cls._looks_like_base64(value):
+ return len(value) > cls.base64_truncate_length
+ else:
+ return len(value) > cls.text_truncate_length
+ if isinstance(value, bytes):
+ return len(value) > cls.bytes_truncate_length
return False
@classmethod
- def get_truncated_value(cls, name: str, value: str | bytes) -> str | bytes:
+ def get_truncated_value(cls, value: Any) -> Any:
"""Get the truncated value based on the field name and value type."""
if isinstance(value, bytes):
- return cls._truncate_bytes(value, cls.base_64_truncate_length)
- if name == "base_64":
- return cls._truncate_string(value, cls.base_64_truncate_length)
- if name == "url" and value.startswith("data:image/"):
- return cls._truncate_string(value, cls.url_truncate_length)
+ return cls._truncate_bytes(value, cls.bytes_truncate_length)
+ elif isinstance(value, str):
+ if value.startswith("http"):
+ return cls._truncate_string(value, cls.url_truncate_length)
+ elif value.startswith("data:") or cls._looks_like_base64(value):
+ return cls._truncate_string(value, cls.base64_truncate_length)
+ else:
+ return cls._truncate_string(value, cls.text_truncate_length)
return value
@classmethod
- def get_truncated_long_string(cls, value: str) -> str:
- """Truncate a long string that was detected by should_truncate_any_long_string."""
+ def _looks_like_base64(cls, value: str) -> bool:
+ """Check if a string looks like base64 encoded data."""
if value.startswith("data:"):
- return cls._truncate_string(value, cls.url_truncate_length)
- return cls._truncate_string(value, cls.long_string_truncate_length)
+ return True
+ # Check if it looks like base64: mostly alphanumeric, +, /, =
+ sample = value[:200]
+ base64_chars = set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")
+ non_base64_count = sum(1 for char in sample if char not in base64_chars)
+ # If less than 5% non-base64 chars, it's probably encoded data
+ return non_base64_count < len(sample) * 0.05
@classmethod
def apply_truncation_recursive(cls, obj: Any, name: str | None = None) -> Any:
@@ -87,13 +73,9 @@ class AttributePolisher:
The processed object with truncation applied where appropriate
"""
- # First check if this specific object should be truncated by field name
- if name and cls.should_truncate(name=name, value=obj):
- return cls.get_truncated_value(name, obj)
-
- # Check for long strings that look like base64 (regardless of field name)
- if cls.should_truncate_any_long_string(obj):
- return cls.get_truncated_long_string(obj)
+ # First check if this specific object should be truncated
+ if cls.should_truncate(value=obj):
+ return cls.get_truncated_value(value=obj)
# If it's a dictionary, recurse into its values
if isinstance(obj, dict):
diff --git a/pipelex/tools/misc/base64_utils.py b/pipelex/tools/misc/base64_utils.py
new file mode 100644
index 000000000..c0a72fa70
--- /dev/null
+++ b/pipelex/tools/misc/base64_utils.py
@@ -0,0 +1,79 @@
+import base64
+
+import aiofiles
+
+from pipelex.tools.misc.file_fetch_utils import fetch_file_from_url_httpx_async
+from pipelex.tools.misc.file_utils import load_binary, load_binary_async
+from pipelex.tools.misc.filetype_utils import FileType, detect_file_type_from_bytes
+from pipelex.tools.misc.path_utils import clarify_path_or_url
+
+
+def load_binary_as_base64(path: str) -> bytes:
+ with open(path, "rb") as file_pointer:
+ return base64.b64encode(file_pointer.read())
+
+
+async def load_binary_as_base64_async(path: str) -> bytes:
+ async with aiofiles.open(path, "rb") as fp: # pyright: ignore[reportUnknownMemberType]
+ data_bytes = await fp.read()
+ return base64.b64encode(data_bytes)
+
+
+def make_base64_url_from_path(path: str) -> str:
+ raw_bytes = load_binary(path=path)
+ base64_bytes = base64.b64encode(raw_bytes)
+ file_type = detect_file_type_from_bytes(raw_bytes=raw_bytes)
+ return make_base64_url(base64_bytes=base64_bytes, file_type=file_type)
+
+
+async def make_base64_url_from_path_async(path: str) -> str:
+ raw_bytes = await load_binary_async(path=path)
+ base64_bytes = base64.b64encode(raw_bytes)
+ file_type = detect_file_type_from_bytes(raw_bytes=raw_bytes)
+ return make_base64_url(base64_bytes=base64_bytes, file_type=file_type)
+
+
+async def make_base64_url_from_http_url_async(url: str) -> str:
+ raw_bytes = await fetch_file_from_url_httpx_async(url=url)
+ base64_bytes = base64.b64encode(raw_bytes)
+ file_type = detect_file_type_from_bytes(raw_bytes=raw_bytes)
+ return make_base64_url(base64_bytes=base64_bytes, file_type=file_type)
+
+
+async def make_base64_url_from_location_async(location: str) -> str:
+ pdf_path, pdf_url = clarify_path_or_url(path_or_uri=location)
+ if pdf_url:
+ base64_url = await make_base64_url_from_http_url_async(url=pdf_url)
+ else: # pdf_path must be provided based on validation
+ assert pdf_path is not None
+ base64_url = await make_base64_url_from_path_async(path=pdf_path)
+ return base64_url
+
+
+def make_base64_url(
+ base64_bytes: bytes,
+ file_type: FileType,
+) -> str:
+ return f"data:{file_type.mime};base64,{base64_bytes.decode('utf-8')}"
+
+
+def is_prefixed_base64_url(possibly_base64_url: str) -> bool:
+ return possibly_base64_url.startswith("data:") and ";base64," in possibly_base64_url
+
+
+def strip_base64_str_if_needed(base64_str: str) -> str:
+ if "," in base64_str:
+ return base64_str.split(",", 1)[1]
+ if "data:" in base64_str and ";base64," in base64_str:
+ return base64_str.split(";base64,", 1)[1]
+ return base64_str
+
+
+def extract_base64_str_from_base64_url_if_possible(possibly_base64_url: str) -> tuple[str, str] | None:
+ if not possibly_base64_url.startswith("data:"):
+ return None
+ if ";base64," not in possibly_base64_url:
+ return None
+ mime_type = possibly_base64_url[5:].split(";base64,", 1)[0]
+ base64_str = possibly_base64_url.split(";base64,", 1)[1]
+ return base64_str, mime_type
diff --git a/pipelex/tools/misc/base_64_utils.py b/pipelex/tools/misc/base_64_utils.py
deleted file mode 100644
index eac40529c..000000000
--- a/pipelex/tools/misc/base_64_utils.py
+++ /dev/null
@@ -1,113 +0,0 @@
-import asyncio
-import base64
-
-import aiofiles
-
-from pipelex.tools.misc.file_fetch_utils import fetch_file_from_url_httpx_async
-from pipelex.tools.misc.file_utils import load_binary, load_binary_async, save_bytes_to_binary_file
-from pipelex.tools.misc.filetype_utils import FileType, detect_file_type_from_base64, detect_file_type_from_bytes
-from pipelex.tools.misc.path_utils import clarify_path_or_url
-
-
-def load_binary_as_base64(path: str) -> bytes:
- with open(path, "rb") as file_pointer:
- return base64.b64encode(file_pointer.read())
-
-
-async def load_binary_as_base64_async(path: str) -> bytes:
- async with aiofiles.open(path, "rb") as fp: # pyright: ignore[reportUnknownMemberType]
- data_bytes = await fp.read()
- return base64.b64encode(data_bytes)
-
-
-def make_base_64_url_from_path(path: str) -> str:
- raw_bytes = load_binary(path=path)
- base_64 = base64.b64encode(raw_bytes)
- file_type = detect_file_type_from_bytes(buf=raw_bytes)
- return make_base_64_url(base_64=base_64, file_type=file_type)
-
-
-async def make_base_64_url_from_path_async(path: str) -> str:
- raw_bytes = await load_binary_async(path=path)
- base_64 = base64.b64encode(raw_bytes)
- file_type = detect_file_type_from_bytes(buf=raw_bytes)
- return make_base_64_url(base_64=base_64, file_type=file_type)
-
-
-async def make_base_64_url_from_url_async(url: str) -> str:
- raw_bytes = await fetch_file_from_url_httpx_async(url=url)
- base_64 = base64.b64encode(raw_bytes)
- file_type = detect_file_type_from_bytes(buf=raw_bytes)
- return make_base_64_url(base_64=base_64, file_type=file_type)
-
-
-async def make_base_64_url_from_location_async(location: str) -> str:
- pdf_path, pdf_url = clarify_path_or_url(path_or_uri=location)
- if pdf_url:
- base_64_url = await make_base_64_url_from_url_async(url=pdf_url)
- else: # pdf_path must be provided based on validation
- assert pdf_path is not None
- base_64_url = await make_base_64_url_from_path_async(path=pdf_path)
- return base_64_url
-
-
-def make_base_64_url(
- base_64: bytes,
- file_type: FileType,
-) -> str:
- return f"data:{file_type.mime};base64,{base_64.decode('utf-8')}"
-
-
-def encode_to_base64(data_bytes: bytes) -> bytes:
- return base64.b64encode(data_bytes)
-
-
-async def encode_to_base64_async(data_bytes: bytes) -> bytes:
- # Use asyncio.to_thread to run the CPU-bound task in a separate thread
- return await asyncio.to_thread(base64.b64encode, data_bytes)
-
-
-def strip_base_64_str_if_needed(base64_str: str) -> str:
- if "," in base64_str:
- return base64_str.split(",", 1)[1]
- if "data:" in base64_str and ";base64," in base64_str:
- return base64_str.split(";base64,", 1)[1]
- return base64_str
-
-
-def extract_base_64_str_from_base64_url_if_possible(possibly_base64_url: str) -> str | None:
- if not possibly_base64_url.startswith("data:"):
- return None
- if ";base64," not in possibly_base64_url:
- return None
- return possibly_base64_url.split(";base64,", 1)[1]
-
-
-def prefixed_base64_str_from_base64_bytes(b64_bytes: bytes) -> str:
- file_type = detect_file_type_from_base64(b64_bytes)
- return f"data:{file_type.mime};base64,{base64.b64encode(b64_bytes).decode('utf-8')}"
-
-
-def prefixed_base64_str_from_base64_str(b64_str: str) -> str:
- """Create a data URL from an already base64-encoded string.
-
- Args:
- b64_str: Base64-encoded string (without data URL prefix)
-
- Returns:
- Data URL string: data:{mime};base64,{b64_str}
- """
- file_type = detect_file_type_from_base64(b64_str)
- return f"data:{file_type.mime};base64,{b64_str}"
-
-
-def save_base_64_str_to_binary_file(
- base_64_str: str,
- file_path: str,
-):
- stripped_base_64_str = strip_base_64_str_if_needed(base_64_str)
-
- # Decode base64
- byte_data = base64.b64decode(stripped_base_64_str)
-
- save_bytes_to_binary_file(file_path=file_path, byte_data=byte_data)
diff --git a/pipelex/tools/misc/diff.py b/pipelex/tools/misc/diff.py
index 88ddad0e1..8700f51ec 100644
--- a/pipelex/tools/misc/diff.py
+++ b/pipelex/tools/misc/diff.py
@@ -18,13 +18,19 @@ if TYPE_CHECKING:
from pipelex.tools.misc.pretty import PrettyPrintable
-def has_diff_dirs(dir1: str | Path, dir2: str | Path, exclude_files: AbstractSet[str] | None = None) -> bool:
+def has_diff_dirs(
+ dir1: str | Path,
+ dir2: str | Path,
+ exclude_files: AbstractSet[str] | None = None,
+ exclude_dirs: AbstractSet[str] | None = None,
+) -> bool:
"""Check if there are any differences between two directories.
Args:
dir1: First directory path.
dir2: Second directory path.
exclude_files: Set of file names to exclude from comparison (e.g., {"pipelex_service.toml"}).
+ exclude_dirs: Set of directory names to exclude from comparison (e.g., {"storage"}).
Returns:
True if there are any files only in left, only in right, or different files.
@@ -32,25 +38,26 @@ def has_diff_dirs(dir1: str | Path, dir2: str | Path, exclude_files: AbstractSet
dir1 = Path(dir1)
dir2 = Path(dir2)
exclude_files = exclude_files or set()
+ exclude_dirs = exclude_dirs or set()
- def _filter_excluded(file_list: list[str]) -> list[str]:
+ def _filter_excluded_files(file_list: list[str]) -> list[str]:
return [file for file in file_list if file not in exclude_files]
def _has_diff(dir_comparison: filecmp.dircmp[str]) -> bool:
- # Check for files only in left or right (excluding excluded files)
- left_only_filtered = _filter_excluded(dir_comparison.left_only)
- right_only_filtered = _filter_excluded(dir_comparison.right_only)
+ # Filter out excluded directories from left_only and right_only
+ left_only_filtered = _filter_excluded_files([item for item in dir_comparison.left_only if item not in exclude_dirs])
+ right_only_filtered = _filter_excluded_files([item for item in dir_comparison.right_only if item not in exclude_dirs])
if left_only_filtered or right_only_filtered:
return True
# Check for different files using shallow comparison (excluding excluded files)
- diff_files_filtered = _filter_excluded(dir_comparison.diff_files)
+ diff_files_filtered = _filter_excluded_files(dir_comparison.diff_files)
if diff_files_filtered:
return True
# Force deep comparison for common files that passed shallow comparison
# This is needed because shallow comparison only checks metadata (size, mtime)
- common_files_filtered = _filter_excluded(dir_comparison.common_files)
+ common_files_filtered = _filter_excluded_files(dir_comparison.common_files)
if common_files_filtered:
_, mismatch, errors = filecmp.cmpfiles(
dir_comparison.left,
@@ -61,8 +68,9 @@ def has_diff_dirs(dir1: str | Path, dir2: str | Path, exclude_files: AbstractSet
if mismatch or errors:
return True
- # Check subdirectories recursively
- return any(_has_diff(sub) for sub in dir_comparison.subdirs.values())
+ # Check subdirectories recursively (excluding excluded directories)
+ filtered_subdirs = {name: sub for name, sub in dir_comparison.subdirs.items() if name not in exclude_dirs}
+ return any(_has_diff(sub) for sub in filtered_subdirs.values())
return _has_diff(filecmp.dircmp(str(dir1), str(dir2)))
@@ -199,13 +207,19 @@ def _generate_diff_summary(diff_content: str, left_is_newer: bool) -> str | None
return f" Sync would {' and '.join(summary_parts)} in {obsolete_location}"
-def make_diff_dirs_pretty(dir1: str | Path, dir2: str | Path, exclude_files: AbstractSet[str] | None = None) -> PrettyPrintable:
+def make_diff_dirs_pretty(
+ dir1: str | Path,
+ dir2: str | Path,
+ exclude_files: AbstractSet[str] | None = None,
+ exclude_dirs: AbstractSet[str] | None = None,
+) -> PrettyPrintable:
"""Generate a PrettyPrintable representation of directory differences.
Args:
dir1: First directory path.
dir2: Second directory path.
exclude_files: Set of file names to exclude from comparison (e.g., {"pipelex_service.toml"}).
+ exclude_dirs: Set of directory names to exclude from comparison (e.g., {"storage"}).
Returns:
A Rich renderable showing files only in left, only in right,
@@ -215,15 +229,16 @@ def make_diff_dirs_pretty(dir1: str | Path, dir2: str | Path, exclude_files: Abs
dir1 = Path(dir1)
dir2 = Path(dir2)
exclude_files = exclude_files or set()
+ exclude_dirs = exclude_dirs or set()
sections: list[PrettyPrintable] = []
- def _filter_excluded(file_list: list[str]) -> list[str]:
+ def _filter_excluded_files(file_list: list[str]) -> list[str]:
return [file for file in file_list if file not in exclude_files]
def _collect_diffs(dir_comparison: filecmp.dircmp[str], relative_path: str = "") -> None:
- # Files only in left directory (excluding excluded files)
- left_only_filtered = _filter_excluded(dir_comparison.left_only)
+ # Files only in left directory (excluding excluded files and directories)
+ left_only_filtered = _filter_excluded_files([item for item in dir_comparison.left_only if item not in exclude_dirs])
if left_only_filtered:
table = Table(
title=f"[yellow]Only in {dir_comparison.left}[/yellow]",
@@ -238,8 +253,8 @@ def make_diff_dirs_pretty(dir1: str | Path, dir2: str | Path, exclude_files: Abs
table.add_row(str(full_path))
sections.append(table)
- # Files only in right directory (excluding excluded files)
- right_only_filtered = _filter_excluded(dir_comparison.right_only)
+ # Files only in right directory (excluding excluded files and directories)
+ right_only_filtered = _filter_excluded_files([item for item in dir_comparison.right_only if item not in exclude_dirs])
if right_only_filtered:
table = Table(
title=f"[cyan]Only in {dir_comparison.right}[/cyan]",
@@ -257,10 +272,10 @@ def make_diff_dirs_pretty(dir1: str | Path, dir2: str | Path, exclude_files: Abs
# Different files - combine shallow diff_files with deep comparison of common_files
# This is needed because diff_files only contains files that failed shallow comparison
# Apply exclusion filter to diff_files
- different_files = set(_filter_excluded(dir_comparison.diff_files))
+ different_files = set(_filter_excluded_files(dir_comparison.diff_files))
# Force deep comparison for common files (excluding excluded files)
- common_files_filtered = _filter_excluded(dir_comparison.common_files)
+ common_files_filtered = _filter_excluded_files(dir_comparison.common_files)
if common_files_filtered:
_, mismatch, errors = filecmp.cmpfiles(
dir_comparison.left,
@@ -321,8 +336,10 @@ def make_diff_dirs_pretty(dir1: str | Path, dir2: str | Path, exclude_files: Abs
binary_note = Text("(binary or non-text file; cannot show diff)", style="dim red")
sections.append(binary_note)
- # Recurse into subdirectories
+ # Recurse into subdirectories (excluding excluded directories)
for subdir_name, sub in sorted(dir_comparison.subdirs.items()):
+ if subdir_name in exclude_dirs:
+ continue
new_relative_path = str(Path(relative_path, subdir_name)) if relative_path else subdir_name
_collect_diffs(sub, new_relative_path)
diff --git a/pipelex/tools/misc/file_utils.py b/pipelex/tools/misc/file_utils.py
index 3345629f1..ada6b5c38 100644
--- a/pipelex/tools/misc/file_utils.py
+++ b/pipelex/tools/misc/file_utils.py
@@ -5,6 +5,8 @@ from pathlib import Path
import aiofiles
+MAX_FILE_PATH_LENGTH = 4096
+
########################################################
# Save & Load
########################################################
diff --git a/pipelex/tools/misc/filetype_utils.py b/pipelex/tools/misc/filetype_utils.py
index 4a22e3d51..64ec15357 100644
--- a/pipelex/tools/misc/filetype_utils.py
+++ b/pipelex/tools/misc/filetype_utils.py
@@ -40,11 +40,11 @@ def detect_file_type_from_path(path: str | Path) -> FileType:
return FileType(extension=extension, mime=mime)
-def detect_file_type_from_bytes(buf: bytes) -> FileType:
+def detect_file_type_from_bytes(raw_bytes: bytes) -> FileType:
"""Detect the file type of a given bytes object.
Args:
- buf: The bytes object to detect the type of.
+ raw_bytes: The bytes object to detect the type of.
Returns:
A FileType object containing the file extension and MIME type of the file.
@@ -53,20 +53,20 @@ def detect_file_type_from_bytes(buf: bytes) -> FileType:
FileTypeError: If the file type cannot be identified.
"""
- kind = filetype.guess(buf) # pyright: ignore[reportUnknownMemberType]
+ kind = filetype.guess(raw_bytes) # pyright: ignore[reportUnknownMemberType]
if kind is None:
- msg = f"Could not identify file type of given bytes: {buf[:300]!r}"
+ msg = f"Could not identify file type of given bytes: {raw_bytes[:300]!r}"
raise FileTypeError(msg)
extension = f"{kind.extension}"
mime = f"{kind.mime}"
return FileType(extension=extension, mime=mime)
-def detect_file_type_from_base64(b64: str | bytes) -> FileType:
+def detect_file_type_from_base64(base64_data: str | bytes) -> FileType:
"""Detect the file type of a given Base-64-encoded string.
Args:
- b64: The Base-64-encoded bytes or string to detect the type of.
+ base64_data: The base64-encoded bytes or string to detect the type of.
Returns:
A FileType object containing the file extension and MIME type of the file.
@@ -76,20 +76,20 @@ def detect_file_type_from_base64(b64: str | bytes) -> FileType:
"""
# Normalise to bytes holding only the Base-64 alphabet
- if isinstance(b64, bytes):
- log.verbose(f"b64 is already bytes: {b64[:100]!r}")
- b64_bytes = b64
+ if isinstance(base64_data, bytes):
+ log.verbose(f"b64 is already bytes: {base64_data[:100]!r}")
+ base64_bytes = base64_data
else: # str → handle optional data-URL header
- log.verbose(f"b64 is a string: {b64[:100]!r}")
- if b64.lstrip().startswith("data:") and "," in b64:
- b64 = b64.split(",", 1)[1]
- log.verbose(f"b64 after split: {b64[:100]!r}")
- b64_bytes = b64.encode("ascii") # Base-64 is pure ASCII
+ log.verbose(f"b64 is a string: {base64_data[:100]!r}")
+ if base64_data.lstrip().startswith("data:") and "," in base64_data:
+ base64_data = base64_data.split(",", 1)[1]
+ log.verbose(f"b64 after split: {base64_data[:100]!r}")
+ base64_bytes = base64_data.encode("ascii") # Base-64 is pure ASCII
try:
- raw = base64.b64decode(b64_bytes, validate=True)
+ raw = base64.b64decode(base64_bytes, validate=True)
except binascii.Error as exc: # malformed Base-64
- msg = f"Could not identify file type of given bytes because input is not valid Base-64: {exc}\n{b64_bytes[:100]!r}"
+ msg = f"Could not identify file type of given bytes because input is not valid base64: {exc}\n{base64_bytes[:100]!r}"
raise FileTypeError(msg) from exc
- return detect_file_type_from_bytes(buf=raw)
+ return detect_file_type_from_bytes(raw_bytes=raw)
diff --git a/pipelex/tools/misc/http_utils.py b/pipelex/tools/misc/http_utils.py
index 7c994eb61..b2678ff48 100644
--- a/pipelex/tools/misc/http_utils.py
+++ b/pipelex/tools/misc/http_utils.py
@@ -1,6 +1,8 @@
from pipelex.tools.misc.package_utils import get_package_version
from pipelex.urls import URLs
+URL_MAX_LENGTH = 2048
+
def get_user_agent() -> str:
version = get_package_version()
diff --git a/pipelex/tools/misc/image_utils.py b/pipelex/tools/misc/image_utils.py
new file mode 100644
index 000000000..7d6784625
--- /dev/null
+++ b/pipelex/tools/misc/image_utils.py
@@ -0,0 +1,108 @@
+import io
+
+from PIL import Image
+
+from pipelex.types import StrEnum
+
+
+class ImageFormat(StrEnum):
+ PNG = "png"
+ JPEG = "jpeg"
+ WEBP = "webp"
+
+ @property
+ def is_transparent_compatible(self) -> bool:
+ match self:
+ case ImageFormat.PNG:
+ return True
+ case ImageFormat.JPEG | ImageFormat.WEBP:
+ return False
+
+ @property
+ def is_png(self) -> bool:
+ match self:
+ case ImageFormat.PNG:
+ return True
+ case ImageFormat.JPEG | ImageFormat.WEBP:
+ return False
+
+ @property
+ def is_jpeg(self) -> bool:
+ match self:
+ case ImageFormat.JPEG:
+ return True
+ case ImageFormat.PNG | ImageFormat.WEBP:
+ return False
+
+ @property
+ def as_file_extension(self) -> str:
+ match self:
+ case ImageFormat.PNG:
+ return "png"
+ case ImageFormat.JPEG:
+ return "jpg"
+ case ImageFormat.WEBP:
+ return "webp"
+
+ @property
+ def as_mime_type(self) -> str:
+ match self:
+ case ImageFormat.PNG:
+ return "image/png"
+ case ImageFormat.JPEG:
+ return "image/jpeg"
+ case ImageFormat.WEBP:
+ return "image/webp"
+
+ @classmethod
+ def get_supported_mime_types(cls) -> frozenset[str]:
+ """Return the set of supported image MIME types."""
+ return frozenset(fmt.as_mime_type for fmt in cls)
+
+ @classmethod
+ def is_supported_mime_type(cls, mime_type: str) -> bool:
+ """Check if a string is a supported image MIME type."""
+ return mime_type in cls.get_supported_mime_types()
+
+ @classmethod
+ def raise_if_unsupported_mime_type(cls, mime_type: str) -> None:
+ """Validate that a MIME type is supported.
+
+ Args:
+ mime_type: The MIME type to validate.
+
+ Raises:
+ ValueError: If the MIME type is not supported.
+ """
+ if not cls.is_supported_mime_type(mime_type):
+ supported = ", ".join(sorted(cls.get_supported_mime_types()))
+ if mime_type.startswith("image/"):
+ msg = f"Unsupported image MIME type: {mime_type}. Supported types are: {supported}"
+ else:
+ msg = f"Invalid image MIME type: {mime_type}. Expected format 'image/<subtype>'. Supported types are: {supported}"
+ raise ValueError(msg)
+
+
+def pil_image_to_bytes(pil_image: Image.Image, image_format: ImageFormat | None) -> bytes:
+ """Convert a PIL Image to bytes in the specified format.
+
+ Args:
+ pil_image: The PIL Image to convert
+ image_format: The desired output format (PNG, JPEG, or WEBP)
+
+ Returns:
+ The image as bytes in the specified format
+ """
+ buffer = io.BytesIO()
+ pil_format: str
+ image_format = image_format or ImageFormat.PNG
+ match image_format:
+ case ImageFormat.PNG:
+ pil_format = "PNG"
+ case ImageFormat.JPEG:
+ pil_format = "JPEG"
+ case ImageFormat.WEBP:
+ pil_format = "WEBP"
+
+ pil_image.save(buffer, format=pil_format)
+ return buffer.getvalue()
diff --git a/pipelex/tools/misc/markdown_utils.py b/pipelex/tools/misc/markdown_utils.py
index 50877bf1e..403072932 100644
--- a/pipelex/tools/misc/markdown_utils.py
+++ b/pipelex/tools/misc/markdown_utils.py
@@ -5,7 +5,7 @@ from pipelex.tools.misc.json_utils import purify_json_dict
from pipelex.tools.misc.string_utils import snake_to_capitalize_first_letter
-def convert_to_markdown(data: Any, level: int = 1, is_pretty: bool = False, key: str | None = None) -> str:
+def convert_to_markdown(data: Any, level: int = 1, is_pretty: bool = False) -> str:
"""Convert arbitrary JSON-compatible Python data to a Markdown string
without needing to specify the markdown type explicitly.
"""
@@ -19,7 +19,7 @@ def convert_to_markdown(data: Any, level: int = 1, is_pretty: bool = False, key:
converted_line = f"{heading_prefix} {snake_to_capitalize_first_letter(dict_key)}" if is_pretty else f"{heading_prefix} {dict_key}"
# Convert the value recursively, increasing the heading level
# dict_result_lines.append(convert_to_markdown(data=value, level=level + 1))
- converted_value = convert_to_markdown(data=dict_value, level=level + 1, key=dict_key)
+ converted_value = convert_to_markdown(data=dict_value, level=level + 1)
converted_value_nb_lines = len(converted_value.split("\n"))
if converted_value_nb_lines > 1:
dict_result_lines.append(converted_line)
@@ -52,8 +52,8 @@ def convert_to_markdown(data: Any, level: int = 1, is_pretty: bool = False, key:
# Simple scalar types become paragraphs (strings) or inline text
# If it's a string with multiple lines, just output them as-is.
str_value = str(data)
- if key and AttributePolisher.should_truncate(name=key, value=str_value):
- return str(AttributePolisher.get_truncated_value(name=key, value=str_value))
+ if AttributePolisher.should_truncate(value=str_value):
+ return str(AttributePolisher.get_truncated_value(value=str_value))
return str_value
elif data is None:
diff --git a/pipelex/tools/misc/path_utils.py b/pipelex/tools/misc/path_utils.py
index 8492440f4..41eeffa15 100644
--- a/pipelex/tools/misc/path_utils.py
+++ b/pipelex/tools/misc/path_utils.py
@@ -1,64 +1,76 @@
import os
import urllib.parse
+from pipelex.tools.storage.storage_provider_abstract import PIPELEX_STORAGE_SCHEME
from pipelex.types import StrEnum
class InterpretedPathOrUrl(StrEnum):
- FILE_URI = "file_uri"
- FILE_PATH = "file_path"
- URL = "uri"
+ HTTP_URL = "http_url"
+ LOCAL_FILE_PATH_URL = "local_file_path_url"
FILE_NAME = "file_name"
+ FILE_PATH = "file_path"
BASE_64 = "base_64"
+ PIPELEX_STORAGE = "pipelex_storage"
@property
def desc(self) -> str:
match self:
- case InterpretedPathOrUrl.FILE_URI:
- return "File URI"
- case InterpretedPathOrUrl.FILE_PATH:
- return "File Path"
- case InterpretedPathOrUrl.URL:
- return "URL"
+ case InterpretedPathOrUrl.HTTP_URL:
+ return "HTTP URL"
+ case InterpretedPathOrUrl.LOCAL_FILE_PATH_URL:
+ return "Local file path URL"
case InterpretedPathOrUrl.FILE_NAME:
return "File Name"
+ case InterpretedPathOrUrl.FILE_PATH:
+ return "File path"
case InterpretedPathOrUrl.BASE_64:
return "Base 64"
+ case InterpretedPathOrUrl.PIPELEX_STORAGE:
+ return "Pipelex Storage"
def interpret_path_or_url(path_or_uri: str) -> InterpretedPathOrUrl:
- """Determines whether a string represents a file URI, URL, or file path.
+ """Determines whether a string represents a file URI, URL, file path, or Pipelex storage URI.
+
+ This function analyzes the input string to categorize it as one of several types:
- This function analyzes the input string to categorize it as one of three types:
+ - Pipelex storage URI (starts with "pipelex-storage://")
- File URI (starts with "file://")
- URL (starts with "http")
- - File path (anything else)
+ - File path (contains OS path separator)
+ - File name (anything else)
Args:
- path_or_uri (str): The string to interpret, which could be a file URI,
- URL, or file path.
+ path_or_uri: The string to interpret, which could be a Pipelex storage URI,
+ file URI, URL, or file path.
Returns:
InterpretedPathOrUrl: An enum value indicating the type of the input string:
+
+ - PIPELEX_STORAGE for pipelex-storage:// URIs
- FILE_URI for file:// URIs
- - FILE_PATH for everything else
- URL for http(s) URLs
- - FILE_NAME for file names
+ - FILE_PATH for paths with OS separators
+ - FILE_NAME for simple file names
- BASE_64 for base64-encoded images
Example:
+ >>> interpret_path_or_url("pipelex-storage://images/photo.png")
+ InterpretedPathOrUrl.PIPELEX_STORAGE
>>> interpret_path_or_url("file:///home/user/file.txt")
InterpretedPathOrUrl.FILE_URI
>>> interpret_path_or_url("https://example.com")
InterpretedPathOrUrl.URL
>>> interpret_path_or_url("/home/user/file.txt")
InterpretedPathOrUrl.FILE_PATH
-
"""
- if path_or_uri.startswith("file://"):
- return InterpretedPathOrUrl.FILE_URI
+ if path_or_uri.startswith(PIPELEX_STORAGE_SCHEME):
+ return InterpretedPathOrUrl.PIPELEX_STORAGE
+ elif path_or_uri.startswith("file://"):
+ return InterpretedPathOrUrl.LOCAL_FILE_PATH_URL
elif path_or_uri.startswith("http"):
- return InterpretedPathOrUrl.URL
+ return InterpretedPathOrUrl.HTTP_URL
elif os.sep in path_or_uri:
return InterpretedPathOrUrl.FILE_PATH
else:
@@ -72,15 +84,22 @@ def clarify_path_or_url(path_or_uri: str) -> tuple[str | None, str | None]:
the appropriate components. For file URIs, it converts them to regular file paths.
Only one of the returned values will be non-None.
+ Note:
+ For Pipelex storage URIs (pipelex-storage://), use `is_pipelex_storage_uri()`
+ to check and `get_storage_provider().load()` to read the content.
+
Args:
- path_or_uri (str): The string to process, which could be a file URI,
- URL, or file path.
+ path_or_uri: The string to process, which could be a file URI, URL, or file path.
Returns:
- Tuple[Optional[str], Optional[str]]: A tuple containing:
+ A tuple containing:
+
- file_path: The file path if the input is a file path or URI, None otherwise
- url: The URL if the input is a URL, None otherwise
+ Raises:
+ NotImplementedError: If the input is a Base64 string or Pipelex storage URI.
+
Example:
>>> clarify_path_or_url("file:///home/user/file.txt")
('/home/user/file.txt', None)
@@ -88,16 +107,15 @@ def clarify_path_or_url(path_or_uri: str) -> tuple[str | None, str | None]:
(None, 'https://example.com')
>>> clarify_path_or_url("/home/user/file.txt")
('/home/user/file.txt', None)
-
"""
file_path: str | None
url: str | None
match interpret_path_or_url(path_or_uri):
- case InterpretedPathOrUrl.FILE_URI:
+ case InterpretedPathOrUrl.LOCAL_FILE_PATH_URL:
parsed_uri = urllib.parse.urlparse(path_or_uri)
file_path = urllib.parse.unquote(parsed_uri.path)
url = None
- case InterpretedPathOrUrl.URL:
+ case InterpretedPathOrUrl.HTTP_URL:
file_path = None
url = path_or_uri
case InterpretedPathOrUrl.FILE_PATH:
@@ -108,11 +126,26 @@ def clarify_path_or_url(path_or_uri: str) -> tuple[str | None, str | None]:
file_path = path_or_uri
url = None
case InterpretedPathOrUrl.BASE_64:
- msg = "Base 64 is not supported yet by clarify_path_or_url"
+ msg = "Base 64 is not supported by clarify_path_or_url"
+ raise NotImplementedError(msg)
+ case InterpretedPathOrUrl.PIPELEX_STORAGE:
+ msg = "Pipelex storage URIs are not supported by clarify_path_or_url; use is_pipelex_storage_uri() and storage_provider.load()"
raise NotImplementedError(msg)
return file_path, url
+def is_pipelex_storage_uri(path_or_uri: str) -> bool:
+ """Check if a string is a Pipelex storage URI.
+
+ Args:
+ path_or_uri: The string to check.
+
+ Returns:
+ True if the string starts with the Pipelex storage scheme.
+ """
+ return path_or_uri.startswith(PIPELEX_STORAGE_SCHEME)
+
+
def resolve_path_or_url_for_reading(path_or_uri: str) -> str:
"""Resolve a path-or-URI to a single string suitable for file-reading/conversion calls.
diff --git a/pipelex/tools/misc/pretty.py b/pipelex/tools/misc/pretty.py
index 7112e1401..b75b3d255 100644
--- a/pipelex/tools/misc/pretty.py
+++ b/pipelex/tools/misc/pretty.py
@@ -19,7 +19,7 @@ from rich.text import Text, TextType
from pipelex.tools.misc.attribute_utils import AttributePolisher
from pipelex.tools.misc.terminal_utils import BOLD_FONT, RESET_FONT, TerminalColor, print_to_stderr
-from pipelex.tools.typing.pydantic_utils import CustomBaseModel, make_truncated_wrapper
+from pipelex.tools.typing.pydantic_utils import make_truncated_wrapper
from pipelex.types import StrEnum
TEXT_COLOR = TerminalColor.WHITE
@@ -111,6 +111,28 @@ def pretty_print_md(
)
+def pretty_print_url(
+ url: str,
+ title: TextType | None = None,
+ subtitle: TextType | None = None,
+ inner_title: str | None = None,
+ border_style: StyleType | None = None,
+ width: int | None = None,
+ console_width: int | None = None,
+):
+ if url.startswith("/"):
+ url = "file://" + url
+ pretty_print(
+ Text(url, style="link " + url, no_wrap=False),
+ title=title,
+ subtitle=subtitle,
+ inner_title=inner_title,
+ border_style=border_style,
+ width=width,
+ console_width=console_width,
+ )
+
+
class PrettyPrinter:
mode: ClassVar[PrettyPrintMode] = PrettyPrintMode.RICH
@@ -244,7 +266,9 @@ class PrettyPrinter:
# Format the value
if isinstance(value, PrettyPrintable):
pretty = value
- elif isinstance(value, BaseModel) and not isinstance(value, CustomBaseModel):
+ elif isinstance(value, PrettyRenderable):
+ pretty = value.rendered_pretty(depth=depth)
+ elif isinstance(value, BaseModel):
# Wrap regular BaseModel to get truncated __rich_repr__ with proper class name
pretty = Pretty(make_truncated_wrapper(value))
elif isinstance(value, dict):
@@ -276,19 +300,17 @@ class PrettyPrinter:
# Handle URLs specially, otherwise use Text for simple strings
if value.startswith(("http://", "https://")):
pretty = Text(value, style="link " + value, no_wrap=True)
- elif AttributePolisher.should_truncate_any_long_string(value):
+ elif AttributePolisher.should_truncate(value=value):
# Truncate long base64-like strings
- pretty = Text(AttributePolisher.get_truncated_long_string(value))
+ pretty = Text(AttributePolisher.get_truncated_value(value))
else:
# Use Text instead of Markdown to allow proper auto-sizing
pretty = Text(value)
elif isinstance(value, (int, float, bool)):
# For primitive types, convert to string
pretty = Text(str(value))
- elif isinstance(value, PrettyRenderable):
- pretty = value.rendered_pretty(depth=depth)
else:
- # For other types, use Pretty
+ # For other types, use Rich's native Pretty rendering
pretty = Pretty(value)
if inner_title:
diff --git a/pipelex/tools/pdf/pypdfium2_renderer.py b/pipelex/tools/pdf/pypdfium2_renderer.py
index cf57d9353..f120d58e9 100644
--- a/pipelex/tools/pdf/pypdfium2_renderer.py
+++ b/pipelex/tools/pdf/pypdfium2_renderer.py
@@ -2,18 +2,30 @@ from __future__ import annotations
import asyncio
import pathlib
-from typing import TYPE_CHECKING
+from typing import TYPE_CHECKING, cast
import pypdfium2 as pdfium
-from pypdfium2.raw import FPDFBitmap_BGRA
+from pypdfium2 import PdfImage
+from pypdfium2.raw import FPDF_PAGEOBJ_IMAGE, FPDFBitmap_BGRA
+from pipelex.cogt.extract.bounding_box import BoundingBox
+from pipelex.cogt.extract.extract_output import ExtractedImageFromPage
+from pipelex.cogt.image.image_size import ImageSize
from pipelex.system.exceptions import ToolError
from pipelex.tools.misc.file_fetch_utils import fetch_file_from_url_httpx_async
+from pipelex.tools.misc.image_utils import ImageFormat, pil_image_to_bytes
from pipelex.tools.misc.path_utils import clarify_path_or_url
if TYPE_CHECKING:
from PIL import Image
+
PDFIUM2_REFERENCE_DPI = 72
+DEFAULT_IMAGE_EXTRACTION_MAX_DEPTH = 15
+
+# PDF filter name for direct JPEG extraction
+# Note: JPEG2000 (JPXDecode) could also be extracted directly, but ImageFormat
+# doesn't support jp2 output, so JPEG2000 images go through bitmap extraction
+FILTER_JPEG = "DCTDecode"
class PyPdfium2RendererError(ToolError):
@@ -23,6 +35,80 @@ class PyPdfium2RendererError(ToolError):
PdfInput = str | pathlib.Path | bytes
+def _extract_image_from_pdf_object(
+ image_obj: PdfImage,
+ output_format: ImageFormat | None,
+) -> ExtractedImageFromPage:
+ """Extract an image from a PdfImage object, preferring direct extraction when possible.
+
+ For JPEG images embedded in PDFs, this extracts the original compressed bytes directly
+ without decompressing and re-compressing, which is faster and preserves quality.
+
+ For other formats, falls back to bitmap extraction with PIL encoding.
+
+ Args:
+ image_obj: A PdfImage object from pypdfium2
+ output_format: Desired output format (PNG, JPEG, WEBP), or None to preserve
+ the original format when possible (JPEG) or default to PNG
+
+ Returns:
+ ExtractedImageFromPage with the extracted image data and page coordinates
+ """
+ # Get image dimensions directly from the PDF object
+ width, height = image_obj.get_size()
+
+ # Get the position on the page (left, bottom, right, top) in PDF coordinates
+ # PDF uses bottom-left as origin, so we map:
+ # - left → top_left_x
+ # - top → top_left_y
+ # - right → bottom_right_x
+ # - bottom → bottom_right_y
+ left, bottom, right, top = image_obj.get_pos()
+ bounding_box = BoundingBox.make_from_two_corners(
+ top_left_x=left,
+ top_left_y=top,
+ bottom_right_x=right,
+ bottom_right_y=bottom,
+ )
+
+ # Get the filters applied to this image to determine compression type
+ filters = cast("list[str]", image_obj.get_filters())
+
+ # Check if we can extract directly as JPEG:
+ # - Image must be JPEG (DCTDecode filter)
+ # - AND output_format is None (preserve original) or explicitly JPEG
+ is_embedded_jpeg = FILTER_JPEG in filters
+ wants_jpeg = output_format is None or output_format.is_jpeg
+
+ if is_embedded_jpeg and wants_jpeg:
+ # Direct extraction: get the compressed JPEG bytes without decompressing
+ # get_data returns a ctypes array (c_ubyte) that can be converted to bytes
+ actual_bytes = bytes(image_obj.get_data(decode_simple=True)) # pyright: ignore[reportUnknownArgumentType]
+
+ return ExtractedImageFromPage(
+ size=ImageSize(width=width, height=height),
+ actual_bytes=actual_bytes,
+ output_format=ImageFormat.JPEG,
+ bounding_box=bounding_box,
+ )
+
+ # Fallback: use bitmap extraction with PIL encoding
+ # This is needed when:
+ # - The image is not JPEG (raw, PNG, etc.)
+ # - A specific non-JPEG output format is requested (e.g., PNG, WEBP)
+ effective_format = output_format or ImageFormat.PNG
+ bitmap = image_obj.get_bitmap()
+ pil_image: Image.Image = bitmap.to_pil()
+ actual_bytes = pil_image_to_bytes(pil_image=pil_image, image_format=effective_format)
+
+ return ExtractedImageFromPage(
+ size=ImageSize(width=width, height=height),
+ actual_bytes=actual_bytes,
+ output_format=effective_format,
+ bounding_box=bounding_box,
+ )
+
+
class PyPdfium2Renderer:
"""Thread-safe PDF page renderer built on pypdfium2.
@@ -43,7 +129,6 @@ class PyPdfium2Renderer:
pdf_doc = pdfium.PdfDocument(pdf_input)
images: list[Image.Image] = []
for index in range(len(pdf_doc)):
- # page = doc.get_page(index)
page = pdf_doc[index]
pil_img: Image.Image = page.render( # pyright: ignore[reportUnknownMemberType, reportUnknownVariableType]
@@ -59,17 +144,92 @@ class PyPdfium2Renderer:
# TODO: Needs UT
@staticmethod
- def _get_text_from_pdf_pages_sync(pdf_input: PdfInput) -> list[str]:
+ def _extract_text_from_pdf_pages_sync(pdf_input: PdfInput) -> list[str]:
pdf_doc = pdfium.PdfDocument(pdf_input)
texts: list[str] = []
for index in range(len(pdf_doc)):
- page = pdf_doc[index]
- text = page.get_textpage().get_text_bounded() # pyright: ignore[reportUnknownMemberType]
+ pdf_page = pdf_doc[index]
+ text = pdf_page.get_textpage().get_text_bounded() # pyright: ignore[reportUnknownMemberType]
texts.append(text) # pyright: ignore[reportUnknownArgumentType]
- page.close()
+ pdf_page.close()
pdf_doc.close()
return texts
+ @staticmethod
+ def _extract_embedded_images_from_page_sync(
+ pdf_input: PdfInput,
+ page_index: int,
+ max_depth: int = DEFAULT_IMAGE_EXTRACTION_MAX_DEPTH,
+ output_format: ImageFormat | None = None,
+ ) -> list[ExtractedImageFromPage]:
+ """Extract embedded images from a single PDF page.
+
+ Args:
+ pdf_input: PDF file path, bytes, or pathlib.Path
+ page_index: Zero-based page index
+ max_depth: Maximum depth to descend into Form XObjects (default 15)
+ output_format: Output format for images, or None to preserve original
+ format when possible (JPEG) or default to PNG
+
+ Returns:
+ List of ExtractedImageFromPage for each extracted image, with page coordinates
+ """
+ pdf_doc = pdfium.PdfDocument(pdf_input)
+ page = pdf_doc[page_index]
+ images: list[ExtractedImageFromPage] = []
+
+ for obj in page.get_objects( # pyright: ignore[reportUnknownMemberType, reportUnknownVariableType]
+ filter=[FPDF_PAGEOBJ_IMAGE],
+ max_depth=max_depth,
+ ):
+ # obj is a PdfImage when filter is FPDF_PAGEOBJ_IMAGE
+ assert isinstance(obj, PdfImage)
+ raw_details = _extract_image_from_pdf_object(image_obj=obj, output_format=output_format)
+ images.append(raw_details)
+
+ page.close()
+ pdf_doc.close()
+ return images
+
+ @staticmethod
+ def _extract_embedded_images_from_pdf_sync(
+ pdf_input: PdfInput,
+ max_depth: int = DEFAULT_IMAGE_EXTRACTION_MAX_DEPTH,
+ output_format: ImageFormat | None = None,
+ ) -> dict[int, list[ExtractedImageFromPage]]:
+ """Extract embedded images from all pages of a PDF.
+
+ Args:
+ pdf_input: PDF file path, bytes, or pathlib.Path
+ max_depth: Maximum depth to descend into Form XObjects (default 15)
+ output_format: Output format for images, or None to preserve original
+ format when possible (JPEG) or default to PNG
+
+ Returns:
+ Dictionary mapping page index (1-based) to list of ExtractedImageFromPage
+ """
+ pdf_doc = pdfium.PdfDocument(pdf_input)
+ all_images: dict[int, list[ExtractedImageFromPage]] = {}
+
+ for page_index, page in enumerate(pdf_doc):
+ page_images: list[ExtractedImageFromPage] = []
+
+ for obj in page.get_objects( # pyright: ignore[reportUnknownMemberType, reportUnknownVariableType]
+ filter=[FPDF_PAGEOBJ_IMAGE],
+ max_depth=max_depth,
+ ):
+ # obj is a PdfImage when filter is FPDF_PAGEOBJ_IMAGE
+ assert isinstance(obj, PdfImage)
+ raw_details = _extract_image_from_pdf_object(image_obj=obj, output_format=output_format)
+ page_images.append(raw_details)
+
+ # Use 1-based page index for consistency with other page-related APIs
+ all_images[page_index + 1] = page_images
+ page.close()
+
+ pdf_doc.close()
+ return all_images
+
# ---- public async façade -----------------------------------------
async def render_pdf_pages(self, pdf_input: PdfInput, dpi: int) -> list[Image.Image]:
scale = dpi / PDFIUM2_REFERENCE_DPI
@@ -77,10 +237,10 @@ class PyPdfium2Renderer:
async with self._pdfium_lock:
return await asyncio.to_thread(self._render_pdf_pages_sync, pdf_input, scale)
- async def get_text_from_pdf_pages(self, pdf_input: PdfInput) -> list[str]:
+ async def extract_text_from_pdf_pages(self, pdf_input: PdfInput) -> list[str]:
"""Extract text from all pages of a PDF."""
async with self._pdfium_lock:
- return await asyncio.to_thread(self._get_text_from_pdf_pages_sync, pdf_input)
+ return await asyncio.to_thread(self._extract_text_from_pdf_pages_sync, pdf_input)
async def render_pdf_pages_from_uri(self, pdf_uri: str, dpi: int) -> list[Image.Image]:
pdf_path, pdf_url = clarify_path_or_url(path_or_uri=pdf_uri)
@@ -92,16 +252,101 @@ class PyPdfium2Renderer:
msg = f"Invalid PDF URI: {pdf_uri}"
raise PyPdfium2RendererError(msg)
- async def get_text_from_pdf_pages_from_uri(self, pdf_uri: str) -> list[str]:
+ async def extract_text_from_pdf_pages_from_uri(self, pdf_uri: str) -> list[str]:
"""Extract text from all pages of a PDF from URI."""
+ pdf_input: PdfInput
pdf_path, pdf_url = clarify_path_or_url(path_or_uri=pdf_uri)
if pdf_url:
pdf_bytes = await fetch_file_from_url_httpx_async(url=pdf_url)
- return await self.get_text_from_pdf_pages(pdf_input=pdf_bytes)
- if pdf_path:
- return await self.get_text_from_pdf_pages(pdf_input=pdf_path)
- msg = f"Invalid PDF URI: {pdf_uri}"
- raise PyPdfium2RendererError(msg)
+ pdf_input = pdf_bytes
+ else:
+ assert pdf_path is not None
+ pdf_input = pdf_path
+ return await self.extract_text_from_pdf_pages(pdf_input=pdf_input)
+
+ async def extract_embedded_images_from_page(
+ self,
+ pdf_input: PdfInput,
+ page_index: int,
+ max_depth: int = DEFAULT_IMAGE_EXTRACTION_MAX_DEPTH,
+ output_format: ImageFormat | None = None,
+ ) -> list[ExtractedImageFromPage]:
+ """Extract embedded images from a single PDF page.
+
+ Args:
+ pdf_input: PDF file path, bytes, or pathlib.Path
+ page_index: Zero-based page index
+ max_depth: Maximum depth to descend into Form XObjects (default 15)
+ output_format: Output format for images, or None to preserve original
+ format when possible (JPEG) or default to PNG
+
+ Returns:
+ List of ExtractedImageFromPage for each extracted image, with page coordinates
+ """
+ async with self._pdfium_lock:
+ return await asyncio.to_thread(
+ self._extract_embedded_images_from_page_sync,
+ pdf_input,
+ page_index,
+ max_depth,
+ output_format,
+ )
+
+ async def _extract_embedded_images_from_pdf(
+ self,
+ pdf_input: PdfInput,
+ max_depth: int = DEFAULT_IMAGE_EXTRACTION_MAX_DEPTH,
+ output_format: ImageFormat | None = None,
+ ) -> dict[int, list[ExtractedImageFromPage]]:
+ """Extract embedded images from all pages of a PDF.
+
+ Args:
+ pdf_input: PDF file path, bytes, or pathlib.Path
+ max_depth: Maximum depth to descend into Form XObjects (default 15)
+ output_format: Output format for images, or None to preserve original
+ format when possible (JPEG) or default to PNG
+
+ Returns:
+ Dictionary mapping page index (1-based) to list of ExtractedImageFromPage
+ """
+ async with self._pdfium_lock:
+ return await asyncio.to_thread(
+ self._extract_embedded_images_from_pdf_sync,
+ pdf_input,
+ max_depth,
+ output_format,
+ )
+
+ async def extract_embedded_images_from_pdf_uri(
+ self,
+ pdf_uri: str,
+ max_depth: int = DEFAULT_IMAGE_EXTRACTION_MAX_DEPTH,
+ output_format: ImageFormat | None = None,
+ ) -> dict[int, list[ExtractedImageFromPage]]:
+ """Extract embedded images from all pages of a PDF from URI.
+
+ Args:
+ pdf_uri: PDF URI (file path or URL)
+ max_depth: Maximum depth to descend into Form XObjects (default 15)
+ output_format: Output format for images, or None to preserve original
+ format when possible (JPEG) or default to PNG
+
+ Returns:
+ Dictionary mapping page index (1-based) to list of ExtractedImageFromPage
+ """
+ pdf_input: PdfInput
+ pdf_path, pdf_url = clarify_path_or_url(path_or_uri=pdf_uri)
+ if pdf_url:
+ pdf_bytes = await fetch_file_from_url_httpx_async(url=pdf_url)
+ pdf_input = pdf_bytes
+ else:
+ assert pdf_path is not None
+ pdf_input = pdf_path
+ return await self._extract_embedded_images_from_pdf(
+ pdf_input=pdf_input,
+ max_depth=max_depth,
+ output_format=output_format,
+ )
pypdfium2_renderer = PyPdfium2Renderer()
diff --git a/pipelex/tools/storage/exceptions.py b/pipelex/tools/storage/exceptions.py
new file mode 100644
index 000000000..b7e3f2131
--- /dev/null
+++ b/pipelex/tools/storage/exceptions.py
@@ -0,0 +1,17 @@
+from pipelex.system.exceptions import ToolError
+
+
+class StorageError(ToolError):
+ """Base exception for storage-related errors."""
+
+
+class StorageFileNotFoundError(StorageError):
+ """Raised when a requested file does not exist in storage."""
+
+
+class StorageInvalidUriError(StorageError):
+ """Raised when a URI is invalid (e.g., path traversal attempt or absolute path)."""
+
+
+class StorageInvalidKeyError(StorageError):
+ """Raised when a storage key is invalid (e.g., contains scheme prefix)."""
diff --git a/pipelex/tools/storage/in_memory_storage_provider.py b/pipelex/tools/storage/in_memory_storage_provider.py
new file mode 100644
index 000000000..1047b8696
--- /dev/null
+++ b/pipelex/tools/storage/in_memory_storage_provider.py
@@ -0,0 +1,76 @@
+from pydantic import RootModel
+from typing_extensions import override
+
+from pipelex import log
+from pipelex.tools.storage.exceptions import StorageFileNotFoundError, StorageInvalidKeyError
+from pipelex.tools.storage.storage_provider_abstract import PIPELEX_STORAGE_SCHEME, StorageProviderAbstract
+
+InMemoryStorageRoot = dict[str, bytes]
+
+
+class InMemoryStorageProvider(RootModel[InMemoryStorageRoot], StorageProviderAbstract):
+ """In-memory storage provider using a dict mapping URIs to bytes."""
+
+ root: InMemoryStorageRoot = {}
+
+ def _strip_scheme(self, uri: str) -> str:
+ """Extract key from URI, raising error if invalid."""
+ if not uri.startswith(PIPELEX_STORAGE_SCHEME):
+ msg = f"Invalid URI '{uri}': must start with '{PIPELEX_STORAGE_SCHEME}'"
+ raise StorageFileNotFoundError(msg)
+ return uri.removeprefix(PIPELEX_STORAGE_SCHEME)
+
+ def _add_scheme(self, key: str) -> str:
+ """Build URI from key, raising error if key already has scheme."""
+ if key.startswith(PIPELEX_STORAGE_SCHEME):
+ msg = f"Key should not include scheme prefix: '{key}'"
+ raise StorageInvalidKeyError(msg)
+ return f"{PIPELEX_STORAGE_SCHEME}{key}"
+
+ @override
+ def load(self, uri: str) -> bytes:
+ """Load bytes from memory at the given URI.
+
+ Args:
+ uri: Full URI including PIPELEX_STORAGE_SCHEME prefix.
+
+ Returns:
+ The stored bytes.
+
+ Raises:
+ StorageFileNotFoundError: If no data exists for the URI.
+ """
+ key = self._strip_scheme(uri)
+ if key not in self.root:
+ msg = f"File not found: '{key}'"
+ raise StorageFileNotFoundError(msg)
+
+ log.dev(f"Loaded data from URI: '{uri}'")
+ return self.root[key]
+
+ @override
+ def store(self, data: bytes, key: str) -> str:
+ """Store bytes in memory.
+
+ Args:
+ data: The bytes to store.
+ key: Storage key (without scheme prefix).
+
+ Returns:
+ Full URI with pipelex-storage:// scheme.
+ """
+ uri = self._add_scheme(key)
+ self.root[key] = data
+ return uri
+
+ @override
+ def display_link(self, uri: str) -> str | None:
+ """In-memory storage cannot generate a display link.
+
+ Args:
+ uri: Full URI including pipelex-storage:// scheme.
+
+ Returns:
+ None
+ """
+ return None
diff --git a/pipelex/tools/storage/local_storage_provider.py b/pipelex/tools/storage/local_storage_provider.py
new file mode 100644
index 000000000..6fab368ff
--- /dev/null
+++ b/pipelex/tools/storage/local_storage_provider.py
@@ -0,0 +1,126 @@
+from pathlib import Path
+
+from typing_extensions import override
+
+from pipelex.tools.storage.exceptions import StorageFileNotFoundError, StorageInvalidKeyError, StorageInvalidUriError
+from pipelex.tools.storage.storage_provider_abstract import PIPELEX_STORAGE_SCHEME, StorageProviderAbstract
+
+
+class LocalStorageProvider(StorageProviderAbstract):
+ """Storage provider implementation for local filesystem storage.
+
+ Files are stored relative to a root path, with keys being relative path strings.
+ """
+
+ def __init__(self, root_path: Path) -> None:
+ """Initialize the local storage provider.
+
+ Args:
+ root_path: The base directory for all storage operations.
+ """
+ self._root_path = root_path
+
+ def _strip_scheme(self, uri: str) -> str:
+ """Extract key from URI, raising error if invalid."""
+ if not uri.startswith(PIPELEX_STORAGE_SCHEME):
+ msg = f"Invalid URI '{uri}': must start with '{PIPELEX_STORAGE_SCHEME}'"
+ raise StorageFileNotFoundError(msg)
+ return uri.removeprefix(PIPELEX_STORAGE_SCHEME)
+
+ def _add_scheme(self, key: str) -> str:
+ """Build URI from key, raising error if key already has scheme."""
+ if key.startswith(PIPELEX_STORAGE_SCHEME):
+ msg = f"Key should not include scheme prefix: '{key}'"
+ raise StorageInvalidKeyError(msg)
+ return f"{PIPELEX_STORAGE_SCHEME}{key}"
+
+ def _validate_key(self, key: str) -> Path:
+ """Validate the key and return the resolved absolute path.
+
+ Args:
+ key: The relative path key to validate.
+
+ Returns:
+ The resolved absolute path.
+
+ Raises:
+ StorageInvalidUriError: If the key is invalid (absolute path or path traversal).
+ """
+ relative_path = Path(key)
+
+ if relative_path.is_absolute():
+ msg = f"Invalid key '{key}': absolute paths are not allowed"
+ raise StorageInvalidUriError(msg)
+
+ resolved_path = (self._root_path / relative_path).resolve()
+
+ # Check for path traversal attempts
+ try:
+ resolved_path.relative_to(self._root_path.resolve())
+ except ValueError as exc:
+ msg = f"Invalid key '{key}': path traversal is not allowed"
+ raise StorageInvalidUriError(msg) from exc
+
+ return resolved_path
+
+ @override
+ def load(self, uri: str) -> bytes:
+ """Load bytes from a file at the given URI.
+
+ Args:
+ uri: Full URI including PIPELEX_STORAGE_SCHEME prefix.
+
+ Returns:
+ The file contents as bytes.
+
+ Raises:
+ StorageFileNotFoundError: If the file does not exist.
+ StorageInvalidUriError: If the key is invalid.
+ """
+ key = self._strip_scheme(uri)
+ file_path = self._validate_key(key)
+
+ if not file_path.exists():
+ msg = f"File not found: '{key}'"
+ raise StorageFileNotFoundError(msg)
+
+ return file_path.read_bytes()
+
+ @override
+ def store(self, data: bytes, key: str) -> str:
+ """Store bytes to a file.
+
+ Args:
+ data: The bytes to store.
+ key: Storage key (relative path, without scheme prefix).
+
+ Returns:
+ Full URI with pipelex-storage:// scheme.
+
+ Raises:
+ StorageInvalidKeyError: If the key contains scheme prefix.
+ StorageInvalidUriError: If the key is invalid.
+ """
+ uri = self._add_scheme(key)
+ file_path = self._validate_key(key)
+
+ # Create parent directories if they don't exist
+ file_path.parent.mkdir(parents=True, exist_ok=True)
+
+ file_path.write_bytes(data)
+
+ return uri
+
+ @override
+ def display_link(self, uri: str) -> str:
+ """Return a file:// URI for this storage URI.
+
+ Args:
+ uri: Full URI including pipelex-storage:// scheme.
+
+ Returns:
+ file:// URI that can be clicked in terminals like Cursor.
+ """
+ key = self._strip_scheme(uri)
+ file_path = self._validate_key(key)
+ return file_path.as_uri()
diff --git a/pipelex/tools/storage/storage_provider_abstract.py b/pipelex/tools/storage/storage_provider_abstract.py
index 78adb784f..ca2e3c2df 100644
--- a/pipelex/tools/storage/storage_provider_abstract.py
+++ b/pipelex/tools/storage/storage_provider_abstract.py
@@ -1,11 +1,39 @@
from abc import ABC, abstractmethod
+PIPELEX_STORAGE_SCHEME = "pipelex-storage://"
+
class StorageProviderAbstract(ABC):
@abstractmethod
def load(self, uri: str) -> bytes:
- pass
+ """Load data from storage.
+
+ Args:
+ uri: Full URI including PIPELEX_STORAGE_SCHEME prefix.
+
+ Returns:
+ The stored bytes.
+ """
@abstractmethod
- def store(self, data: bytes) -> str:
- pass
+ def store(self, data: bytes, key: str) -> str:
+ """Store data and return full URI with scheme.
+
+ Args:
+ data: The bytes to store.
+ key: Storage key (without scheme prefix).
+
+ Returns:
+ Full URI with PIPELEX_STORAGE_SCHEME prefix.
+ """
+
+ @abstractmethod
+ def display_link(self, uri: str) -> str | None:
+ """Return human-readable link for this URI.
+
+ Args:
+ uri: Full URI including PIPELEX_STORAGE_SCHEME prefix.
+
+ Returns:
+ Human-readable link for debugging/display.
+ """
diff --git a/pipelex/tools/typing/pydantic_utils.py b/pipelex/tools/typing/pydantic_utils.py
index 5d2efacb7..3f5bfa002 100644
--- a/pipelex/tools/typing/pydantic_utils.py
+++ b/pipelex/tools/typing/pydantic_utils.py
@@ -1,13 +1,18 @@
-from collections.abc import Callable, Sequence
-from typing import Any, TypeVar, cast
+from __future__ import annotations
+
+from typing import TYPE_CHECKING, Any, TypeVar, cast
from pydantic import BaseModel, ValidationError
-from rich.repr import Result as RichReprResult
from typing_extensions import override
from pipelex.tools.misc.attribute_utils import AttributePolisher
from pipelex.types import StrEnum
+if TYPE_CHECKING:
+ from collections.abc import Callable, Sequence
+
+ from rich.repr import Result as RichReprResult
+
BaseModelTypeVar = TypeVar("BaseModelTypeVar", bound=BaseModel)
T = TypeVar("T")
@@ -326,8 +331,8 @@ class CustomBaseModel(BaseModel):
def __repr_args__(self) -> Sequence[tuple[str | None, Any]]:
processed_args: list[tuple[str | None, Any]] = []
for name, value in super().__repr_args__():
- if name and AttributePolisher.should_truncate(name=name, value=value):
- truncated_value = AttributePolisher.get_truncated_value(name, value)
+ if AttributePolisher.should_truncate(value=value):
+ truncated_value = AttributePolisher.get_truncated_value(value)
processed_args.append((name, truncated_value))
else:
processed_args.append((name, value))
diff --git a/pipelex/types.py b/pipelex/types.py
index d1127172d..64b4a2327 100644
--- a/pipelex/types.py
+++ b/pipelex/types.py
@@ -8,4 +8,9 @@ try:
except ImportError: # Python 3.10
from backports.strenum import StrEnum # type: ignore[assignment, import-not-found, no-redef]
-__all__ = ["Self", "StrEnum"]
+try:
+ from importlib.resources.abc import Traversable # Python 3.11+
+except ModuleNotFoundError: # Python 3.10
+ from importlib.abc import Traversable # type: ignore[assignment, no-redef]
+
+__all__ = ["Self", "StrEnum", "Traversable"]
diff --git a/pyproject.toml b/pyproject.toml
index 77cfadd17..add5de857 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,13 +6,14 @@ authors = [{ name = "Evotis S.A.S.", email = "[email protected]" }]
maintainers = [{ name = "Pipelex staff", email = "[email protected]" }]
license = "MIT"
readme = "README.md"
-requires-python = ">=3.10,<3.14"
+requires-python = ">=3.10,<3.15"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
+ "Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
]
@@ -62,6 +63,7 @@ docling = ["docling>=2.64.0"]
fal = ["fal-client>=0.4.1"]
google = ["google-auth-oauthlib>=1.2.1"]
google-genai = ["google-genai", "instructor[google-genai]"]
+huggingface = ["huggingface_hub>=0.23,<1.0.0"]
mistralai = ["mistralai==1.5.2"]
docs = [
"mkdocs==1.6.1",
diff --git a/tests/cases/documents.py b/tests/cases/documents.py
index 1f1aca755..deedb0d42 100644
--- a/tests/cases/documents.py
+++ b/tests/cases/documents.py
@@ -14,6 +14,7 @@ class PDFTestCases:
PDF_FILE_PATH_2 = f"{TEST_DOCUMENT_DIRECTORY}/Job-Offer.pdf"
PDF_FILE_PATH_3 = f"{TEST_DOCUMENT_DIRECTORY}/solar_system.pdf"
PDF_FILE_PATH_4 = f"{TEST_DOCUMENT_DIRECTORY}/illustrated_train_article.pdf"
+ PDF_FILE_PATH_CV = f"{TEST_DOCUMENT_DIRECTORY}/John-Doe-CV.pdf"
DOCUMENT_FILE_PATHS: ClassVar[list[str]] = [
PDF_FILE_PATH_1,
PDF_FILE_PATH_2,
diff --git a/tests/conftest.py b/tests/conftest.py
index 9dd849070..db16cccab 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -2,11 +2,13 @@ from collections.abc import Callable, Generator
from pathlib import Path
import pytest
+import shortuuid
from pytest_mock import MockerFixture
from pipelex import log
from pipelex.hub import get_library_manager, set_current_library
from pipelex.pipelex import Pipelex
+from pipelex.pipeline.job_metadata import JobMetadata
from pipelex.system.pipelex_service.remote_config import RemoteConfig
from pipelex.system.pipelex_service.remote_config_fetcher import RemoteConfigFetcher
from pipelex.system.runtime import IntegrationMode, runtime_manager
@@ -108,3 +110,18 @@ def load_empty_library() -> Generator[Callable[[], str], None, None]:
library_manager = get_library_manager()
library_manager.teardown(library_id=library_id)
log.verbose(f"Torn down library: {library_id}")
+
+
+def job_metadata(request: pytest.FixtureRequest) -> JobMetadata:
+ """Provide a JobMetadata instance with test-specific values.
+
+ Uses the test node ID as pipeline_run_id for better traceability in logs.
+ """
+ test_id: str = request.node.nodeid # pyright: ignore[reportUnknownMemberType, reportUnknownVariableType]
+ random_code: str = shortuuid.uuid()[:5]
+ pipeline_run_id: str = f"{test_id}-{random_code}"
+ return JobMetadata(
+ user_id="pytest",
+ pipeline_run_id=pipeline_run_id,
+ )
diff --git a/tests/data/documents/John-Doe-CV.pdf b/tests/data/documents/John-Doe-CV.pdf
new file mode 100644
index 000000000..370464453
Binary files /dev/null and b/tests/data/documents/John-Doe-CV.pdf differ
diff --git a/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_1.py b/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_1.py
index a61ca1b57..da33e2537 100644
--- a/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_1.py
+++ b/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_1.py
@@ -26,6 +26,7 @@ class TestPipeConditionExpressionTemplate:
)
async def test_pipe_condition_routing_expression_template(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
category: str,
load_test_library: Callable[[list[Path]], None],
@@ -54,7 +55,7 @@ class TestPipeConditionExpressionTemplate:
pipe=get_required_pipe(pipe_code="basic_condition_by_category_2"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
diff --git a/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_2.py b/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_2.py
index f9043a64e..b3eed11bc 100644
--- a/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_2.py
+++ b/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_2.py
@@ -26,6 +26,7 @@ class TestPipeConditionExpression:
)
async def test_pipe_condition_routing_expression(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
category: str,
load_test_library: Callable[[list[Path]], None],
@@ -54,7 +55,7 @@ class TestPipeConditionExpression:
pipe=get_required_pipe(pipe_code="basic_condition_by_category"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
diff --git a/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_simple.py b/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_simple.py
index a62a56503..795b83664 100644
--- a/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_simple.py
+++ b/tests/e2e/pipelex/pipes/pipe_controller/pipe_condition/test_pipe_condition_simple.py
@@ -24,7 +24,7 @@ from tests.integration.pipelex.pipes.controller.pipe_condition.pipe_condition im
@pytest.mark.inference
@pytest.mark.asyncio(loop_scope="class")
class TestPipeConditionSimple:
- async def test_direct_pipe_condition_should_fail(self, load_test_library: Callable[[list[Path]], None]):
+ async def test_direct_pipe_condition_should_fail(self, job_metadata: JobMetadata, load_test_library: Callable[[list[Path]], None]):
"""Test a PipeCondition created directly in code that should FAIL dry run."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_condition")])
# Create a PipeCondition directly in Python that requires an input
@@ -48,7 +48,7 @@ class TestPipeConditionSimple:
with pytest.raises(PipeRunInputsError) as exc_info:
await pipe_condition.run_pipe(
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
working_memory=empty_working_memory,
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=PipeRunMode.DRY),
)
@@ -60,7 +60,7 @@ class TestPipeConditionSimple:
assert "user_category" in error.missing_inputs
assert "missing required inputs" in str(error)
- async def test_direct_pipe_condition_should_succeed(self, load_test_library: Callable[[list[Path]], None]):
+ async def test_direct_pipe_condition_should_succeed(self, job_metadata: JobMetadata, load_test_library: Callable[[list[Path]], None]):
"""Test a PipeCondition created directly in code that should SUCCEED dry run."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_condition")])
# Create a PipeCondition directly in Python
@@ -97,7 +97,7 @@ class TestPipeConditionSimple:
try:
pipe_output = await pipe_condition.run_pipe(
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
working_memory=working_memory,
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=PipeRunMode.DRY),
)
diff --git a/tests/e2e/pipelex/pipes/pipe_controller/pipe_parallel/test_pipe_parallel_1.py b/tests/e2e/pipelex/pipes/pipe_controller/pipe_parallel/test_pipe_parallel_1.py
index 9f13140df..6ee5d6624 100644
--- a/tests/e2e/pipelex/pipes/pipe_controller/pipe_parallel/test_pipe_parallel_1.py
+++ b/tests/e2e/pipelex/pipes/pipe_controller/pipe_parallel/test_pipe_parallel_1.py
@@ -30,6 +30,7 @@ class TestPipeParallelDocumentAnalysis:
)
async def test_pipe_parallel_document_analysis(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
document_text: str,
load_test_library: Callable[[list[Path]], None],
@@ -58,7 +59,7 @@ class TestPipeParallelDocumentAnalysis:
pipe=get_required_pipe(pipe_code="parallel_document_analysis"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
diff --git a/tests/e2e/pipelex/pipes/pipe_controller/pipe_sequence/test_pipe_sequence_batching.py b/tests/e2e/pipelex/pipes/pipe_controller/pipe_sequence/test_pipe_sequence_batching.py
index 4d5c32c02..69251c8f5 100644
--- a/tests/e2e/pipelex/pipes/pipe_controller/pipe_sequence/test_pipe_sequence_batching.py
+++ b/tests/e2e/pipelex/pipes/pipe_controller/pipe_sequence/test_pipe_sequence_batching.py
@@ -21,7 +21,9 @@ from tests.integration.pipelex.pipes.controller.pipe_sequence.pipe_sequence impo
@pytest.mark.dry_runnable
@pytest.mark.inference
@pytest.mark.asyncio
-async def test_review_analysis_sequence_with_batching(pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]):
+async def test_review_analysis_sequence_with_batching(
+ job_metadata: JobMetadata, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]
+):
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_sequence")])
"""Test customer review analysis sequence with batching."""
# Create test input - a document with reviews
@@ -42,7 +44,7 @@ async def test_review_analysis_sequence_with_batching(pipe_run_mode: PipeRunMode
)
pipe = get_required_pipe(pipe_code="analyze_reviews_sequence")
pipe_output = await pipe.run_pipe(
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=PipeRunMode.DRY),
working_memory=working_memory,
)
diff --git a/tests/e2e/pipelex/pipes/pipe_controller/pipe_sequence/test_pipe_sequence_simple.py b/tests/e2e/pipelex/pipes/pipe_controller/pipe_sequence/test_pipe_sequence_simple.py
index ebe4cb5a5..4d3067a21 100644
--- a/tests/e2e/pipelex/pipes/pipe_controller/pipe_sequence/test_pipe_sequence_simple.py
+++ b/tests/e2e/pipelex/pipes/pipe_controller/pipe_sequence/test_pipe_sequence_simple.py
@@ -20,7 +20,7 @@ from pipelex.pipeline.job_metadata import JobMetadata
@pytest.mark.inference
@pytest.mark.asyncio
class TestPipeSequenceSimple:
- async def test_simple_text_sequence(self, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]):
+ async def test_simple_text_sequence(self, job_metadata: JobMetadata, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]):
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_sequence/")])
"""Test simple text processing sequence without batching."""
# Create test input
@@ -40,7 +40,7 @@ class TestPipeSequenceSimple:
pipe = get_required_pipe(pipe_code="simple_text_sequence")
pipe_output = await pipe.run_pipe(
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
working_memory=working_memory,
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
)
diff --git a/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/__init__.py b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_match.plx b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_match.plx
new file mode 100644
index 000000000..aa6fa9912
--- /dev/null
+++ b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_match.plx
@@ -0,0 +1,162 @@
+domain = "cv_job_matching"
+description = "Analyzing CV and job offer compatibility and generating interview questions"
+main_pipe = "cv_job_matcher"
+
+[concept]
+CVAnalysis = "Structured analysis of a candidate's curriculum vitae highlighting their professional profile."
+JobRequirements = "Structured analysis of a job offer detailing what the employer is seeking."
+MatchAnalysis = "Evaluation of how well a candidate aligns with job requirements."
+InterviewQuestion = "A targeted question designed for a job interview with its underlying purpose."
+InterviewSheet = "A comprehensive interview preparation document combining match analysis with targeted interview questions."
+
+[pipe.cv_job_matcher]
+type = "PipeSequence"
+description = """
+Main pipeline that processes CV and job offer PDFs, analyzes their match, and generates targeted interview questions. This is the entry point for the CV-job matching workflow.
+"""
+inputs = { cv_pdf = "PDF", job_offer_pdf = "PDF" }
+output = "InterviewSheet"
+steps = [
+ { pipe = "extract_documents", result = "extracted_documents" },
+ { pipe = "analyze_documents", result = "analyzed_documents" },
+ { pipe = "evaluate_match", result = "match_analysis" },
+ { pipe = "generate_interview_questions", result = "interview_questions" },
+ { pipe = "compose_interview_sheet", result = "interview_sheet" },
+]
+
+[pipe.extract_documents]
+type = "PipeParallel"
+description = "Extracts text content from both the CV and job offer PDFs concurrently"
+inputs = { cv_pdf = "PDF", job_offer_pdf = "PDF" }
+output = "Page[]"
+parallels = [
+ { pipe = "extract_cv", result = "cv_pages" },
+ { pipe = "extract_job_offer", result = "job_offer_pages" },
+]
+add_each_output = true
+
+[pipe.extract_cv]
+type = "PipeExtract"
+description = "Extracts text content from the CV PDF document"
+inputs = { cv_pdf = "PDF" }
+output = "Page[]"
+model = "pdf_text_extractor"
+
+[pipe.extract_job_offer]
+type = "PipeExtract"
+description = "Extracts text content from the job offer PDF document"
+inputs = { job_offer_pdf = "PDF" }
+output = "Page[]"
+model = "pdf_text_extractor"
+
+[pipe.analyze_documents]
+type = "PipeParallel"
+description = "Analyzes both the CV and job offer documents concurrently to extract structured information"
+inputs = { cv_pages = "Page", job_offer_pages = "Page" }
+output = "Text"
+parallels = [
+ { pipe = "analyze_cv", result = "cv_analysis" },
+ { pipe = "analyze_job_offer", result = "job_requirements" },
+]
+add_each_output = true
+
+[pipe.analyze_cv]
+type = "PipeLLM"
+description = """
+Analyzes the CV to extract key information including skills, experience, education, previous roles, and notable achievements
+"""
+inputs = { cv_pages = "Page" }
+output = "CVAnalysis"
+model = "llm_to_answer_questions_cheap"
+system_prompt = """
+You are an expert HR analyst specializing in CV evaluation. Your task is to analyze curriculum vitae documents and extract structured information about candidates' professional profiles.
+"""
+prompt = """
+Analyze the following CV and extract the candidate's key professional information.
+
+@cv_pages
+"""
+
+[pipe.analyze_job_offer]
+type = "PipeLLM"
+description = """
+Analyzes the job offer to extract requirements including required skills, preferred skills, responsibilities, qualifications, and experience level
+"""
+inputs = { job_offer_pages = "Page" }
+output = "JobRequirements"
+model = "llm_to_answer_questions_cheap"
+system_prompt = """
+You are an expert HR analyst specializing in job offer analysis. Your task is to extract and structure key requirements from job postings into a structured format.
+"""
+prompt = """
+Analyze the following job offer and extract the key requirements for the position.
+
+@job_offer_pages
+"""
+
+[pipe.evaluate_match]
+type = "PipeLLM"
+description = """
+Evaluates how well the candidate matches the job requirements, identifying matching skills, gaps, experience alignment, and areas to explore during interview
+"""
+inputs = { cv_analysis = "CVAnalysis", job_requirements = "JobRequirements" }
+output = "MatchAnalysis"
+model = "llm_to_answer_questions_cheap"
+system_prompt = """
+You are an expert HR analyst and recruiter. Your task is to evaluate how well a candidate matches a job position by analyzing their CV against the job requirements. Provide a structured assessment that will help hiring managers make informed decisions.
+"""
+prompt = """
+Evaluate how well the candidate matches the job requirements based on the following information:
+
+**Candidate CV Analysis:**
+@cv_analysis
+
+**Job Requirements:**
+@job_requirements
+
+Analyze the alignment between the candidate's profile and the job requirements. Identify matching skills, missing skills, assess experience alignment, note any areas of concern, and highlight areas that should be explored further during the interview process. Provide an overall match score as a percentage.
+"""
+
+[pipe.generate_interview_questions]
+type = "PipeLLM"
+description = """
+Creates 5 targeted interview questions based on the match analysis, focusing on verifying claimed skills, exploring gaps, and assessing cultural fit
+"""
+inputs = { cv_analysis = "CVAnalysis", job_requirements = "JobRequirements", match_analysis = "MatchAnalysis" }
+output = "InterviewQuestion[5]"
+model = "llm_to_answer_questions_cheap"
+system_prompt = """
+You are an expert HR interviewer and talent acquisition specialist. Your task is to generate structured interview questions that will help assess a candidate's fit for a specific role. Each question should be purposeful and designed to verify skills, explore potential gaps, or assess cultural fit.
+"""
+prompt = """
+Based on the following candidate analysis, job requirements, and match analysis, generate 5 targeted interview questions.
+
+@cv_analysis
+
+@job_requirements
+
+@match_analysis
+
+Create questions that:
+1. Verify the candidate's claimed skills and experience
+2. Explore any identified gaps or areas of concern
+3. Assess cultural and role fit
+4. Investigate areas that warrant further exploration
+"""
+
+[pipe.compose_interview_sheet]
+type = "PipeCompose"
+description = """
+Composes the final interview sheet by combining the match analysis results with the generated interview questions into a single structured document.
+"""
+inputs = { match_analysis = "MatchAnalysis", interview_questions = "InterviewQuestion[]" }
+output = "InterviewSheet"
+
+[pipe.compose_interview_sheet.construct]
+overall_match_score = { from = "match_analysis.overall_match_score" }
+matching_skills = { from = "match_analysis.matching_skills" }
+missing_skills = { from = "match_analysis.missing_skills" }
+experience_alignment = { from = "match_analysis.experience_alignment" }
+areas_of_concern = { from = "match_analysis.areas_of_concern" }
+areas_to_explore = { from = "match_analysis.areas_to_explore" }
+questions = { from = "interview_questions" }
diff --git a/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_analysis.py b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_analysis.py
new file mode 100644
index 000000000..4b7dae325
--- /dev/null
+++ b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_analysis.py
@@ -0,0 +1,24 @@
+"""AUTOGENERATED CODE - DO NOT EDIT
+
+If you want to customize this structure:
+ 1. Copy this file to your own module
+ 2. Remove the 'structure' or 'refines' declaration from the concept in the PLX file
+ and declare it in inline mode (see https://docs.pipelex.com/home/6-build-reliable-ai-workflows/concepts/define_your_concepts/#basic-concept-definition)
+ 3. Make sure your custom class is importable and registered
+
+To regenerate: pipelex build structures <target_directory>
+"""
+
+from pydantic import Field
+
+from pipelex.core.stuffs.structured_content import StructuredContent
+
+
+class CVAnalysis(StructuredContent):
+ """Generated CVAnalysis class"""
+
+ skills: str = Field(..., description="List of technical and soft skills possessed by the candidate")
+ years_of_experience: float = Field(..., description="Total years of professional experience")
+ education: str = Field(..., description="Educational background including degrees and institutions")
+ previous_roles: str = Field(..., description="List of previous job titles and companies")
+ key_achievements: str | None = Field(default=None, description="Notable accomplishments and contributions from past positions")
diff --git a/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_itvw_question.py b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_itvw_question.py
new file mode 100644
index 000000000..6e81215b0
--- /dev/null
+++ b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_itvw_question.py
@@ -0,0 +1,21 @@
+"""AUTOGENERATED CODE - DO NOT EDIT
+
+If you want to customize this structure:
+ 1. Copy this file to your own module
+ 2. Remove the 'structure' or 'refines' declaration from the concept in the PLX file
+ and declare it in inline mode (see https://docs.pipelex.com/home/6-build-reliable-ai-workflows/concepts/define_your_concepts/#basic-concept-definition)
+ 3. Make sure your custom class is importable and registered
+
+To regenerate: pipelex build structures <target_directory>
+"""
+
+from pydantic import Field
+
+from pipelex.core.stuffs.structured_content import StructuredContent
+
+
+class InterviewQuestion(StructuredContent):
+ """Generated InterviewQuestion class"""
+
+ question_text: str = Field(..., description="The interview question to ask the candidate")
+ purpose: str = Field(..., description="The reason for asking this question and what it aims to assess")
diff --git a/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_itvw_sheet.py b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_itvw_sheet.py
new file mode 100644
index 000000000..cf0de5173
--- /dev/null
+++ b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_itvw_sheet.py
@@ -0,0 +1,27 @@
+"""AUTOGENERATED CODE - DO NOT EDIT
+
+If you want to customize this structure:
+ 1. Copy this file to your own module
+ 2. Remove the 'structure' or 'refines' declaration from the concept in the PLX file
+ and declare it in inline mode (see https://docs.pipelex.com/home/6-build-reliable-ai-workflows/concepts/define_your_concepts/#basic-concept-definition)
+ 3. Make sure your custom class is importable and registered
+
+To regenerate: pipelex build structures <target_directory>
+"""
+
+from pydantic import Field
+
+from pipelex.core.stuffs.structured_content import StructuredContent
+from tests.e2e.pipelex.pipes.pipe_operators.pipe_compose.cv_job_matching_itvw_question import InterviewQuestion
+
+
+class InterviewSheet(StructuredContent):
+ """Generated InterviewSheet class"""
+
+ overall_match_score: float = Field(..., description="Percentage or rating indicating overall fit between candidate and position")
+ matching_skills: str = Field(..., description="Skills the candidate has that match the job requirements")
+ missing_skills: str = Field(..., description="Required skills the candidate appears to lack")
+ experience_alignment: str = Field(..., description="Assessment of how the candidate's experience level matches expectations")
+ areas_of_concern: str = Field(..., description="Potential red flags or weaknesses identified")
+ areas_to_explore: str = Field(..., description="Topics that warrant further investigation during interview")
+ questions: list[InterviewQuestion] = Field(..., description="List of interview questions with their purposes")
diff --git a/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_job_requirements.py b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_job_requirements.py
new file mode 100644
index 000000000..7fb93ab2d
--- /dev/null
+++ b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_job_requirements.py
@@ -0,0 +1,24 @@
+"""AUTOGENERATED CODE - DO NOT EDIT
+
+If you want to customize this structure:
+ 1. Copy this file to your own module
+ 2. Remove the 'structure' or 'refines' declaration from the concept in the PLX file
+ and declare it in inline mode (see https://docs.pipelex.com/home/6-build-reliable-ai-workflows/concepts/define_your_concepts/#basic-concept-definition)
+ 3. Make sure your custom class is importable and registered
+
+To regenerate: pipelex build structures <target_directory>
+"""
+
+from pydantic import Field
+
+from pipelex.core.stuffs.structured_content import StructuredContent
+
+
+class JobRequirements(StructuredContent):
+ """Generated JobRequirements class"""
+
+ required_skills: str = Field(..., description="Skills that are mandatory for the position")
+ preferred_skills: str | None = Field(default=None, description="Skills that are desirable but not mandatory")
+ responsibilities: str = Field(..., description="Main duties and tasks of the role")
+ qualifications: str | None = Field(default=None, description="Required educational or professional qualifications")
+ experience_level: str = Field(..., description="Expected level of experience for the role")
diff --git a/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_match_analysis.py b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_match_analysis.py
new file mode 100644
index 000000000..d5aec53fb
--- /dev/null
+++ b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/cv_job_matching_match_analysis.py
@@ -0,0 +1,25 @@
+"""AUTOGENERATED CODE - DO NOT EDIT
+
+If you want to customize this structure:
+ 1. Copy this file to your own module
+ 2. Remove the 'structure' or 'refines' declaration from the concept in the PLX file
+ and declare it in inline mode (see https://docs.pipelex.com/home/6-build-reliable-ai-workflows/concepts/define_your_concepts/#basic-concept-definition)
+ 3. Make sure your custom class is importable and registered
+
+To regenerate: pipelex build structures <target_directory>
+"""
+
+from pydantic import Field
+
+from pipelex.core.stuffs.structured_content import StructuredContent
+
+
+class MatchAnalysis(StructuredContent):
+ """Generated MatchAnalysis class"""
+
+ overall_match_score: float = Field(..., description="Percentage or rating indicating overall fit between candidate and position")
+ matching_skills: str = Field(..., description="Skills the candidate has that match the job requirements")
+ missing_skills: str | None = Field(default=None, description="Required skills the candidate appears to lack")
+ experience_alignment: str = Field(..., description="Assessment of how the candidate's experience level matches expectations")
+ areas_of_concern: str | None = Field(default=None, description="Potential red flags or weaknesses identified")
+ areas_to_explore: str = Field(..., description="Topics that warrant further investigation during interview")
diff --git a/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/test_pipe_compose_after_inference.py b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/test_pipe_compose_after_inference.py
new file mode 100644
index 000000000..4c48f9267
--- /dev/null
+++ b/tests/e2e/pipelex/pipes/pipe_operators/pipe_compose/test_pipe_compose_after_inference.py
@@ -0,0 +1,64 @@
+"""E2E test for PipeCompose with CV Job Matching pipeline."""
+
+import pytest
+
+from pipelex import pretty_print
+from pipelex.core.stuffs.pdf_content import PDFContent
+from pipelex.pipe_run.pipe_run_mode import PipeRunMode
+from pipelex.pipeline.execute import execute_pipeline
+from tests.cases import PDFTestCases
+from tests.e2e.pipelex.pipes.pipe_operators.pipe_compose.cv_job_matching_itvw_sheet import InterviewSheet
+
+
+class TestPipeComposeAfterInference:
+ """E2E tests for the PipeCompose after inference pipeline."""
+
+ async def test_pipe_compose_after_inference(self, pipe_run_mode: PipeRunMode):
+ """Test a pipe which uses inference to analyze stuff and then uses PipeCompose to compose a structured content."""
+ pipe_output = await execute_pipeline(
+ pipe_code="cv_job_matcher",
+ library_dirs=["tests/e2e/pipelex/pipes/pipe_operators/pipe_compose"],
+ inputs={
+ "cv_pdf": PDFContent(url=PDFTestCases.PDF_FILE_PATH_CV),
+ "job_offer_pdf": PDFContent(url=PDFTestCases.PDF_FILE_PATH_2),
+ },
+ pipe_run_mode=pipe_run_mode,
+ )
+
+ # Basic assertions
+ assert pipe_output is not None
+ assert pipe_output.working_memory is not None
+ assert pipe_output.main_stuff is not None
+
+ # Get the result as InterviewSheet
+ interview_sheet = pipe_output.main_stuff_as(content_type=InterviewSheet)
+
+ # Log output for debugging
+ pretty_print(interview_sheet, title="Interview Sheet")
+
+ # Verify the composed output structure
+ assert interview_sheet is not None
+ assert isinstance(interview_sheet, InterviewSheet)
+
+ # Verify fields composed from match_analysis
+ assert interview_sheet.overall_match_score is not None
+ assert interview_sheet.matching_skills is not None
+ assert interview_sheet.experience_alignment is not None
+ assert interview_sheet.areas_to_explore is not None
+
+ # Verify questions list composed from interview_questions
+ assert interview_sheet.questions is not None
+ assert isinstance(interview_sheet.questions, list)
+ assert len(interview_sheet.questions) == 5
+
+ # Verify each question has required fields
+ for question in interview_sheet.questions:
+ assert question.question_text is not None
+ assert len(question.question_text) > 0
+ assert question.purpose is not None
+ assert len(question.purpose) > 0
diff --git a/tests/e2e/pipelex/pipes/pipe_operators/pipe_llm_vision.plx b/tests/e2e/pipelex/pipes/pipe_operators/pipe_llm/pipe_llm_vision.plx
similarity index 100%
rename from tests/e2e/pipelex/pipes/pipe_operators/pipe_llm_vision.plx
rename to tests/e2e/pipelex/pipes/pipe_operators/pipe_llm/pipe_llm_vision.plx
diff --git a/tests/e2e/pipelex/pipes/pipe_operators/pipe_llm_vision.py b/tests/e2e/pipelex/pipes/pipe_operators/pipe_llm/pipe_llm_vision.py
similarity index 100%
rename from tests/e2e/pipelex/pipes/pipe_operators/pipe_llm_vision.py
rename to tests/e2e/pipelex/pipes/pipe_operators/pipe_llm/pipe_llm_vision.py
diff --git a/tests/e2e/pipelex/pipes/pipe_operators/test_pipe_llm_vision.py b/tests/e2e/pipelex/pipes/pipe_operators/pipe_llm/test_pipe_llm_vision.py
similarity index 97%
rename from tests/e2e/pipelex/pipes/pipe_operators/test_pipe_llm_vision.py
rename to tests/e2e/pipelex/pipes/pipe_operators/pipe_llm/test_pipe_llm_vision.py
index 0c3cbdd28..c77a8a8d8 100644
--- a/tests/e2e/pipelex/pipes/pipe_operators/test_pipe_llm_vision.py
+++ b/tests/e2e/pipelex/pipes/pipe_operators/pipe_llm/test_pipe_llm_vision.py
@@ -6,7 +6,7 @@ from pipelex import pretty_print, pretty_print_md
from pipelex.core.stuffs.image_content import ImageContent
from pipelex.pipe_run.pipe_run_mode import PipeRunMode
from pipelex.pipeline.execute import execute_pipeline
-from tests.e2e.pipelex.pipes.pipe_operators.pipe_llm_vision import VisionAnalysisE2E
+from tests.e2e.pipelex.pipes.pipe_operators.pipe_llm.pipe_llm_vision import VisionAnalysisE2E
from tests.integration.pipelex.cogt.test_data import LLMVisionTestCases
from tests.integration.pipelex.test_data import PipeTestCases
diff --git a/tests/helpers/image_helpers.py b/tests/helpers/image_helpers.py
deleted file mode 100644
index 7b5c8e0db..000000000
--- a/tests/helpers/image_helpers.py
+++ /dev/null
@@ -1,72 +0,0 @@
-"""Image helpers for tests."""
-
-import base64
-import tempfile
-from io import BytesIO
-from pathlib import Path
-
-import shortuuid
-from PIL import Image
-
-from pipelex import log
-from pipelex.cogt.image.generated_image import GeneratedImage
-from pipelex.tools.misc.file_utils import ensure_path
-from pipelex.tools.misc.terminal_utils import print_to_stderr
-
-
-def save_generated_image(generated_image: GeneratedImage, topic: str, output_dir: str | None = None) -> str | None:
- """Save a generated image to the output directory.
-
- Handles different URL formats:
-
- - HTTP URLs: Returns None (not saved locally)
- - Data URI format: data:image/{format};base64,{base64_data}
- - File path: Opens existing file
- - Raw base64: Decodes and opens
-
- Args:
- generated_image: The generated image with URL
- topic: Topic name used for the filename
- output_dir: Directory to save the image to, defaults to system temp directory
-
- Returns:
- The path where the image was saved, or None for HTTP URLs
- """
- url = generated_image.url
-
- # HTTP URLs are not saved locally
- if url.startswith("http"):
- return None
-
- # Decode image from various formats
- if url.startswith("data:image/"):
- # Data URI format: data:image/{format};base64,{base64_data}
- base64_data = url.split(",", 1)[1]
- image = Image.open(BytesIO(base64.b64decode(base64_data)))
- elif Path(url).exists():
- # File path format
- image = Image.open(url)
- else:
- # Assume raw base64 (fallback)
- image = Image.open(BytesIO(base64.b64decode(url)))
-
- # Resolve output directory
- resolved_output_dir = output_dir or tempfile.gettempdir()
-
- # Save to directory with unique filename
- ensure_path(resolved_output_dir)
- image_id = shortuuid.uuid()[:8]
- safe_topic = topic.replace(" ", "_")
- image_name = f"{resolved_output_dir}/{safe_topic}_{image_id}"
-
- if image.format:
- extension = f".{image.format.lower()}"
- else:
- log.warning(f"Image format not found for image '{image_name}'")
- extension = ""
-
- output_path = f"{image_name}{extension}"
- image.save(output_path)
- print_to_stderr(f"✓ Image saved to: {output_path}\n")
-
- return output_path
diff --git a/tests/integration/pipelex/builder/concept/test_concept_spec_generation.py b/tests/integration/pipelex/builder/concept/test_concept_spec_generation.py
index 98a569418..c020a99ec 100644
--- a/tests/integration/pipelex/builder/concept/test_concept_spec_generation.py
+++ b/tests/integration/pipelex/builder/concept/test_concept_spec_generation.py
@@ -6,6 +6,7 @@ from pipelex.cogt.llm.llm_job_components import LLMJobConfig, LLMJobParams
from pipelex.cogt.llm.llm_job_factory import LLMJobFactory
from pipelex.cogt.llm.llm_prompt import LLMPrompt
from pipelex.hub import get_llm_worker
+from pipelex.pipeline.job_metadata import JobMetadata
from tests.integration.pipelex.builder.concept.integration_test_data import ConceptSpecGenerationTestCases
@@ -22,6 +23,7 @@ class TestConceptSpecGeneration:
@pytest.mark.parametrize(("topic", "user_prompt"), ConceptSpecGenerationTestCases.TEST_CASES)
async def test_generate_concept_spec(
self,
+ job_metadata: JobMetadata,
llm_job_params: LLMJobParams,
llm_handle: str,
topic: str,
@@ -44,6 +46,7 @@ class TestConceptSpecGeneration:
system_text="You are an expert at generating concept specifications for a data modeling system.",
user_text=user_prompt,
),
+ job_metadata=job_metadata,
llm_job_config=LLMJobConfig(
max_retries=3,
),
diff --git a/tests/integration/pipelex/cogt/test_content_generator.py b/tests/integration/pipelex/cogt/test_content_generator.py
index 688402e82..0b082dd0f 100644
--- a/tests/integration/pipelex/cogt/test_content_generator.py
+++ b/tests/integration/pipelex/cogt/test_content_generator.py
@@ -1,15 +1,16 @@
import pytest
from pipelex import pretty_print
+from pipelex.cogt.content_generation.content_generator_protocol import ContentGeneratorProtocol
from pipelex.cogt.exceptions import ModelNotFoundError
from pipelex.cogt.extract.extract_input import ExtractInput
from pipelex.cogt.extract.extract_job_components import ExtractJobConfig, ExtractJobParams
-from pipelex.cogt.extract.extract_output import ExtractOutput
-from pipelex.cogt.image.generated_image import GeneratedImage
from pipelex.cogt.img_gen.img_gen_prompt import ImgGenPrompt
from pipelex.cogt.llm.llm_prompt import LLMPrompt
from pipelex.cogt.llm.llm_setting import LLMSetting
-from pipelex.hub import get_content_generator, get_model_deck
+from pipelex.core.stuffs.image_content import ImageContent
+from pipelex.core.stuffs.page_content import PageContent
+from pipelex.hub import get_model_deck
from pipelex.pipeline.job_metadata import JobMetadata
from tests.cases import ImageTestCases, PDFTestCases
from tests.integration.pipelex.cogt.test_data import Employee
@@ -55,11 +56,11 @@ Write a haiku about the meaning of life
class TestContentGenerator:
@pytest.mark.llm
@pytest.mark.inference
- async def test_make_llm_text_only(self):
+ async def test_make_llm_text_only(self, job_metadata: JobMetadata, content_generator: ContentGeneratorProtocol):
llm_setting_main = get_model_deck().get_llm_setting(llm_choice="llm_for_testing_gen_text")
- text: str = await get_content_generator().make_llm_text(
- job_metadata=JobMetadata(),
+ text: str = await content_generator.make_llm_text(
+ job_metadata=job_metadata,
llm_prompt_for_text=LLMPrompt(user_text=USER_TEXT_FOR_BASE),
llm_setting_main=llm_setting_main,
)
@@ -69,11 +70,11 @@ class TestContentGenerator:
@pytest.mark.llm
@pytest.mark.inference
- async def test_make_object_direct(self):
+ async def test_make_object_direct(self, job_metadata: JobMetadata, content_generator: ContentGeneratorProtocol):
llm_setting_for_object = get_model_deck().get_llm_setting(llm_choice="llm_for_testing_gen_object")
- person_direct: Employee = await get_content_generator().make_object_direct(
- job_metadata=JobMetadata(),
+ person_direct: Employee = await content_generator.make_object_direct(
+ job_metadata=job_metadata,
object_class=Employee,
llm_prompt_for_object=LLMPrompt(user_text=USER_TEXT_FOR_SINGLE_PERSON),
llm_setting_for_object=llm_setting_for_object,
@@ -84,11 +85,11 @@ class TestContentGenerator:
@pytest.mark.llm
@pytest.mark.inference
- async def test_make_object_list_direct(self):
+ async def test_make_object_list_direct(self, job_metadata: JobMetadata, content_generator: ContentGeneratorProtocol):
llm_setting_for_object = get_model_deck().get_llm_setting(llm_choice="llm_for_testing_gen_object")
- person_list_direct: list[Employee] = await get_content_generator().make_object_list_direct(
- job_metadata=JobMetadata(),
+ person_list_direct: list[Employee] = await content_generator.make_object_list_direct(
+ job_metadata=job_metadata,
object_class=Employee,
llm_prompt_for_object_list=LLMPrompt(user_text=USER_TEXTS_FOR_PEOPLE_STR),
llm_setting_for_object_list=llm_setting_for_object,
@@ -100,26 +101,26 @@ class TestContentGenerator:
@pytest.mark.img_gen
@pytest.mark.inference
- async def test_make_image(self):
+ async def test_make_image(self, job_metadata: JobMetadata, content_generator: ContentGeneratorProtocol):
img_gen_handle = "fast-lightning-sdxl"
positive_text = "A dog with sunglasses coding on a laptop"
- image: GeneratedImage = await get_content_generator().make_single_image(
- job_metadata=JobMetadata(),
+ image: ImageContent = await content_generator.make_single_image(
+ job_metadata=job_metadata,
img_gen_handle=img_gen_handle,
img_gen_prompt=ImgGenPrompt(
positive_text=positive_text,
),
)
- pretty_print(image, title=f"Image generated by '{img_gen_handle}' for '{positive_text}'")
- assert isinstance(image, GeneratedImage)
+ pretty_print(image, title=f"ContentGenerator: Image generated by '{img_gen_handle}' for '{positive_text}'")
+ assert isinstance(image, ImageContent)
@pytest.mark.usefixtures("request")
- async def test_make_templated_text(self):
+ async def test_make_templated_text(self, content_generator: ContentGeneratorProtocol):
context = {
"the_answer": "elementary, my dear Watson",
}
- jinja2_text: str = await get_content_generator().make_templated_text(
+ jinja2_text: str = await content_generator.make_templated_text(
context=context,
template="The answer is: {{ the_answer }}",
)
@@ -128,37 +129,50 @@ class TestContentGenerator:
@pytest.mark.extract
@pytest.mark.inference
- async def test_make_extract_pages_from_image(self, extract_handle_from_image: str):
- extract_output = await get_content_generator().make_extract_pages(
- job_metadata=JobMetadata(),
+ async def test_make_extract_pages_from_image(
+ self,
+ job_metadata: JobMetadata,
+ extract_handle_from_image: str,
+ content_generator: ContentGeneratorProtocol,
+ ):
+ page_contents = await content_generator.make_extract_pages(
+ job_metadata=job_metadata,
extract_handle=extract_handle_from_image,
extract_input=ExtractInput(image_uri=ImageTestCases.IMAGE_FILE_PATH_JPG_1),
extract_job_params=ExtractJobParams.make_default_extract_job_params(),
extract_job_config=ExtractJobConfig(),
)
- pretty_print(extract_output, title="extract_pages")
- assert isinstance(extract_output, ExtractOutput)
+ pretty_print(page_contents, title="extract_pages")
+ assert isinstance(page_contents, list)
+ assert all(isinstance(page_content, PageContent) for page_content in page_contents)
@pytest.mark.extract
@pytest.mark.inference
- async def test_make_extract_pages_from_pdf(self, extract_handle_from_pdf: str):
- extract_output = await get_content_generator().make_extract_pages(
- job_metadata=JobMetadata(),
+ async def test_make_extract_pages_from_pdf(
+ self,
+ job_metadata: JobMetadata,
+ extract_handle_from_pdf: str,
+ extract_job_params: ExtractJobParams,
+ content_generator: ContentGeneratorProtocol,
+ ):
+ page_contents = await content_generator.make_extract_pages(
+ job_metadata=job_metadata,
extract_handle=extract_handle_from_pdf,
extract_input=ExtractInput(pdf_uri=PDFTestCases.PDF_FILE_PATH_1),
- extract_job_params=ExtractJobParams.make_default_extract_job_params(),
+ extract_job_params=extract_job_params,
extract_job_config=ExtractJobConfig(),
)
- pretty_print(extract_output, title="extract_pages")
- assert isinstance(extract_output, ExtractOutput)
+ pretty_print(page_contents, title="Extract pages from PDF")
+ assert isinstance(page_contents, list)
+ assert all(isinstance(page_content, PageContent) for page_content in page_contents)
@pytest.mark.llm
@pytest.mark.inference
- async def test_make_llm_text_with_error(self):
+ async def test_make_llm_text_with_error(self, job_metadata: JobMetadata, content_generator: ContentGeneratorProtocol):
llm_setting_main = LLMSetting(model="bad_handle_to_test_failure", temperature=0.5, max_tokens=100)
with pytest.raises(ModelNotFoundError) as excinfo:
- await get_content_generator().make_llm_text(
- job_metadata=JobMetadata(),
+ await content_generator.make_llm_text(
+ job_metadata=job_metadata,
llm_prompt_for_text=LLMPrompt(user_text=USER_TEXT_FOR_BASE),
llm_setting_main=llm_setting_main,
)
diff --git a/tests/integration/pipelex/cogt/test_extract.py b/tests/integration/pipelex/cogt/test_extract.py
index cb43429e2..2ec259503 100644
--- a/tests/integration/pipelex/cogt/test_extract.py
+++ b/tests/integration/pipelex/cogt/test_extract.py
@@ -1,12 +1,12 @@
import pytest
from pipelex import pretty_print
+from pipelex.cogt.content_generation.generated_content_factory import GeneratedContentFactory
from pipelex.cogt.extract.extract_input import ExtractInput
from pipelex.cogt.extract.extract_job_components import ExtractJobParams
from pipelex.cogt.extract.extract_job_factory import ExtractJobFactory
-from pipelex.config import get_config
from pipelex.hub import get_extract_worker
-from pipelex.tools.misc.file_utils import get_incremental_directory_path
+from pipelex.pipeline.job_metadata import JobMetadata
from tests.cases import ImageTestCases, PDFTestCases
@@ -17,27 +17,51 @@ from tests.cases import ImageTestCases, PDFTestCases
@pytest.mark.filterwarnings("ignore:Accessing the 'model_fields' attribute on the instance is deprecated:DeprecationWarning")
class TestExtract:
@pytest.mark.parametrize("file_path", PDFTestCases.DOCUMENT_FILE_PATHS)
- async def test_extract_pdf_path(self, extract_handle_from_pdf: str, file_path: str):
+ async def test_extract_pdf_path(
+ self,
+ generated_content_factory: GeneratedContentFactory,
+ job_metadata: JobMetadata,
+ extract_handle_from_pdf: str,
+ extract_job_params: ExtractJobParams,
+ file_path: str,
+ ):
+ pretty_print(extract_job_params, title="Extract Job Params")
extract_worker = get_extract_worker(extract_handle=extract_handle_from_pdf)
if not extract_worker.is_pdf_supported:
msg = f"PDF extraction is not supported for this extract worker: '{extract_worker.desc}'"
pytest.skip(msg)
extract_job = ExtractJobFactory.make_extract_job(
extract_input=ExtractInput(pdf_uri=file_path),
+ extract_job_params=extract_job_params,
+ job_metadata=job_metadata,
)
extract_output = await extract_worker.extract_pages(extract_job=extract_job)
assert extract_output.pages
- for page_index, page in extract_output.pages.items():
- pretty_print(page.text, title=f"Page {page_index}")
+ page_contents = await generated_content_factory.make_page_contents(
+ primary_id=job_metadata.user_id,
+ secondary_id=job_metadata.pipeline_run_id,
+ extract_output=extract_output,
+ )
+ assert page_contents
+ for page_index, page_content in enumerate(page_contents):
+ pretty_print(page_content, title=f"Page {page_index}")
@pytest.mark.parametrize("url", PDFTestCases.DOCUMENT_URLS)
- async def test_extract_pdf_url(self, extract_handle_from_pdf: str, url: str):
+ async def test_extract_pdf_url(
+ self,
+ job_metadata: JobMetadata,
+ extract_handle_from_pdf: str,
+ extract_job_params: ExtractJobParams,
+ url: str,
+ ):
extract_worker = get_extract_worker(extract_handle=extract_handle_from_pdf)
if not extract_worker.is_pdf_supported:
msg = f"PDF extraction is not supported for this extract worker: '{extract_worker.desc}'"
pytest.skip(msg)
extract_job = ExtractJobFactory.make_extract_job(
extract_input=ExtractInput(pdf_uri=url),
+ extract_job_params=extract_job_params,
+ job_metadata=job_metadata,
)
extract_output = await extract_worker.extract_pages(extract_job=extract_job)
assert extract_output.pages
@@ -45,38 +69,59 @@ class TestExtract:
pretty_print(page.text, title=f"Page {page_index}")
@pytest.mark.parametrize("file_path", ImageTestCases.IMAGE_TEXT_FILE_PATHS)
- async def test_extract_image_path(self, extract_handle_from_image: str, file_path: str):
+ async def test_extract_image_path(
+ self,
+ job_metadata: JobMetadata,
+ extract_handle_from_image: str,
+ extract_job_params: ExtractJobParams,
+ file_path: str,
+ ):
extract_worker = get_extract_worker(extract_handle=extract_handle_from_image)
if not extract_worker.is_image_supported:
msg = f"Image extraction is not supported for this extract worker: '{extract_worker.desc}'"
pytest.skip(msg)
extract_job = ExtractJobFactory.make_extract_job(
extract_input=ExtractInput(image_uri=file_path),
+ extract_job_params=extract_job_params,
+ job_metadata=job_metadata,
)
extract_output = await extract_worker.extract_pages(extract_job=extract_job)
pretty_print(extract_output, title="Extract Output")
assert extract_output.pages
@pytest.mark.parametrize("url", ImageTestCases.IMAGE_URLS)
- async def test_extract_image_url(self, extract_handle_from_image: str, url: str):
+ async def test_extract_image_url(
+ self,
+ job_metadata: JobMetadata,
+ extract_handle_from_image: str,
+ extract_job_params: ExtractJobParams,
+ url: str,
+ ):
extract_worker = get_extract_worker(extract_handle=extract_handle_from_image)
if not extract_worker.is_image_supported:
msg = f"Image extraction is not supported for this extract worker: '{extract_worker.desc}'"
pytest.skip(msg)
extract_job = ExtractJobFactory.make_extract_job(
extract_input=ExtractInput(image_uri=url),
+ extract_job_params=extract_job_params,
+ job_metadata=job_metadata,
)
extract_output = await extract_worker.extract_pages(extract_job=extract_job)
pretty_print(extract_output, title="Extract Output")
assert extract_output.pages
@pytest.mark.parametrize("file_path", PDFTestCases.DOCUMENT_FILE_PATHS)
- async def test_extract_image_save(self, extract_handle_from_image: str, file_path: str):
+ async def test_extract_image_save(
+ self,
+ job_metadata: JobMetadata,
+ extract_handle_from_image: str,
+ file_path: str,
+ ):
extract_worker = get_extract_worker(extract_handle=extract_handle_from_image)
if not extract_worker.is_pdf_supported:
msg = f"PDF extraction is not supported for this extract worker: '{extract_worker.desc}'"
pytest.skip(msg)
- extract_job_params = ExtractJobParams(
+ specific_extract_job_params = ExtractJobParams(
should_include_images=True,
should_caption_images=False,
should_include_page_views=False,
@@ -86,15 +131,8 @@ class TestExtract:
)
extract_job = ExtractJobFactory.make_extract_job(
extract_input=ExtractInput(pdf_uri=file_path),
- extract_job_params=extract_job_params,
+ extract_job_params=specific_extract_job_params,
+ job_metadata=job_metadata,
)
extract_output = await extract_worker.extract_pages(extract_job=extract_job)
pretty_print(extract_output, title="Extract Output")
- directory = get_incremental_directory_path(
- base_path="results/test_ocr_result_save",
- base_name="extract_output",
- )
- extract_output.save_to_directory(
- directory=directory,
- page_text_file_name=get_config().cogt.extract_config.page_output_text_file_name,
- )
diff --git a/tests/integration/pipelex/cogt/test_img_gen.py b/tests/integration/pipelex/cogt/test_img_gen.py
index bdced6f6c..d06f1d854 100644
--- a/tests/integration/pipelex/cogt/test_img_gen.py
+++ b/tests/integration/pipelex/cogt/test_img_gen.py
@@ -1,63 +1,127 @@
import pytest
-from pipelex import pretty_print
-from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, ImgGenJobParams, OutputFormat
+from pipelex import pretty_print, pretty_print_url
+from pipelex.cogt.content_generation.generated_content_factory import GeneratedContentFactory
+from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, ImgGenJobParams
from pipelex.cogt.img_gen.img_gen_job_factory import ImgGenJobFactory
from pipelex.hub import get_img_gen_worker
-from tests.helpers.image_helpers import save_generated_image
+from pipelex.pipeline.job_metadata import JobMetadata
+from pipelex.tools.misc.image_utils import ImageFormat
from tests.integration.pipelex.test_data import ImageGenTestCases
+PRIMARY_ID = "id_1"
+SECONDARY_ID = "id_2"
+
@pytest.mark.img_gen
@pytest.mark.inference
@pytest.mark.asyncio(loop_scope="class")
@pytest.mark.usefixtures("routing_profile_override")
class TestImageGeneration:
- @pytest.mark.parametrize(("topic", "img_gen_prompt_text"), ImageGenTestCases.IMAGE_DESC)
- async def test_img_gen_single_opaque(self, img_gen_handle: str, img_gen_job_params: ImgGenJobParams, topic: str, img_gen_prompt_text: str):
+ @pytest.mark.parametrize(("topic", "positive_text", "negative_text"), ImageGenTestCases.IMAGE_GEN_PROMPT_CONTENTS)
+ async def test_img_gen_single_opaque(
+ self,
+ job_metadata: JobMetadata,
+ img_gen_handle: str,
+ img_gen_job_params: ImgGenJobParams,
+ topic: str,
+ positive_text: str,
+ negative_text: str | None,
+ generated_content_factory: GeneratedContentFactory,
+ ):
+ pretty_print(f"Testing image generation with handle '{img_gen_handle}', output format '{img_gen_job_params.output_format}'")
+ pretty_print(positive_text, title="Positive text")
+ pretty_print(negative_text, title="Negative text")
img_gen_worker_async = get_img_gen_worker(img_gen_handle=img_gen_handle)
img_gen_job = ImgGenJobFactory.make_img_gen_job_from_prompt_contents(
- positive_text=img_gen_prompt_text,
+ positive_text=positive_text,
+ negative_text=negative_text,
+ job_metadata=job_metadata,
img_gen_job_params=img_gen_job_params,
)
- generated_image = await img_gen_worker_async.gen_image(
+ generated_image_raw_details = await img_gen_worker_async.gen_image(
img_gen_job=img_gen_job,
)
- pretty_print(generated_image, title=f"Image generation by '{img_gen_handle}' for topic '{topic}'")
-
- saved_path = save_generated_image(generated_image, topic)
- if saved_path is None:
- pretty_print(generated_image.url, title="Image URL")
+ pretty_print(generated_image_raw_details, title=f"Generated image raw details for topic '{topic}'")
+ image_content = await generated_content_factory.make_image_content(
+ primary_id=PRIMARY_ID,
+ secondary_id=SECONDARY_ID,
+ raw_details=generated_image_raw_details,
+ )
+ pretty_print(image_content, title=f"Image content for topic '{topic}'")
+ assert image_content.display_link is not None
+ pretty_print_url(image_content.display_link, title=f"Image URL for topic '{topic}'")
- @pytest.mark.parametrize(("topic", "img_gen_prompt_text"), ImageGenTestCases.IMAGE_DESC)
- async def test_img_gen_single_transparent(self, img_gen_handle: str, topic: str, img_gen_prompt_text: str):
+ @pytest.mark.parametrize(("topic", "positive_text", "negative_text"), ImageGenTestCases.IMAGE_GEN_PROMPT_CONTENTS)
+ async def test_img_gen_single_transparent(
+ self,
+ job_metadata: JobMetadata,
+ img_gen_handle: str,
+ topic: str,
+ positive_text: str,
+ negative_text: str | None,
+ generated_content_factory: GeneratedContentFactory,
+ ):
img_gen_worker_async = get_img_gen_worker(img_gen_handle=img_gen_handle)
img_gen_job_params = ImgGenJobParams(
aspect_ratio=AspectRatio.SQUARE,
is_raw=None,
background=Background.TRANSPARENT,
- output_format=OutputFormat.PNG,
+ output_format=ImageFormat.PNG,
)
img_gen_job = ImgGenJobFactory.make_img_gen_job_from_prompt_contents(
- positive_text=img_gen_prompt_text,
+ positive_text=positive_text,
+ negative_text=negative_text,
+ job_metadata=job_metadata,
img_gen_job_params=img_gen_job_params,
)
- generated_image = await img_gen_worker_async.gen_image(
+ generated_image_raw_details = await img_gen_worker_async.gen_image(
img_gen_job=img_gen_job,
)
- pretty_print(generated_image, title=f"Image generated by '{img_gen_handle}' for topic '{topic}'")
-
- save_generated_image(generated_image, topic)
+ pretty_print(generated_image_raw_details, title=f"Generated image raw details for topic '{topic}'")
+ image_content = await generated_content_factory.make_image_content(
+ primary_id=PRIMARY_ID,
+ secondary_id=SECONDARY_ID,
+ raw_details=generated_image_raw_details,
+ )
+ pretty_print(image_content, title=f"Image content for topic '{topic}'")
+ assert image_content.display_link is not None
+ pretty_print_url(image_content.display_link, title=f"Image URL for topic '{topic}'")
- @pytest.mark.parametrize(("topic", "img_gen_prompt_text"), ImageGenTestCases.IMAGE_DESC)
- async def test_img_gen_multiple(self, img_gen_handle: str, img_gen_job_params: ImgGenJobParams, topic: str, img_gen_prompt_text: str):
+ @pytest.mark.parametrize(("topic", "positive_text", "negative_text"), ImageGenTestCases.IMAGE_GEN_PROMPT_CONTENTS)
+ async def test_img_gen_multiple(
+ self,
+ job_metadata: JobMetadata,
+ img_gen_handle: str,
+ img_gen_job_params: ImgGenJobParams,
+ topic: str,
+ positive_text: str,
+ negative_text: str | None,
+ generated_content_factory: GeneratedContentFactory,
+ ):
img_gen_worker_async = get_img_gen_worker(img_gen_handle=img_gen_handle)
img_gen_job = ImgGenJobFactory.make_img_gen_job_from_prompt_contents(
- positive_text=img_gen_prompt_text,
+ positive_text=positive_text,
+ negative_text=negative_text,
+ job_metadata=job_metadata,
img_gen_job_params=img_gen_job_params,
)
- generated_image_list = await img_gen_worker_async.gen_image_list(
+ generated_image_raw_details_list = await img_gen_worker_async.gen_image_list(
img_gen_job=img_gen_job,
nb_images=3,
)
- pretty_print(generated_image_list, title=f"Images generated by '{img_gen_handle}' for topic '{topic}'")
+ pretty_print(generated_image_raw_details_list, title=f"Images generated by '{img_gen_handle}' for topic '{topic}'")
+ image_content_list = [
+ (
+ await generated_content_factory.make_image_content(
+ primary_id=PRIMARY_ID,
+ secondary_id=SECONDARY_ID,
+ raw_details=generated_image_raw_details,
+ )
+ )
+ for generated_image_raw_details in generated_image_raw_details_list
+ ]
+ pretty_print(image_content_list, title=f"Image contents for topic '{topic}'")
+ for image_index, image in enumerate(image_content_list):
+ assert image.display_link is not None
+ pretty_print_url(image.display_link, title=f"Image URL #{image_index}")
diff --git a/tests/integration/pipelex/cogt/test_llm_gen_object.py b/tests/integration/pipelex/cogt/test_llm_gen_object.py
index 4fe237556..e9140b63f 100644
--- a/tests/integration/pipelex/cogt/test_llm_gen_object.py
+++ b/tests/integration/pipelex/cogt/test_llm_gen_object.py
@@ -8,10 +8,11 @@ from pipelex.cogt.llm.llm_job_components import LLMJobConfig, LLMJobParams
from pipelex.cogt.llm.llm_job_factory import LLMJobFactory
from pipelex.cogt.llm.llm_prompt import LLMPrompt
from pipelex.hub import get_llm_worker, get_model_deck
+from pipelex.pipeline.job_metadata import JobMetadata
from tests.integration.pipelex.cogt.test_data import LLMTestCases
-def get_async_worker_and_job(llm_preset_id: str, user_text: str):
+def get_async_worker_and_job(llm_preset_id: str, user_text: str, job_metadata: JobMetadata):
llm_setting = get_model_deck().get_llm_setting(llm_choice=llm_preset_id)
pretty_print(llm_setting, title=llm_preset_id)
pretty_print(user_text)
@@ -21,6 +22,7 @@ def get_async_worker_and_job(llm_preset_id: str, user_text: str):
llm_prompt=LLMPrompt(
user_text=user_text,
),
+ job_metadata=job_metadata,
llm_job_params=llm_job_params,
llm_job_config=LLMJobConfig(
max_retries=3,
@@ -35,7 +37,9 @@ def get_async_worker_and_job(llm_preset_id: str, user_text: str):
@pytest.mark.usefixtures("routing_profile_override")
class TestLLMGenObject:
@pytest.mark.parametrize(("user_text", "expected_instance"), LLMTestCases.SINGLE_OBJECT)
- async def test_gen_object_async_using_handle(self, llm_job_params: LLMJobParams, llm_handle: str, user_text: str, expected_instance: BaseModel):
+ async def test_gen_object_async_using_handle(
+ self, job_metadata: JobMetadata, llm_job_params: LLMJobParams, llm_handle: str, user_text: str, expected_instance: BaseModel
+ ):
llm_worker = get_llm_worker(llm_handle=llm_handle)
if not llm_worker.is_gen_object_supported:
pytest.skip(f"LLM worker '{llm_worker.desc}' does not support object generation")
@@ -43,6 +47,7 @@ class TestLLMGenObject:
llm_prompt=LLMPrompt(
user_text=user_text,
),
+ job_metadata=job_metadata,
llm_job_params=llm_job_params,
llm_job_config=LLMJobConfig(
max_retries=3,
@@ -55,8 +60,10 @@ class TestLLMGenObject:
assert output.model_dump(serialize_as_any=True) == expected_instance.model_dump(serialize_as_any=True)
@pytest.mark.parametrize(("user_text", "expected_instance"), LLMTestCases.SINGLE_OBJECT)
- async def test_gen_object_async_using_llm_preset(self, llm_preset_id: str, user_text: str, expected_instance: BaseModel):
- llm_worker, llm_job = get_async_worker_and_job(llm_preset_id=llm_preset_id, user_text=user_text)
+ async def test_gen_object_async_using_llm_preset(
+ self, job_metadata: JobMetadata, llm_preset_id: str, user_text: str, expected_instance: BaseModel
+ ):
+ llm_worker, llm_job = get_async_worker_and_job(llm_preset_id=llm_preset_id, user_text=user_text, job_metadata=job_metadata)
if not llm_worker.is_gen_object_supported:
pytest.skip(f"'{llm_worker.desc}' does not support object generation")
expected_class = expected_instance.__class__
@@ -68,6 +75,7 @@ class TestLLMGenObject:
@pytest.mark.parametrize("case_tuples", LLMTestCases.MULTIPLE_OBJECTS)
async def test_gen_object_async_multiple_using_handle(
self,
+ job_metadata: JobMetadata,
llm_job_params: LLMJobParams,
llm_handle: str,
case_tuples: list[tuple[str, BaseModel]],
@@ -83,6 +91,7 @@ class TestLLMGenObject:
llm_prompt=LLMPrompt(
user_text=user_text,
),
+ job_metadata=job_metadata,
llm_job_params=llm_job_params,
llm_job_config=LLMJobConfig(
max_retries=3,
@@ -100,8 +109,10 @@ class TestLLMGenObject:
assert output_instance.model_dump(serialize_as_any=True) == expected_instance.model_dump(serialize_as_any=True)
@pytest.mark.parametrize("case_tuples", LLMTestCases.MULTIPLE_OBJECTS)
- async def test_gen_object_async_multiple_using_llm_preset(self, llm_preset_id: str, case_tuples: list[tuple[str, BaseModel]]):
- llm_worker, llm_job = get_async_worker_and_job(llm_preset_id=llm_preset_id, user_text=case_tuples[0][0])
+ async def test_gen_object_async_multiple_using_llm_preset(
+ self, job_metadata: JobMetadata, llm_preset_id: str, case_tuples: list[tuple[str, BaseModel]]
+ ):
+ llm_worker, llm_job = get_async_worker_and_job(llm_preset_id=llm_preset_id, user_text=case_tuples[0][0], job_metadata=job_metadata)
if not llm_worker.is_gen_object_supported:
pytest.skip(f"'{llm_worker.desc}' does not support object generation")
tasks: list[asyncio.Task[BaseModel]] = []
@@ -112,6 +123,7 @@ class TestLLMGenObject:
llm_prompt=LLMPrompt(
user_text=user_text,
),
+ job_metadata=job_metadata,
llm_job_params=llm_job.job_params,
llm_job_config=LLMJobConfig(
max_retries=3,
diff --git a/tests/integration/pipelex/cogt/test_llm_gen_text.py b/tests/integration/pipelex/cogt/test_llm_gen_text.py
index 2791afe35..e8cec6bca 100644
--- a/tests/integration/pipelex/cogt/test_llm_gen_text.py
+++ b/tests/integration/pipelex/cogt/test_llm_gen_text.py
@@ -11,10 +11,11 @@ from pipelex.cogt.llm.llm_worker_abstract import LLMWorkerAbstract
from pipelex.cogt.llm.llm_worker_internal_abstract import LLMWorkerInternalAbstract
from pipelex.cogt.model_backends.constraints import ListedConstraint, ValuedConstraint
from pipelex.hub import get_llm_worker, get_model_deck
+from pipelex.pipeline.job_metadata import JobMetadata
from tests.integration.pipelex.cogt.test_data import LLMTestCases
-def get_worker_and_job(llm_preset_id: str, user_text: str) -> tuple[LLMWorkerAbstract, LLMJob]:
+def get_worker_and_job(llm_preset_id: str, user_text: str, job_metadata: JobMetadata) -> tuple[LLMWorkerAbstract, LLMJob]:
llm_setting = get_model_deck().get_llm_setting(llm_choice=llm_preset_id)
pretty_print(llm_setting, title=llm_preset_id)
pretty_print(user_text)
@@ -24,6 +25,7 @@ def get_worker_and_job(llm_preset_id: str, user_text: str) -> tuple[LLMWorkerAbs
llm_prompt=LLMPrompt(
user_text=user_text,
),
+ job_metadata=job_metadata,
llm_job_params=llm_job_params,
llm_job_config=LLMJobConfig(
max_retries=3,
@@ -38,13 +40,16 @@ def get_worker_and_job(llm_preset_id: str, user_text: str) -> tuple[LLMWorkerAbs
@pytest.mark.usefixtures("routing_profile_override")
class TestLLMGenText:
@pytest.mark.parametrize(("topic", "prompt_text"), LLMTestCases.SINGLE_TEXT)
- async def test_gen_text_using_handle(self, llm_job_params: LLMJobParams, llm_handle: str, topic: str, prompt_text: str):
+ async def test_gen_text_using_handle(
+ self, job_metadata: JobMetadata, llm_job_params: LLMJobParams, llm_handle: str, topic: str, prompt_text: str
+ ):
pretty_print(prompt_text, title=f"Generating text about '{topic}' using '{llm_handle}'")
llm_worker = get_llm_worker(llm_handle=llm_handle)
llm_job = LLMJobFactory.make_llm_job(
llm_prompt=LLMPrompt(
user_text=prompt_text,
),
+ job_metadata=job_metadata,
llm_job_params=llm_job_params,
llm_job_config=LLMJobConfig(
max_retries=3,
@@ -55,15 +60,15 @@ class TestLLMGenText:
pretty_print(generated_text)
@pytest.mark.parametrize(("topic", "prompt_text"), LLMTestCases.SINGLE_TEXT)
- async def test_gen_text_using_llm_preset(self, llm_preset_id: str, topic: str, prompt_text: str): # noqa: ARG002
- llm_worker, llm_job = get_worker_and_job(llm_preset_id=llm_preset_id, user_text=prompt_text)
+ async def test_gen_text_using_llm_preset(self, job_metadata: JobMetadata, llm_preset_id: str, topic: str, prompt_text: str): # noqa: ARG002
+ llm_worker, llm_job = get_worker_and_job(llm_preset_id=llm_preset_id, user_text=prompt_text, job_metadata=job_metadata)
generated_text = await llm_worker.gen_text(llm_job=llm_job)
assert generated_text
pretty_print(generated_text)
@pytest.mark.parametrize(("topic", "prompt_text"), LLMTestCases.SINGLE_TEXT)
- async def test_gen_text_multiple_using_llm_preset(self, llm_preset_id: str, topic: str, prompt_text: str): # noqa: ARG002
- llm_worker, llm_job = get_worker_and_job(llm_preset_id=llm_preset_id, user_text=prompt_text)
+ async def test_gen_text_multiple_using_llm_preset(self, job_metadata: JobMetadata, llm_preset_id: str, topic: str, prompt_text: str): # noqa: ARG002
+ llm_worker, llm_job = get_worker_and_job(llm_preset_id=llm_preset_id, user_text=prompt_text, job_metadata=job_metadata)
job_params_base = llm_job.job_params
max_tokens = 30
temperature = 0.1
diff --git a/tests/integration/pipelex/cogt/test_llm_inference.py b/tests/integration/pipelex/cogt/test_llm_inference.py
index e2c67d874..1d235e668 100644
--- a/tests/integration/pipelex/cogt/test_llm_inference.py
+++ b/tests/integration/pipelex/cogt/test_llm_inference.py
@@ -7,6 +7,7 @@ from pipelex.cogt.llm.llm_job_components import LLMJobParams
from pipelex.cogt.llm.llm_job_factory import LLMJobFactory
from pipelex.cogt.llm.llm_prompt import LLMPrompt
from pipelex.hub import get_inference_manager
+from pipelex.pipeline.job_metadata import JobMetadata
from tests.integration.pipelex.cogt.test_data import ImageDescription, LLMTestConstants, LLMVisionTestCases, Person
@@ -16,7 +17,7 @@ from tests.integration.pipelex.cogt.test_data import ImageDescription, LLMTestCo
@pytest.mark.usefixtures("routing_profile_override")
class TestLLMInference:
@pytest.mark.parametrize("user_text", [LLMTestConstants.USER_TEXT_SUPER_SHORT])
- async def test_simple_gen_text_from_text(self, llm_job_params: LLMJobParams, llm_handle: str, user_text: str):
+ async def test_simple_gen_text_from_text(self, job_metadata: JobMetadata, llm_job_params: LLMJobParams, llm_handle: str, user_text: str):
log.info(f"test_simple_gen_text_from_text: Testing llm_handle '{llm_handle}'")
llm_worker = get_inference_manager().get_llm_worker(llm_handle=llm_handle)
log.info(f"Using llm_worker: {llm_worker.desc}")
@@ -25,6 +26,7 @@ class TestLLMInference:
system_text=None,
user_text=user_text,
),
+ job_metadata=job_metadata,
llm_job_params=llm_job_params,
)
generated_text = await llm_worker.gen_text(llm_job=llm_job)
@@ -32,7 +34,7 @@ class TestLLMInference:
pretty_print(generated_text)
# get_report_delegate().generate_report()
- async def test_simple_gen_object_from_text(self, llm_job_params: LLMJobParams, llm_handle: str):
+ async def test_simple_gen_object_from_text(self, job_metadata: JobMetadata, llm_job_params: LLMJobParams, llm_handle: str):
log.info(f"test_simple_gen_object_from_text: Testing llm_handle '{llm_handle}'")
llm_worker = get_inference_manager().get_llm_worker(llm_handle=llm_handle)
if not llm_worker.is_gen_object_supported:
@@ -44,6 +46,7 @@ class TestLLMInference:
system_text=None,
user_text=LLMTestConstants.USER_TEXT_TO_EXTRACT_PERSON,
),
+ job_metadata=job_metadata,
llm_job_params=llm_job_params,
)
generated_object = await llm_worker.gen_object(llm_job=llm_job, schema=Person)
@@ -52,7 +55,7 @@ class TestLLMInference:
# get_report_delegate().generate_report()
@pytest.mark.parametrize("image_path", [LLMVisionTestCases.PATH_IMG_PNG_1])
- async def test_gen_text_from_image(self, llm_job_params: LLMJobParams, llm_handle: str, image_path: str):
+ async def test_gen_text_from_image(self, job_metadata: JobMetadata, llm_job_params: LLMJobParams, llm_handle: str, image_path: str):
log.info(f"test_gen_text_from_image: Testing llm_handle '{llm_handle}'")
prompt_image = PromptImagePath(file_path=image_path)
llm_worker = get_inference_manager().get_llm_worker(llm_handle=llm_handle)
@@ -66,6 +69,7 @@ class TestLLMInference:
user_text=LLMVisionTestCases.VISION_USER_TEXT,
user_images=[prompt_image],
),
+ job_metadata=job_metadata,
llm_job_params=llm_job_params,
)
try:
@@ -77,7 +81,7 @@ class TestLLMInference:
# get_report_delegate().generate_report()
@pytest.mark.parametrize("image_path", [LLMVisionTestCases.PATH_IMG_PNG_1])
- async def test_gen_object_from_image(self, llm_job_params: LLMJobParams, llm_handle: str, image_path: str):
+ async def test_gen_object_from_image(self, job_metadata: JobMetadata, llm_job_params: LLMJobParams, llm_handle: str, image_path: str):
log.info(f"test_gen_object_from_image: Testing llm_handle '{llm_handle}'")
prompt_image = PromptImagePath(file_path=image_path)
llm_worker = get_inference_manager().get_llm_worker(llm_handle=llm_handle)
@@ -97,6 +101,7 @@ class TestLLMInference:
user_text="Analyze this image and provide a title, detailed description, and estimated date or time period.",
user_images=[prompt_image],
),
+ job_metadata=job_metadata,
llm_job_params=llm_job_params,
)
try:
diff --git a/tests/integration/pipelex/cogt/test_llm_report.py b/tests/integration/pipelex/cogt/test_llm_report.py
index fbe74ced7..6beee36eb 100644
--- a/tests/integration/pipelex/cogt/test_llm_report.py
+++ b/tests/integration/pipelex/cogt/test_llm_report.py
@@ -7,6 +7,7 @@ from pipelex.cogt.llm.llm_job_components import LLMJobConfig
from pipelex.cogt.llm.llm_job_factory import LLMJobFactory
from pipelex.cogt.llm.llm_prompt import LLMPrompt
from pipelex.hub import get_llm_worker, get_model_deck, get_report_delegate
+from pipelex.pipeline.job_metadata import JobMetadata
from tests.integration.pipelex.cogt.test_data import LLMTestCases
@@ -19,13 +20,13 @@ def test_llm_report_without_running_anything():
@pytest.mark.asyncio(loop_scope="class")
class TestLLMReport:
@pytest.mark.parametrize(("topic", "prompt_text"), LLMTestCases.SINGLE_TEXT)
- async def test_llm_report_single(self, llm_preset_id: str, topic: str, prompt_text: str): # noqa: ARG002
- llm_worker, llm_job = self._get_async_worker_and_job(llm_preset_id=llm_preset_id, prompt_text=prompt_text)
+ async def test_llm_report_single(self, job_metadata: JobMetadata, llm_preset_id: str, topic: str, prompt_text: str): # noqa: ARG002
+ llm_worker, llm_job = self._get_async_worker_and_job(llm_preset_id=llm_preset_id, prompt_text=prompt_text, job_metadata=job_metadata)
generated_text = await llm_worker.gen_text(llm_job=llm_job)
assert generated_text
pretty_print(generated_text)
- def _get_async_worker_and_job(self, llm_preset_id: str, prompt_text: str):
+ def _get_async_worker_and_job(self, llm_preset_id: str, prompt_text: str, job_metadata: JobMetadata):
llm_setting = get_model_deck().get_llm_setting(llm_choice=llm_preset_id)
pretty_print(llm_setting, title=llm_preset_id)
pretty_print(prompt_text)
@@ -35,6 +36,7 @@ class TestLLMReport:
llm_prompt=LLMPrompt(
user_text=prompt_text,
),
+ job_metadata=job_metadata,
llm_job_config=LLMJobConfig(
max_retries=3,
),
@@ -42,7 +44,7 @@ class TestLLMReport:
)
return llm_worker, llm_job
- async def test_llm_report_multiple(self):
+ async def test_llm_report_multiple(self, job_metadata: JobMetadata):
nb_generations = 3
prompt_text = LLMTestCases.USER_TEXT_HAIKU
llm_preset_ids = [
@@ -51,7 +53,7 @@ class TestLLMReport:
]
tasks: list[asyncio.Task[str]] = []
for llm_preset_id in llm_preset_ids:
- llm_worker, llm_job = self._get_async_worker_and_job(llm_preset_id=llm_preset_id, prompt_text=prompt_text)
+ llm_worker, llm_job = self._get_async_worker_and_job(llm_preset_id=llm_preset_id, prompt_text=prompt_text, job_metadata=job_metadata)
job_params_base = llm_job.job_params
max_tokens = 30
for _ in range(nb_generations):
diff --git a/tests/integration/pipelex/cogt/test_llm_vision.py b/tests/integration/pipelex/cogt/test_llm_vision.py
index 7b4f95601..b013909f6 100644
--- a/tests/integration/pipelex/cogt/test_llm_vision.py
+++ b/tests/integration/pipelex/cogt/test_llm_vision.py
@@ -8,7 +8,8 @@ from pipelex.cogt.llm.llm_job_components import LLMJobParams
from pipelex.cogt.llm.llm_job_factory import LLMJobFactory
from pipelex.cogt.llm.llm_prompt import LLMPrompt
from pipelex.hub import get_llm_worker
-from pipelex.tools.misc.base_64_utils import load_binary_as_base64
+from pipelex.pipeline.job_metadata import JobMetadata
+from pipelex.tools.misc.base64_utils import load_binary_as_base64
from tests.integration.pipelex.cogt.test_data import LLMVisionTestCases
@@ -18,7 +19,9 @@ from tests.integration.pipelex.cogt.test_data import LLMVisionTestCases
@pytest.mark.usefixtures("routing_profile_override")
class TestLLMVision:
@pytest.mark.parametrize(("topic", "image_uri"), LLMVisionTestCases.IMAGE_URLS)
- async def test_gen_text_from_vision_by_url(self, llm_job_params: LLMJobParams, llm_handle: str, topic: str, image_uri: str):
+ async def test_gen_text_from_vision_by_url(
+ self, job_metadata: JobMetadata, llm_job_params: LLMJobParams, llm_handle: str, topic: str, image_uri: str
+ ):
prompt_image = PromptImageFactory.make_prompt_image(url=image_uri)
llm_worker = get_llm_worker(llm_handle=llm_handle)
log.info(f"Using llm_worker: {llm_worker.desc}")
@@ -27,6 +30,7 @@ class TestLLMVision:
user_text=LLMVisionTestCases.VISION_USER_TEXT,
user_images=[prompt_image],
),
+ job_metadata=job_metadata,
llm_job_params=llm_job_params,
)
@@ -40,7 +44,9 @@ class TestLLMVision:
pytest.skip(f"Prompt Image format not supported for this LLM: {llm_handle} because {exc}")
@pytest.mark.parametrize(("topic", "image_path"), LLMVisionTestCases.IMAGE_PATHS)
- async def test_gen_text_from_vision_by_bytes(self, llm_job_params: LLMJobParams, llm_handle: str, topic: str, image_path: str):
+ async def test_gen_text_from_vision_by_bytes(
+ self, job_metadata: JobMetadata, llm_job_params: LLMJobParams, llm_handle: str, topic: str, image_path: str
+ ):
image_bytes = load_binary_as_base64(path=image_path)
prompt_image = PromptImageBase64(base_64=image_bytes)
llm_worker = get_llm_worker(llm_handle=llm_handle)
@@ -49,6 +55,7 @@ class TestLLMVision:
user_text=LLMVisionTestCases.VISION_USER_TEXT,
user_images=[prompt_image],
),
+ job_metadata=job_metadata,
llm_job_params=llm_job_params,
)
try:
@@ -61,7 +68,9 @@ class TestLLMVision:
pytest.skip(f"Prompt Image format not supported for this LLM: {llm_handle} because {exc}")
@pytest.mark.parametrize(("topic", "image_path"), LLMVisionTestCases.IMAGE_PATHS)
- async def test_gen_text_from_vision_by_path(self, llm_job_params: LLMJobParams, llm_handle: str, topic: str, image_path: str):
+ async def test_gen_text_from_vision_by_path(
+ self, job_metadata: JobMetadata, llm_job_params: LLMJobParams, llm_handle: str, topic: str, image_path: str
+ ):
prompt_image = PromptImagePath(file_path=image_path)
llm_worker = get_llm_worker(llm_handle=llm_handle)
llm_job = LLMJobFactory.make_llm_job(
@@ -69,6 +78,7 @@ class TestLLMVision:
user_text=LLMVisionTestCases.VISION_USER_TEXT,
user_images=[prompt_image],
),
+ job_metadata=job_metadata,
llm_job_params=llm_job_params,
)
try:
@@ -81,7 +91,9 @@ class TestLLMVision:
pytest.skip(f"Prompt Image format not supported for this LLM: {llm_handle} because {exc}")
@pytest.mark.parametrize(("topic", "image_pair"), LLMVisionTestCases.IMAGE_PATH_PAIRS)
- async def test_gen_text_from_vision_2_images(self, llm_job_params: LLMJobParams, llm_handle: str, topic: str, image_pair: tuple[str, str]):
+ async def test_gen_text_from_vision_2_images(
+ self, job_metadata: JobMetadata, llm_job_params: LLMJobParams, llm_handle: str, topic: str, image_pair: tuple[str, str]
+ ):
prompt_image1 = PromptImagePath(file_path=image_pair[0])
prompt_image2 = PromptImagePath(file_path=image_pair[1])
llm_worker = get_llm_worker(llm_handle=llm_handle)
@@ -90,6 +102,7 @@ class TestLLMVision:
user_text=LLMVisionTestCases.VISION_IMAGES_COMPARE_PROMPT,
user_images=[prompt_image1, prompt_image2],
),
+ job_metadata=job_metadata,
llm_job_params=llm_job_params,
)
try:
diff --git a/tests/integration/pipelex/conftest.py b/tests/integration/pipelex/conftest.py
index d659024f9..90e19de55 100644
--- a/tests/integration/pipelex/conftest.py
+++ b/tests/integration/pipelex/conftest.py
@@ -14,7 +14,9 @@ from .fixtures.extract_fixtures import (
extract_handle,
extract_handle_from_image,
extract_handle_from_pdf,
+ extract_job_params,
)
+from .fixtures.generator_fixtures import content_generator, generated_content_factory
from .fixtures.img_gen_fixtures import img_gen_handle, img_gen_job_params
from .fixtures.llm_fixtures import llm_handle, llm_job_params, llm_preset_id
from .fixtures.plugin_fixtures import plugin_for_anthropic, plugin_for_openai
@@ -41,12 +43,16 @@ __all__ = [
# Image generation fixtures
"img_gen_handle",
"img_gen_job_params",
+ # Generator fixtures
+ "generated_content_factory",
+ "content_generator",
# Extract fixtures
"extract_handle",
"extract_handle_from_image",
"extract_handle_from_pdf",
"extract_choice_for_pdf",
"extract_choice_for_image",
+ "extract_job_params",
]
diff --git a/tests/integration/pipelex/core/memory/test_working_memory_factory.py b/tests/integration/pipelex/core/memory/test_working_memory_factory.py
index 429ac320c..36a278589 100644
--- a/tests/integration/pipelex/core/memory/test_working_memory_factory.py
+++ b/tests/integration/pipelex/core/memory/test_working_memory_factory.py
@@ -49,11 +49,6 @@ class TestWorkingMemoryFactory:
"caption": "First image showing data visualization",
"source_prompt": "Generate a chart showing quarterly sales data",
},
- {
- "url": ("data:image/png;base64,mock_base64"),
- "caption": "Second image with base64 data",
- "base_64": ("mock_base64"),
- },
{"url": "/local/path/diagram.png", "caption": "System architecture diagram"},
],
},
@@ -84,7 +79,7 @@ class TestWorkingMemoryFactory:
# Verify images
images = page_content.text_and_images.images
assert images is not None
- assert len(images) == 3
+ assert len(images) == 2
# Check first image
first_image = images[0]
@@ -93,18 +88,11 @@ class TestWorkingMemoryFactory:
assert first_image.caption == "First image showing data visualization"
assert first_image.source_prompt == "Generate a chart showing quarterly sales data"
- # Check second image (with base64)
+ # Check second image
second_image = images[1]
assert isinstance(second_image, ImageContent)
- expected_base64 = "mock_base64"
- assert second_image.base_64 == expected_base64
- assert second_image.caption == "Second image with base64 data"
-
- # Check third image
- third_image = images[2]
- assert isinstance(third_image, ImageContent)
- assert third_image.url == "/local/path/diagram.png"
- assert third_image.caption == "System architecture diagram"
+ assert second_image.url == "/local/path/diagram.png"
+ assert second_image.caption == "System architecture diagram"
# Verify page_view
page_view = page_content.page_view
diff --git a/tests/integration/pipelex/fixtures/extract_fixtures.py b/tests/integration/pipelex/fixtures/extract_fixtures.py
index f2a42ddc0..dd877334d 100644
--- a/tests/integration/pipelex/fixtures/extract_fixtures.py
+++ b/tests/integration/pipelex/fixtures/extract_fixtures.py
@@ -2,6 +2,7 @@
import pytest
+from pipelex.cogt.extract.extract_job_components import ExtractJobParams
from pipelex.hub import get_model_deck
from tests.integration.pipelex.fixtures.routing_fixtures import ALL_BACKENDS, check_backend_supports_model
@@ -26,12 +27,19 @@ EXTRACT_HANDLE_FROM_PDF = [
"pypdfium2-extract-text",
"docling-extract-text",
"mistral-ocr",
+ "mistral-ocr-2503",
+ "mistral-ocr-2505",
+ "mistral-ocr-2512",
+ "mistral-document-ai-2505",
"azure-document-intelligence",
]
EXTRACT_HANDLE_FROM_IMAGE = [
"docling-extract-text",
"mistral-ocr",
+ "mistral-ocr-2503",
+ "mistral-ocr-2505",
+ "mistral-ocr-2512",
]
ALL_EXTRACT_HANDLES: list[str] = list(set(EXTRACT_HANDLE_FROM_PDF + EXTRACT_HANDLE_FROM_IMAGE))
@@ -95,3 +103,36 @@ def extract_choice_for_pdf(request: pytest.FixtureRequest) -> str:
def extract_choice_for_image(request: pytest.FixtureRequest) -> str:
assert isinstance(request.param, str)
return request.param
+
+
+ params=[
+ ExtractJobParams(
+ should_include_images=True,
+ should_caption_images=False,
+ should_include_page_views=False,
+ page_views_dpi=72,
+ max_nb_images=None,
+ image_min_size=None,
+ ),
+ ExtractJobParams(
+ should_include_images=True,
+ should_caption_images=True,
+ should_include_page_views=False,
+ page_views_dpi=72,
+ max_nb_images=10,
+ image_min_size=100,
+ ),
+ ExtractJobParams(
+ should_include_images=False,
+ should_caption_images=False,
+ should_include_page_views=True,
+ page_views_dpi=150,
+ max_nb_images=None,
+ image_min_size=None,
+ ),
+ ],
+)
+def extract_job_params(request: pytest.FixtureRequest) -> ExtractJobParams:
+ assert isinstance(request.param, ExtractJobParams)
+ return request.param
diff --git a/tests/integration/pipelex/fixtures/generator_fixtures.py b/tests/integration/pipelex/fixtures/generator_fixtures.py
new file mode 100644
index 000000000..918838a50
--- /dev/null
+++ b/tests/integration/pipelex/fixtures/generator_fixtures.py
@@ -0,0 +1,21 @@
+from pathlib import Path
+
+import pytest
+
+from pipelex.cogt.content_generation.content_generator import ContentGenerator
+from pipelex.cogt.content_generation.content_generator_protocol import ContentGeneratorProtocol
+from pipelex.cogt.content_generation.generated_content_factory import GeneratedContentFactory
+from pipelex.tools.storage.local_storage_provider import LocalStorageProvider
+
+
+def generated_content_factory(tmp_path: Path) -> GeneratedContentFactory:
+ """Create a GeneratedContentFactory with a local storage provider."""
+ storage_provider = LocalStorageProvider(root_path=tmp_path)
+ return GeneratedContentFactory(storage_provider=storage_provider)
+
+
+def content_generator(generated_content_factory: GeneratedContentFactory) -> ContentGeneratorProtocol:
+ """Provide a ContentGeneratorProtocol instance for testing."""
+ return ContentGenerator(generated_content_factory=generated_content_factory)
diff --git a/tests/integration/pipelex/fixtures/img_gen_fixtures.py b/tests/integration/pipelex/fixtures/img_gen_fixtures.py
index 7ed18c122..4bbbc7c45 100644
--- a/tests/integration/pipelex/fixtures/img_gen_fixtures.py
+++ b/tests/integration/pipelex/fixtures/img_gen_fixtures.py
@@ -2,8 +2,9 @@
import pytest
-from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, ImgGenJobParams, OutputFormat, Quality
+from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, ImgGenJobParams, Quality
from pipelex.hub import get_model_deck
+from pipelex.tools.misc.image_utils import ImageFormat
from tests.integration.pipelex.fixtures.routing_fixtures import ALL_BACKENDS, check_backend_supports_model
@@ -49,12 +50,18 @@ GOOGLE_IMG_GEN_MODELS = [
"nano-banana-pro",
]
+# --- Qwen Models --------------------------------------------------------------------------
+QWEN_IMG_GEN_MODELS = [
+ "qwen-image",
+]
+
# --- All Image Generation Handles ---------------------------------------------------------------
ALL_IMG_GEN_HANDLES = [
- *STABLE_DIFFUSION_IMG_GEN_MODELS,
*FAL_IMG_GEN_MODELS,
- *OPENAI_IMG_GEN_MODELS,
*GOOGLE_IMG_GEN_MODELS,
+ *OPENAI_IMG_GEN_MODELS,
+ *QWEN_IMG_GEN_MODELS,
+ *STABLE_DIFFUSION_IMG_GEN_MODELS,
]
@@ -76,13 +83,33 @@ def img_gen_handle(request: pytest.FixtureRequest) -> str:
ImgGenJobParams(
aspect_ratio=AspectRatio.SQUARE,
background=Background.OPAQUE,
- quality=Quality.LOW,
- guidance_scale=3.5,
+ nb_steps=10,
+ guidance_scale=2.5,
+ is_moderated=None,
+ safety_tolerance=1,
+ is_raw=None,
+ output_format=ImageFormat.PNG,
+ ),
+ ImgGenJobParams(
+ aspect_ratio=AspectRatio.PORTRAIT_9_16,
+ background=Background.OPAQUE,
+ quality=Quality.MEDIUM,
+ guidance_scale=2.5,
+ is_moderated=None,
+ safety_tolerance=1,
+ is_raw=None,
+ output_format=ImageFormat.JPEG,
+ ),
+ ImgGenJobParams(
+ aspect_ratio=AspectRatio.LANDSCAPE_3_2,
+ background=Background.OPAQUE,
+ quality=Quality.HIGH,
+ guidance_scale=2.5,
is_moderated=None,
safety_tolerance=1,
is_raw=None,
- output_format=OutputFormat.JPG,
- )
+ output_format=ImageFormat.PNG,
+ ),
],
)
def img_gen_job_params(request: pytest.FixtureRequest) -> ImgGenJobParams:
diff --git a/tests/integration/pipelex/fixtures/llm_fixtures.py b/tests/integration/pipelex/fixtures/llm_fixtures.py
index 85ef83d01..49baf501b 100644
--- a/tests/integration/pipelex/fixtures/llm_fixtures.py
+++ b/tests/integration/pipelex/fixtures/llm_fixtures.py
@@ -81,6 +81,7 @@ GOOGLE_MODELS = [
"gemini-2.5-flash-lite",
"gemini-2.5-pro",
"gemini-3.0-pro",
+ "gemini-3.0-flash-preview",
]
# --- Groq Models --------------------------------------------------------------------------------
@@ -236,8 +237,6 @@ def llm_preset_id(request: pytest.FixtureRequest) -> str:
llm_preset_id_param = request.param
if not is_llm_preset_supported(llm_preset_id=llm_preset_id_param):
pytest.skip(f"LLM preset '{llm_preset_id_param}' not supported by any enabled backend")
- # if not is_llm_preset_supported_by_enabled_backends(llm_preset_id=llm_preset_id_param):
- # pytest.skip(f"LLM preset '{llm_preset_id_param}' not supported by any enabled backend")
return llm_preset_id_param
diff --git a/tests/integration/pipelex/fixtures/routing_fixtures.py b/tests/integration/pipelex/fixtures/routing_fixtures.py
index 07ad8af9b..851dabc82 100644
--- a/tests/integration/pipelex/fixtures/routing_fixtures.py
+++ b/tests/integration/pipelex/fixtures/routing_fixtures.py
@@ -28,6 +28,7 @@ ALL_BACKENDS = [
"fal",
"google",
"groq",
+ "huggingface",
"mistral",
"ollama",
"openai",
diff --git a/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_simple.py b/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_simple.py
index 3adda78b5..35031cff2 100644
--- a/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_simple.py
+++ b/tests/integration/pipelex/pipes/controller/pipe_batch/test_pipe_batch_simple.py
@@ -29,6 +29,7 @@ class TestPipeBatchSimple:
async def test_simple_batch_processing(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
load_test_library: Callable[[list[Path]], None],
):
@@ -105,7 +106,7 @@ class TestPipeBatchSimple:
# Actually run the PipeBatch pipe
pipe_output = await pipe_batch.run_pipe( # pyright: ignore[reportPrivateUsage]
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
working_memory=working_memory,
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
output_name="batch_result",
diff --git a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_complex.py b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_complex.py
index b719f6dac..460512ffd 100644
--- a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_complex.py
+++ b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_complex.py
@@ -29,7 +29,9 @@ from tests.integration.pipelex.pipes.controller.pipe_condition.pipe_condition_co
@pytest.mark.llm
@pytest.mark.asyncio(loop_scope="class")
class TestPipeConditionComplex:
- async def test_technical_urgent_routing(self, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]):
+ async def test_technical_urgent_routing(
+ self, job_metadata: JobMetadata, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]
+ ):
"""Test technical document with urgent priority routing."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_condition")])
# Create complex input data
@@ -65,7 +67,7 @@ class TestPipeConditionComplex:
pipe=get_required_pipe(pipe_code="complex_document_processor"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
@@ -80,7 +82,9 @@ class TestPipeConditionComplex:
if pipe_run_mode != PipeRunMode.DRY:
assert "URGENT_TECHNICAL_PROCESSED" in final_result.content.text
- async def test_business_finance_routing(self, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]):
+ async def test_business_finance_routing(
+ self, job_metadata: JobMetadata, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]
+ ):
"""Test business document for finance department routing."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_condition")])
doc_request = DocumentRequest(document_type="business", priority="normal", language="english", complexity="medium")
@@ -114,7 +118,7 @@ class TestPipeConditionComplex:
pipe=get_required_pipe(pipe_code="complex_document_processor"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
@@ -126,7 +130,9 @@ class TestPipeConditionComplex:
assert isinstance(final_result.content, TextContent)
assert "FINANCE_BUSINESS_PROCESSED" in final_result.content.text
- async def test_legal_complex_routing(self, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]):
+ async def test_legal_complex_routing(
+ self, job_metadata: JobMetadata, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]
+ ):
"""Test complex legal document routing."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_condition")])
doc_request = DocumentRequest(document_type="legal", priority="normal", language="spanish", complexity="high")
@@ -160,7 +166,7 @@ class TestPipeConditionComplex:
pipe=get_required_pipe(pipe_code="complex_document_processor"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
@@ -172,7 +178,9 @@ class TestPipeConditionComplex:
assert isinstance(final_result.content, TextContent)
assert "COMPLEX_LEGAL_PROCESSED" in final_result.content.text
- async def test_technical_expert_high_complexity_routing(self, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]):
+ async def test_technical_expert_high_complexity_routing(
+ self, job_metadata: JobMetadata, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]
+ ):
"""Test technical document with expert user and high complexity."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_condition")])
doc_request = DocumentRequest(
@@ -214,7 +222,7 @@ class TestPipeConditionComplex:
pipe=get_required_pipe(pipe_code="complex_document_processor"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
@@ -227,7 +235,7 @@ class TestPipeConditionComplex:
assert "EXPERT_TECHNICAL_PROCESSED" in final_result.content.text
# DRY RUN TESTS
- async def test_complex_pipeline_dry_run_success(self, load_test_library: Callable[[list[Path]], None]):
+ async def test_complex_pipeline_dry_run_success(self, job_metadata: JobMetadata, load_test_library: Callable[[list[Path]], None]):
"""Test complex pipeline dry run with valid inputs - should succeed."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_condition")])
doc_request = DocumentRequest(document_type="business", priority="urgent", language="english", complexity="low")
@@ -261,7 +269,7 @@ class TestPipeConditionComplex:
pipe=get_required_pipe(pipe_code="complex_document_processor"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=PipeRunMode.DRY),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
@@ -270,7 +278,7 @@ class TestPipeConditionComplex:
assert pipe_output is not None
assert pipe_output.working_memory is not None
- async def test_complex_pipeline_dry_run_missing_inputs(self, load_test_library: Callable[[list[Path]], None]):
+ async def test_complex_pipeline_dry_run_missing_inputs(self, job_metadata: JobMetadata, load_test_library: Callable[[list[Path]], None]):
"""Test complex pipeline dry run with missing inputs - should fail with PipeRouterError."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_condition")])
doc_request = DocumentRequest(document_type="technical", priority="urgent", language="english", complexity="high")
@@ -294,7 +302,7 @@ class TestPipeConditionComplex:
pipe=get_required_pipe(pipe_code="complex_document_processor"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=PipeRunMode.DRY),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
@@ -325,6 +333,7 @@ class TestPipeConditionComplex:
)
async def test_complex_routing_scenarios_dry_run(
self,
+ job_metadata: JobMetadata,
doc_type: Literal["technical", "business", "legal"],
priority: Literal["urgent", "normal", "low"],
user_level: Literal["beginner", "intermediate", "expert"],
@@ -375,7 +384,7 @@ class TestPipeConditionComplex:
pipe=get_required_pipe(pipe_code="complex_document_processor"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
diff --git a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_continue_output_type.py b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_continue_output_type.py
index 7093cfbf8..69c6dcfd5 100644
--- a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_continue_output_type.py
+++ b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_continue_output_type.py
@@ -36,6 +36,7 @@ class TestPipeConditionContinueOutputType:
async def test_batch_with_mixed_verdicts(
self,
+ job_metadata: JobMetadata,
load_test_library: Callable[[list[Path]], None],
pipe_run_mode: PipeRunMode,
):
@@ -83,7 +84,7 @@ class TestPipeConditionContinueOutputType:
pipe=get_required_pipe(pipe_code="process_verified_links"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
diff --git a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_simple.py b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_simple.py
index 1740588c1..7a35177bb 100644
--- a/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_simple.py
+++ b/tests/integration/pipelex/pipes/controller/pipe_condition/test_pipe_condition_simple.py
@@ -28,7 +28,9 @@ from tests.integration.pipelex.pipes.controller.pipe_condition.pipe_condition im
@pytest.mark.inference
@pytest.mark.asyncio(loop_scope="class")
class TestPipeConditionSimple:
- async def test_condition_long_text_processing(self, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]):
+ async def test_condition_long_text_processing(
+ self, job_metadata: JobMetadata, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]
+ ):
"""Test PipeCondition with long text that should trigger capitalize_long_text pipe."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_condition")])
pipe_condition_blueprint = PipeConditionBlueprint(
@@ -63,7 +65,7 @@ class TestPipeConditionSimple:
assert input_text.content.text == "hello world"
pipe_output = await pipe_condition.run_pipe(
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
working_memory=working_memory,
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
)
@@ -101,7 +103,9 @@ class TestPipeConditionSimple:
== f"{SpecialDomain.NATIVE}.{NativeConceptCode.TEXT}"
)
- async def test_condition_short_text_processing(self, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]):
+ async def test_condition_short_text_processing(
+ self, job_metadata: JobMetadata, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]
+ ):
"""Test PipeCondition with short text that should trigger add_prefix_short_text pipe."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_condition")])
# Create PipeCondition instance - pipes are loaded from PLX files
@@ -137,7 +141,7 @@ class TestPipeConditionSimple:
# Actually run the PipeCondition pipe
pipe_output = await pipe_condition.run_pipe(
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
working_memory=working_memory,
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
)
@@ -175,7 +179,7 @@ class TestPipeConditionSimple:
== f"{SpecialDomain.NATIVE}.{NativeConceptCode.TEXT}"
)
- async def test_condition_dry_run_success(self, load_test_library: Callable[[list[Path]], None]):
+ async def test_condition_dry_run_success(self, job_metadata: JobMetadata, load_test_library: Callable[[list[Path]], None]):
"""Test PipeCondition dry run with valid inputs using real pipe - should succeed."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_condition")])
# Create test data using CategoryInput for the real pipe basic_condition_by_category_2
@@ -199,7 +203,7 @@ class TestPipeConditionSimple:
pipe=get_required_pipe(pipe_code="basic_condition_by_category_2"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=PipeRunMode.DRY),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
pretty_print(pipe_output)
@@ -222,7 +226,7 @@ class TestPipeConditionSimple:
assert isinstance(original_input.content, CategoryInput)
assert original_input.content.category == "small"
- async def test_condition_dry_run_missing_inputs_failure(self, load_test_library: Callable[[list[Path]], None]):
+ async def test_condition_dry_run_missing_inputs_failure(self, job_metadata: JobMetadata, load_test_library: Callable[[list[Path]], None]):
"""Test PipeCondition dry run with missing inputs using real pipe - should fail with PipeRouterError."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_condition")])
# Create empty working memory - missing required input
@@ -235,7 +239,7 @@ class TestPipeConditionSimple:
pipe=get_required_pipe(pipe_code="basic_condition_by_category_2"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=PipeRunMode.DRY),
working_memory=empty_working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
@@ -250,7 +254,7 @@ class TestPipeConditionSimple:
assert cause.missing_inputs is not None
assert "input_data" in cause.missing_inputs
- async def test_condition_dry_run_medium_category_validation(self, load_test_library: Callable[[list[Path]], None]):
+ async def test_condition_dry_run_medium_category_validation(self, job_metadata: JobMetadata, load_test_library: Callable[[list[Path]], None]):
"""Test PipeCondition dry run with medium category - should validate the 'medium' branch."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_condition")])
# Create test data using CategoryInput for the medium category
@@ -274,7 +278,7 @@ class TestPipeConditionSimple:
pipe=get_required_pipe(pipe_code="basic_condition_by_category_2"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=PipeRunMode.DRY),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
diff --git a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_simple.py b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_simple.py
index b9006bc17..392f1bbaa 100644
--- a/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_simple.py
+++ b/tests/integration/pipelex/pipes/controller/pipe_parallel/test_pipe_parallel_simple.py
@@ -22,7 +22,9 @@ from pipelex.pipeline.job_metadata import JobMetadata
@pytest.mark.inference
@pytest.mark.asyncio(loop_scope="class")
class TestPipeParallelSimple:
- async def test_parallel_text_analysis(self, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]):
+ async def test_parallel_text_analysis(
+ self, job_metadata: JobMetadata, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]
+ ):
"""Test PipeParallel running three text analysis pipes in parallel."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_parallel")])
# Create PipeParallel instance - pipes are loaded from PLX files
@@ -77,7 +79,7 @@ class TestPipeParallelSimple:
# Actually run the PipeParallel pipe
pipe_output = await pipe_parallel.run_pipe(
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
working_memory=working_memory,
output_name="parallel_results",
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
@@ -139,7 +141,9 @@ class TestPipeParallelSimple:
assert isinstance(final_result.content, TextContent)
assert final_result.content.text == "The weather is beautiful today. I love sunny days and outdoor activities."
- async def test_parallel_short_text_analysis(self, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]):
+ async def test_parallel_short_text_analysis(
+ self, job_metadata: JobMetadata, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]
+ ):
"""Test PipeParallel with shorter text to verify consistent behavior."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_parallel")])
# Create PipeParallel instance
@@ -172,7 +176,7 @@ class TestPipeParallelSimple:
# Actually run the PipeParallel pipe
pipe_output = await pipe_parallel.run_pipe(
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
working_memory=working_memory,
output_name="parallel_results",
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
diff --git a/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_dry_run.py b/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_dry_run.py
index 8307d804a..7d611c0b9 100644
--- a/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_dry_run.py
+++ b/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_dry_run.py
@@ -28,6 +28,7 @@ if TYPE_CHECKING:
class TestPipeSequenceDryRun:
async def test_discord_newsletter(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
load_test_library: Callable[[list[Path]], None],
) -> None:
@@ -61,7 +62,7 @@ class TestPipeSequenceDryRun:
pipe=get_required_pipe(pipe_code="write_discord_newsletter"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
diff --git a/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_simple.py b/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_simple.py
index 688793eb9..aef775465 100644
--- a/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_simple.py
+++ b/tests/integration/pipelex/pipes/controller/pipe_sequence/test_pipe_sequence_simple.py
@@ -26,7 +26,9 @@ from pipelex.pipeline.job_metadata import JobMetadata
class TestPipeSequenceSimple:
"""Simple integration test for PipeSequence controller."""
- async def test_simple_sequence_processing(self, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]):
+ async def test_simple_sequence_processing(
+ self, job_metadata: JobMetadata, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]
+ ):
"""Test PipeSequence with a simple 2-step text transformation scenario."""
load_test_library([Path("tests/integration/pipelex/pipes/controller/pipe_sequence")])
domain_code = "test_integration"
@@ -88,7 +90,7 @@ class TestPipeSequenceSimple:
# Actually run the PipeSequence pipe
pipe_output = await pipe_sequence.run_pipe(
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
working_memory=working_memory,
output_name="sequence_result",
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
diff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/__init__.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/compose_structured_models.plx b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/compose_structured_models.plx
new file mode 100644
index 000000000..0d71378cf
--- /dev/null
+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/compose_structured_models.plx
@@ -0,0 +1,54 @@
+domain = "compose_structured_test"
+description = "Concepts for testing PipeCompose with construct (StructuredContent output)"
+
+[concept]
+Address = "Address for nested structure testing"
+Deal = "Deal for working memory input testing"
+SalesSummary = "Sales summary for construct composition testing"
+SimpleReport = "Simple report for fixed value testing"
+Company = "Company with nested address for testing nested composition"
+Order = "Order for invoice testing"
+Customer = "Customer for invoice testing"
+InvoiceDocument = "Invoice document for nested construct testing"
+
+# Content type conversion testing concepts
+MarkdownText = "TextContent subclass with format metadata"
+ReportWithStrField = "Report with str field for TextContent to str conversion"
+ReportWithTextContent = "Report with TextContent field to keep TextContent object"
+ReportWithMarkdown = "Report with MarkdownText field to keep subclass object"
+TeamMember = "Team member for list testing"
+TeamReport = "Team report with list[TeamMember] field for list extraction"
+TeamReportWithListContent = "Team report with ListContent field to keep ListContent object"
+
+# Subclassing and class equivalence testing concepts
+RichTextContent = "TextContent subclass with formatting metadata"
+ReportWithBaseTextContent = "Report expecting base TextContent accepts subclasses"
+Person = "Person model for class equivalence testing"
+Employee = "Employee model structurally equivalent to Person"
+Manager = "Manager subclass of Person with extra field"
+TeamWithPersons = "Team expecting list[Person] tests item subclassing"
+TeamWithEmployees = "Team expecting list[Employee] tests item class equivalence"
+TeamWithListContentPersons = "Team expecting ListContent[Person] tests item subclassing"
+Product = "Product model for mixed list testing"
+DiscountedProduct = "Product subclass with discount field"
+Catalog = "Catalog expecting list[Product] tests subclass items"
+
+# Direct StructuredContent object composition testing concepts
+PersonHolder = "Container with Person field for direct object composition"
+EmployeeHolder = "Container with Employee field for class equivalence"
+ManagerHolder = "Container with Manager field for subclass testing"
+Location = "Location model with different fields than Person/Employee"
+LocationHolder = "Container with Location field for incompatible class testing"
+
+# StuffContent subclass testing concepts (ImageContent, PDFContent, etc.)
+ImageGallery = "Gallery with ImageContent fields"
+DocumentArchive = "Archive with PDFContent fields"
+Metrics = "Metrics container with NumberContent fields"
+PageReport = "Report containing PageContent"
+CodeSnippet = "Container for MermaidContent"
+WebContent = "Container for HtmlContent"
+DataPayload = "Container for JSONContent"
+MixedMediaReport = "Report with multiple StuffContent types"
+ImageListGallery = "Gallery with a list of ImageContent"
+DocumentBundle = "Bundle with a list of PDFContent"
+
diff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/models_for_pipe_compose.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/models_for_pipe_compose.py
new file mode 100644
index 000000000..1d265df5c
--- /dev/null
+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/models_for_pipe_compose.py
@@ -0,0 +1,331 @@
+"""Test StructuredContent models for PipeCompose construct testing."""
+
+from pydantic import Field
+
+from pipelex.core.stuffs.html_content import HtmlContent
+from pipelex.core.stuffs.image_content import ImageContent
+from pipelex.core.stuffs.json_content import JSONContent
+from pipelex.core.stuffs.list_content import ListContent
+from pipelex.core.stuffs.mermaid_content import MermaidContent
+from pipelex.core.stuffs.number_content import NumberContent
+from pipelex.core.stuffs.page_content import PageContent
+from pipelex.core.stuffs.pdf_content import PDFContent
+from pipelex.core.stuffs.structured_content import StructuredContent
+from pipelex.core.stuffs.text_content import TextContent
+
+
+class Address(StructuredContent):
+ """Address for nested structure testing."""
+
+ street: str = Field(description="Street address")
+ city: str = Field(description="City name")
+ country: str = Field(description="Country name")
+
+
+class Deal(StructuredContent):
+ """Deal for working memory input testing."""
+
+ customer_name: str = Field(description="Customer name")
+ amount: float = Field(description="Deal amount")
+
+
+class SalesSummary(StructuredContent):
+ """Sales summary for construct composition testing."""
+
+ report_title: str = Field(description="Title of the report")
+ customer_name: str = Field(description="Customer name")
+ deal_value: float = Field(description="Deal value")
+ summary_text: str = Field(description="Generated summary text")
+
+
+class SimpleReport(StructuredContent):
+ """Simple report for fixed value testing."""
+
+ title: str = Field(description="Report title")
+ author: str = Field(description="Author name")
+ score: float = Field(description="Report score")
+
+
+class Company(StructuredContent):
+ """Company with nested address for testing nested composition."""
+
+ name: str = Field(description="Company name")
+ headquarters: Address = Field(description="Company headquarters")
+
+
+class Order(StructuredContent):
+ """Order for invoice testing."""
+
+ order_id: str = Field(description="Order ID")
+ total_amount: float = Field(description="Total order amount")
+
+
+class Customer(StructuredContent):
+ """Customer for invoice testing."""
+
+ name: str = Field(description="Customer name")
+ address: Address = Field(description="Customer address")
+
+
+class InvoiceDocument(StructuredContent):
+ """Invoice document for nested construct testing."""
+
+ invoice_number: str = Field(description="Invoice number")
+ total: float = Field(description="Total amount")
+ billing_address: Address = Field(description="Billing address")
+
+
+# ============================================================================
+# Models for content type conversion testing
+# ============================================================================
+
+
+class MarkdownText(TextContent):
+ """A TextContent subclass with additional metadata for format tracking."""
+
+ format_type: str = Field(default="markdown", description="The text format type")
+
+
+class ReportWithStrField(StructuredContent):
+ """Report with a str field - should receive TextContent.text extracted."""
+
+ title: str = Field(description="Report title as plain string")
+ author: str = Field(description="Author name as plain string")
+
+
+class ReportWithTextContent(StructuredContent):
+ """Report with TextContent field - should receive TextContent object as-is."""
+
+ title_content: TextContent = Field(description="Report title as TextContent object")
+ description: str = Field(description="Additional description")
+
+
+class ReportWithMarkdown(StructuredContent):
+ """Report with MarkdownText field - should receive MarkdownText subclass object as-is."""
+
+ markdown_content: MarkdownText = Field(description="Markdown content as MarkdownText object")
+ summary: str = Field(description="Plain text summary")
+
+
+class TeamMember(StructuredContent):
+ """Team member for list testing."""
+
+ name: str = Field(description="Member name")
+ role: str = Field(description="Member role")
+
+
+class TeamReport(StructuredContent):
+ """Team report with list[TeamMember] field - should receive extracted list items."""
+
+ team_name: str = Field(description="Name of the team")
+ members: list[TeamMember] = Field(description="List of team members")
+
+
+class TeamReportWithListContent(StructuredContent):
+ """Team report with ListContent field - should receive ListContent object as-is."""
+
+ team_name: str = Field(description="Name of the team")
+ members_list: ListContent[TeamMember] = Field(description="Team members as ListContent object")
+
+
+# ============================================================================
+# Models for subclassing and class equivalence testing
+# ============================================================================
+
+
+class RichTextContent(TextContent):
+ """TextContent subclass with formatting metadata."""
+
+ bold: bool = Field(default=False, description="Whether the text is bold")
+ italic: bool = Field(default=False, description="Whether the text is italic")
+
+
+class ReportWithBaseTextContent(StructuredContent):
+ """Report expecting base TextContent, should accept TextContent subclasses."""
+
+ content: TextContent = Field(description="Text content (accepts subclasses)")
+ note: str = Field(description="Additional note")
+
+
+class Person(StructuredContent):
+ """Person model for class equivalence testing."""
+
+ name: str = Field(description="Person's name")
+ role: str = Field(description="Person's role")
+
+
+class Employee(StructuredContent):
+ """Employee model - structurally equivalent to Person (same fields)."""
+
+ name: str = Field(description="Employee name")
+ role: str = Field(description="Employee role")
+
+
+class Manager(Person):
+ """Manager subclass of Person with extra field."""
+
+ department: str = Field(description="Department managed")
+
+
+class TeamWithPersons(StructuredContent):
+ """Team expecting list[Person], tests item subclassing."""
+
+ team_name: str = Field(description="Name of the team")
+ members: list[Person] = Field(description="List of persons")
+
+
+class TeamWithEmployees(StructuredContent):
+ """Team expecting list[Employee], tests item class equivalence."""
+
+ team_name: str = Field(description="Name of the team")
+ members: list[Employee] = Field(description="List of employees")
+
+
+class TeamWithListContentPersons(StructuredContent):
+ """Team expecting ListContent[Person], tests item subclassing in ListContent."""
+
+ team_name: str = Field(description="Name of the team")
+ members: ListContent[Person] = Field(description="ListContent of persons")
+
+
+class Product(StructuredContent):
+ """Product model for mixed list testing."""
+
+ sku: str = Field(description="Product SKU")
+ price: float = Field(description="Product price")
+
+
+class DiscountedProduct(Product):
+ """Product subclass with discount field."""
+
+ discount_percent: float = Field(description="Discount percentage")
+
+
+class Catalog(StructuredContent):
+ """Catalog expecting list[Product], tests subclass items."""
+
+ catalog_name: str = Field(description="Catalog name")
+ products: list[Product] = Field(description="List of products")
+
+
+# ============================================================================
+# Models for direct StructuredContent object composition testing
+# These test cases where FROM_VAR returns a StructuredContent object directly
+# (not TextContent, not ListContent) and the target field expects a different type.
+# ============================================================================
+
+
+class PersonHolder(StructuredContent):
+ """Container with a Person field, tests direct StructuredContent object composition."""
+
+ holder_name: str = Field(description="Name of the holder")
+ person: Person = Field(description="The held person")
+
+
+class EmployeeHolder(StructuredContent):
+ """Container with an Employee field, tests class equivalence for direct objects."""
+
+ holder_name: str = Field(description="Name of the holder")
+ employee: Employee = Field(description="The held employee")
+
+
+class ManagerHolder(StructuredContent):
+ """Container with a Manager field, tests subclass for direct objects."""
+
+ holder_name: str = Field(description="Name of the holder")
+ manager: Manager = Field(description="The held manager")
+
+
+class Location(StructuredContent):
+ """Location model with different fields than Person/Employee."""
+
+ latitude: float = Field(description="Latitude coordinate")
+ longitude: float = Field(description="Longitude coordinate")
+ name: str = Field(description="Location name")
+
+
+class LocationHolder(StructuredContent):
+ """Container with a Location field, tests incompatible class conversion."""
+
+ holder_name: str = Field(description="Name of the holder")
+ location: Location = Field(description="The held location")
+
+
+# ============================================================================
+# Models for StuffContent subclass testing (ImageContent, PDFContent, etc.)
+# ============================================================================
+
+
+class ImageGallery(StructuredContent):
+ """Gallery with ImageContent fields."""
+
+ gallery_name: str = Field(description="Name of the gallery")
+ cover_image: ImageContent = Field(description="Cover image for the gallery")
+ featured_image: ImageContent | None = Field(default=None, description="Optional featured image")
+
+
+class DocumentArchive(StructuredContent):
+ """Archive with PDFContent fields."""
+
+ archive_name: str = Field(description="Name of the archive")
+ main_document: PDFContent = Field(description="Main PDF document")
+ supplementary_doc: PDFContent | None = Field(default=None, description="Optional supplementary document")
+
+
+class Metrics(StructuredContent):
+ """Metrics container with NumberContent fields."""
+
+ metric_name: str = Field(description="Name of the metric set")
+ primary_value: NumberContent = Field(description="Primary metric value")
+ secondary_value: NumberContent | None = Field(default=None, description="Optional secondary value")
+
+
+class PageReport(StructuredContent):
+ """Report containing PageContent."""
+
+ report_title: str = Field(description="Title of the report")
+ main_page: PageContent = Field(description="Main page content")
+
+
+class CodeSnippet(StructuredContent):
+ """Container for MermaidContent."""
+
+ snippet_name: str = Field(description="Name of the snippet")
+ diagram: MermaidContent = Field(description="Mermaid diagram content")
+
+
+class WebContent(StructuredContent):
+ """Container for HtmlContent."""
+
+ content_title: str = Field(description="Title of the web content")
+ html_block: HtmlContent = Field(description="HTML content block")
+
+
+class DataPayload(StructuredContent):
+ """Container for JSONContent."""
+
+ payload_name: str = Field(description="Name of the data payload")
+ data: JSONContent = Field(description="JSON data content")
+
+
+class MixedMediaReport(StructuredContent):
+ """Report with multiple StuffContent types."""
+
+ report_title: str = Field(description="Report title")
+ cover_image: ImageContent = Field(description="Cover image")
+ document: PDFContent = Field(description="Associated PDF document")
+ view_count: NumberContent = Field(description="View count metric")
+
+
+class ImageListGallery(StructuredContent):
+ """Gallery with a list of ImageContent."""
+
+ gallery_name: str = Field(description="Gallery name")
+ images: list[ImageContent] = Field(description="List of images")
+
+
+class DocumentBundle(StructuredContent):
+ """Bundle with a list of PDFContent."""
+
+ bundle_name: str = Field(description="Bundle name")
+ documents: list[PDFContent] = Field(description="List of PDF documents")
diff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_data.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_data.py
new file mode 100644
index 000000000..16165b53a
--- /dev/null
+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_data.py
@@ -0,0 +1,218 @@
+"""Test data for PipeCompose structured content integration tests.
+
+Contains construct blueprint dictionaries used across multiple test modules.
+"""
+
+from typing import Any, ClassVar
+
+
+class ComposeStructuredTestData:
+ """Test data for PipeCompose construct integration tests."""
+
+ # Test case: all fixed values
+ FIXED_ONLY_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "title": "Annual Report",
+ "author": "John Doe",
+ "score": 95.5,
+ }
+
+ # Test case: mix of fixed values and variable references
+ MIXED_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "report_title": "Monthly Sales Report",
+ "customer_name": {"from": "deal.customer_name"},
+ "deal_value": {"from": "deal.amount"},
+ "summary_text": {"template": "Deal worth $deal.amount with $deal.customer_name"},
+ }
+
+ # Test case: nested construct
+ NESTED_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "name": {"from": "company_name"},
+ "headquarters": {
+ "street": {"from": "addr.street"},
+ "city": {"from": "addr.city"},
+ "country": "France",
+ },
+ }
+
+
+class ContentConversionTestData:
+ """Test data for content type conversion tests."""
+
+ # Test case: TextContent to str field
+ TEXT_TO_STR_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "title": {"from": "title_text"},
+ "author": "Test Author",
+ }
+
+ # Test case: TextContent to TextContent field
+ TEXT_TO_TEXT_CONTENT_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "title_content": {"from": "title_text"},
+ "description": "A description",
+ }
+
+ # Test case: MarkdownText (TextContent subclass) to MarkdownText field
+ MARKDOWN_TO_MARKDOWN_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "markdown_content": {"from": "markdown_input"},
+ "summary": "Plain text summary",
+ }
+
+ # Test case: ListContent to list[TeamMember] field
+ LIST_TO_LIST_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "team_name": "Engineering Team",
+ "members": {"from": "team_members"},
+ }
+
+ # Test case: ListContent to ListContent field
+ LIST_TO_LIST_CONTENT_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "team_name": "Engineering Team",
+ "members_list": {"from": "team_members"},
+ }
+
+
+class ClassCompatibilityTestData:
+ """Test data for class compatibility tests."""
+
+ # Subclass to base class: RichTextContent -> TextContent field
+ SUBCLASS_TO_BASE_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "content": {"from": "rich_text"},
+ "note": "Testing subclass to base conversion",
+ }
+
+ # Class equivalence: list[Employee] items -> list[Person] field
+ # (Employee and Person have same structure)
+ EQUIVALENT_LIST_ITEMS_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "team_name": "Equivalent Team",
+ "members": {"from": "employees"},
+ }
+
+ # Subclass list items: list[Manager] -> list[Person] field
+ # (Manager is a subclass of Person)
+ SUBCLASS_LIST_ITEMS_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "team_name": "Manager Team",
+ "members": {"from": "managers"},
+ }
+
+ # Subclass list items in ListContent: ListContent[Manager] -> ListContent[Person]
+ SUBCLASS_LIST_CONTENT_ITEMS_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "team_name": "ListContent Manager Team",
+ "members": {"from": "managers_list"},
+ }
+
+ # Mixed subclass items: list[Product | DiscountedProduct] -> list[Product]
+ MIXED_SUBCLASS_ITEMS_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "catalog_name": "Mixed Products Catalog",
+ "products": {"from": "mixed_products"},
+ }
+
+
+class StructuredCompatibilityTestData:
+ """Test data for direct StructuredContent class compatibility tests."""
+
+ # Exact type match: Person -> PersonHolder.person field
+ EXACT_TYPE_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "holder_name": "Exact Type Holder",
+ "person": {"from": "input_person"},
+ }
+
+ # Class equivalence: Employee -> PersonHolder.person field
+ # Employee and Person have the same fields (name, role)
+ EQUIVALENT_CLASS_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "holder_name": "Equivalent Class Holder",
+ "person": {"from": "input_employee"},
+ }
+
+ # Reverse equivalence: Person -> EmployeeHolder.employee field
+ REVERSE_EQUIVALENT_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "holder_name": "Reverse Equivalent Holder",
+ "employee": {"from": "input_person"},
+ }
+
+ # Subclass to base: Manager -> PersonHolder.person field
+ SUBCLASS_TO_BASE_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "holder_name": "Subclass to Base Holder",
+ "person": {"from": "input_manager"},
+ }
+
+ # Incompatible classes: Location -> PersonHolder.person field (should fail)
+ INCOMPATIBLE_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "holder_name": "Incompatible Holder",
+ "person": {"from": "input_location"},
+ }
+
+
+class StuffContentSubclassTestData:
+ """Test data for StuffContent subclass composition tests (ImageContent, PDFContent, etc.)."""
+
+ # ImageContent composition
+ IMAGE_GALLERY_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "gallery_name": "Nature Gallery",
+ "cover_image": {"from": "cover"},
+ "featured_image": {"from": "featured"},
+ }
+
+ IMAGE_GALLERY_SINGLE_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "gallery_name": "Simple Gallery",
+ "cover_image": {"from": "cover"},
+ }
+
+ # PDFContent composition
+ DOCUMENT_ARCHIVE_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "archive_name": "Legal Documents Archive",
+ "main_document": {"from": "main_pdf"},
+ "supplementary_doc": {"from": "supplement_pdf"},
+ }
+
+ DOCUMENT_ARCHIVE_SINGLE_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "archive_name": "Contract Archive",
+ "main_document": {"from": "main_pdf"},
+ }
+
+ # NumberContent composition
+ METRICS_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "metric_name": "Performance Metrics",
+ "primary_value": {"from": "primary_metric"},
+ "secondary_value": {"from": "secondary_metric"},
+ }
+
+ METRICS_SINGLE_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "metric_name": "Simple Metric",
+ "primary_value": {"from": "primary_metric"},
+ }
+
+ # MermaidContent composition
+ CODE_SNIPPET_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "snippet_name": "Architecture Diagram",
+ "diagram": {"from": "mermaid_diagram"},
+ }
+
+ # HtmlContent composition
+ WEB_CONTENT_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "content_title": "Homepage Section",
+ "html_block": {"from": "html_content"},
+ }
+
+ # JSONContent composition
+ DATA_PAYLOAD_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "payload_name": "API Response",
+ "data": {"from": "json_data"},
+ }
+
+ # Mixed media composition (multiple StuffContent types)
+ MIXED_MEDIA_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "report_title": "Annual Report",
+ "cover_image": {"from": "cover"},
+ "document": {"from": "main_pdf"},
+ "view_count": {"from": "primary_metric"},
+ }
+
+ # List of ImageContent
+ IMAGE_LIST_GALLERY_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "gallery_name": "Photo Collection",
+ "images": {"from": "image_list"},
+ }
+
+ # List of PDFContent
+ DOCUMENT_BUNDLE_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "bundle_name": "Contract Bundle",
+ "documents": {"from": "pdf_list"},
+ }
diff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_class_compatibility.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_class_compatibility.py
new file mode 100644
index 000000000..056ac37e0
--- /dev/null
+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_class_compatibility.py
@@ -0,0 +1,366 @@
+"""Integration tests for PipeCompose class compatibility scenarios.
+
+These tests verify tricky cases involving:
+- Subclassing: TextContent subclasses, StructuredContent subclasses in lists
+- Class equivalence: structurally identical classes being converted
+- Item type conversions in lists: subclass items, equivalent items
+"""
+
+from pathlib import Path
+from typing import Callable
+
+import pytest
+
+from pipelex import pretty_print
+from pipelex.core.concepts.native.concept_native import NativeConceptCode
+from pipelex.core.memory.working_memory import WorkingMemory
+from pipelex.core.pipes.pipe_factory import PipeFactory
+from pipelex.core.stuffs.list_content import ListContent
+from pipelex.core.stuffs.stuff_factory import StuffFactory
+from pipelex.core.stuffs.text_content import TextContent
+from pipelex.hub import get_native_concept, get_pipe_router
+from pipelex.pipe_operators.compose.pipe_compose import PipeCompose
+from pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprint
+from pipelex.pipe_run.pipe_job_factory import PipeJobFactory
+from pipelex.pipe_run.pipe_run_params import PipeRunMode
+from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
+from pipelex.pipeline.job_metadata import JobMetadata
+from tests.integration.pipelex.pipes.operator.pipe_compose_structured.models_for_pipe_compose import (
+ DiscountedProduct,
+ Employee,
+ Manager,
+ Product,
+ RichTextContent,
+)
+from tests.integration.pipelex.pipes.operator.pipe_compose_structured.test_data import ClassCompatibilityTestData
+
+
[email protected](loop_scope="class")
+class TestPipeComposeClassCompatibility:
+ """Integration tests for class compatibility scenarios in PipeCompose."""
+
+ @pytest.fixture
+ def test_library_path(self) -> list[Path]:
+ """Path to the test library for these tests."""
+ return [Path("tests/integration/pipelex/pipes/operator/pipe_compose_structured")]
+
+ async def test_subclass_to_base_text_content(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that TextContent subclass is accepted when field expects base TextContent."""
+ load_test_library(test_library_path)
+
+ # Create working memory with RichTextContent (subclass of TextContent)
+ rich_text = RichTextContent(text="Bold and italic text", bold=True, italic=True)
+ rich_text_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=rich_text,
+ name="rich_text",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="rich_text", stuff=rich_text_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose report with base TextContent field from subclass",
+ "inputs": {"rich_text": "Text"},
+ "construct": ClassCompatibilityTestData.SUBCLASS_TO_BASE_CONSTRUCT,
+ "output": "compose_structured_test.ReportWithBaseTextContent",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_subclass_to_base",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "ReportWithBaseTextContent"
+
+ report = main_stuff.content
+ # The content field is TextContent, subclass RichTextContent should be accepted
+ assert isinstance(report.content, TextContent) # type: ignore[attr-defined]
+ assert report.content.text == "Bold and italic text" # type: ignore[attr-defined]
+ # Subclass-specific fields should be preserved
+ assert hasattr(report.content, "bold") # type: ignore[attr-defined]
+ assert report.content.bold is True # type: ignore[attr-defined]
+ assert report.note == "Testing subclass to base conversion" # type: ignore[attr-defined]
+
+ pretty_print(report, title="ReportWithBaseTextContent - RichTextContent to TextContent")
+
+ async def test_equivalent_class_list_items(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that structurally equivalent class items are converted in list[X]."""
+ load_test_library(test_library_path)
+
+ # Create working memory with ListContent[Employee]
+ # Employee has same fields as Person (name, role) - structurally equivalent
+ employees = ListContent[Employee](
+ items=[
+ Employee(name="Alice", role="Engineer"),
+ Employee(name="Bob", role="Designer"),
+ ]
+ )
+ employees_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=employees,
+ name="employees",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="employees", stuff=employees_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose team with list[Person] from structurally equivalent Employee items",
+ "inputs": {"employees": "Text"},
+ "construct": ClassCompatibilityTestData.EQUIVALENT_LIST_ITEMS_CONSTRUCT,
+ "output": "compose_structured_test.TeamWithPersons",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_equivalent_items",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "TeamWithPersons"
+
+ team = main_stuff.content
+ # The members field is list[Person], Employee items should be converted
+ assert isinstance(team.members, list) # type: ignore[attr-defined]
+ assert len(team.members) == 2 # type: ignore[attr-defined]
+ # Items should now be Person instances (rebuilt from Employee dicts)
+ assert type(team.members[0]).__name__ == "Person" # type: ignore[attr-defined]
+ assert team.members[0].name == "Alice" # type: ignore[attr-defined]
+ assert team.members[1].role == "Designer" # type: ignore[attr-defined]
+ assert team.team_name == "Equivalent Team" # type: ignore[attr-defined]
+
+ pretty_print(team, title="TeamWithPersons - Employee items to Person list")
+
+ async def test_subclass_list_items(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that subclass items are accepted when list expects base class."""
+ load_test_library(test_library_path)
+
+ # Create working memory with ListContent[Manager]
+ # Manager is a subclass of Person
+ managers = ListContent[Manager](
+ items=[
+ Manager(name="Carol", role="Director", department="Engineering"),
+ Manager(name="Dave", role="Lead", department="Design"),
+ ]
+ )
+ managers_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=managers,
+ name="managers",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="managers", stuff=managers_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose team with list[Person] from Manager subclass items",
+ "inputs": {"managers": "Text"},
+ "construct": ClassCompatibilityTestData.SUBCLASS_LIST_ITEMS_CONSTRUCT,
+ "output": "compose_structured_test.TeamWithPersons",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_subclass_items",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "TeamWithPersons"
+
+ team = main_stuff.content
+ # The members field is list[Person], Manager subclass items should be accepted
+ assert isinstance(team.members, list) # type: ignore[attr-defined]
+ assert len(team.members) == 2 # type: ignore[attr-defined]
+ # Items are rebuilt as Person (base class) from Manager dicts
+ assert team.members[0].name == "Carol" # type: ignore[attr-defined]
+ assert team.members[1].role == "Lead" # type: ignore[attr-defined]
+ assert team.team_name == "Manager Team" # type: ignore[attr-defined]
+
+ pretty_print(team, title="TeamWithPersons - Manager items to Person list")
+
+ async def test_subclass_list_content_items(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that subclass items are accepted when ListContent expects base class."""
+ load_test_library(test_library_path)
+
+ # Create working memory with ListContent[Manager]
+ managers = ListContent[Manager](
+ items=[
+ Manager(name="Eve", role="VP", department="Operations"),
+ Manager(name="Frank", role="Head", department="Sales"),
+ ]
+ )
+ managers_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=managers,
+ name="managers_list",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="managers_list", stuff=managers_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose team with ListContent[Person] from Manager subclass items",
+ "inputs": {"managers_list": "Text"},
+ "construct": ClassCompatibilityTestData.SUBCLASS_LIST_CONTENT_ITEMS_CONSTRUCT,
+ "output": "compose_structured_test.TeamWithListContentPersons",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_subclass_list_content_items",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "TeamWithListContentPersons"
+
+ team = main_stuff.content
+ # The members field is ListContent[Person], Manager items should be kept as objects
+ assert isinstance(team.members, ListContent) # type: ignore[attr-defined]
+ assert team.members.nb_items == 2 # type: ignore[attr-defined]
+ # Items should be Person objects (subclass Manager is compatible)
+ assert team.members.items[0].name == "Eve" # type: ignore[attr-defined]
+ assert team.members.items[1].role == "Head" # type: ignore[attr-defined]
+ assert team.team_name == "ListContent Manager Team" # type: ignore[attr-defined]
+
+ pretty_print(team, title="TeamWithListContentPersons - Manager items to ListContent[Person]")
+
+ async def test_mixed_subclass_items_in_list(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that mixed base and subclass items are accepted in list[BaseClass]."""
+ load_test_library(test_library_path)
+
+ # Create working memory with ListContent containing both Product and DiscountedProduct
+ mixed_products = ListContent[Product](
+ items=[
+ Product(sku="SKU001", price=99.99),
+ DiscountedProduct(sku="SKU002", price=149.99, discount_percent=20.0),
+ Product(sku="SKU003", price=49.99),
+ ]
+ )
+ products_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=mixed_products,
+ name="mixed_products",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="mixed_products", stuff=products_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose catalog with list[Product] from mixed Product and DiscountedProduct items",
+ "inputs": {"mixed_products": "Text"},
+ "construct": ClassCompatibilityTestData.MIXED_SUBCLASS_ITEMS_CONSTRUCT,
+ "output": "compose_structured_test.Catalog",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_mixed_subclass_items",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "Catalog"
+
+ catalog = main_stuff.content
+ # The products field is list[Product], both Product and DiscountedProduct should be accepted
+ assert isinstance(catalog.products, list) # type: ignore[attr-defined]
+ assert len(catalog.products) == 3 # type: ignore[attr-defined]
+ assert catalog.products[0].sku == "SKU001" # type: ignore[attr-defined]
+ assert catalog.products[0].price == 99.99 # type: ignore[attr-defined]
+ assert catalog.products[1].sku == "SKU002" # type: ignore[attr-defined]
+ assert catalog.products[2].price == 49.99 # type: ignore[attr-defined]
+ assert catalog.catalog_name == "Mixed Products Catalog" # type: ignore[attr-defined]
+
+ pretty_print(catalog, title="Catalog - Mixed Product/DiscountedProduct items")
diff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_content_conversions.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_content_conversions.py
new file mode 100644
index 000000000..beb94423a
--- /dev/null
+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_content_conversions.py
@@ -0,0 +1,339 @@
+"""Integration tests for PipeCompose content type conversions.
+
+These tests verify that PipeCompose correctly handles different content type conversions:
+- TextContent to str field (extract .text)
+- TextContent to TextContent field (keep object)
+- TextContent subclass to subclass field (keep object)
+- ListContent to list[X] field (extract items)
+- ListContent to ListContent field (keep object)
+"""
+
+from pathlib import Path
+from typing import Callable
+
+import pytest
+
+from pipelex import pretty_print
+from pipelex.core.concepts.native.concept_native import NativeConceptCode
+from pipelex.core.memory.working_memory import WorkingMemory
+from pipelex.core.pipes.pipe_factory import PipeFactory
+from pipelex.core.stuffs.list_content import ListContent
+from pipelex.core.stuffs.stuff_factory import StuffFactory
+from pipelex.core.stuffs.text_content import TextContent
+from pipelex.hub import get_native_concept, get_pipe_router
+from pipelex.pipe_operators.compose.pipe_compose import PipeCompose
+from pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprint
+from pipelex.pipe_run.pipe_job_factory import PipeJobFactory
+from pipelex.pipe_run.pipe_run_params import PipeRunMode
+from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
+from pipelex.pipeline.job_metadata import JobMetadata
+from tests.integration.pipelex.pipes.operator.pipe_compose_structured.models_for_pipe_compose import (
+ MarkdownText,
+ TeamMember,
+)
+from tests.integration.pipelex.pipes.operator.pipe_compose_structured.test_data import ContentConversionTestData
+
+
[email protected](loop_scope="class")
+class TestPipeComposeContentConversions:
+ """Integration tests for content type conversions in PipeCompose."""
+
+ @pytest.fixture
+ def test_library_path(self) -> list[Path]:
+ """Path to the test library for these tests."""
+ return [Path("tests/integration/pipelex/pipes/operator/pipe_compose_structured")]
+
+ async def test_compose_text_content_to_str_field(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that TextContent is converted to str when target field expects str."""
+ load_test_library(test_library_path)
+
+ # Create working memory with TextContent
+ title_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=TextContent(text="My Report Title"),
+ name="title_text",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="title_text", stuff=title_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose report with str field from TextContent",
+ "inputs": {"title_text": "Text"},
+ "construct": ContentConversionTestData.TEXT_TO_STR_CONSTRUCT,
+ "output": "compose_structured_test.ReportWithStrField",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_text_to_str",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "ReportWithStrField"
+
+ report = main_stuff.content
+ # The title field is str, so TextContent.text should be extracted
+ assert report.title == "My Report Title" # type: ignore[attr-defined]
+ assert isinstance(report.title, str) # type: ignore[attr-defined]
+ assert report.author == "Test Author" # type: ignore[attr-defined]
+
+ pretty_print(report, title="ReportWithStrField - TextContent to str")
+
+ async def test_compose_text_content_to_text_content_field(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that TextContent is kept as-is when target field expects TextContent."""
+ load_test_library(test_library_path)
+
+ # Create working memory with TextContent
+ title_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=TextContent(text="My Report Title"),
+ name="title_text",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="title_text", stuff=title_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose report with TextContent field from TextContent",
+ "inputs": {"title_text": "Text"},
+ "construct": ContentConversionTestData.TEXT_TO_TEXT_CONTENT_CONSTRUCT,
+ "output": "compose_structured_test.ReportWithTextContent",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_text_to_text_content",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "ReportWithTextContent"
+
+ report = main_stuff.content
+ # The title_content field is TextContent, so the object should be kept
+ assert isinstance(report.title_content, TextContent) # type: ignore[attr-defined]
+ assert report.title_content.text == "My Report Title" # type: ignore[attr-defined]
+ assert report.description == "A description" # type: ignore[attr-defined]
+
+ pretty_print(report, title="ReportWithTextContent - TextContent to TextContent")
+
+ async def test_compose_text_content_subclass_to_subclass_field(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that TextContent subclass is kept as-is when target field expects subclass."""
+ load_test_library(test_library_path)
+
+ # Create working memory with MarkdownText (TextContent subclass)
+ markdown_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=MarkdownText(text="# Markdown Title\n\nSome content here."),
+ name="markdown_input",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="markdown_input", stuff=markdown_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose report with MarkdownText field from MarkdownText",
+ "inputs": {"markdown_input": "Text"},
+ "construct": ContentConversionTestData.MARKDOWN_TO_MARKDOWN_CONSTRUCT,
+ "output": "compose_structured_test.ReportWithMarkdown",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_markdown_to_markdown",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "ReportWithMarkdown"
+
+ report = main_stuff.content
+ # The markdown_content field is MarkdownText, so the subclass object should be kept
+ assert type(report.markdown_content).__name__ == "MarkdownText" # type: ignore[attr-defined]
+ assert report.markdown_content.text == "# Markdown Title\n\nSome content here." # type: ignore[attr-defined]
+ assert report.markdown_content.format_type == "markdown" # type: ignore[attr-defined]
+ assert report.summary == "Plain text summary" # type: ignore[attr-defined]
+
+ pretty_print(report, title="ReportWithMarkdown - MarkdownText to MarkdownText")
+
+ async def test_compose_list_content_to_list_field(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that ListContent items are extracted when target field expects list[X]."""
+ load_test_library(test_library_path)
+
+ # Create working memory with ListContent containing TeamMembers
+ team_members = ListContent[TeamMember](
+ items=[
+ TeamMember(name="Alice", role="Engineer"),
+ TeamMember(name="Bob", role="Designer"),
+ TeamMember(name="Charlie", role="Manager"),
+ ]
+ )
+ members_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=team_members,
+ name="team_members",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="team_members", stuff=members_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose team report with list[TeamMember] field from ListContent",
+ "inputs": {"team_members": "Text"},
+ "construct": ContentConversionTestData.LIST_TO_LIST_CONSTRUCT,
+ "output": "compose_structured_test.TeamReport",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_list_to_list",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "TeamReport"
+
+ report = main_stuff.content
+ # The members field is list[TeamMember], so items should be extracted
+ assert isinstance(report.members, list) # type: ignore[attr-defined]
+ assert len(report.members) == 3 # type: ignore[attr-defined]
+ assert report.members[0].name == "Alice" # type: ignore[attr-defined]
+ assert report.members[1].name == "Bob" # type: ignore[attr-defined]
+ assert report.members[2].role == "Manager" # type: ignore[attr-defined]
+ assert report.team_name == "Engineering Team" # type: ignore[attr-defined]
+
+ pretty_print(report, title="TeamReport - ListContent to list[TeamMember]")
+
+ async def test_compose_list_content_to_list_content_field(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that ListContent is kept as-is when target field expects ListContent."""
+ load_test_library(test_library_path)
+
+ # Create working memory with ListContent containing TeamMembers
+ team_members = ListContent[TeamMember](
+ items=[
+ TeamMember(name="Alice", role="Engineer"),
+ TeamMember(name="Bob", role="Designer"),
+ ]
+ )
+ members_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=team_members,
+ name="team_members",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="team_members", stuff=members_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose team report with ListContent field from ListContent",
+ "inputs": {"team_members": "Text"},
+ "construct": ContentConversionTestData.LIST_TO_LIST_CONTENT_CONSTRUCT,
+ "output": "compose_structured_test.TeamReportWithListContent",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_list_to_list_content",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "TeamReportWithListContent"
+
+ report = main_stuff.content
+ # The members_list field is ListContent, so the object should be kept
+ assert isinstance(report.members_list, ListContent) # type: ignore[attr-defined]
+ assert report.members_list.nb_items == 2 # type: ignore[attr-defined]
+ assert report.members_list.items[0].name == "Alice" # type: ignore[attr-defined]
+ assert report.members_list.items[1].role == "Designer" # type: ignore[attr-defined]
+ assert report.team_name == "Engineering Team" # type: ignore[attr-defined]
+
+ pretty_print(report, title="TeamReportWithListContent - ListContent to ListContent")
diff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured.py
new file mode 100644
index 000000000..43ee0c3cf
--- /dev/null
+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured.py
@@ -0,0 +1,218 @@
+"""Integration tests for PipeCompose with construct (StructuredContent output).
+
+These tests verify that PipeCompose can produce StructuredContent objects
+using the construct blueprint syntax in PLX files.
+"""
+
+from pathlib import Path
+from typing import Callable
+
+import pytest
+
+from pipelex import pretty_print
+from pipelex.core.concepts.native.concept_native import NativeConceptCode
+from pipelex.core.memory.working_memory import WorkingMemory
+from pipelex.core.memory.working_memory_factory import WorkingMemoryFactory
+from pipelex.core.pipes.pipe_factory import PipeFactory
+from pipelex.core.stuffs.stuff_factory import StuffFactory
+from pipelex.core.stuffs.text_content import TextContent
+from pipelex.hub import get_native_concept, get_pipe_router
+from pipelex.pipe_operators.compose.pipe_compose import PipeCompose
+from pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprint
+from pipelex.pipe_run.pipe_job_factory import PipeJobFactory
+from pipelex.pipe_run.pipe_run_params import PipeRunMode
+from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
+from pipelex.pipeline.job_metadata import JobMetadata
+from tests.integration.pipelex.pipes.operator.pipe_compose_structured.models_for_pipe_compose import (
+ Address,
+ Deal,
+)
+from tests.integration.pipelex.pipes.operator.pipe_compose_structured.test_data import ComposeStructuredTestData
+
+
[email protected](loop_scope="class")
+class TestPipeComposeStructured:
+ """Integration tests for PipeCompose with construct."""
+
+ @pytest.fixture
+ def test_library_path(self) -> list[Path]:
+ """Path to the test library for these tests."""
+ return [Path("tests/integration/pipelex/pipes/operator/pipe_compose_structured")]
+
+ async def test_compose_fixed_values_only(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test PipeCompose with construct containing only fixed values."""
+ load_test_library(test_library_path)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose a simple report with fixed values",
+ "construct": ComposeStructuredTestData.FIXED_ONLY_CONSTRUCT,
+ "output": "compose_structured_test.SimpleReport",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_fixed_values",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ # Check type by class name since auto-generated classes have different identity
+ assert type(main_stuff.content).__name__ == "SimpleReport"
+
+ report = main_stuff.content
+ assert report.title == "Annual Report" # type: ignore[attr-defined]
+ assert report.author == "John Doe" # type: ignore[attr-defined]
+ assert report.score == 95.5 # type: ignore[attr-defined]
+
+ pretty_print(report, title="SimpleReport with fixed values")
+
+ @pytest.fixture
+ def working_memory_with_deal(self, load_empty_library: Callable[[], None]) -> WorkingMemory:
+ """Create working memory with a Deal object."""
+ load_empty_library()
+ deal = Deal(customer_name="Acme Corp", amount=50000.0)
+ return WorkingMemoryFactory.make_from_single_stuff(
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=deal,
+ name="deal",
+ ),
+ )
+
+ async def test_compose_with_variable_refs_and_templates(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test PipeCompose with construct containing variable refs and templates."""
+ load_test_library(test_library_path)
+
+ # Create working memory with Deal
+ deal = Deal(customer_name="Acme Corp", amount=50000.0)
+ working_memory = WorkingMemoryFactory.make_from_single_stuff(
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=deal,
+ name="deal",
+ ),
+ )
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose a sales summary from deal data",
+ "inputs": {"deal": "Text"},
+ "construct": ComposeStructuredTestData.MIXED_CONSTRUCT,
+ "output": "compose_structured_test.SalesSummary",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_sales_summary",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ # Check type by class name since auto-generated classes have different identity
+ assert type(main_stuff.content).__name__ == "SalesSummary"
+
+ summary = main_stuff.content
+ assert summary.report_title == "Monthly Sales Report" # type: ignore[attr-defined]
+ assert summary.customer_name == "Acme Corp" # type: ignore[attr-defined]
+ assert summary.deal_value == 50000.0 # type: ignore[attr-defined]
+ assert "50000" in summary.summary_text or "50000.0" in summary.summary_text # type: ignore[attr-defined]
+ assert "Acme Corp" in summary.summary_text # type: ignore[attr-defined]
+
+ pretty_print(summary, title="SalesSummary with mixed construct")
+
+ async def test_compose_with_nested_structure(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test PipeCompose with construct containing nested structures."""
+ load_test_library(test_library_path)
+
+ # Create working memory with address and company name
+ addr = Address(street="123 Main St", city="Paris", country="France")
+ company_name_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=TextContent(text="TechCorp"),
+ name="company_name",
+ )
+ addr_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=addr,
+ name="addr",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="company_name", stuff=company_name_stuff)
+ working_memory.add_new_stuff(name="addr", stuff=addr_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose a company with nested address",
+ "inputs": {"company_name": "Text", "addr": "Text"},
+ "construct": ComposeStructuredTestData.NESTED_CONSTRUCT,
+ "output": "compose_structured_test.Company",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_company",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ # Check type by class name since auto-generated classes have different identity
+ assert type(main_stuff.content).__name__ == "Company"
+
+ company = main_stuff.content
+ assert company.name == "TechCorp" # type: ignore[attr-defined]
+ assert type(company.headquarters).__name__ == "Address" # type: ignore[attr-defined]
+ assert company.headquarters.street == "123 Main St" # type: ignore[attr-defined]
+ assert company.headquarters.city == "Paris" # type: ignore[attr-defined]
+ assert company.headquarters.country == "France" # type: ignore[attr-defined]
+
+ pretty_print(company, title="Company with nested construct")
diff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured_compatibility.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured_compatibility.py
new file mode 100644
index 000000000..1730e727c
--- /dev/null
+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_structured_compatibility.py
@@ -0,0 +1,323 @@
+"""Integration tests for PipeCompose direct StructuredContent class compatibility.
+
+These tests verify class compatibility scenarios when composing StructuredContent
+objects directly (not TextContent, not ListContent):
+- Exact type match: Person -> Person field
+- Class equivalence: Employee -> Person field (structurally equivalent)
+- Subclass to base: Manager -> Person field
+- Incompatible classes: Location -> Person field (should fail)
+"""
+
+from pathlib import Path
+from typing import Callable
+
+import pytest
+
+from pipelex import pretty_print
+from pipelex.core.concepts.native.concept_native import NativeConceptCode
+from pipelex.core.memory.working_memory import WorkingMemory
+from pipelex.core.pipes.pipe_factory import PipeFactory
+from pipelex.core.stuffs.stuff_factory import StuffFactory
+from pipelex.hub import get_native_concept, get_pipe_router
+from pipelex.pipe_operators.compose.exceptions import StructuredContentComposerTypeError
+from pipelex.pipe_operators.compose.pipe_compose import PipeCompose
+from pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprint
+from pipelex.pipe_run.pipe_job_factory import PipeJobFactory
+from pipelex.pipe_run.pipe_run_params import PipeRunMode
+from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
+from pipelex.pipeline.job_metadata import JobMetadata
+from tests.integration.pipelex.pipes.operator.pipe_compose_structured.models_for_pipe_compose import (
+ Employee,
+ Location,
+ Manager,
+ Person,
+)
+from tests.integration.pipelex.pipes.operator.pipe_compose_structured.test_data import StructuredCompatibilityTestData
+
+
[email protected](loop_scope="class")
+class TestPipeComposeStructuredCompatibility:
+ """Integration tests for direct StructuredContent class compatibility in PipeCompose."""
+
+ @pytest.fixture
+ def test_library_path(self) -> list[Path]:
+ """Path to the test library for these tests."""
+ return [Path("tests/integration/pipelex/pipes/operator/pipe_compose_structured")]
+
+ async def test_exact_type_match(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that exact type match works: Person -> Person field."""
+ load_test_library(test_library_path)
+
+ # Create working memory with a Person object
+ person = Person(name="Alice", role="Developer")
+ person_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=person,
+ name="input_person",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="input_person", stuff=person_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose PersonHolder with exact Person type",
+ "inputs": {"input_person": "Text"},
+ "construct": StructuredCompatibilityTestData.EXACT_TYPE_CONSTRUCT,
+ "output": "compose_structured_test.PersonHolder",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_exact_type",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "PersonHolder"
+
+ holder = main_stuff.content
+ assert holder.holder_name == "Exact Type Holder" # type: ignore[attr-defined]
+ assert isinstance(holder.person, Person) # type: ignore[attr-defined]
+ assert holder.person.name == "Alice" # type: ignore[attr-defined]
+ assert holder.person.role == "Developer" # type: ignore[attr-defined]
+
+ pretty_print(holder, title="PersonHolder - Exact type match (Person -> Person)")
+
+ async def test_equivalent_class_employee_to_person(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that structurally equivalent classes are converted: Employee -> Person field."""
+ load_test_library(test_library_path)
+
+ # Create working memory with an Employee object (structurally equivalent to Person)
+ employee = Employee(name="Bob", role="Designer")
+ employee_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=employee,
+ name="input_employee",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="input_employee", stuff=employee_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose PersonHolder with structurally equivalent Employee",
+ "inputs": {"input_employee": "Text"},
+ "construct": StructuredCompatibilityTestData.EQUIVALENT_CLASS_CONSTRUCT,
+ "output": "compose_structured_test.PersonHolder",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_equivalent_class",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "PersonHolder"
+
+ holder = main_stuff.content
+ assert holder.holder_name == "Equivalent Class Holder" # type: ignore[attr-defined]
+ # The person field should now be a Person instance (rebuilt from Employee)
+ assert type(holder.person).__name__ == "Person" # type: ignore[attr-defined]
+ assert holder.person.name == "Bob" # type: ignore[attr-defined]
+ assert holder.person.role == "Designer" # type: ignore[attr-defined]
+
+ pretty_print(holder, title="PersonHolder - Class equivalence (Employee -> Person)")
+
+ async def test_reverse_equivalent_class_person_to_employee(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test reverse equivalence: Person -> Employee field."""
+ load_test_library(test_library_path)
+
+ # Create working memory with a Person object
+ person = Person(name="Carol", role="Manager")
+ person_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=person,
+ name="input_person",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="input_person", stuff=person_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose EmployeeHolder with structurally equivalent Person",
+ "inputs": {"input_person": "Text"},
+ "construct": StructuredCompatibilityTestData.REVERSE_EQUIVALENT_CONSTRUCT,
+ "output": "compose_structured_test.EmployeeHolder",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_reverse_equivalent",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "EmployeeHolder"
+
+ holder = main_stuff.content
+ assert holder.holder_name == "Reverse Equivalent Holder" # type: ignore[attr-defined]
+ # The employee field should now be an Employee instance (rebuilt from Person)
+ assert type(holder.employee).__name__ == "Employee" # type: ignore[attr-defined]
+ assert holder.employee.name == "Carol" # type: ignore[attr-defined]
+ assert holder.employee.role == "Manager" # type: ignore[attr-defined]
+
+ pretty_print(holder, title="EmployeeHolder - Reverse equivalence (Person -> Employee)")
+
+ async def test_subclass_to_base_manager_to_person(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that subclass is accepted when field expects base class: Manager -> Person field."""
+ load_test_library(test_library_path)
+
+ # Create working memory with a Manager object (subclass of Person)
+ manager = Manager(name="Dave", role="Director", department="Engineering")
+ manager_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=manager,
+ name="input_manager",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="input_manager", stuff=manager_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose PersonHolder with Manager subclass",
+ "inputs": {"input_manager": "Text"},
+ "construct": StructuredCompatibilityTestData.SUBCLASS_TO_BASE_CONSTRUCT,
+ "output": "compose_structured_test.PersonHolder",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_subclass_to_base",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "PersonHolder"
+
+ holder = main_stuff.content
+ assert holder.holder_name == "Subclass to Base Holder" # type: ignore[attr-defined]
+ # The person field accepts the Manager subclass
+ assert isinstance(holder.person, Person) # type: ignore[attr-defined]
+ assert holder.person.name == "Dave" # type: ignore[attr-defined]
+ assert holder.person.role == "Director" # type: ignore[attr-defined]
+ # Subclass-specific fields should be preserved
+ assert hasattr(holder.person, "department") # type: ignore[attr-defined]
+ assert holder.person.department == "Engineering" # type: ignore[attr-defined]
+
+ pretty_print(holder, title="PersonHolder - Subclass to base (Manager -> Person)")
+
+ async def test_incompatible_classes_raises_error(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test that incompatible classes raise an error: Location -> Person field."""
+ load_test_library(test_library_path)
+
+ # Create working memory with a Location object (incompatible with Person)
+ location = Location(latitude=48.8566, longitude=2.3522, name="Paris")
+ location_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=location,
+ name="input_location",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="input_location", stuff=location_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose PersonHolder with incompatible Location",
+ "inputs": {"input_location": "Text"},
+ "construct": StructuredCompatibilityTestData.INCOMPATIBLE_CONSTRUCT,
+ "output": "compose_structured_test.PersonHolder",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_incompatible",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+
+ # The composition should fail because Location cannot be converted to Person
+ with pytest.raises(StructuredContentComposerTypeError, match="Cannot convert"):
+ await get_pipe_router().run(pipe_job=pipe_job)
diff --git a/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_stuff_content_subclasses.py b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_stuff_content_subclasses.py
new file mode 100644
index 000000000..137abe7bd
--- /dev/null
+++ b/tests/integration/pipelex/pipes/operator/pipe_compose_structured/test_pipe_compose_stuff_content_subclasses.py
@@ -0,0 +1,688 @@
+"""Integration tests for PipeCompose with various StuffContent subclasses.
+
+These tests verify that PipeCompose correctly handles different StuffContent subclasses:
+- ImageContent: image URL and metadata
+- PDFContent: PDF document reference
+- NumberContent: numeric values
+- MermaidContent: diagram code
+- HtmlContent: HTML fragments
+- JSONContent: JSON data
+- Mixed compositions with multiple StuffContent types
+- Lists of StuffContent subclasses
+"""
+
+from pathlib import Path
+from typing import Callable
+
+import pytest
+
+from pipelex import pretty_print
+from pipelex.core.concepts.native.concept_native import NativeConceptCode
+from pipelex.core.memory.working_memory import WorkingMemory
+from pipelex.core.pipes.pipe_factory import PipeFactory
+from pipelex.core.stuffs.html_content import HtmlContent
+from pipelex.core.stuffs.image_content import ImageContent
+from pipelex.core.stuffs.json_content import JSONContent
+from pipelex.core.stuffs.list_content import ListContent
+from pipelex.core.stuffs.mermaid_content import MermaidContent
+from pipelex.core.stuffs.number_content import NumberContent
+from pipelex.core.stuffs.pdf_content import PDFContent
+from pipelex.core.stuffs.stuff_factory import StuffFactory
+from pipelex.hub import get_native_concept, get_pipe_router
+from pipelex.pipe_operators.compose.pipe_compose import PipeCompose
+from pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlueprint
+from pipelex.pipe_run.pipe_job_factory import PipeJobFactory
+from pipelex.pipe_run.pipe_run_params import PipeRunMode
+from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
+from pipelex.pipeline.job_metadata import JobMetadata
+from tests.integration.pipelex.pipes.operator.pipe_compose_structured.test_data import StuffContentSubclassTestData
+
+
[email protected](loop_scope="class")
+class TestPipeComposeStuffContentSubclasses:
+ """Integration tests for StuffContent subclass composition in PipeCompose."""
+
+ @pytest.fixture
+ def test_library_path(self) -> list[Path]:
+ """Path to the test library for these tests."""
+ return [Path("tests/integration/pipelex/pipes/operator/pipe_compose_structured")]
+
+ async def test_compose_image_content_single(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test composing a StructuredContent with a single ImageContent field."""
+ load_test_library(test_library_path)
+
+ cover_image = ImageContent(
+ url="https://example.com/images/cover.jpg",
+ caption="Cover photo",
+ mime_type="image/jpeg",
+ )
+ cover_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.IMAGE),
+ content=cover_image,
+ name="cover",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="cover", stuff=cover_stuff)
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose image gallery with single image",
+ "inputs": {"cover": "Image"},
+ "construct": StuffContentSubclassTestData.IMAGE_GALLERY_SINGLE_CONSTRUCT,
+ "output": "compose_structured_test.ImageGallery",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_image_single",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+ assert type(main_stuff.content).__name__ == "ImageGallery"
+
+ gallery = main_stuff.content
+ assert gallery.gallery_name == "Simple Gallery" # type: ignore[attr-defined]
+ assert isinstance(gallery.cover_image, ImageContent) # type: ignore[attr-defined]
+ assert gallery.cover_image.url == "https://example.com/images/cover.jpg" # type: ignore[attr-defined]
+ assert gallery.cover_image.caption == "Cover photo" # type: ignore[attr-defined]
+
+ async def test_compose_image_content_multiple(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test composing a StructuredContent with multiple ImageContent fields."""
+ load_test_library(test_library_path)
+
+ cover_image = ImageContent(
+ url="https://example.com/images/cover.jpg",
+ caption="Cover photo",
+ )
+ featured_image = ImageContent(
+ url="https://example.com/images/featured.png",
+ caption="Featured image",
+ source_prompt="A beautiful landscape",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(
+ name="cover",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.IMAGE),
+ content=cover_image,
+ name="cover",
+ ),
+ )
+ working_memory.add_new_stuff(
+ name="featured",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.IMAGE),
+ content=featured_image,
+ name="featured",
+ ),
+ )
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose image gallery with multiple images",
+ "inputs": {"cover": "Image", "featured": "Image"},
+ "construct": StuffContentSubclassTestData.IMAGE_GALLERY_CONSTRUCT,
+ "output": "compose_structured_test.ImageGallery",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_image_multiple",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+
+ gallery = main_stuff.content
+ assert gallery.gallery_name == "Nature Gallery" # type: ignore[attr-defined]
+ assert gallery.cover_image.url == "https://example.com/images/cover.jpg" # type: ignore[attr-defined]
+ assert gallery.featured_image.url == "https://example.com/images/featured.png" # type: ignore[attr-defined]
+ assert gallery.featured_image.source_prompt == "A beautiful landscape" # type: ignore[attr-defined]
+
+ pretty_print(gallery, title="ImageGallery - Multiple ImageContent")
+
+ async def test_compose_pdf_content(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test composing a StructuredContent with PDFContent fields."""
+ load_test_library(test_library_path)
+
+ main_pdf = PDFContent(url="https://example.com/docs/contract.pdf")
+ supplement_pdf = PDFContent(url="https://example.com/docs/appendix.pdf")
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(
+ name="main_pdf",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.PDF),
+ content=main_pdf,
+ name="main_pdf",
+ ),
+ )
+ working_memory.add_new_stuff(
+ name="supplement_pdf",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.PDF),
+ content=supplement_pdf,
+ name="supplement_pdf",
+ ),
+ )
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose document archive with PDF content",
+ "inputs": {"main_pdf": "PDF", "supplement_pdf": "PDF"},
+ "construct": StuffContentSubclassTestData.DOCUMENT_ARCHIVE_CONSTRUCT,
+ "output": "compose_structured_test.DocumentArchive",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_pdf",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+
+ archive = main_stuff.content
+ assert archive.archive_name == "Legal Documents Archive" # type: ignore[attr-defined]
+ assert isinstance(archive.main_document, PDFContent) # type: ignore[attr-defined]
+ assert archive.main_document.url == "https://example.com/docs/contract.pdf" # type: ignore[attr-defined]
+ assert archive.supplementary_doc.url == "https://example.com/docs/appendix.pdf" # type: ignore[attr-defined]
+
+ pretty_print(archive, title="DocumentArchive - PDFContent")
+
+ async def test_compose_number_content(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test composing a StructuredContent with NumberContent fields."""
+ load_test_library(test_library_path)
+
+ primary_metric = NumberContent(number=42.5)
+ secondary_metric = NumberContent(number=100)
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(
+ name="primary_metric",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.NUMBER),
+ content=primary_metric,
+ name="primary_metric",
+ ),
+ )
+ working_memory.add_new_stuff(
+ name="secondary_metric",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.NUMBER),
+ content=secondary_metric,
+ name="secondary_metric",
+ ),
+ )
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose metrics with number content",
+ "inputs": {"primary_metric": "Number", "secondary_metric": "Number"},
+ "construct": StuffContentSubclassTestData.METRICS_CONSTRUCT,
+ "output": "compose_structured_test.Metrics",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_number",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+
+ metrics = main_stuff.content
+ assert metrics.metric_name == "Performance Metrics" # type: ignore[attr-defined]
+ assert isinstance(metrics.primary_value, NumberContent) # type: ignore[attr-defined]
+ assert metrics.primary_value.number == 42.5 # type: ignore[attr-defined]
+ assert metrics.secondary_value.number == 100 # type: ignore[attr-defined]
+
+ pretty_print(metrics, title="Metrics - NumberContent")
+
+ async def test_compose_mermaid_content(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test composing a StructuredContent with MermaidContent field."""
+ load_test_library(test_library_path)
+
+ mermaid_diagram = MermaidContent(
+ mermaid_code="graph TD\n A[Start] --> B[End]",
+ mermaid_url="https://mermaid.ink/img/...",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(
+ name="mermaid_diagram",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=mermaid_diagram,
+ name="mermaid_diagram",
+ ),
+ )
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose code snippet with mermaid diagram",
+ "inputs": {"mermaid_diagram": "Text"},
+ "construct": StuffContentSubclassTestData.CODE_SNIPPET_CONSTRUCT,
+ "output": "compose_structured_test.CodeSnippet",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_mermaid",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+
+ snippet = main_stuff.content
+ assert snippet.snippet_name == "Architecture Diagram" # type: ignore[attr-defined]
+ assert isinstance(snippet.diagram, MermaidContent) # type: ignore[attr-defined]
+ assert "graph TD" in snippet.diagram.mermaid_code # type: ignore[attr-defined]
+
+ pretty_print(snippet, title="CodeSnippet - MermaidContent")
+
+ async def test_compose_html_content(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test composing a StructuredContent with HtmlContent field."""
+ load_test_library(test_library_path)
+
+ html_content = HtmlContent(
+ inner_html="<h1>Welcome</h1><p>Hello World!</p>",
+ css_class="main-content",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(
+ name="html_content",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=html_content,
+ name="html_content",
+ ),
+ )
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose web content with HTML block",
+ "inputs": {"html_content": "Text"},
+ "construct": StuffContentSubclassTestData.WEB_CONTENT_CONSTRUCT,
+ "output": "compose_structured_test.WebContent",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_html",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+
+ web_content = main_stuff.content
+ assert web_content.content_title == "Homepage Section" # type: ignore[attr-defined]
+ assert isinstance(web_content.html_block, HtmlContent) # type: ignore[attr-defined]
+ assert "<h1>Welcome</h1>" in web_content.html_block.inner_html # type: ignore[attr-defined]
+ assert web_content.html_block.css_class == "main-content" # type: ignore[attr-defined]
+
+ pretty_print(web_content, title="WebContent - HtmlContent")
+
+ async def test_compose_json_content(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test composing a StructuredContent with JSONContent field."""
+ load_test_library(test_library_path)
+
+ json_data = JSONContent(
+ json_obj={
+ "status": "success",
+ "data": {"id": 123, "name": "Test Item"},
+ "metadata": {"timestamp": "2024-01-01T00:00:00Z"},
+ }
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(
+ name="json_data",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.JSON),
+ content=json_data,
+ name="json_data",
+ ),
+ )
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose data payload with JSON content",
+ "inputs": {"json_data": "JSON"},
+ "construct": StuffContentSubclassTestData.DATA_PAYLOAD_CONSTRUCT,
+ "output": "compose_structured_test.DataPayload",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_json",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+
+ payload = main_stuff.content
+ assert payload.payload_name == "API Response" # type: ignore[attr-defined]
+ assert isinstance(payload.data, JSONContent) # type: ignore[attr-defined]
+ assert payload.data.json_obj["status"] == "success" # type: ignore[attr-defined]
+ assert payload.data.json_obj["data"]["id"] == 123 # type: ignore[attr-defined]
+
+ pretty_print(payload, title="DataPayload - JSONContent")
+
+ async def test_compose_mixed_media(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test composing a StructuredContent with multiple different StuffContent types."""
+ load_test_library(test_library_path)
+
+ cover_image = ImageContent(url="https://example.com/cover.jpg", caption="Report Cover")
+ main_pdf = PDFContent(url="https://example.com/report.pdf")
+ view_count = NumberContent(number=1500)
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(
+ name="cover",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.IMAGE),
+ content=cover_image,
+ name="cover",
+ ),
+ )
+ working_memory.add_new_stuff(
+ name="main_pdf",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.PDF),
+ content=main_pdf,
+ name="main_pdf",
+ ),
+ )
+ working_memory.add_new_stuff(
+ name="primary_metric",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.NUMBER),
+ content=view_count,
+ name="primary_metric",
+ ),
+ )
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose mixed media report",
+ "inputs": {"cover": "Image", "main_pdf": "PDF", "primary_metric": "Number"},
+ "construct": StuffContentSubclassTestData.MIXED_MEDIA_CONSTRUCT,
+ "output": "compose_structured_test.MixedMediaReport",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_mixed_media",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+
+ report = main_stuff.content
+ assert report.report_title == "Annual Report" # type: ignore[attr-defined]
+ assert isinstance(report.cover_image, ImageContent) # type: ignore[attr-defined]
+ assert isinstance(report.document, PDFContent) # type: ignore[attr-defined]
+ assert isinstance(report.view_count, NumberContent) # type: ignore[attr-defined]
+ assert report.cover_image.url == "https://example.com/cover.jpg" # type: ignore[attr-defined]
+ assert report.document.url == "https://example.com/report.pdf" # type: ignore[attr-defined]
+ assert report.view_count.number == 1500 # type: ignore[attr-defined]
+
+ pretty_print(report, title="MixedMediaReport - Multiple StuffContent types")
+
+ async def test_compose_image_list(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test composing a StructuredContent with a list of ImageContent."""
+ load_test_library(test_library_path)
+
+ image_list = ListContent[ImageContent](
+ items=[
+ ImageContent(url="https://example.com/img1.jpg", caption="Image 1"),
+ ImageContent(url="https://example.com/img2.jpg", caption="Image 2"),
+ ImageContent(url="https://example.com/img3.jpg", caption="Image 3"),
+ ]
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(
+ name="image_list",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.IMAGE),
+ content=image_list,
+ name="image_list",
+ ),
+ )
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose gallery with list of images",
+ "inputs": {"image_list": "Image"},
+ "construct": StuffContentSubclassTestData.IMAGE_LIST_GALLERY_CONSTRUCT,
+ "output": "compose_structured_test.ImageListGallery",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_image_list",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+
+ gallery = main_stuff.content
+ assert gallery.gallery_name == "Photo Collection" # type: ignore[attr-defined]
+ assert isinstance(gallery.images, list) # type: ignore[attr-defined]
+ assert len(gallery.images) == 3 # type: ignore[attr-defined]
+ assert gallery.images[0].url == "https://example.com/img1.jpg" # type: ignore[attr-defined]
+ assert gallery.images[1].caption == "Image 2" # type: ignore[attr-defined]
+
+ pretty_print(gallery, title="ImageListGallery - List of ImageContent")
+
+ async def test_compose_pdf_list(
+ self,
+ job_metadata: JobMetadata,
+ pipe_run_mode: PipeRunMode,
+ load_test_library: Callable[[list[Path]], None],
+ test_library_path: list[Path],
+ ):
+ """Test composing a StructuredContent with a list of PDFContent."""
+ load_test_library(test_library_path)
+
+ pdf_list = ListContent[PDFContent](
+ items=[
+ PDFContent(url="https://example.com/doc1.pdf"),
+ PDFContent(url="https://example.com/doc2.pdf"),
+ ]
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(
+ name="pdf_list",
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.PDF),
+ content=pdf_list,
+ name="pdf_list",
+ ),
+ )
+
+ pipe_compose_blueprint = PipeComposeBlueprint.model_validate(
+ {
+ "description": "Compose bundle with list of PDFs",
+ "inputs": {"pdf_list": "PDF"},
+ "construct": StuffContentSubclassTestData.DOCUMENT_BUNDLE_CONSTRUCT,
+ "output": "compose_structured_test.DocumentBundle",
+ }
+ )
+
+ pipe = PipeFactory[PipeCompose].make_from_blueprint(
+ domain_code="compose_structured_test",
+ pipe_code="compose_pdf_list",
+ blueprint=pipe_compose_blueprint,
+ )
+
+ pipe_job = PipeJobFactory.make_pipe_job(
+ pipe=pipe,
+ job_metadata=job_metadata,
+ working_memory=working_memory,
+ pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ )
+ pipe_output = await get_pipe_router().run(pipe_job=pipe_job)
+
+ main_stuff = pipe_output.main_stuff
+ assert main_stuff is not None
+
+ bundle = main_stuff.content
+ assert bundle.bundle_name == "Contract Bundle" # type: ignore[attr-defined]
+ assert isinstance(bundle.documents, list) # type: ignore[attr-defined]
+ assert len(bundle.documents) == 2 # type: ignore[attr-defined]
+ assert bundle.documents[0].url == "https://example.com/doc1.pdf" # type: ignore[attr-defined]
+
+ pretty_print(bundle, title="DocumentBundle - List of PDFContent")
diff --git a/tests/integration/pipelex/pipes/operator/pipe_extract/test_pipe_extract.py b/tests/integration/pipelex/pipes/operator/pipe_extract/test_pipe_extract.py
index 075e2600d..671e7f010 100644
--- a/tests/integration/pipelex/pipes/operator/pipe_extract/test_pipe_extract.py
+++ b/tests/integration/pipelex/pipes/operator/pipe_extract/test_pipe_extract.py
@@ -18,6 +18,7 @@ from pipelex.pipe_operators.extract.pipe_extract_blueprint import PipeExtractBlu
from pipelex.pipe_run.pipe_job_factory import PipeJobFactory
from pipelex.pipe_run.pipe_run_params import PipeRunMode
from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
+from pipelex.pipeline.job_metadata import JobMetadata
from tests.integration.pipelex.test_data import PipeExtractTestCases
@@ -26,10 +27,7 @@ from tests.integration.pipelex.test_data import PipeExtractTestCases
@pytest.mark.inference
@pytest.mark.asyncio(loop_scope="class")
class TestPipeExtract:
- @pytest.fixture(
- scope="class",
- autouse=True,
- )
+ @pytest.fixture(scope="class", autouse=True)
def setup(self, load_empty_library: Callable[[], None]):
load_empty_library()
concept_library = get_concept_library()
@@ -48,6 +46,7 @@ class TestPipeExtract:
@pytest.mark.parametrize("image_url", PipeExtractTestCases.PIPE_OCR_IMAGE_TEST_CASES)
async def test_pipe_extract_image(
self,
+ job_metadata: JobMetadata,
extract_choice_for_image: str,
pipe_run_mode: PipeRunMode,
image_url: str,
@@ -70,6 +69,7 @@ class TestPipeExtract:
blueprint=pipe_extract_blueprint,
),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ job_metadata=job_metadata,
working_memory=WorkingMemoryFactory.make_from_single_stuff(
stuff=StuffFactory.make_stuff(
concept=ConceptFactory.make(
@@ -94,6 +94,7 @@ class TestPipeExtract:
@pytest.mark.parametrize("page_image_captions", [False]) # TODO: add True when captioning is implemented
async def test_pipe_extract_from_pdf(
self,
+ job_metadata: JobMetadata,
extract_choice_for_pdf: str,
pipe_run_mode: PipeRunMode,
pdf_url: str,
@@ -118,6 +119,7 @@ class TestPipeExtract:
blueprint=blueprint,
),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ job_metadata=job_metadata,
working_memory=WorkingMemoryFactory.make_from_single_stuff(
stuff=StuffFactory.make_stuff(
concept=ConceptFactory.make_native_concept(
@@ -131,5 +133,5 @@ class TestPipeExtract:
pipe_extract_output = await get_pipe_router().run(
pipe_job=pipe_job,
)
- extracted_text = pipe_extract_output.main_stuff_as_list(item_type=PageContent)
- pretty_print(extracted_text, title="extracted_text")
+ extracted_pages = pipe_extract_output.main_stuff_as_list(item_type=PageContent)
+ pretty_print(extracted_pages, title="Extracted pages")
diff --git a/tests/integration/pipelex/pipes/operator/pipe_func/test_pipe_func.py b/tests/integration/pipelex/pipes/operator/pipe_func/test_pipe_func.py
index e28888be2..a728e3a61 100644
--- a/tests/integration/pipelex/pipes/operator/pipe_func/test_pipe_func.py
+++ b/tests/integration/pipelex/pipes/operator/pipe_func/test_pipe_func.py
@@ -15,6 +15,7 @@ from pipelex.pipe_operators.func.pipe_func_blueprint import PipeFuncBlueprint
from pipelex.pipe_run.pipe_job_factory import PipeJobFactory
from pipelex.pipe_run.pipe_run_params import PipeRunMode
from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
+from pipelex.pipeline.job_metadata import JobMetadata
from pipelex.system.registries.func_registry import func_registry
from tests.cases.source_code import wrap_lines
@@ -35,6 +36,7 @@ class TestPipeFunc:
async def test_wrap_lines_pipe_func(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
load_empty_library: Callable[[], None],
):
@@ -71,6 +73,7 @@ if __name__ == "__main__":
blueprint=pipe_func_blueprint,
),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ job_metadata=job_metadata,
working_memory=working_memory,
)
diff --git a/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_run.py b/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_run.py
index e01f44fca..ec34ae1e0 100644
--- a/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_run.py
+++ b/tests/integration/pipelex/pipes/operator/pipe_img_gen/test_pipe_img_gen_run.py
@@ -12,6 +12,7 @@ from pipelex.pipe_operators.img_gen.pipe_img_gen_blueprint import PipeImgGenBlue
from pipelex.pipe_run.pipe_job_factory import PipeJobFactory
from pipelex.pipe_run.pipe_run_params import PipeRunMode
from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
+from pipelex.pipeline.job_metadata import JobMetadata
from tests.integration.pipelex.test_data import ImageGenTestCases
@@ -20,13 +21,15 @@ from tests.integration.pipelex.test_data import ImageGenTestCases
@pytest.mark.inference
@pytest.mark.asyncio(loop_scope="class")
class TestPipeImgGenRun:
- @pytest.mark.parametrize(("topic", "image_desc"), ImageGenTestCases.IMAGE_DESC)
+ @pytest.mark.parametrize(("topic", "prompt", "negative_prompt"), ImageGenTestCases.IMAGE_GEN_PROMPT_CONTENTS)
async def test_pipe_img_gen_run_no_inputs(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
img_gen_handle: str,
topic: str, # noqa: ARG002
- image_desc: str,
+ prompt: str,
+ negative_prompt: str | None,
load_empty_library: Callable[[], None],
):
load_empty_library()
@@ -34,7 +37,8 @@ class TestPipeImgGenRun:
description="Image generation test",
model=img_gen_handle,
output=NativeConceptCode.IMAGE,
- prompt=image_desc,
+ prompt=prompt,
+ negative_prompt=negative_prompt,
)
pipe_job = PipeJobFactory.make_pipe_job(
@@ -44,18 +48,21 @@ class TestPipeImgGenRun:
blueprint=pipe_img_gen_blueprint,
),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ job_metadata=job_metadata,
)
await get_pipe_router().run(
pipe_job=pipe_job,
)
- @pytest.mark.parametrize(("topic", "image_desc"), ImageGenTestCases.IMAGE_DESC)
+ @pytest.mark.parametrize(("topic", "image_desc", "negative_prompt"), ImageGenTestCases.IMAGE_GEN_PROMPT_CONTENTS)
async def test_pipe_img_gen_run_input_to_template(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
img_gen_handle: str,
topic: str, # noqa: ARG002
image_desc: str,
+ negative_prompt: str | None,
load_empty_library: Callable[[], None],
):
load_empty_library()
@@ -65,6 +72,7 @@ class TestPipeImgGenRun:
inputs={"image_desc": "Text"},
output=NativeConceptCode.IMAGE,
prompt="Sketch black and white funny illustration of: $image_desc",
+ negative_prompt=negative_prompt,
)
pipe_job = PipeJobFactory.make_pipe_job(
@@ -77,6 +85,7 @@ class TestPipeImgGenRun:
stuff=StuffFactory.make_from_str(str_value=image_desc, name="image_desc"),
),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ job_metadata=job_metadata,
)
await get_pipe_router().run(
pipe_job=pipe_job,
diff --git a/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm.py b/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm.py
index a99a1fa97..ac0e6441f 100644
--- a/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm.py
+++ b/tests/integration/pipelex/pipes/operator/pipe_llm/test_pipe_llm.py
@@ -16,6 +16,7 @@ from pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprint, Stru
from pipelex.pipe_run.pipe_job_factory import PipeJobFactory
from pipelex.pipe_run.pipe_run_params import PipeRunMode
from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
+from pipelex.pipeline.job_metadata import JobMetadata
from tests.integration.pipelex.test_data import BasicStructuredDataTestCases, PipeTestCases
@@ -26,6 +27,7 @@ from tests.integration.pipelex.test_data import BasicStructuredDataTestCases, Pi
class TestPipeLLMBasic:
async def test_pipe_llm_simple(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
load_test_library: Callable[[list[Path]], None],
):
@@ -47,6 +49,7 @@ class TestPipeLLMBasic:
pipe_job = PipeJobFactory.make_pipe_job(
pipe=pipe,
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ job_metadata=job_metadata,
)
pipe_llm_output = await get_pipe_router().run(
pipe_job=pipe_job,
@@ -78,6 +81,7 @@ class TestPipeLLMBasic:
)
async def test_pipe_llm_structured(
self,
+ job_metadata: JobMetadata,
topic: str,
data: str,
concept: str,
@@ -123,6 +127,7 @@ class TestPipeLLMBasic:
pipe=pipe,
working_memory=working_memory,
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ job_metadata=job_metadata,
)
pipe_llm_output = await get_pipe_router().run(pipe_job=pipe_job)
@@ -152,6 +157,7 @@ class TestPipeLLMBasic:
@pytest.mark.parametrize(("stuff", "attribute_paths"), PipeTestCases.STUFFS_IMAGE_ATTRIBUTES)
async def test_pipe_llm_attribute_image(
self,
+ job_metadata: JobMetadata,
stuff: Stuff,
attribute_paths: list[str],
pipe_run_mode: PipeRunMode,
@@ -180,6 +186,7 @@ class TestPipeLLMBasic:
blueprint=pipe_llm_blueprint,
),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ job_metadata=job_metadata,
)
pipe_llm_output = await get_pipe_router().run(
diff --git a/tests/integration/pipelex/pipes/test_image_inputs.py b/tests/integration/pipelex/pipes/test_image_inputs.py
index 09a65d673..0e9073460 100644
--- a/tests/integration/pipelex/pipes/test_image_inputs.py
+++ b/tests/integration/pipelex/pipes/test_image_inputs.py
@@ -33,6 +33,7 @@ class TestImageInputs:
async def test_extract_article_from_image(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
load_test_library: Callable[[list[Path]], None],
) -> None:
@@ -50,7 +51,7 @@ class TestImageInputs:
pipe=get_required_pipe(pipe_code="extract_article_from_image"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
if pipe_run_mode != PipeRunMode.DRY:
@@ -66,7 +67,9 @@ class TestImageInputs:
assert pipe_output.working_memory is not None
assert pipe_output.main_stuff is not None
- async def test_describe_page(self, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]) -> None:
+ async def test_describe_page(
+ self, job_metadata: JobMetadata, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]
+ ) -> None:
load_test_library([Path("tests/integration/pipelex/pipes/pipelines")])
# Create the page content
# image_content = ImageContent(url=ImageTestCases.IMAGE_FILE_PATH_PNG)
@@ -90,7 +93,7 @@ class TestImageInputs:
pipe=get_required_pipe(pipe_code="describe_page"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
@@ -129,6 +132,7 @@ class TestImageInputs:
async def test_analyze_image_collection(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
load_test_library: Callable[[list[Path]], None],
) -> None:
@@ -161,7 +165,7 @@ class TestImageInputs:
pipe=get_required_pipe(pipe_code="analyze_image_collection"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
@@ -178,6 +182,7 @@ class TestImageInputs:
async def test_compare_two_image_collections(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
load_test_library: Callable[[list[Path]], None],
) -> None:
@@ -219,7 +224,7 @@ class TestImageInputs:
pipe=get_required_pipe(pipe_code="compare_two_image_collections"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
diff --git a/tests/integration/pipelex/pipes/test_image_out_in.py b/tests/integration/pipelex/pipes/test_image_out_in.py
index 25eab3805..996568e0b 100644
--- a/tests/integration/pipelex/pipes/test_image_out_in.py
+++ b/tests/integration/pipelex/pipes/test_image_out_in.py
@@ -15,13 +15,13 @@ from pipelex.pipeline.job_metadata import JobMetadata
@pytest.mark.inference
@pytest.mark.asyncio(loop_scope="class")
class TestImageOutIn:
- async def test_image_out_in(self, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]) -> None:
+ async def test_image_out_in(self, job_metadata: JobMetadata, pipe_run_mode: PipeRunMode, load_test_library: Callable[[list[Path]], None]) -> None:
load_test_library([Path("tests/integration/pipelex/pipes/pipelines")])
pipe_output = await get_pipe_router().run(
pipe_job=PipeJobFactory.make_pipe_job(
pipe=get_required_pipe(pipe_code="image_out_in"),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
diff --git a/tests/integration/pipelex/pipes/test_pipe_compose.py b/tests/integration/pipelex/pipes/test_pipe_compose.py
index dd8320208..861661c10 100644
--- a/tests/integration/pipelex/pipes/test_pipe_compose.py
+++ b/tests/integration/pipelex/pipes/test_pipe_compose.py
@@ -17,6 +17,7 @@ from pipelex.pipe_operators.compose.pipe_compose_blueprint import PipeComposeBlu
from pipelex.pipe_run.pipe_job_factory import PipeJobFactory
from pipelex.pipe_run.pipe_run_params import PipeRunMode
from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
+from pipelex.pipeline.job_metadata import JobMetadata
from tests.cases import JINJA2TestCases
@@ -26,6 +27,7 @@ class TestPipeCompose:
@pytest.mark.parametrize("template_source", JINJA2TestCases.JINJA2_FOR_ANY)
async def test_pipe_compose_for_any(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
template_source: str,
load_empty_library: Callable[[], None],
@@ -49,6 +51,7 @@ class TestPipeCompose:
blueprint=pipe_compose_blueprint,
),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ job_metadata=job_metadata,
)
pipe_compose_output = cast("PipeComposeOutput", await get_pipe_router().run(pipe_job=pipe_job))
rendered_text = pipe_compose_output.main_stuff_as_str
@@ -57,6 +60,7 @@ class TestPipeCompose:
@pytest.mark.parametrize("template_source", JINJA2TestCases.JINJA2_FOR_STUFF)
async def test_pipe_compose_for_stuff(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
template_source: str,
load_empty_library: Callable[[], None],
@@ -88,6 +92,7 @@ class TestPipeCompose:
blueprint=pipe_compose_blueprint,
),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ job_metadata=job_metadata,
working_memory=working_memory,
)
pipe_compose_output = cast("PipeComposeOutput", await get_pipe_router().run(pipe_job=pipe_job))
diff --git a/tests/integration/pipelex/pipes/test_pipe_running_variants.py b/tests/integration/pipelex/pipes/test_pipe_running_variants.py
index 3ef537d63..d29566364 100644
--- a/tests/integration/pipelex/pipes/test_pipe_running_variants.py
+++ b/tests/integration/pipelex/pipes/test_pipe_running_variants.py
@@ -25,6 +25,7 @@ class TestPipeRunningVariants:
@pytest.mark.parametrize(("topic", "stuff", "pipe_code"), PipeTestCases.STUFF_AND_PIPE)
async def test_pipe_from_stuff(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
topic: str,
stuff: Stuff,
@@ -39,13 +40,14 @@ class TestPipeRunningVariants:
pipe=get_required_pipe(pipe_code=pipe_code),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=working_memory,
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
@pytest.mark.parametrize(("topic", "pipe_code"), PipeTestCases.NO_INPUT)
async def test_pipe_no_input(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
topic: str,
pipe_code: str,
@@ -58,7 +60,7 @@ class TestPipeRunningVariants:
pipe=get_required_pipe(pipe_code=pipe_code),
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
working_memory=WorkingMemoryFactory.make_empty(),
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
@@ -70,6 +72,7 @@ class TestPipeRunningVariants:
@pytest.mark.parametrize(("topic", "pipe_code", "output_multiplicity"), PipeTestCases.NO_INPUT_PARALLEL1)
async def test_pipe_batch_no_input(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
topic: str,
pipe_code: str,
@@ -85,7 +88,7 @@ class TestPipeRunningVariants:
pipe_run_mode=pipe_run_mode,
output_multiplicity=output_multiplicity,
),
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
working_memory=WorkingMemoryFactory.make_empty(),
),
)
@@ -98,6 +101,7 @@ class TestPipeRunningVariants:
@pytest.mark.parametrize(("pipe_code", "exception", "expected_error_message"), PipeTestCases.FAILURE_PIPES)
async def test_pipe_infinite_loop(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
pipe_code: str,
exception: type[Exception],
@@ -114,7 +118,7 @@ class TestPipeRunningVariants:
pipe_stack_limit=6,
pipe_run_mode=pipe_run_mode,
),
- job_metadata=JobMetadata(),
+ job_metadata=job_metadata,
),
)
pretty_print(exc.value, title="exception")
diff --git a/tests/integration/pipelex/plugins/test_external_plugin.py b/tests/integration/pipelex/plugins/test_external_plugin.py
index de2426434..e26b88ee5 100644
--- a/tests/integration/pipelex/plugins/test_external_plugin.py
+++ b/tests/integration/pipelex/plugins/test_external_plugin.py
@@ -18,6 +18,7 @@ from pipelex.hub import get_inference_manager, get_pipe_router, get_report_deleg
from pipelex.pipe_operators.llm.pipe_llm import PipeLLM
from pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprint
from pipelex.pipe_run.pipe_job_factory import PipeJobFactory
+from pipelex.pipeline.job_metadata import JobMetadata
from pipelex.tools.typing.pydantic_utils import BaseModelTypeVar
from tests.integration.pipelex.cogt.test_data import LLMTestConstants, Person
from tests.integration.pipelex.test_data import PipeTestCases
@@ -68,7 +69,7 @@ class MockExternalLLMWorker(LLMWorkerAbstract):
@pytest.mark.asyncio(loop_scope="class")
class TestExternalPlugin:
- async def test_external_llm_worker(self, load_empty_library: Callable[[], None]):
+ async def test_external_llm_worker(self, job_metadata: JobMetadata, load_empty_library: Callable[[], None]):
load_empty_library()
llm_worker = MockExternalLLMWorker(reporting_delegate=get_report_delegate())
llm_job = LLMJobFactory.make_llm_job(
@@ -76,6 +77,7 @@ class TestExternalPlugin:
system_text=None,
user_text=LLMTestConstants.USER_TEXT_SHORT,
),
+ job_metadata=job_metadata,
llm_job_params=LLMJobParams(
temperature=0.5,
max_tokens=None,
@@ -90,7 +92,7 @@ class TestExternalPlugin:
assert generated_object
pretty_print(generated_object)
- async def test_pipe_llm_with_external_llm_handle(self, load_empty_library: Callable[[], None]):
+ async def test_pipe_llm_with_external_llm_handle(self, job_metadata: JobMetadata, load_empty_library: Callable[[], None]):
load_empty_library()
llm_handle = EXTERNAL_PLUGIN_NAME
get_inference_manager().set_llm_worker_from_external_plugin(
@@ -116,6 +118,7 @@ class TestExternalPlugin:
pipe_code="adhoc_for_test_pipe_llm_with_external_llm_handle",
blueprint=pipe_llm_blueprint,
),
+ job_metadata=job_metadata,
)
pipe_llm_output = await get_pipe_router().run(
pipe_job=pipe_job,
diff --git a/tests/integration/pipelex/plugins/test_openai_image_gen.py b/tests/integration/pipelex/plugins/test_openai_image_gen.py
deleted file mode 100644
index 335585d72..000000000
--- a/tests/integration/pipelex/plugins/test_openai_image_gen.py
+++ /dev/null
@@ -1,57 +0,0 @@
-import pytest
-
-from pipelex.cogt.exceptions import ImgGenGenerationError
-from pipelex.hub import get_models_manager
-from pipelex.plugins.openai.openai_client_factory import OpenAIClientFactory
-from pipelex.plugins.plugin_sdk_registry import Plugin
-from pipelex.tools.misc.base_64_utils import save_base_64_str_to_binary_file
-from pipelex.tools.misc.file_utils import ensure_path, get_incremental_file_path
-from tests.conftest import TEST_OUTPUTS_DIR
-from tests.integration.pipelex.plugins.conftest import is_backend_available
-from tests.integration.pipelex.test_data import ImageGenTestCases
-
-
[email protected](loop_scope="class")
-class TestImgGenByOpenAIGpt:
- @pytest.mark.parametrize(("topic", "image_desc"), ImageGenTestCases.IMAGE_DESC)
- async def test_gpt_image_generation(self, topic: str, image_desc: str):
- if not is_backend_available("openai"):
- pytest.skip("Backend 'openai' is not available or enabled")
- backend = get_models_manager().get_required_inference_backend("openai")
- client = OpenAIClientFactory.make_openai_client(
- Plugin(sdk="openai", backend="openai"),
- backend=backend,
- )
- result = await client.images.generate(
- prompt=image_desc,
- model="gpt-image-1",
- moderation="low",
- background="transparent",
- quality="low",
- size="1024x1024",
- output_format="png",
- output_compression=100,
- n=2,
- )
- if not result.data:
- msg = "No result from OpenAI"
- raise ImgGenGenerationError(msg)
-
- for image_index, image_data in enumerate(result.data):
- image_base64 = image_data.b64_json
- if not image_base64:
- msg = "No base64 image data received from OpenAI"
- raise ImgGenGenerationError(msg)
-
- folder_path = f"{TEST_OUTPUTS_DIR}/img_gen_by_gpt_image"
- ensure_path(folder_path)
- filename = f"{topic}_{image_index}"
- img_path = get_incremental_file_path(
- base_path=folder_path,
- base_name=filename,
- extension="png",
- avoid_suffix_if_possible=True,
- )
- save_base_64_str_to_binary_file(base_64_str=image_base64, file_path=img_path)
diff --git a/tests/integration/pipelex/test_data.py b/tests/integration/pipelex/test_data.py
index f52a5c8ff..c392b9527 100644
--- a/tests/integration/pipelex/test_data.py
+++ b/tests/integration/pipelex/test_data.py
@@ -163,10 +163,10 @@ class PipeExtractTestCases:
class ImageGenTestCases:
- IMAGE_DESC: ClassVar[list[tuple[str, str]]] = [ # topic, img_gen_prompt_text
- ("dog wearing sunglasses", "a dog wearing sunglasses"),
- # ("otter playing poker", "an otter playing poker"),
- # ("coding woman with dragon tatoo", "a woman with a dragon tatoo, wearing a tank top, coding in python"),
+ IMAGE_GEN_PROMPT_CONTENTS: ClassVar[list[tuple[str, str, str | None]]] = [ # topic, positive_text, negative_text
+ ("dog wearing sunglasses", "a dog wearing sunglasses", "blue sky"),
+ # ("otter playing poker", "an otter playing poker", None),
+ # ("coding woman with dragon tatoo", "a woman with a dragon tatoo, wearing a tank top, coding in python", None),
]
diff --git a/tests/integration/pipelex/tools/pdf/test_pdf_render.py b/tests/integration/pipelex/tools/pdf/test_pdf_render.py
index 7a7f99d22..4dbdda994 100644
--- a/tests/integration/pipelex/tools/pdf/test_pdf_render.py
+++ b/tests/integration/pipelex/tools/pdf/test_pdf_render.py
@@ -19,7 +19,7 @@ class TestPdfRender:
pytestconfig: pytest.Config,
file_path: str,
):
- texts = await pypdfium2_renderer.get_text_from_pdf_pages(pdf_input=file_path)
+ texts = await pypdfium2_renderer.extract_text_from_pdf_pages(pdf_input=file_path)
assert len(texts) > 0
assert all(isinstance(text, str) for text in texts)
if pytestconfig.get_verbosity() >= 2:
diff --git a/tests/unit/pipelex/cogt/usage/test_cost_registry.py b/tests/unit/pipelex/cogt/usage/test_cost_registry.py
index 8a36f03de..f4acea2da 100644
--- a/tests/unit/pipelex/cogt/usage/test_cost_registry.py
+++ b/tests/unit/pipelex/cogt/usage/test_cost_registry.py
@@ -10,16 +10,14 @@ from pipelex.cogt.usage.cost_category import CostCategory
from pipelex.cogt.usage.cost_registry import CostRegistry
from pipelex.cogt.usage.token_category import TokenCategory
from pipelex.pipeline.job_metadata import JobMetadata
-from pipelex.pipeline.pipeline_models import SpecialPipelineId
class TestCostRegistry:
"""Test CostRegistry methods without pandas dependency."""
- def test_to_records(self):
+ def test_to_records(self, job_metadata: JobMetadata):
"""Test conversion from CostRegistry to list of flat dictionaries."""
# Create a simple cost report
- job_metadata = JobMetadata(pipeline_run_id=SpecialPipelineId.UNTITLED)
llm_tokens_usage = LLMTokensUsage(
job_metadata=job_metadata,
inference_model_name="test-model",
@@ -174,15 +172,13 @@ class TestCostRegistry:
assert rows[2]["nb_tokens_output_reasoning"] == "150"
assert rows[2]["cost_output_reasoning"] == "0.15"
- def test_generate_report_aggregation(self, mocker: MockerFixture, tmp_path: Path):
+ def test_generate_report_aggregation(self, job_metadata: JobMetadata, mocker: MockerFixture, tmp_path: Path):
"""Test groupby logic and cost calculations are correct."""
# Mock console output to avoid printing during tests
mock_console = mocker.MagicMock()
mocker.patch("pipelex.cogt.usage.cost_registry.get_console", return_value=mock_console)
# Create test data with multiple LLM usages
- job_metadata = JobMetadata(pipeline_run_id="test-pipeline")
-
llm_tokens_usages = [
# First usage of model-a: 100 input (20 cached), 50 output
LLMTokensUsage(
@@ -303,13 +299,12 @@ class TestCostRegistry:
)
mock_log_verbose.assert_called_once()
- def test_generate_report_with_file_output(self, tmp_path: Path, mocker: MockerFixture):
+ def test_generate_report_with_file_output(self, job_metadata: JobMetadata, tmp_path: Path, mocker: MockerFixture):
"""Test that CSV file is created when file path is provided."""
# Mock console output
mocker.patch("pipelex.cogt.usage.cost_registry.get_console", return_value=mocker.MagicMock())
# Create test data
- job_metadata = JobMetadata(pipeline_run_id="test-pipeline")
llm_tokens_usage = LLMTokensUsage(
job_metadata=job_metadata,
inference_model_name="test-model",
@@ -366,7 +361,7 @@ class TestCostRegistry:
(0.01, 8.0), # Scale by 0.01: 0.08 / 0.01
],
)
- def test_generate_report_unit_scaling(self, unit_scale: float, expected_scaled_cost: float, mocker: MockerFixture):
+ def test_generate_report_unit_scaling(self, job_metadata: JobMetadata, unit_scale: float, expected_scaled_cost: float, mocker: MockerFixture):
"""Test that unit scaling is applied correctly to cost display."""
# Mock console to avoid output during tests
mocker.patch("pipelex.cogt.usage.cost_registry.get_console", return_value=mocker.MagicMock())
@@ -374,7 +369,6 @@ class TestCostRegistry:
mock_table = mock_table_class.return_value
# Create test data
- job_metadata = JobMetadata(pipeline_run_id="test-pipeline")
llm_tokens_usage = LLMTokensUsage(
job_metadata=job_metadata,
inference_model_name="test-model",
diff --git a/tests/unit/pipelex/core/concepts/data.py b/tests/unit/pipelex/core/concepts/data.py
index dbf524646..857bb1ffe 100644
--- a/tests/unit/pipelex/core/concepts/data.py
+++ b/tests/unit/pipelex/core/concepts/data.py
@@ -138,11 +138,11 @@ class TestData:
DOMAIN: ClassVar[str] = "test_images"
# Test content instances
- SAMPLE_IMAGE: ClassVar[ImageContent] = ImageContent(url="https://example.com/photo.jpg", base_64="base64data")
+ SAMPLE_IMAGE: ClassVar[ImageContent] = ImageContent(url="https://example.com/photo.jpg")
SAMPLE_TEXT: ClassVar[TextContent] = TextContent(text="John Doe")
SAMPLE_BIO: ClassVar[TextContent] = TextContent(text="Software engineer")
COMPANY_NAME: ClassVar[TextContent] = TextContent(text="Tech Corp")
- LOGO_IMAGE: ClassVar[ImageContent] = ImageContent(url="https://example.com/logo.png", base_64="logobase64")
+ LOGO_IMAGE: ClassVar[ImageContent] = ImageContent(url="https://example.com/logo.png")
TITLE_TEXT: ClassVar[TextContent] = TextContent(text="Company Profile")
# Test cases for image field search: (concept_code, expected_image_paths)
diff --git a/tests/unit/pipelex/core/concepts/test_concept.py b/tests/unit/pipelex/core/concepts/test_concept.py
index 0c45b1f80..2e62c222a 100644
--- a/tests/unit/pipelex/core/concepts/test_concept.py
+++ b/tests/unit/pipelex/core/concepts/test_concept.py
@@ -1,6 +1,7 @@
import pytest
from kajson.kajson_manager import KajsonManager
+from pipelex.cogt.image.image_size import ImageSize
from pipelex.core.concepts.concept import Concept
from pipelex.core.concepts.concept_blueprint import ConceptBlueprint
from pipelex.core.concepts.concept_factory import ConceptFactory
@@ -15,12 +16,15 @@ from pipelex.core.stuffs.structured_content import StructuredContent
# Custom StuffContent class with nested ImageContent-like field for testing
class NestedImageInfo(StructuredContent):
- """A nested structure that contains image-like data."""
+ """A nested structure that contains image-like data (same structure as ImageContent)."""
url: str
+ display_link: str | None = None
source_prompt: str | None = None
+ source_negative_prompt: str | None = None
caption: str | None = None
- base_64: str | None = None
+ mime_type: str | None = None
+ size: ImageSize | None = None
class DocumentWithNestedImage(StructuredContent):
diff --git a/tests/unit/pipelex/core/concepts/test_special_args_concept.py b/tests/unit/pipelex/core/concepts/test_special_args_concept.py
index 2da73d6f4..ebac92b9f 100644
--- a/tests/unit/pipelex/core/concepts/test_special_args_concept.py
+++ b/tests/unit/pipelex/core/concepts/test_special_args_concept.py
@@ -18,6 +18,7 @@ from pipelex.pipe_operators.llm.pipe_llm_blueprint import PipeLLMBlueprint
from pipelex.pipe_run.pipe_job_factory import PipeJobFactory
from pipelex.pipe_run.pipe_run_params import PipeRunMode
from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
+from pipelex.pipeline.job_metadata import JobMetadata
@pytest.mark.dry_runnable
@@ -25,6 +26,7 @@ from pipelex.pipe_run.pipe_run_params_factory import PipeRunParamsFactory
class TestSpecialArgsConcept:
async def test_create_concept_with_content_field(
self,
+ job_metadata: JobMetadata,
pipe_run_mode: PipeRunMode,
load_empty_library: Callable[[], None],
):
@@ -97,6 +99,7 @@ class TestSpecialArgsConcept:
pipe_job = PipeJobFactory.make_pipe_job(
pipe=pipe_llm,
pipe_run_params=PipeRunParamsFactory.make_run_params(pipe_run_mode=pipe_run_mode),
+ job_metadata=job_metadata,
working_memory=working_memory,
)
diff --git a/tests/unit/pipelex/pipe_operators/pipe_compose/test_construct_blueprint.py b/tests/unit/pipelex/pipe_operators/pipe_compose/test_construct_blueprint.py
new file mode 100644
index 000000000..54bbf459b
--- /dev/null
+++ b/tests/unit/pipelex/pipe_operators/pipe_compose/test_construct_blueprint.py
@@ -0,0 +1,208 @@
+"""Unit tests for ConstructBlueprint - the container for field blueprints.
+
+ConstructBlueprint is parsed from the `[pipe.name.construct]` section in PLX files.
+"""
+
+from typing import Any, ClassVar
+
+import pytest
+
+from pipelex.pipe_operators.compose.construct_blueprint import ConstructBlueprint, ConstructFieldMethod
+
+
+class ConstructBlueprintTestData:
+ """Test data for ConstructBlueprint tests."""
+
+ # Simple flat construct (all fixed values)
+ FLAT_FIXED_ONLY: ClassVar[tuple[str, dict[str, Any]]] = (
+ "flat_fixed_only",
+ {
+ "title": "Monthly Report",
+ "version": 1,
+ "is_draft": False,
+ },
+ )
+
+ # Flat construct with mixed methods
+ FLAT_MIXED: ClassVar[tuple[str, dict[str, Any]]] = (
+ "flat_mixed",
+ {
+ "report_title": "Monthly Sales Report",
+ "customer_name": {"from": "deal.customer_name"},
+ "deal_value": {"from": "deal.amount"},
+ "summary_text": {"template": "Deal worth $deal.amount with $deal.customer_name"},
+ },
+ )
+
+ # Construct with nested structure
+ WITH_NESTED: ClassVar[tuple[str, dict[str, Any]]] = (
+ "with_nested",
+ {
+ "invoice_number": {"template": "INV-$order.id"},
+ "total": {"from": "order.total_amount"},
+ "billing_address": {
+ "street": {"from": "customer.address.street"},
+ "city": {"from": "customer.address.city"},
+ "country": "France",
+ },
+ },
+ )
+
+ # Deeply nested construct
+ DEEPLY_NESTED: ClassVar[tuple[str, dict[str, Any]]] = (
+ "deeply_nested",
+ {
+ "name": {"from": "company.name"},
+ "headquarters": {
+ "address": {
+ "street": {"from": "hq.street"},
+ "city": {"from": "hq.city"},
+ },
+ "phone": {"template": "+$hq.country_code $hq.phone"},
+ },
+ },
+ )
+
+ ALL_CASES: ClassVar[list[tuple[str, dict[str, Any]]]] = [
+ FLAT_FIXED_ONLY,
+ FLAT_MIXED,
+ WITH_NESTED,
+ DEEPLY_NESTED,
+ ]
+
+
+class TestConstructBlueprintParsing:
+ """Tests for ConstructBlueprint parsing from raw dict."""
+
+ @pytest.mark.parametrize(
+ ("test_id", "raw_construct"),
+ ConstructBlueprintTestData.ALL_CASES,
+ )
+ def test_make_from_raw_succeeds(
+ self,
+ test_id: str,
+ raw_construct: dict[str, Any],
+ ):
+ """Test that valid raw construct dicts are successfully parsed."""
+ blueprint = ConstructBlueprint.make_from_raw(raw_construct)
+
+ assert blueprint is not None, f"Failed for {test_id}"
+ assert len(blueprint.fields) == len(raw_construct), f"Field count mismatch for {test_id}"
+
+ def test_flat_fixed_only_has_correct_fields(self):
+ """Test flat construct with only fixed values has correct field blueprints."""
+ raw = ConstructBlueprintTestData.FLAT_FIXED_ONLY[1]
+ blueprint = ConstructBlueprint.make_from_raw(raw)
+
+ assert blueprint.fields["title"].method == ConstructFieldMethod.FIXED
+ assert blueprint.fields["title"].fixed_value == "Monthly Report"
+
+ assert blueprint.fields["version"].method == ConstructFieldMethod.FIXED
+ assert blueprint.fields["version"].fixed_value == 1
+
+ assert blueprint.fields["is_draft"].method == ConstructFieldMethod.FIXED
+ assert blueprint.fields["is_draft"].fixed_value is False
+
+ def test_flat_mixed_has_correct_field_methods(self):
+ """Test flat construct with mixed methods has correct field types."""
+ raw = ConstructBlueprintTestData.FLAT_MIXED[1]
+ blueprint = ConstructBlueprint.make_from_raw(raw)
+
+ assert blueprint.fields["report_title"].method == ConstructFieldMethod.FIXED
+ assert blueprint.fields["customer_name"].method == ConstructFieldMethod.FROM_VAR
+ assert blueprint.fields["deal_value"].method == ConstructFieldMethod.FROM_VAR
+ assert blueprint.fields["summary_text"].method == ConstructFieldMethod.TEMPLATE
+
+ def test_with_nested_has_nested_blueprint(self):
+ """Test construct with nested structure has nested blueprint."""
+ raw = ConstructBlueprintTestData.WITH_NESTED[1]
+ blueprint = ConstructBlueprint.make_from_raw(raw)
+
+ assert blueprint.fields["invoice_number"].method == ConstructFieldMethod.TEMPLATE
+ assert blueprint.fields["total"].method == ConstructFieldMethod.FROM_VAR
+ assert blueprint.fields["billing_address"].method == ConstructFieldMethod.NESTED
+
+ # Check nested blueprint
+ nested = blueprint.fields["billing_address"].nested
+ assert nested is not None
+ assert len(nested.fields) == 3
+ assert nested.fields["street"].method == ConstructFieldMethod.FROM_VAR
+ assert nested.fields["city"].method == ConstructFieldMethod.FROM_VAR
+ assert nested.fields["country"].method == ConstructFieldMethod.FIXED
+ assert nested.fields["country"].fixed_value == "France"
+
+ def test_deeply_nested_parses_correctly(self):
+ """Test deeply nested construct parses all levels."""
+ raw = ConstructBlueprintTestData.DEEPLY_NESTED[1]
+ blueprint = ConstructBlueprint.make_from_raw(raw)
+
+ # Level 1
+ assert blueprint.fields["name"].method == ConstructFieldMethod.FROM_VAR
+ assert blueprint.fields["headquarters"].method == ConstructFieldMethod.NESTED
+
+ # Level 2 (headquarters)
+ hq = blueprint.fields["headquarters"].nested
+ assert hq is not None
+ assert hq.fields["address"].method == ConstructFieldMethod.NESTED
+ assert hq.fields["phone"].method == ConstructFieldMethod.TEMPLATE
+
+ # Level 3 (address)
+ address = hq.fields["address"].nested
+ assert address is not None
+ assert address.fields["street"].method == ConstructFieldMethod.FROM_VAR
+ assert address.fields["street"].from_path == "hq.street"
+ assert address.fields["city"].method == ConstructFieldMethod.FROM_VAR
+
+
+class TestConstructBlueprintFieldAccess:
+ """Tests for field access utilities in ConstructBlueprint."""
+
+ def test_get_required_variables_flat(self):
+ """Test extraction of required variables from flat construct returns root names only."""
+ raw = ConstructBlueprintTestData.FLAT_MIXED[1]
+ blueprint = ConstructBlueprint.make_from_raw(raw)
+
+ required_vars = blueprint.get_required_variables()
+
+ # Should return root names only (e.g., 'deal' from 'deal.customer_name')
+ assert "deal" in required_vars
+ # Should NOT contain full dotted paths
+ assert "deal.customer_name" not in required_vars
+ assert "deal.amount" not in required_vars
+
+ def test_get_required_variables_nested(self):
+ """Test extraction of required variables includes nested constructs with root names only."""
+ raw = ConstructBlueprintTestData.WITH_NESTED[1]
+ blueprint = ConstructBlueprint.make_from_raw(raw)
+
+ required_vars = blueprint.get_required_variables()
+
+ # Should return root names only from all levels (including nested constructs)
+ assert "order" in required_vars
+ assert "customer" in required_vars
+ # Should NOT contain full dotted paths
+ assert "order.id" not in required_vars
+ assert "order.total_amount" not in required_vars
+ assert "customer.address.street" not in required_vars
+ assert "customer.address.city" not in required_vars
+
+ def test_field_names_returns_all_top_level_fields(self):
+ """Test that field_names returns all top-level field names."""
+ raw = ConstructBlueprintTestData.WITH_NESTED[1]
+ blueprint = ConstructBlueprint.make_from_raw(raw)
+
+ field_names = blueprint.field_names
+
+ assert "invoice_number" in field_names
+ assert "total" in field_names
+ assert "billing_address" in field_names
+ assert len(field_names) == 3
+
+
+class TestConstructBlueprintValidation:
+ """Tests for ConstructBlueprint validation."""
+
+ def test_empty_construct_raises_error(self):
+ """Empty construct should raise an error."""
+ with pytest.raises(ValueError, match="empty"):
+ ConstructBlueprint.make_from_raw({})
diff --git a/tests/unit/pipelex/pipe_operators/pipe_compose/test_construct_field_blueprint.py b/tests/unit/pipelex/pipe_operators/pipe_compose/test_construct_field_blueprint.py
new file mode 100644
index 000000000..2acfc12f4
--- /dev/null
+++ b/tests/unit/pipelex/pipe_operators/pipe_compose/test_construct_field_blueprint.py
@@ -0,0 +1,268 @@
+"""Unit tests for ConstructFieldBlueprint - defines how a single field is composed.
+
+Tests cover the 4 composition methods:
+1. Fixed value: `field = "literal"` or `field = 42`
+2. Variable reference: `field = { from = "path.to.var" }`
+3. Template: `field = { template = "text with $var" }`
+4. Nested construct: dict with nested fields (recursive)
+"""
+
+from typing import Any, ClassVar
+
+import pytest
+
+from pipelex.pipe_operators.compose.construct_blueprint import (
+ ConstructFieldBlueprint,
+ ConstructFieldMethod,
+)
+
+
+class ConstructFieldBlueprintTestData:
+ """Test data for ConstructFieldBlueprint tests."""
+
+ # Fixed value cases: (test_id, raw_input, expected_method, expected_value)
+ FIXED_STRING: ClassVar[tuple[str, Any, ConstructFieldMethod, Any]] = (
+ "fixed_string",
+ "Monthly Report",
+ ConstructFieldMethod.FIXED,
+ "Monthly Report",
+ )
+
+ FIXED_INT: ClassVar[tuple[str, Any, ConstructFieldMethod, Any]] = (
+ "fixed_int",
+ 42,
+ ConstructFieldMethod.FIXED,
+ 42,
+ )
+
+ FIXED_FLOAT: ClassVar[tuple[str, Any, ConstructFieldMethod, Any]] = (
+ "fixed_float",
+ 3.14,
+ ConstructFieldMethod.FIXED,
+ 3.14,
+ )
+
+ FIXED_BOOL: ClassVar[tuple[str, Any, ConstructFieldMethod, Any]] = (
+ "fixed_bool",
+ True,
+ ConstructFieldMethod.FIXED,
+ True,
+ )
+
+ # Variable reference cases: (test_id, raw_input, expected_method, expected_path)
+ VAR_REF_SIMPLE: ClassVar[tuple[str, Any, ConstructFieldMethod, Any]] = (
+ "var_ref_simple",
+ {"from": "deal.customer_name"},
+ ConstructFieldMethod.FROM_VAR,
+ "deal.customer_name",
+ )
+
+ VAR_REF_NESTED_PATH: ClassVar[tuple[str, Any, ConstructFieldMethod, Any]] = (
+ "var_ref_nested_path",
+ {"from": "order.billing_address.city"},
+ ConstructFieldMethod.FROM_VAR,
+ "order.billing_address.city",
+ )
+
+ # Template cases: (test_id, raw_input, expected_method, expected_template)
+ TEMPLATE_SIMPLE: ClassVar[tuple[str, Any, ConstructFieldMethod, Any]] = (
+ "template_simple",
+ {"template": "Hello $name"},
+ ConstructFieldMethod.TEMPLATE,
+ "Hello $name",
+ )
+
+ TEMPLATE_MULTI_VAR: ClassVar[tuple[str, Any, ConstructFieldMethod, Any]] = (
+ "template_multi_var",
+ {"template": "Deal worth $deal.amount with $deal.customer_name"},
+ ConstructFieldMethod.TEMPLATE,
+ "Deal worth $deal.amount with $deal.customer_name",
+ )
+
+ TEMPLATE_WITH_JINJA2: ClassVar[tuple[str, Any, ConstructFieldMethod, Any]] = (
+ "template_with_jinja2",
+ {"template": "INV-{{ order.id | upper }}"},
+ ConstructFieldMethod.TEMPLATE,
+ "INV-{{ order.id | upper }}",
+ )
+
+ # Nested construct cases: (test_id, raw_input, expected_method)
+ NESTED_SIMPLE: ClassVar[tuple[str, Any, ConstructFieldMethod]] = (
+ "nested_simple",
+ {
+ "street": "123 Main St",
+ "city": {"from": "customer.city"},
+ },
+ ConstructFieldMethod.NESTED,
+ )
+
+ NESTED_DEEP: ClassVar[tuple[str, Any, ConstructFieldMethod]] = (
+ "nested_deep",
+ {
+ "line1": {"from": "addr.line1"},
+ "location": {
+ "city": {"from": "addr.city"},
+ "country": "France",
+ },
+ },
+ ConstructFieldMethod.NESTED,
+ )
+
+ # All fixed value cases
+ FIXED_VALUE_CASES: ClassVar[list[tuple[str, Any, ConstructFieldMethod, Any]]] = [
+ FIXED_STRING,
+ FIXED_INT,
+ FIXED_FLOAT,
+ FIXED_BOOL,
+ ]
+
+ # All variable reference cases
+ VAR_REF_CASES: ClassVar[list[tuple[str, Any, ConstructFieldMethod, Any]]] = [
+ VAR_REF_SIMPLE,
+ VAR_REF_NESTED_PATH,
+ ]
+
+ # All template cases
+ TEMPLATE_CASES: ClassVar[list[tuple[str, Any, ConstructFieldMethod, Any]]] = [
+ TEMPLATE_SIMPLE,
+ TEMPLATE_MULTI_VAR,
+ TEMPLATE_WITH_JINJA2,
+ ]
+
+ # All nested construct cases
+ NESTED_CASES: ClassVar[list[tuple[str, Any, ConstructFieldMethod]]] = [
+ NESTED_SIMPLE,
+ NESTED_DEEP,
+ ]
+
+
+class TestConstructFieldBlueprint:
+ """Tests for ConstructFieldBlueprint parsing and method detection."""
+
+ @pytest.mark.parametrize(
+ ("test_id", "raw_input", "expected_method", "expected_value"),
+ ConstructFieldBlueprintTestData.FIXED_VALUE_CASES,
+ )
+ def test_fixed_value_detection(
+ self,
+ test_id: str,
+ raw_input: Any,
+ expected_method: ConstructFieldMethod,
+ expected_value: Any,
+ ):
+ """Test that fixed values (literals) are correctly detected and stored."""
+ blueprint = ConstructFieldBlueprint.make_from_raw(raw_input)
+
+ assert blueprint.method == expected_method, f"Failed for {test_id}"
+ assert blueprint.fixed_value == expected_value, f"Failed for {test_id}"
+ assert blueprint.from_path is None, f"from_path should be None for {test_id}"
+ assert blueprint.template is None, f"template should be None for {test_id}"
+ assert blueprint.nested is None, f"nested should be None for {test_id}"
+
+ @pytest.mark.parametrize(
+ ("test_id", "raw_input", "expected_method", "expected_path"),
+ ConstructFieldBlueprintTestData.VAR_REF_CASES,
+ )
+ def test_var_ref_detection(
+ self,
+ test_id: str,
+ raw_input: Any,
+ expected_method: ConstructFieldMethod,
+ expected_path: str,
+ ):
+ """Test that variable references (from) are correctly detected and stored."""
+ blueprint = ConstructFieldBlueprint.make_from_raw(raw_input)
+
+ assert blueprint.method == expected_method, f"Failed for {test_id}"
+ assert blueprint.from_path == expected_path, f"Failed for {test_id}"
+ assert blueprint.fixed_value is None, f"fixed_value should be None for {test_id}"
+ assert blueprint.template is None, f"template should be None for {test_id}"
+ assert blueprint.nested is None, f"nested should be None for {test_id}"
+
+ @pytest.mark.parametrize(
+ ("test_id", "raw_input", "expected_method", "expected_template"),
+ ConstructFieldBlueprintTestData.TEMPLATE_CASES,
+ )
+ def test_template_detection(
+ self,
+ test_id: str,
+ raw_input: Any,
+ expected_method: ConstructFieldMethod,
+ expected_template: str,
+ ):
+ """Test that templates are correctly detected and stored."""
+ blueprint = ConstructFieldBlueprint.make_from_raw(raw_input)
+
+ assert blueprint.method == expected_method, f"Failed for {test_id}"
+ assert blueprint.template == expected_template, f"Failed for {test_id}"
+ assert blueprint.fixed_value is None, f"fixed_value should be None for {test_id}"
+ assert blueprint.from_path is None, f"from_path should be None for {test_id}"
+ assert blueprint.nested is None, f"nested should be None for {test_id}"
+
+ @pytest.mark.parametrize(
+ ("test_id", "raw_input", "expected_method"),
+ ConstructFieldBlueprintTestData.NESTED_CASES,
+ )
+ def test_nested_detection(
+ self,
+ test_id: str,
+ raw_input: dict[str, Any],
+ expected_method: ConstructFieldMethod,
+ ):
+ """Test that nested constructs are correctly detected."""
+ blueprint = ConstructFieldBlueprint.make_from_raw(raw_input)
+
+ assert blueprint.method == expected_method, f"Failed for {test_id}"
+ assert blueprint.nested is not None, f"nested should not be None for {test_id}"
+ assert blueprint.fixed_value is None, f"fixed_value should be None for {test_id}"
+ assert blueprint.from_path is None, f"from_path should be None for {test_id}"
+ assert blueprint.template is None, f"template should be None for {test_id}"
+
+ def test_nested_has_correct_child_blueprints(self):
+ """Test that nested constructs have correctly parsed child field blueprints."""
+ raw_input = {
+ "street": "123 Main St",
+ "city": {"from": "customer.city"},
+ "country": {"template": "Country: $loc.country"},
+ }
+ blueprint = ConstructFieldBlueprint.make_from_raw(raw_input)
+
+ assert blueprint.method == ConstructFieldMethod.NESTED
+ assert blueprint.nested is not None
+ assert len(blueprint.nested.fields) == 3
+
+ # Check street is fixed
+ assert blueprint.nested.fields["street"].method == ConstructFieldMethod.FIXED
+ assert blueprint.nested.fields["street"].fixed_value == "123 Main St"
+
+ # Check city is from_var
+ assert blueprint.nested.fields["city"].method == ConstructFieldMethod.FROM_VAR
+ assert blueprint.nested.fields["city"].from_path == "customer.city"
+
+ # Check country is template
+ assert blueprint.nested.fields["country"].method == ConstructFieldMethod.TEMPLATE
+ assert blueprint.nested.fields["country"].template == "Country: $loc.country"
+
+
+class TestConstructFieldBlueprintValidation:
+ """Tests for ConstructFieldBlueprint validation."""
+
+ def test_empty_dict_raises_error(self):
+ """Empty dict should raise an error - ambiguous construct."""
+ with pytest.raises(ValueError, match="empty"):
+ ConstructFieldBlueprint.make_from_raw({})
+
+ def test_dict_with_both_from_and_template_raises_error(self):
+ """Dict with both 'from' and 'template' keys should raise an error."""
+ with pytest.raises(ValueError, match="mutually exclusive"):
+ ConstructFieldBlueprint.make_from_raw(
+ {
+ "from": "deal.name",
+ "template": "Hello $name",
+ }
+ )
+
+ def test_none_value_raises_error(self):
+ """None value should raise an error."""
+ with pytest.raises(ValueError, match="None"):
+ ConstructFieldBlueprint.make_from_raw(None)
diff --git a/tests/unit/pipelex/pipe_operators/pipe_compose/test_structured_content_composer.py b/tests/unit/pipelex/pipe_operators/pipe_compose/test_structured_content_composer.py
new file mode 100644
index 000000000..5aa75bea1
--- /dev/null
+++ b/tests/unit/pipelex/pipe_operators/pipe_compose/test_structured_content_composer.py
@@ -0,0 +1,851 @@
+"""Unit tests for StructuredContentComposer - composes StructuredContent from blueprints.
+
+The composer takes a ConstructBlueprint and WorkingMemory, resolves all fields
+according to their composition methods, and produces a StructuredContent instance.
+"""
+
+from typing import Any, Callable, ClassVar, get_origin
+
+import pytest
+from pydantic import Field, ValidationError
+
+from pipelex.core.concepts.native.concept_native import NativeConceptCode
+from pipelex.core.memory.exceptions import WorkingMemoryStuffNotFoundError
+from pipelex.core.memory.working_memory import WorkingMemory
+from pipelex.core.memory.working_memory_factory import WorkingMemoryFactory
+from pipelex.core.stuffs.structured_content import StructuredContent
+from pipelex.core.stuffs.stuff_factory import StuffFactory
+from pipelex.core.stuffs.text_content import TextContent
+from pipelex.hub import get_native_concept
+from pipelex.pipe_operators.compose.construct_blueprint import ConstructBlueprint
+from pipelex.pipe_operators.compose.structured_content_composer import StructuredContentComposer
+from pipelex.tools.typing.pydantic_utils import empty_list_factory_of
+
+
+# Test StructuredContent classes for testing
+class SimpleReport(StructuredContent):
+ """Simple report for testing fixed values and variable references."""
+
+ title: str = Field(description="Report title")
+ author: str = Field(description="Author name")
+ score: float = Field(description="Report score")
+ is_draft: bool = Field(default=False, description="Whether this is a draft")
+
+
+class Address(StructuredContent):
+ """Address for nested structure testing."""
+
+ street: str = Field(description="Street address")
+ city: str = Field(description="City name")
+ country: str = Field(description="Country name")
+
+
+class Company(StructuredContent):
+ """Company with nested address for testing nested composition."""
+
+ name: str = Field(description="Company name")
+ headquarters: Address = Field(description="Company headquarters")
+
+
+class Deal(StructuredContent):
+ """Deal for working memory input testing."""
+
+ customer_name: str = Field(description="Customer name")
+ amount: float = Field(description="Deal amount")
+
+
+class SalesSummary(StructuredContent):
+ """Sales summary for template testing."""
+
+ report_title: str = Field(description="Title of the report")
+ customer_name: str = Field(description="Customer name")
+ deal_value: float = Field(description="Deal value")
+ summary_text: str = Field(description="Generated summary text")
+
+
+class ComposerTestData:
+ """Test data for StructuredContentComposer tests."""
+
+ # Fixed values only
+ FIXED_ONLY_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "title": "Annual Report",
+ "author": "John Doe",
+ "score": 95.5,
+ "is_draft": False,
+ }
+
+ # Variable references only
+ VAR_REF_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "report_title": {"from": "deal.customer_name"},
+ "customer_name": {"from": "deal.customer_name"},
+ "deal_value": {"from": "deal.amount"},
+ "summary_text": {"from": "deal.customer_name"},
+ }
+
+ # Mixed: fixed + variable refs
+ MIXED_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "report_title": "Monthly Sales Report",
+ "customer_name": {"from": "deal.customer_name"},
+ "deal_value": {"from": "deal.amount"},
+ "summary_text": {"template": "Deal worth $deal.amount with $deal.customer_name"},
+ }
+
+ # Nested construct
+ NESTED_CONSTRUCT: ClassVar[dict[str, Any]] = {
+ "name": {"from": "company_name"},
+ "headquarters": {
+ "street": {"from": "addr.street"},
+ "city": {"from": "addr.city"},
+ "country": "France",
+ },
+ }
+
+
[email protected](loop_scope="class")
+class TestStructuredContentComposerFixedValues:
+ """Tests for composing with fixed values only."""
+
+ async def test_compose_all_fixed_values(self):
+ """Test composing a StructuredContent with all fixed values."""
+ blueprint = ConstructBlueprint.make_from_raw(ComposerTestData.FIXED_ONLY_CONSTRUCT)
+ working_memory = WorkingMemory()
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory,
+ output_class=SimpleReport,
+ )
+ result = await composer.compose()
+
+ assert isinstance(result, SimpleReport)
+ assert result.title == "Annual Report"
+ assert result.author == "John Doe"
+ assert result.score == 95.5
+ assert result.is_draft is False
+
+
[email protected](loop_scope="class")
+class TestStructuredContentComposerVariableRefs:
+ """Tests for composing with variable references."""
+
+ @pytest.fixture
+ def working_memory_with_deal(self, load_empty_library: Callable[[], None]) -> WorkingMemory:
+ """Create working memory with a Deal object."""
+ load_empty_library()
+ deal = Deal(customer_name="Acme Corp", amount=50000.0)
+ return WorkingMemoryFactory.make_from_single_stuff(
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT), # Using native concept for simplicity
+ content=deal,
+ name="deal",
+ ),
+ )
+
+ async def test_compose_with_variable_refs(self, working_memory_with_deal: WorkingMemory):
+ """Test composing with variable references from working memory."""
+ blueprint = ConstructBlueprint.make_from_raw(ComposerTestData.VAR_REF_CONSTRUCT)
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory_with_deal,
+ output_class=SalesSummary,
+ )
+ result = await composer.compose()
+
+ assert isinstance(result, SalesSummary)
+ assert result.customer_name == "Acme Corp"
+ assert result.deal_value == 50000.0
+
+
[email protected](loop_scope="class")
+class TestStructuredContentComposerTemplates:
+ """Tests for composing with templates."""
+
+ @pytest.fixture
+ def working_memory_with_deal(self, load_empty_library: Callable[[], None]) -> WorkingMemory:
+ """Create working memory with a Deal object."""
+ load_empty_library()
+ deal = Deal(customer_name="Acme Corp", amount=50000.0)
+ return WorkingMemoryFactory.make_from_single_stuff(
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=deal,
+ name="deal",
+ ),
+ )
+
+ async def test_compose_with_template(self, working_memory_with_deal: WorkingMemory):
+ """Test composing with a template field."""
+ blueprint = ConstructBlueprint.make_from_raw(ComposerTestData.MIXED_CONSTRUCT)
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory_with_deal,
+ output_class=SalesSummary,
+ )
+ result = await composer.compose()
+
+ assert isinstance(result, SalesSummary)
+ assert result.report_title == "Monthly Sales Report"
+ assert result.customer_name == "Acme Corp"
+ assert result.deal_value == 50000.0
+ # Template should render the variables
+ assert "50000.0" in result.summary_text
+ assert "Acme Corp" in result.summary_text
+
+
[email protected](loop_scope="class")
+class TestStructuredContentComposerNested:
+ """Tests for composing nested structures."""
+
+ @pytest.fixture
+ def working_memory_with_address(self, load_empty_library: Callable[[], None]) -> WorkingMemory:
+ """Create working memory with address components."""
+ load_empty_library()
+ addr = Address(street="123 Main St", city="Paris", country="France")
+ company_name_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=TextContent(text="TechCorp"),
+ name="company_name",
+ )
+ addr_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=addr,
+ name="addr",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="company_name", stuff=company_name_stuff)
+ working_memory.add_new_stuff(name="addr", stuff=addr_stuff)
+ return working_memory
+
+ async def test_compose_nested_structure(self, working_memory_with_address: WorkingMemory):
+ """Test composing a StructuredContent with nested structure."""
+ blueprint = ConstructBlueprint.make_from_raw(ComposerTestData.NESTED_CONSTRUCT)
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory_with_address,
+ output_class=Company,
+ )
+ result = await composer.compose()
+
+ assert isinstance(result, Company)
+ assert result.name == "TechCorp"
+ assert isinstance(result.headquarters, Address)
+ assert result.headquarters.street == "123 Main St"
+ assert result.headquarters.city == "Paris"
+ assert result.headquarters.country == "France"
+
+
+class CompanyWithOptionalAddress(StructuredContent):
+ """Company with optional address using Python 3.10+ union syntax (X | None).
+
+ This tests the fix for _get_nested_field_class which used hasattr(annotation, "__origin__")
+ to detect Optional types. The Python 3.10+ union syntax creates types.UnionType which
+ doesn't have __origin__, so get_origin() must be used instead.
+ """
+
+ name: str = Field(description="Company name")
+ headquarters: Address | None = Field(default=None, description="Optional company headquarters")
+
+
[email protected](loop_scope="class")
+class TestStructuredContentComposerNestedOptional:
+ """Tests for composing nested structures with Python 3.10+ union syntax (X | None).
+
+ This tests the fix for the bug where _get_nested_field_class used
+ hasattr(annotation, "__origin__") to detect Optional types, which doesn't work
+ with Python 3.10+ union syntax (Address | None creates types.UnionType).
+ """
+
+ @pytest.fixture
+ def working_memory_with_address(self, load_empty_library: Callable[[], None]) -> WorkingMemory:
+ """Create working memory with address components."""
+ load_empty_library()
+ addr = Address(street="456 Elm St", city="Lyon", country="France")
+ company_name_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=TextContent(text="OptionalCorp"),
+ name="company_name",
+ )
+ addr_stuff = StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=addr,
+ name="addr",
+ )
+
+ working_memory = WorkingMemory()
+ working_memory.add_new_stuff(name="company_name", stuff=company_name_stuff)
+ working_memory.add_new_stuff(name="addr", stuff=addr_stuff)
+ return working_memory
+
+ async def test_compose_nested_optional_with_python_310_union_syntax(self, working_memory_with_address: WorkingMemory):
+ """Test composing nested structure when field uses Python 3.10+ union syntax.
+
+ Before fix: hasattr(annotation, "__origin__") would return False for types.UnionType,
+ causing the Address | None type to not have None stripped, and instantiation would fail.
+
+ After fix: get_origin() correctly handles both typing.Union and types.UnionType,
+ so the nested Address is correctly identified and composed.
+ """
+ nested_construct = {
+ "name": {"from": "company_name"},
+ "headquarters": {
+ "street": {"from": "addr.street"},
+ "city": {"from": "addr.city"},
+ "country": "France",
+ },
+ }
+ blueprint = ConstructBlueprint.make_from_raw(nested_construct)
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory_with_address,
+ output_class=CompanyWithOptionalAddress,
+ )
+ result = await composer.compose()
+
+ assert isinstance(result, CompanyWithOptionalAddress)
+ assert result.name == "OptionalCorp"
+ assert isinstance(result.headquarters, Address)
+ assert result.headquarters.street == "456 Elm St"
+ assert result.headquarters.city == "Lyon"
+ assert result.headquarters.country == "France"
+
+
[email protected](loop_scope="class")
+class TestStructuredContentComposerErrors:
+ """Tests for error handling in the composer."""
+
+ async def test_missing_variable_raises_error(self, load_empty_library: Callable[[], None]):
+ """Test that referencing a missing variable raises an appropriate error."""
+ load_empty_library()
+ blueprint = ConstructBlueprint.make_from_raw(
+ {
+ "title": {"from": "nonexistent.variable"},
+ "author": "Test",
+ "score": 1.0,
+ }
+ )
+ working_memory = WorkingMemory()
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory,
+ output_class=SimpleReport,
+ )
+
+ with pytest.raises(WorkingMemoryStuffNotFoundError):
+ await composer.compose()
+
+ async def test_type_mismatch_raises_error(self, load_empty_library: Callable[[], None]):
+ """Test that type mismatch between blueprint and class raises error."""
+ load_empty_library()
+ # score should be float but we provide a string that can't be converted
+ blueprint = ConstructBlueprint.make_from_raw(
+ {
+ "title": "Test Report",
+ "author": "Test Author",
+ "score": "not a number", # This should cause validation error
+ }
+ )
+ working_memory = WorkingMemory()
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory,
+ output_class=SimpleReport,
+ )
+
+ with pytest.raises(ValidationError):
+ await composer.compose()
+
+
[email protected](loop_scope="class")
+class TestStructuredContentComposerWithTemplates:
+ """Tests for async composition (templates may require async rendering)."""
+
+ @pytest.fixture
+ def working_memory_with_deal(self, load_empty_library: Callable[[], None]) -> WorkingMemory:
+ """Create working memory with a Deal object."""
+ load_empty_library()
+ deal = Deal(customer_name="Acme Corp", amount=50000.0)
+ return WorkingMemoryFactory.make_from_single_stuff(
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=deal,
+ name="deal",
+ ),
+ )
+
+ async def test_compose_with_templates(self, working_memory_with_deal: WorkingMemory):
+ """Test async composition when templates are involved."""
+ blueprint = ConstructBlueprint.make_from_raw(ComposerTestData.MIXED_CONSTRUCT)
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory_with_deal,
+ output_class=SalesSummary,
+ )
+ result = await composer.compose()
+
+ assert isinstance(result, SalesSummary)
+ assert "50000.0" in result.summary_text or "50000" in result.summary_text
+ assert "Acme Corp" in result.summary_text
+
+
+# Additional test models for dotted path type conversion
+class ContainerWithTextContent(StructuredContent):
+ """Container that holds a TextContent for testing dotted path type conversion."""
+
+ content: TextContent = Field(description="Text content")
+ label: str = Field(description="Label")
+
+
+class OutputWithStringField(StructuredContent):
+ """Output that expects a string field from a dotted path to TextContent."""
+
+ extracted_text: str = Field(description="Text extracted from dotted path")
+ description: str = Field(description="Description")
+
+
[email protected](loop_scope="class")
+class TestStructuredContentComposerDottedPathTypeConversion:
+ """Tests for type conversion when using dotted paths.
+
+ This tests the fix for the bug where dotted paths did not apply type conversion:
+ - Non-dotted path `{ from = "content" }` correctly converted TextContent -> str
+ - Dotted path `{ from = "obj.content" }` returned raw TextContent, causing Pydantic error
+
+ After the fix, both paths should consistently apply type conversion.
+ """
+
+ @pytest.fixture
+ def working_memory_with_container(self, load_empty_library: Callable[[], None]) -> WorkingMemory:
+ """Create working memory with a container holding TextContent."""
+ load_empty_library()
+ container = ContainerWithTextContent(
+ content=TextContent(text="Hello from TextContent"),
+ label="test-container",
+ )
+ return WorkingMemoryFactory.make_from_single_stuff(
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=container,
+ name="container",
+ ),
+ )
+
+ async def test_dotted_path_converts_text_content_to_str(self, working_memory_with_container: WorkingMemory):
+ """Test that dotted path to TextContent is converted to str when target field expects str.
+
+ This tests the fix: before the fix, `{ from = "container.content" }` would return
+ the raw TextContent object, causing a Pydantic validation error.
+ After the fix, it should correctly extract TextContent.text as str.
+ """
+ blueprint = ConstructBlueprint.make_from_raw(
+ {
+ "extracted_text": {"from": "container.content"}, # TextContent -> str conversion needed
+ "description": "Test description",
+ }
+ )
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory_with_container,
+ output_class=OutputWithStringField,
+ )
+ result = await composer.compose()
+
+ assert isinstance(result, OutputWithStringField)
+ assert result.extracted_text == "Hello from TextContent"
+ assert result.description == "Test description"
+
+ async def test_dotted_path_preserves_text_content_when_expected(self, working_memory_with_container: WorkingMemory):
+ """Test that dotted path to TextContent is preserved when target field expects TextContent."""
+
+ class OutputWithTextContentField(StructuredContent):
+ content: TextContent = Field(description="Text content object")
+ label: str = Field(description="Label")
+
+ blueprint = ConstructBlueprint.make_from_raw(
+ {
+ "content": {"from": "container.content"}, # TextContent -> TextContent, no conversion
+ "label": {"from": "container.label"},
+ }
+ )
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory_with_container,
+ output_class=OutputWithTextContentField,
+ )
+ result = await composer.compose()
+
+ assert isinstance(result, OutputWithTextContentField)
+ assert isinstance(result.content, TextContent)
+ assert result.content.text == "Hello from TextContent"
+ assert result.label == "test-container"
+
+
+# Test models using typing.Optional syntax (works on all Python versions)
+
+
+class CompanyWithTypingOptionalAddress(StructuredContent):
+ """Company with optional address using typing.Optional syntax."""
+
+ name: str = Field(description="Company name")
+ headquarters: Address | None = Field(default=None, description="Optional headquarters")
+
+
+class TestGetNestedFieldClassOptionalSyntaxes:
+ """Tests for _get_nested_field_class with different Optional syntaxes.
+
+ This tests the fix where hasattr(annotation, "__origin__") was used to detect
+ Optional types, which doesn't work for Python 3.10+ union syntax (X | None).
+ The fix uses get_origin() which handles both syntaxes correctly.
+
+ These tests directly verify that _get_nested_field_class returns the correct
+ class for both Optional[Address] and Address | None syntaxes.
+ """
+
+ def test_get_nested_field_class_with_typing_optional(self):
+ """Test _get_nested_field_class correctly handles typing.Optional[Address].
+
+ typing.Optional[Address] has __origin__ = typing.Union, so the old
+ hasattr(annotation, "__origin__") check worked. This test ensures we
+ didn't break backward compatibility.
+ """
+ # Need valid nested construct data for the blueprint
+ nested_construct = {
+ "name": "Test",
+ "headquarters": {"street": "123 Main", "city": "Paris", "country": "France"},
+ }
+ blueprint = ConstructBlueprint.make_from_raw(nested_construct)
+ working_memory = WorkingMemory()
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory,
+ output_class=CompanyWithTypingOptionalAddress,
+ )
+
+ # Directly test the private method (noqa needed for testing internal behavior)
+ result = composer._get_nested_field_class("headquarters") # noqa: SLF001 # pyright: ignore[reportPrivateUsage]
+
+ assert result is Address, f"Expected Address, got {result}"
+
+ def test_get_nested_field_class_with_python_310_union_syntax(self):
+ """Test _get_nested_field_class correctly handles Python 3.10+ Address | None.
+
+ Before the fix: types.UnionType (from X | None) doesn't have __origin__,
+ so hasattr(annotation, "__origin__") returned False, and the None wasn't
+ stripped. This would cause Address | None to be returned instead of Address.
+
+ After the fix: get_origin() correctly returns types.UnionType for this case,
+ and we strip the None to get Address.
+ """
+ # Need valid nested construct data for the blueprint
+ nested_construct = {
+ "name": "Test",
+ "headquarters": {"street": "123 Main", "city": "Paris", "country": "France"},
+ }
+ blueprint = ConstructBlueprint.make_from_raw(nested_construct)
+ working_memory = WorkingMemory()
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory,
+ output_class=CompanyWithOptionalAddress,
+ )
+
+ # Directly test the private method (noqa needed for testing internal behavior)
+ result = composer._get_nested_field_class("headquarters") # noqa: SLF001 # pyright: ignore[reportPrivateUsage]
+
+ assert result is Address, f"Expected Address, got {result}"
+
+ def test_both_optional_syntaxes_return_same_class(self):
+ """Test that both Optional syntaxes return the same nested class.
+
+ This is the key test: regardless of whether Optional[Address] or Address | None
+ is used, _get_nested_field_class should return Address in both cases.
+ """
+ # Need valid nested construct data for the blueprint
+ nested_construct = {
+ "name": "Test",
+ "headquarters": {"street": "123 Main", "city": "Paris", "country": "France"},
+ }
+ blueprint = ConstructBlueprint.make_from_raw(nested_construct)
+ working_memory = WorkingMemory()
+
+ composer_typing_optional = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory,
+ output_class=CompanyWithTypingOptionalAddress,
+ )
+
+ composer_union_syntax = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory,
+ output_class=CompanyWithOptionalAddress,
+ )
+
+ # Ignore lint/type errors: testing internal behavior directly
+ result_typing = composer_typing_optional._get_nested_field_class("headquarters") # noqa: SLF001 # pyright: ignore[reportPrivateUsage]
+ result_union = composer_union_syntax._get_nested_field_class("headquarters") # noqa: SLF001 # pyright: ignore[reportPrivateUsage]
+
+ assert result_typing is Address
+ assert result_union is Address
+ assert result_typing is result_union, "Both syntaxes should return the same class"
+
+
+# Test models for generic type tests (list, dict)
+class CompanyWithAddressList(StructuredContent):
+ """Company with a list of addresses - should NOT be unwrapped by _get_nested_field_class."""
+
+ name: str = Field(description="Company name")
+ branches: list[Address] = Field(
+ default_factory=empty_list_factory_of(Address),
+ description="List of branch addresses",
+ )
+
+
+class CompanyWithAddressDict(StructuredContent):
+ """Company with a dict of addresses - should NOT be unwrapped by _get_nested_field_class."""
+
+ name: str = Field(description="Company name")
+ offices: dict[str, Address] = Field(default_factory=dict, description="Dict of office addresses by name")
+
+
+class TestGetNestedFieldClassGenericTypes:
+ """Tests for _get_nested_field_class with generic types that should NOT be unwrapped.
+
+ This tests the fix for the bug where `get_origin(annotation) is not None` matched
+ ALL generic types including list[X], dict[K, V], etc. The condition was too broad
+ and would incorrectly unwrap list[Address] to Address.
+
+ The fix checks specifically for Union/UnionType with None in args to detect Optional types.
+ """
+
+ def test_get_nested_field_class_does_not_unwrap_list(self):
+ """Test _get_nested_field_class does NOT unwrap list[Address] to Address.
+
+ Before the fix: list[Address] would be unwrapped to Address because
+ get_origin(list[Address]) returns list (not None), triggering the unwrap.
+
+ After the fix: list[Address] is returned as-is because we only unwrap
+ Optional types (Union/UnionType with None in args).
+ """
+ # Use a simple blueprint - we just need to test the _get_nested_field_class method
+ # The blueprint doesn't need to match the field we're testing
+ simple_construct = {"name": "Test Company"}
+ blueprint = ConstructBlueprint.make_from_raw(simple_construct)
+ working_memory = WorkingMemory()
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory,
+ output_class=CompanyWithAddressList,
+ )
+
+ # Directly test the private method (noqa needed for testing internal behavior)
+ result = composer._get_nested_field_class("branches") # noqa: SLF001 # pyright: ignore[reportPrivateUsage]
+
+ # The bug would have returned Address here instead of list[Address]
+ assert result is not Address, "list[Address] should NOT be unwrapped to Address"
+ # The correct result should be list[Address]
+ assert get_origin(result) is list, f"Expected list[Address], got {result}"
+
+ def test_get_nested_field_class_does_not_unwrap_dict(self):
+ """Test _get_nested_field_class does NOT unwrap dict[str, Address] to str.
+
+ Before the fix: dict[str, Address] would be unwrapped to str because
+ get_origin(dict[str, Address]) returns dict (not None), triggering the unwrap.
+
+ After the fix: dict[str, Address] is returned as-is.
+ """
+ # Use a simple blueprint - we just need to test the _get_nested_field_class method
+ # The blueprint doesn't need to match the field we're testing
+ simple_construct = {"name": "Test Company"}
+ blueprint = ConstructBlueprint.make_from_raw(simple_construct)
+ working_memory = WorkingMemory()
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory,
+ output_class=CompanyWithAddressDict,
+ )
+
+ # Directly test the private method (noqa needed for testing internal behavior)
+ result = composer._get_nested_field_class("offices") # noqa: SLF001 # pyright: ignore[reportPrivateUsage]
+
+ # The bug would have returned str here instead of dict[str, Address]
+ assert result is not str, "dict[str, Address] should NOT be unwrapped to str"
+ assert result is not Address, "dict[str, Address] should NOT be unwrapped to Address"
+ # The correct result should be dict[str, Address]
+ assert get_origin(result) is dict, f"Expected dict[str, Address], got {result}"
+
+
+# Test model for runtime params testing
+class ReportWithRuntimeParams(StructuredContent):
+ """Report that uses runtime params in templates."""
+
+ title: str = Field(description="Report title")
+ generated_summary: str = Field(description="Summary generated from template with runtime params")
+
+
+# Test model for nested structure with runtime params
+class NestedReportWithRuntimeParams(StructuredContent):
+ """Nested structure with runtime params in templates."""
+
+ header: str = Field(description="Header text")
+ details: ReportWithRuntimeParams = Field(description="Nested report details")
+
+
[email protected](loop_scope="class")
+class TestStructuredContentComposerRuntimeParams:
+ """Tests for template fields accessing runtime_params and extra_context.
+
+ This tests the fix for the inconsistency where _resolve_template only used
+ working_memory.generate_context(), but _run_template_mode in PipeCompose also
+ included pipe_run_params.params and extra_context. Templates in construct fields
+ should have access to the same context as templates in template mode.
+ """
+
+ @pytest.fixture
+ def working_memory_with_deal(self, load_empty_library: Callable[[], None]) -> WorkingMemory:
+ """Create working memory with a Deal object."""
+ load_empty_library()
+ deal = Deal(customer_name="Acme Corp", amount=50000.0)
+ return WorkingMemoryFactory.make_from_single_stuff(
+ stuff=StuffFactory.make_stuff(
+ concept=get_native_concept(NativeConceptCode.TEXT),
+ content=deal,
+ name="deal",
+ ),
+ )
+
+ async def test_template_field_accesses_runtime_params(self, working_memory_with_deal: WorkingMemory):
+ """Test that template fields can access runtime_params (from PipeRunParams.params).
+
+ Before fix: templates in construct fields could not access runtime params,
+ causing template rendering to fail or produce incorrect output.
+
+ After fix: runtime_params are merged into the template context, making them
+ accessible just like in _run_template_mode.
+ """
+ blueprint = ConstructBlueprint.make_from_raw(
+ {
+ "title": {"from": "deal.customer_name"},
+ "generated_summary": {"template": "Report for $_report_type generated on $_report_date"},
+ }
+ )
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory_with_deal,
+ output_class=ReportWithRuntimeParams,
+ runtime_params={"_report_type": "Quarterly", "_report_date": "2025-01-02"},
+ )
+ result = await composer.compose()
+
+ assert isinstance(result, ReportWithRuntimeParams)
+ assert result.title == "Acme Corp"
+ assert "Quarterly" in result.generated_summary
+ assert "2025-01-02" in result.generated_summary
+
+ async def test_template_field_accesses_extra_context(self, working_memory_with_deal: WorkingMemory):
+ """Test that template fields can access extra_context (from PipeCompose.extra_context).
+
+ Before fix: templates in construct fields could not access extra_context,
+ causing template rendering to fail or produce incorrect output.
+
+ After fix: extra_context is merged into the template context, making it
+ accessible just like in _run_template_mode.
+ """
+ blueprint = ConstructBlueprint.make_from_raw(
+ {
+ "title": "Financial Report",
+ "generated_summary": {"template": "Summary for $fiscal_year Q$quarter"},
+ }
+ )
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory_with_deal,
+ output_class=ReportWithRuntimeParams,
+ extra_context={"fiscal_year": "2025", "quarter": "1"},
+ )
+ result = await composer.compose()
+
+ assert isinstance(result, ReportWithRuntimeParams)
+ assert result.title == "Financial Report"
+ assert "2025" in result.generated_summary
+ assert "Q1" in result.generated_summary
+
+ async def test_template_field_combines_all_context_sources(self, working_memory_with_deal: WorkingMemory):
+ """Test that template fields can access all context sources together.
+
+ Context is built in order (later sources override earlier):
+ 1. Working memory context (stuffs as variables)
+ 2. Runtime params (from PipeRunParams.params)
+ 3. Extra context (from PipeCompose.extra_context)
+
+ This ensures templates can use variables from all sources in a single template.
+ """
+ blueprint = ConstructBlueprint.make_from_raw(
+ {
+ "title": {"from": "deal.customer_name"},
+ "generated_summary": {"template": "Customer: $deal.customer_name, Type: $_report_type, Year: $fiscal_year"},
+ }
+ )
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory_with_deal,
+ output_class=ReportWithRuntimeParams,
+ runtime_params={"_report_type": "Annual"},
+ extra_context={"fiscal_year": "2025"},
+ )
+ result = await composer.compose()
+
+ assert isinstance(result, ReportWithRuntimeParams)
+ assert result.title == "Acme Corp"
+ # Template should include values from all three sources
+ assert "Acme Corp" in result.generated_summary # From working memory
+ assert "Annual" in result.generated_summary # From runtime_params
+ assert "2025" in result.generated_summary # From extra_context
+
+ async def test_nested_template_fields_access_runtime_params(self, working_memory_with_deal: WorkingMemory):
+ """Test that nested structures also have access to runtime_params and extra_context.
+
+ The fix passes runtime_params and extra_context to nested composers,
+ ensuring templates in nested structures work correctly.
+ """
+ nested_construct = {
+ "header": {"template": "Report for $_report_type"},
+ "details": {
+ "title": {"from": "deal.customer_name"},
+ "generated_summary": {"template": "Generated on $_report_date for $fiscal_year"},
+ },
+ }
+ blueprint = ConstructBlueprint.make_from_raw(nested_construct)
+
+ composer = StructuredContentComposer(
+ construct_blueprint=blueprint,
+ working_memory=working_memory_with_deal,
+ output_class=NestedReportWithRuntimeParams,
+ runtime_params={"_report_type": "Monthly", "_report_date": "2025-01-15"},
+ extra_context={"fiscal_year": "2025"},
+ )
+ result = await composer.compose()
+
+ assert isinstance(result, NestedReportWithRuntimeParams)
+ # Top-level template should access runtime_params
+ assert "Monthly" in result.header
+ # Nested template should access both runtime_params and extra_context
+ assert isinstance(result.details, ReportWithRuntimeParams)
+ assert result.details.title == "Acme Corp"
+ assert "2025-01-15" in result.details.generated_summary # From runtime_params
+ assert "2025" in result.details.generated_summary # From extra_context
diff --git a/tests/unit/pipelex/pipe_operators/pipe_img_gen/data.py b/tests/unit/pipelex/pipe_operators/pipe_img_gen/data.py
index 207806bf4..dc847bf9e 100644
--- a/tests/unit/pipelex/pipe_operators/pipe_img_gen/data.py
+++ b/tests/unit/pipelex/pipe_operators/pipe_img_gen/data.py
@@ -1,7 +1,8 @@
from typing import ClassVar
-from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background, OutputFormat
+from pipelex.cogt.img_gen.img_gen_job_components import AspectRatio, Background
from pipelex.pipe_operators.img_gen.pipe_img_gen_blueprint import PipeImgGenBlueprint
+from pipelex.tools.misc.image_utils import ImageFormat
class PipeImgGenInputTestCases:
@@ -89,7 +90,7 @@ class PipeImgGenInputTestCases:
inputs={"prompt": "native.Text"},
output="native.Image",
prompt="@prompt",
- output_format=OutputFormat.PNG,
+ output_format=ImageFormat.PNG,
),
)
diff --git a/tests/unit/pipelex/tools/misc/test_base64_utils.py b/tests/unit/pipelex/tools/misc/test_base64_utils.py
new file mode 100644
index 000000000..b3fe09752
--- /dev/null
+++ b/tests/unit/pipelex/tools/misc/test_base64_utils.py
@@ -0,0 +1,27 @@
+import base64
+
+import pytest
+
+from pipelex.tools.misc.base64_utils import load_binary_as_base64, load_binary_as_base64_async
+from tests.cases import FileHelperTestCases
+
+
+class TestBase64Utils:
+ def test_load_binary_as_base64(self) -> None:
+ file_path = FileHelperTestCases.TEST_IMAGE
+ with open(file_path, "rb") as f:
+ expected = base64.b64encode(f.read())
+
+ result = load_binary_as_base64(path=file_path)
+
+ assert result == expected
+
+ @pytest.mark.asyncio
+ async def test_load_binary_as_base64_async(self) -> None:
+ file_path = FileHelperTestCases.TEST_IMAGE
+ with open(file_path, "rb") as f:
+ expected = base64.b64encode(f.read())
+
+ result = await load_binary_as_base64_async(path=file_path)
+
+ assert result == expected
diff --git a/tests/unit/pipelex/tools/misc/test_base_64_utils.py b/tests/unit/pipelex/tools/misc/test_base_64_utils.py
deleted file mode 100644
index 779b3b5d0..000000000
--- a/tests/unit/pipelex/tools/misc/test_base_64_utils.py
+++ /dev/null
@@ -1,70 +0,0 @@
-import base64
-from pathlib import Path
-
-import pytest
-
-from pipelex.tools.misc.base_64_utils import (
- encode_to_base64,
- encode_to_base64_async,
- load_binary_as_base64,
- load_binary_as_base64_async,
- save_base_64_str_to_binary_file,
-)
-from tests.cases import FileHelperTestCases
-
-
-class TestBase64Utils:
- def test_load_binary_as_base64(self) -> None:
- file_path = FileHelperTestCases.TEST_IMAGE
- with open(file_path, "rb") as f:
- expected = base64.b64encode(f.read())
-
- result = load_binary_as_base64(path=file_path)
-
- assert result == expected
-
- @pytest.mark.asyncio
- async def test_load_binary_as_base64_async(self) -> None:
- file_path = FileHelperTestCases.TEST_IMAGE
- with open(file_path, "rb") as f:
- expected = base64.b64encode(f.read())
-
- result = await load_binary_as_base64_async(path=file_path)
-
- assert result == expected
-
- def test_encode_to_base64(self) -> None:
- data = b"hello world"
- expected = base64.b64encode(data)
-
- assert encode_to_base64(data) == expected
-
- @pytest.mark.asyncio
- async def test_encode_to_base64_async(self) -> None:
- data = b"async data"
- expected = base64.b64encode(data)
-
- result = await encode_to_base64_async(data)
-
- assert result == expected
-
- def test_save_base64_to_binary_file_plain(self, tmp_path: Path) -> None:
- data = b"binary data"
- b64 = base64.b64encode(data).decode()
- out_file = tmp_path / "out.bin"
-
- save_base_64_str_to_binary_file(base_64_str=b64, file_path=str(out_file))
-
- with open(out_file, "rb") as f:
- assert f.read() == data
-
- def test_save_base64_to_binary_file_data_url(self, tmp_path: Path) -> None:
- data = b"more data"
- b64 = base64.b64encode(data).decode()
- data_url = f"data:application/octet-stream;base64,{b64}"
- out_file = tmp_path / "out.bin"
-
- save_base_64_str_to_binary_file(base_64_str=data_url, file_path=str(out_file))
-
- with open(out_file, "rb") as f:
- assert f.read() == data
diff --git a/tests/unit/pipelex/tools/misc/test_filetype_utils.py b/tests/unit/pipelex/tools/misc/test_filetype_utils.py
index f9de8b386..b99dd7649 100644
--- a/tests/unit/pipelex/tools/misc/test_filetype_utils.py
+++ b/tests/unit/pipelex/tools/misc/test_filetype_utils.py
@@ -144,7 +144,7 @@ class TestDetectFileTypeFromBase64:
assert isinstance(result, FileType)
assert result.extension == "gif"
assert result.mime == "image/gif"
- mock_detect_bytes.assert_called_once_with(buf=gif_bytes)
+ mock_detect_bytes.assert_called_once_with(raw_bytes=gif_bytes)
def test_detect_file_type_from_base64_bytes_success(self, mocker: MockerFixture):
# Mock detect_file_type_from_bytes
@@ -162,7 +162,7 @@ class TestDetectFileTypeFromBase64:
assert isinstance(result, FileType)
assert result.extension == "jpg"
assert result.mime == "image/jpeg"
- mock_detect_bytes.assert_called_once_with(buf=jpeg_bytes)
+ mock_detect_bytes.assert_called_once_with(raw_bytes=jpeg_bytes)
def test_detect_file_type_from_base64_data_url_success(self, mocker: MockerFixture):
# Mock detect_file_type_from_bytes
@@ -181,7 +181,7 @@ class TestDetectFileTypeFromBase64:
assert isinstance(result, FileType)
assert result.extension == "png"
assert result.mime == "image/png"
- mock_detect_bytes.assert_called_once_with(buf=png_bytes)
+ mock_detect_bytes.assert_called_once_with(raw_bytes=png_bytes)
def test_detect_file_type_from_base64_data_url_with_whitespace(self, mocker: MockerFixture):
# Mock detect_file_type_from_bytes
@@ -200,20 +200,20 @@ class TestDetectFileTypeFromBase64:
assert isinstance(result, FileType)
assert result.extension == "txt"
assert result.mime == "text/plain"
- mock_detect_bytes.assert_called_once_with(buf=test_bytes)
+ mock_detect_bytes.assert_called_once_with(raw_bytes=test_bytes)
def test_detect_file_type_from_base64_invalid_base64_string(self, mocker: MockerFixture): # noqa: ARG002
# Test with invalid base64 string
invalid_b64 = "invalid!base64!string!"
- with pytest.raises(FileTypeError, match="Could not identify file type of given bytes because input is not valid Base-64"):
+ with pytest.raises(FileTypeError, match="Could not identify file type of given bytes because input is not valid base64"):
detect_file_type_from_base64(invalid_b64)
def test_detect_file_type_from_base64_invalid_base64_bytes(self, mocker: MockerFixture): # noqa: ARG002
# Test with invalid base64 bytes
invalid_b64_bytes = b"invalid!base64!bytes!"
- with pytest.raises(FileTypeError, match="Could not identify file type of given bytes because input is not valid Base-64"):
+ with pytest.raises(FileTypeError, match="Could not identify file type of given bytes because input is not valid base64"):
detect_file_type_from_base64(invalid_b64_bytes)
def test_detect_file_type_from_base64_data_url_no_comma(self, mocker: MockerFixture):
diff --git a/tests/unit/pipelex/tools/misc/test_path_utils.py b/tests/unit/pipelex/tools/misc/test_path_utils.py
index eb3fff1fd..539bcdecd 100644
--- a/tests/unit/pipelex/tools/misc/test_path_utils.py
+++ b/tests/unit/pipelex/tools/misc/test_path_utils.py
@@ -7,49 +7,27 @@ from pipelex.tools.misc.path_utils import (
InterpretedPathOrUrl,
clarify_path_or_url,
interpret_path_or_url,
+ is_pipelex_storage_uri,
)
-
-
-class TestInterpretedPathOrUrl:
- def test_enum_values(self):
- assert InterpretedPathOrUrl.FILE_URI == "file_uri"
- assert InterpretedPathOrUrl.FILE_PATH == "file_path"
- assert InterpretedPathOrUrl.URL == "uri"
- assert InterpretedPathOrUrl.FILE_NAME == "file_name"
- assert InterpretedPathOrUrl.BASE_64 == "base_64"
-
- def test_desc_property_file_uri(self):
- assert InterpretedPathOrUrl.FILE_URI.desc == "File URI"
-
- def test_desc_property_file_path(self):
- assert InterpretedPathOrUrl.FILE_PATH.desc == "File Path"
-
- def test_desc_property_url(self):
- assert InterpretedPathOrUrl.URL.desc == "URL"
-
- def test_desc_property_file_name(self):
- assert InterpretedPathOrUrl.FILE_NAME.desc == "File Name"
-
- def test_desc_property_base_64(self):
- assert InterpretedPathOrUrl.BASE_64.desc == "Base 64"
+from pipelex.tools.storage.storage_provider_abstract import PIPELEX_STORAGE_SCHEME
class TestInterpretPathOrUrl:
def test_interpret_file_uri(self):
result = interpret_path_or_url("file:///home/user/file.txt")
- assert result == InterpretedPathOrUrl.FILE_URI
+ assert result == InterpretedPathOrUrl.LOCAL_FILE_PATH_URL
def test_interpret_file_uri_windows(self):
result = interpret_path_or_url("file:///C:/Users/user/file.txt")
- assert result == InterpretedPathOrUrl.FILE_URI
+ assert result == InterpretedPathOrUrl.LOCAL_FILE_PATH_URL
def test_interpret_http_url(self):
result = interpret_path_or_url("http://example.com")
- assert result == InterpretedPathOrUrl.URL
+ assert result == InterpretedPathOrUrl.HTTP_URL
def test_interpret_https_url(self):
result = interpret_path_or_url("https://example.com/path")
- assert result == InterpretedPathOrUrl.URL
+ assert result == InterpretedPathOrUrl.HTTP_URL
def test_interpret_absolute_file_path_unix(self):
result = interpret_path_or_url("/home/user/file.txt")
@@ -95,7 +73,21 @@ class TestInterpretPathOrUrl:
def test_interpret_edge_case_file_in_url(self):
result = interpret_path_or_url("http://example.com/file.txt")
- assert result == InterpretedPathOrUrl.URL
+ assert result == InterpretedPathOrUrl.HTTP_URL
+
+ def test_interpret_pipelex_storage_uri(self):
+ result = interpret_path_or_url(f"{PIPELEX_STORAGE_SCHEME}images/photo.png")
+ assert result == InterpretedPathOrUrl.PIPELEX_STORAGE
+
+ def test_interpret_pipelex_storage_uri_with_nested_path(self):
+ result = interpret_path_or_url(f"{PIPELEX_STORAGE_SCHEME}user123/run456/image.jpg")
+ assert result == InterpretedPathOrUrl.PIPELEX_STORAGE
+
+ def test_interpret_pipelex_storage_takes_precedence(self):
+ """Test that pipelex-storage:// is detected before checking for path separators."""
+ # This URI contains a path separator but should be recognized as pipelex storage
+ result = interpret_path_or_url(f"{PIPELEX_STORAGE_SCHEME}path/to/file.bin")
+ assert result == InterpretedPathOrUrl.PIPELEX_STORAGE
class TestClarifyPathOrUrl:
@@ -155,9 +147,14 @@ class TestClarifyPathOrUrl:
"pipelex.tools.misc.path_utils.interpret_path_or_url",
return_value=InterpretedPathOrUrl.BASE_64,
)
- with pytest.raises(NotImplementedError, match="Base 64 is not supported yet by clarify_path_or_url"):
+ with pytest.raises(NotImplementedError, match="Base 64 is not supported by clarify_path_or_url"):
clarify_path_or_url("some_base64_data")
+ def test_clarify_pipelex_storage_raises_not_implemented(self):
+ pipelex_uri = f"{PIPELEX_STORAGE_SCHEME}images/photo.png"
+ with pytest.raises(NotImplementedError, match="Pipelex storage URIs are not supported by clarify_path_or_url"):
+ clarify_path_or_url(pipelex_uri)
+
def test_clarify_uses_interpret_path_or_url(self, mocker: MockerFixture):
mock_interpret = mocker.patch(
"pipelex.tools.misc.path_utils.interpret_path_or_url",
@@ -175,7 +172,7 @@ class TestClarifyPathOrUrl:
mocker.patch(
"pipelex.tools.misc.path_utils.interpret_path_or_url",
- return_value=InterpretedPathOrUrl.FILE_URI,
+ return_value=InterpretedPathOrUrl.LOCAL_FILE_PATH_URL,
)
file_path, url = clarify_path_or_url("file:///home/user/file.txt")
@@ -184,3 +181,28 @@ class TestClarifyPathOrUrl:
mock_unquote.assert_called_once_with("/home/user/file.txt")
assert file_path == "/home/user/file.txt"
assert url is None
+
+
+class TestIsPipelexStorageUri:
+ def test_returns_true_for_pipelex_storage_uri(self):
+ assert is_pipelex_storage_uri(f"{PIPELEX_STORAGE_SCHEME}images/photo.png") is True
+
+ def test_returns_true_for_pipelex_storage_uri_with_nested_path(self):
+ assert is_pipelex_storage_uri(f"{PIPELEX_STORAGE_SCHEME}user/run/image.jpg") is True
+
+ def test_returns_false_for_http_url(self):
+ assert is_pipelex_storage_uri("https://example.com/image.png") is False
+
+ def test_returns_false_for_file_path(self):
+ assert is_pipelex_storage_uri("/home/user/image.png") is False
+
+ def test_returns_false_for_file_uri(self):
+ assert is_pipelex_storage_uri("file:///home/user/image.png") is False
+
+ def test_returns_false_for_empty_string(self):
+ assert is_pipelex_storage_uri("") is False
+
+ def test_returns_false_for_similar_prefix(self):
+ # Ensure partial matches don't return true
+ assert is_pipelex_storage_uri("pipelex-storag://images/photo.png") is False
+ assert is_pipelex_storage_uri("pipelex-storage:/images/photo.png") is False
diff --git a/tests/unit/pipelex/tools/misc/test_pretty.py b/tests/unit/pipelex/tools/misc/test_pretty.py
index a4a63deab..63a7e4723 100644
--- a/tests/unit/pipelex/tools/misc/test_pretty.py
+++ b/tests/unit/pipelex/tools/misc/test_pretty.py
@@ -272,16 +272,16 @@ class TestPrettyPrint:
"""Test the base64 detection logic for long strings."""
# Pure base64 string should be detected
base64_str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" * 20
- assert AttributePolisher.should_truncate_any_long_string(base64_str)
+ assert AttributePolisher.should_truncate(value=base64_str)
# Normal text should not be detected even if long
normal_text = "This is a normal text with spaces and punctuation! " * 20
- assert not AttributePolisher.should_truncate_any_long_string(normal_text)
+ assert not AttributePolisher.should_truncate(value=normal_text)
# Data URL should be detected
data_url = "data:image/png;base64," + base64_str
- assert AttributePolisher.should_truncate_any_long_string(data_url)
+ assert AttributePolisher.should_truncate(value=data_url)
# Short strings should not be truncated
short_base64 = "iVBORw0KGgoAAAANSUhEUg=="
- assert not AttributePolisher.should_truncate_any_long_string(short_base64)
+ assert not AttributePolisher.should_truncate(value=short_base64)
diff --git a/tests/unit/pipelex/tools/storage/test_in_memory_storage_provider.py b/tests/unit/pipelex/tools/storage/test_in_memory_storage_provider.py
new file mode 100644
index 000000000..8d32f60f0
--- /dev/null
+++ b/tests/unit/pipelex/tools/storage/test_in_memory_storage_provider.py
@@ -0,0 +1,112 @@
+import pytest
+
+from pipelex.tools.storage.exceptions import StorageFileNotFoundError, StorageInvalidKeyError
+from pipelex.tools.storage.in_memory_storage_provider import InMemoryStorageProvider
+from pipelex.tools.storage.storage_provider_abstract import PIPELEX_STORAGE_SCHEME
+
+
+class TestInMemoryStorageProvider:
+ """Unit tests for InMemoryStorageProvider with pipelex-storage:// URI scheme."""
+
+ def test_store_returns_uri_with_scheme(self) -> None:
+ """Test that store() returns a URI with the pipelex-storage:// scheme prefix."""
+ provider = InMemoryStorageProvider()
+ test_data = b"Hello, World!"
+ key = "test/file.bin"
+
+ returned_uri = provider.store(data=test_data, key=key)
+
+ assert returned_uri == f"{PIPELEX_STORAGE_SCHEME}{key}"
+ assert returned_uri.startswith(PIPELEX_STORAGE_SCHEME)
+
+ def test_load_with_valid_uri_returns_data(self) -> None:
+ """Test roundtrip: store data with key, load with returned URI."""
+ provider = InMemoryStorageProvider()
+ test_data = b"Test data \x00\x01\x02\xff"
+ key = "roundtrip/test.bin"
+
+ returned_uri = provider.store(data=test_data, key=key)
+ loaded_data = provider.load(uri=returned_uri)
+
+ assert loaded_data == test_data
+
+ def test_load_with_invalid_uri_raises_error(self) -> None:
+ """Test that loading a non-existent URI raises StorageFileNotFoundError."""
+ provider = InMemoryStorageProvider()
+ nonexistent_uri = f"{PIPELEX_STORAGE_SCHEME}nonexistent/file.bin"
+
+ with pytest.raises(StorageFileNotFoundError) as exc_info:
+ provider.load(uri=nonexistent_uri)
+
+ assert "nonexistent/file.bin" in str(exc_info.value)
+
+ def test_store_raises_if_key_has_scheme_prefix(self) -> None:
+ """Test that passing a key with pipelex-storage:// prefix raises an error."""
+ provider = InMemoryStorageProvider()
+ invalid_key = f"{PIPELEX_STORAGE_SCHEME}already/prefixed.bin"
+
+ with pytest.raises(StorageInvalidKeyError) as exc_info:
+ provider.store(data=b"test", key=invalid_key)
+
+ assert "should not include scheme prefix" in str(exc_info.value).lower()
+
+ def test_display_link_returns_memory_reference(self) -> None:
+ """Test that display_link() returns a human-readable memory reference."""
+ provider = InMemoryStorageProvider()
+ test_data = b"display test"
+ key = "display/test.bin"
+
+ returned_uri = provider.store(data=test_data, key=key)
+ display = provider.display_link(uri=returned_uri)
+
+ # Display should indicate it's in-memory storage
+ assert display is None
+
+ def test_store_overwrites_existing_data(self) -> None:
+ """Test that storing with the same key overwrites the previous data."""
+ provider = InMemoryStorageProvider()
+ key = "overwrite/test.bin"
+ original_data = b"original"
+ new_data = b"updated content"
+
+ uri1 = provider.store(data=original_data, key=key)
+ uri2 = provider.store(data=new_data, key=key)
+ loaded_data = provider.load(uri=uri2)
+
+ assert uri1 == uri2
+ assert loaded_data == new_data
+
+ def test_store_empty_bytes(self) -> None:
+ """Test storing and loading empty bytes."""
+ provider = InMemoryStorageProvider()
+ key = "empty.bin"
+
+ returned_uri = provider.store(data=b"", key=key)
+ loaded_data = provider.load(uri=returned_uri)
+
+ assert loaded_data == b""
+
+ def test_store_large_binary_data(self) -> None:
+ """Test storing and loading larger binary data."""
+ provider = InMemoryStorageProvider()
+ test_data = bytes(range(256)) * 1000 # ~256KB of data
+ key = "large_file.bin"
+
+ returned_uri = provider.store(data=test_data, key=key)
+ loaded_data = provider.load(uri=returned_uri)
+
+ assert loaded_data == test_data
+
+ def test_multiple_keys_isolated(self) -> None:
+ """Test that different keys store different data independently."""
+ provider = InMemoryStorageProvider()
+ data1 = b"first"
+ data2 = b"second"
+ key1 = "file1.bin"
+ key2 = "file2.bin"
+
+ uri1 = provider.store(data=data1, key=key1)
+ uri2 = provider.store(data=data2, key=key2)
+
+ assert provider.load(uri=uri1) == data1
+ assert provider.load(uri=uri2) == data2
diff --git a/tests/unit/pipelex/tools/storage/test_local_storage_provider.py b/tests/unit/pipelex/tools/storage/test_local_storage_provider.py
new file mode 100644
index 000000000..f039b4164
--- /dev/null
+++ b/tests/unit/pipelex/tools/storage/test_local_storage_provider.py
@@ -0,0 +1,153 @@
+from pathlib import Path
+
+import pytest
+
+from pipelex.tools.storage.exceptions import StorageFileNotFoundError, StorageInvalidKeyError, StorageInvalidUriError
+from pipelex.tools.storage.local_storage_provider import LocalStorageProvider
+from pipelex.tools.storage.storage_provider_abstract import PIPELEX_STORAGE_SCHEME
+
+
+class TestLocalStorageProvider:
+ """Unit tests for LocalStorageProvider with pipelex-storage:// URI scheme."""
+
+ def test_store_returns_uri_with_scheme(self, tmp_path: Path) -> None:
+ """Test that store() returns a URI with the pipelex-storage:// scheme prefix."""
+ provider = LocalStorageProvider(root_path=tmp_path)
+ test_data = b"Hello, World!"
+ key = "test_file.bin"
+
+ returned_uri = provider.store(data=test_data, key=key)
+
+ assert returned_uri == f"{PIPELEX_STORAGE_SCHEME}{key}"
+ assert returned_uri.startswith(PIPELEX_STORAGE_SCHEME)
+
+ def test_load_with_valid_uri_returns_data(self, tmp_path: Path) -> None:
+ """Test roundtrip: store data with key, load with returned URI."""
+ provider = LocalStorageProvider(root_path=tmp_path)
+ test_data = b"Hello, World! \x00\x01\x02\xff"
+ key = "test_file.bin"
+
+ returned_uri = provider.store(data=test_data, key=key)
+ loaded_data = provider.load(uri=returned_uri)
+
+ assert loaded_data == test_data
+
+ def test_load_with_invalid_uri_raises_error(self, tmp_path: Path) -> None:
+ """Test that loading a non-existent URI raises StorageFileNotFoundError."""
+ provider = LocalStorageProvider(root_path=tmp_path)
+ nonexistent_uri = f"{PIPELEX_STORAGE_SCHEME}nonexistent.bin"
+
+ with pytest.raises(StorageFileNotFoundError) as exc_info:
+ provider.load(uri=nonexistent_uri)
+
+ assert "nonexistent.bin" in str(exc_info.value)
+
+ def test_store_raises_if_key_has_scheme_prefix(self, tmp_path: Path) -> None:
+ """Test that passing a key with pipelex-storage:// prefix raises an error."""
+ provider = LocalStorageProvider(root_path=tmp_path)
+ invalid_key = f"{PIPELEX_STORAGE_SCHEME}already/prefixed.bin"
+
+ with pytest.raises(StorageInvalidKeyError) as exc_info:
+ provider.store(data=b"test", key=invalid_key)
+
+ assert "should not include scheme prefix" in str(exc_info.value).lower()
+
+ def test_display_link_returns_file_uri(self, tmp_path: Path) -> None:
+ """Test that display_link() returns a file:// URI for clickable terminal links."""
+ provider = LocalStorageProvider(root_path=tmp_path)
+ test_data = b"display test"
+ key = "subdir/display_test.bin"
+
+ returned_uri = provider.store(data=test_data, key=key)
+ display = provider.display_link(uri=returned_uri)
+
+ expected_uri = (tmp_path / key).as_uri()
+ assert display == expected_uri
+ assert display.startswith("file://")
+
+ def test_store_creates_parent_directories(self, tmp_path: Path) -> None:
+ """Test that storing to a nested path creates intermediate directories."""
+ provider = LocalStorageProvider(root_path=tmp_path)
+ test_data = b"nested content"
+ key = "subdir/nested/deep/file.bin"
+
+ returned_uri = provider.store(data=test_data, key=key)
+ loaded_data = provider.load(uri=returned_uri)
+
+ assert loaded_data == test_data
+ assert (tmp_path / "subdir" / "nested" / "deep" / "file.bin").exists()
+
+ def test_store_overwrites_existing_file(self, tmp_path: Path) -> None:
+ """Test that storing with the same key overwrites the file."""
+ provider = LocalStorageProvider(root_path=tmp_path)
+ key = "overwrite_test.bin"
+ original_data = b"original"
+ new_data = b"updated content"
+
+ provider.store(data=original_data, key=key)
+ returned_uri = provider.store(data=new_data, key=key)
+ loaded_data = provider.load(uri=returned_uri)
+
+ assert loaded_data == new_data
+
+ def test_invalid_key_with_path_traversal_raises_error(self, tmp_path: Path) -> None:
+ """Test that keys with path traversal (../) raise StorageInvalidUriError."""
+ provider = LocalStorageProvider(root_path=tmp_path)
+
+ with pytest.raises(StorageInvalidUriError) as exc_info:
+ provider.store(data=b"malicious", key="../outside.bin")
+
+ assert "path traversal" in str(exc_info.value).lower()
+
+ def test_load_with_path_traversal_key_raises_error(self, tmp_path: Path) -> None:
+ """Test that loading with path traversal in URI raises StorageInvalidUriError."""
+ provider = LocalStorageProvider(root_path=tmp_path)
+ # Manually construct a URI with path traversal (bypassing store validation)
+ malicious_uri = f"{PIPELEX_STORAGE_SCHEME}../../etc/passwd"
+
+ with pytest.raises(StorageInvalidUriError) as exc_info:
+ provider.load(uri=malicious_uri)
+
+ assert "path traversal" in str(exc_info.value).lower()
+
+ def test_store_empty_bytes(self, tmp_path: Path) -> None:
+ """Test storing and loading empty bytes."""
+ provider = LocalStorageProvider(root_path=tmp_path)
+ key = "empty.bin"
+
+ returned_uri = provider.store(data=b"", key=key)
+ loaded_data = provider.load(uri=returned_uri)
+
+ assert loaded_data == b""
+
+ def test_store_large_binary_data(self, tmp_path: Path) -> None:
+ """Test storing and loading larger binary data."""
+ provider = LocalStorageProvider(root_path=tmp_path)
+ test_data = bytes(range(256)) * 1000 # ~256KB of data
+ key = "large_file.bin"
+
+ returned_uri = provider.store(data=test_data, key=key)
+ loaded_data = provider.load(uri=returned_uri)
+
+ assert loaded_data == test_data
+
+ def test_absolute_key_raises_error(self, tmp_path: Path) -> None:
+ """Test that absolute paths as keys are rejected."""
+ provider = LocalStorageProvider(root_path=tmp_path)
+
+ with pytest.raises(StorageInvalidUriError) as exc_info:
+ provider.store(data=b"test", key="/absolute/path.bin")
+
+ assert "absolute" in str(exc_info.value).lower()
+
+ def test_file_actually_written_to_disk(self, tmp_path: Path) -> None:
+ """Test that the file is actually written to the filesystem."""
+ provider = LocalStorageProvider(root_path=tmp_path)
+ test_data = b"disk content"
+ key = "on_disk.bin"
+
+ provider.store(data=test_data, key=key)
+
+ file_path = tmp_path / key
+ assert file_path.exists()
+ assert file_path.read_bytes() == test_data
diff --git a/tests/unit/pipelex/tools/storage/test_storage_constants.py b/tests/unit/pipelex/tools/storage/test_storage_constants.py
new file mode 100644
index 000000000..d43383a59
--- /dev/null
+++ b/tests/unit/pipelex/tools/storage/test_storage_constants.py
@@ -0,0 +1,17 @@
+from pipelex.tools.storage.storage_provider_abstract import PIPELEX_STORAGE_SCHEME
+
+
+class TestStorageConstants:
+ """Unit tests for storage module constants."""
+
+ def test_pipelex_storage_scheme_constant_value(self) -> None:
+ """Test that PIPELEX_STORAGE_SCHEME has the expected value."""
+ assert PIPELEX_STORAGE_SCHEME == "pipelex-storage://"
+
+ def test_pipelex_storage_scheme_ends_with_colon_slash_slash(self) -> None:
+ """Test that the scheme follows URI convention with :// suffix."""
+ assert PIPELEX_STORAGE_SCHEME.endswith("://")
+
+ def test_pipelex_storage_scheme_is_lowercase(self) -> None:
+ """Test that the scheme is lowercase (URI scheme convention)."""
+ assert PIPELEX_STORAGE_SCHEME.lower() == PIPELEX_STORAGE_SCHEME
diff --git a/tests/unit/pipelex/tools/typing/test_custom_base_model.py b/tests/unit/pipelex/tools/typing/test_custom_base_model.py
index e8f971855..ca3d4b06d 100644
--- a/tests/unit/pipelex/tools/typing/test_custom_base_model.py
+++ b/tests/unit/pipelex/tools/typing/test_custom_base_model.py
@@ -13,7 +13,7 @@ class TestCustomBaseModel:
url: str
other: str
- AttributePolisher.base_64_truncate_length = 10
+ AttributePolisher.bytes_truncate_length = 10
AttributePolisher.url_truncate_length = 10
model = TestModel(
base_64="b" * 20,
@@ -21,5 +21,5 @@ class TestCustomBaseModel:
other="val",
)
repr_str = repr(model)
- assert "bbbbbbbbbb…" in repr_str
- assert "data:image…" in repr_str
+ assert "bbbbbbbbbb" in repr_str
+ assert "data:image/png;base64,xxxxxxxxxxxxxxxxxxxx" in repr_str
diff --git a/uv.lock b/uv.lock
index cc1877a82..3ce94b489 100644
--- a/uv.lock
+++ b/uv.lock
@@ -1,6 +1,6 @@
version = 1
revision = 3
-requires-python = ">=3.10, <3.14"
+requires-python = ">=3.10, <3.15"
resolution-markers = [
"python_full_version >= '3.12' and sys_platform == 'darwin'",
"python_full_version >= '3.12' and platform_machine == 'aarch64' and sys_platform == 'linux'",
@@ -20,7 +20,7 @@ source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "huggingface-hub" },
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
- { name = "numpy", version = "2.3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "numpy", version = "2.4.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
{ name = "packaging" },
{ name = "psutil" },
{ name = "pyyaml" },
@@ -170,6 +170,40 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/f9/c8/0932b558da0c302ffd639fc6362a313b98fdf235dc417bc2493da8394df7/aiohttp-3.13.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e0c8e31cfcc4592cb200160344b2fb6ae0f9e4effe06c644b5a125d4ae5ebe23", size = 1716987, upload-time = "2025-10-28T20:57:30.233Z" },
{ url = "https://files.pythonhosted.org/packages/5d/8b/f5bd1a75003daed099baec373aed678f2e9b34f2ad40d85baa1368556396/aiohttp-3.13.2-cp313-cp313-win32.whl", hash = "sha256:0740f31a60848d6edb296a0df827473eede90c689b8f9f2a4cdde74889eb2254", size = 425859, upload-time = "2025-10-28T20:57:32.105Z" },
{ url = "https://files.pythonhosted.org/packages/5d/28/a8a9fc6957b2cee8902414e41816b5ab5536ecf43c3b1843c10e82c559b2/aiohttp-3.13.2-cp313-cp313-win_amd64.whl", hash = "sha256:a88d13e7ca367394908f8a276b89d04a3652044612b9a408a0bb22a5ed976a1a", size = 452192, upload-time = "2025-10-28T20:57:34.166Z" },
+ { url = "https://files.pythonhosted.org/packages/9b/36/e2abae1bd815f01c957cbf7be817b3043304e1c87bad526292a0410fdcf9/aiohttp-3.13.2-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:2475391c29230e063ef53a66669b7b691c9bfc3f1426a0f7bcdf1216bdbac38b", size = 735234, upload-time = "2025-10-28T20:57:36.415Z" },
+ { url = "https://files.pythonhosted.org/packages/ca/e3/1ee62dde9b335e4ed41db6bba02613295a0d5b41f74a783c142745a12763/aiohttp-3.13.2-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:f33c8748abef4d8717bb20e8fb1b3e07c6adacb7fd6beaae971a764cf5f30d61", size = 490733, upload-time = "2025-10-28T20:57:38.205Z" },
+ { url = "https://files.pythonhosted.org/packages/1a/aa/7a451b1d6a04e8d15a362af3e9b897de71d86feac3babf8894545d08d537/aiohttp-3.13.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:ae32f24bbfb7dbb485a24b30b1149e2f200be94777232aeadba3eecece4d0aa4", size = 491303, upload-time = "2025-10-28T20:57:40.122Z" },
+ { url = "https://files.pythonhosted.org/packages/57/1e/209958dbb9b01174870f6a7538cd1f3f28274fdbc88a750c238e2c456295/aiohttp-3.13.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5d7f02042c1f009ffb70067326ef183a047425bb2ff3bc434ead4dd4a4a66a2b", size = 1717965, upload-time = "2025-10-28T20:57:42.28Z" },
+ { url = "https://files.pythonhosted.org/packages/08/aa/6a01848d6432f241416bc4866cae8dc03f05a5a884d2311280f6a09c73d6/aiohttp-3.13.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:93655083005d71cd6c072cdab54c886e6570ad2c4592139c3fb967bfc19e4694", size = 1667221, upload-time = "2025-10-28T20:57:44.869Z" },
+ { url = "https://files.pythonhosted.org/packages/87/4f/36c1992432d31bbc789fa0b93c768d2e9047ec8c7177e5cd84ea85155f36/aiohttp-3.13.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0db1e24b852f5f664cd728db140cf11ea0e82450471232a394b3d1a540b0f906", size = 1757178, upload-time = "2025-10-28T20:57:47.216Z" },
+ { url = "https://files.pythonhosted.org/packages/ac/b4/8e940dfb03b7e0f68a82b88fd182b9be0a65cb3f35612fe38c038c3112cf/aiohttp-3.13.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b009194665bcd128e23eaddef362e745601afa4641930848af4c8559e88f18f9", size = 1838001, upload-time = "2025-10-28T20:57:49.337Z" },
+ { url = "https://files.pythonhosted.org/packages/d7/ef/39f3448795499c440ab66084a9db7d20ca7662e94305f175a80f5b7e0072/aiohttp-3.13.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c038a8fdc8103cd51dbd986ecdce141473ffd9775a7a8057a6ed9c3653478011", size = 1716325, upload-time = "2025-10-28T20:57:51.327Z" },
+ { url = "https://files.pythonhosted.org/packages/d7/51/b311500ffc860b181c05d91c59a1313bdd05c82960fdd4035a15740d431e/aiohttp-3.13.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:66bac29b95a00db411cd758fea0e4b9bdba6d549dfe333f9a945430f5f2cc5a6", size = 1547978, upload-time = "2025-10-28T20:57:53.554Z" },
+ { url = "https://files.pythonhosted.org/packages/31/64/b9d733296ef79815226dab8c586ff9e3df41c6aff2e16c06697b2d2e6775/aiohttp-3.13.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:4ebf9cfc9ba24a74cf0718f04aac2a3bbe745902cc7c5ebc55c0f3b5777ef213", size = 1682042, upload-time = "2025-10-28T20:57:55.617Z" },
+ { url = "https://files.pythonhosted.org/packages/3f/30/43d3e0f9d6473a6db7d472104c4eff4417b1e9df01774cb930338806d36b/aiohttp-3.13.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:a4b88ebe35ce54205c7074f7302bd08a4cb83256a3e0870c72d6f68a3aaf8e49", size = 1680085, upload-time = "2025-10-28T20:57:57.59Z" },
+ { url = "https://files.pythonhosted.org/packages/16/51/c709f352c911b1864cfd1087577760ced64b3e5bee2aa88b8c0c8e2e4972/aiohttp-3.13.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:98c4fb90bb82b70a4ed79ca35f656f4281885be076f3f970ce315402b53099ae", size = 1728238, upload-time = "2025-10-28T20:57:59.525Z" },
+ { url = "https://files.pythonhosted.org/packages/19/e2/19bd4c547092b773caeb48ff5ae4b1ae86756a0ee76c16727fcfd281404b/aiohttp-3.13.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:ec7534e63ae0f3759df3a1ed4fa6bc8f75082a924b590619c0dd2f76d7043caa", size = 1544395, upload-time = "2025-10-28T20:58:01.914Z" },
+ { url = "https://files.pythonhosted.org/packages/cf/87/860f2803b27dfc5ed7be532832a3498e4919da61299b4a1f8eb89b8ff44d/aiohttp-3.13.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:5b927cf9b935a13e33644cbed6c8c4b2d0f25b713d838743f8fe7191b33829c4", size = 1742965, upload-time = "2025-10-28T20:58:03.972Z" },
+ { url = "https://files.pythonhosted.org/packages/67/7f/db2fc7618925e8c7a601094d5cbe539f732df4fb570740be88ed9e40e99a/aiohttp-3.13.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:88d6c017966a78c5265d996c19cdb79235be5e6412268d7e2ce7dee339471b7a", size = 1697585, upload-time = "2025-10-28T20:58:06.189Z" },
+ { url = "https://files.pythonhosted.org/packages/0c/07/9127916cb09bb38284db5036036042b7b2c514c8ebaeee79da550c43a6d6/aiohttp-3.13.2-cp314-cp314-win32.whl", hash = "sha256:f7c183e786e299b5d6c49fb43a769f8eb8e04a2726a2bd5887b98b5cc2d67940", size = 431621, upload-time = "2025-10-28T20:58:08.636Z" },
+ { url = "https://files.pythonhosted.org/packages/fb/41/554a8a380df6d3a2bba8a7726429a23f4ac62aaf38de43bb6d6cde7b4d4d/aiohttp-3.13.2-cp314-cp314-win_amd64.whl", hash = "sha256:fe242cd381e0fb65758faf5ad96c2e460df6ee5b2de1072fe97e4127927e00b4", size = 457627, upload-time = "2025-10-28T20:58:11Z" },
+ { url = "https://files.pythonhosted.org/packages/c7/8e/3824ef98c039d3951cb65b9205a96dd2b20f22241ee17d89c5701557c826/aiohttp-3.13.2-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:f10d9c0b0188fe85398c61147bbd2a657d616c876863bfeff43376e0e3134673", size = 767360, upload-time = "2025-10-28T20:58:13.358Z" },
+ { url = "https://files.pythonhosted.org/packages/a4/0f/6a03e3fc7595421274fa34122c973bde2d89344f8a881b728fa8c774e4f1/aiohttp-3.13.2-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:e7c952aefdf2460f4ae55c5e9c3e80aa72f706a6317e06020f80e96253b1accd", size = 504616, upload-time = "2025-10-28T20:58:15.339Z" },
+ { url = "https://files.pythonhosted.org/packages/c6/aa/ed341b670f1bc8a6f2c6a718353d13b9546e2cef3544f573c6a1ff0da711/aiohttp-3.13.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c20423ce14771d98353d2e25e83591fa75dfa90a3c1848f3d7c68243b4fbded3", size = 509131, upload-time = "2025-10-28T20:58:17.693Z" },
+ { url = "https://files.pythonhosted.org/packages/7f/f0/c68dac234189dae5c4bbccc0f96ce0cc16b76632cfc3a08fff180045cfa4/aiohttp-3.13.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e96eb1a34396e9430c19d8338d2ec33015e4a87ef2b4449db94c22412e25ccdf", size = 1864168, upload-time = "2025-10-28T20:58:20.113Z" },
+ { url = "https://files.pythonhosted.org/packages/8f/65/75a9a76db8364b5d0e52a0c20eabc5d52297385d9af9c35335b924fafdee/aiohttp-3.13.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:23fb0783bc1a33640036465019d3bba069942616a6a2353c6907d7fe1ccdaf4e", size = 1719200, upload-time = "2025-10-28T20:58:22.583Z" },
+ { url = "https://files.pythonhosted.org/packages/f5/55/8df2ed78d7f41d232f6bd3ff866b6f617026551aa1d07e2f03458f964575/aiohttp-3.13.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2e1a9bea6244a1d05a4e57c295d69e159a5c50d8ef16aa390948ee873478d9a5", size = 1843497, upload-time = "2025-10-28T20:58:24.672Z" },
+ { url = "https://files.pythonhosted.org/packages/e9/e0/94d7215e405c5a02ccb6a35c7a3a6cfff242f457a00196496935f700cde5/aiohttp-3.13.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0a3d54e822688b56e9f6b5816fb3de3a3a64660efac64e4c2dc435230ad23bad", size = 1935703, upload-time = "2025-10-28T20:58:26.758Z" },
+ { url = "https://files.pythonhosted.org/packages/0b/78/1eeb63c3f9b2d1015a4c02788fb543141aad0a03ae3f7a7b669b2483f8d4/aiohttp-3.13.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7a653d872afe9f33497215745da7a943d1dc15b728a9c8da1c3ac423af35178e", size = 1792738, upload-time = "2025-10-28T20:58:29.787Z" },
+ { url = "https://files.pythonhosted.org/packages/41/75/aaf1eea4c188e51538c04cc568040e3082db263a57086ea74a7d38c39e42/aiohttp-3.13.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:56d36e80d2003fa3fc0207fac644216d8532e9504a785ef9a8fd013f84a42c61", size = 1624061, upload-time = "2025-10-28T20:58:32.529Z" },
+ { url = "https://files.pythonhosted.org/packages/9b/c2/3b6034de81fbcc43de8aeb209073a2286dfb50b86e927b4efd81cf848197/aiohttp-3.13.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:78cd586d8331fb8e241c2dd6b2f4061778cc69e150514b39a9e28dd050475661", size = 1789201, upload-time = "2025-10-28T20:58:34.618Z" },
+ { url = "https://files.pythonhosted.org/packages/c9/38/c15dcf6d4d890217dae79d7213988f4e5fe6183d43893a9cf2fe9e84ca8d/aiohttp-3.13.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:20b10bbfbff766294fe99987f7bb3b74fdd2f1a2905f2562132641ad434dcf98", size = 1776868, upload-time = "2025-10-28T20:58:38.835Z" },
+ { url = "https://files.pythonhosted.org/packages/04/75/f74fd178ac81adf4f283a74847807ade5150e48feda6aef024403716c30c/aiohttp-3.13.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:9ec49dff7e2b3c85cdeaa412e9d438f0ecd71676fde61ec57027dd392f00c693", size = 1790660, upload-time = "2025-10-28T20:58:41.507Z" },
+ { url = "https://files.pythonhosted.org/packages/e7/80/7368bd0d06b16b3aba358c16b919e9c46cf11587dc572091031b0e9e3ef0/aiohttp-3.13.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:94f05348c4406450f9d73d38efb41d669ad6cd90c7ee194810d0eefbfa875a7a", size = 1617548, upload-time = "2025-10-28T20:58:43.674Z" },
+ { url = "https://files.pythonhosted.org/packages/7d/4b/a6212790c50483cb3212e507378fbe26b5086d73941e1ec4b56a30439688/aiohttp-3.13.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:fa4dcb605c6f82a80c7f95713c2b11c3b8e9893b3ebd2bc9bde93165ed6107be", size = 1817240, upload-time = "2025-10-28T20:58:45.787Z" },
+ { url = "https://files.pythonhosted.org/packages/ff/f7/ba5f0ba4ea8d8f3c32850912944532b933acbf0f3a75546b89269b9b7dde/aiohttp-3.13.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:cf00e5db968c3f67eccd2778574cf64d8b27d95b237770aa32400bd7a1ca4f6c", size = 1762334, upload-time = "2025-10-28T20:58:47.936Z" },
+ { url = "https://files.pythonhosted.org/packages/7e/83/1a5a1856574588b1cad63609ea9ad75b32a8353ac995d830bf5da9357364/aiohttp-3.13.2-cp314-cp314t-win32.whl", hash = "sha256:d23b5fe492b0805a50d3371e8a728a9134d8de5447dce4c885f5587294750734", size = 464685, upload-time = "2025-10-28T20:58:50.642Z" },
+ { url = "https://files.pythonhosted.org/packages/9f/4d/d22668674122c08f4d56972297c51a624e64b3ed1efaa40187607a7cb66e/aiohttp-3.13.2-cp314-cp314t-win_amd64.whl", hash = "sha256:ff0a7b0a82a7ab905cbda74006318d1b12e37c797eb1b0d4eb3e316cf47f658f", size = 498093, upload-time = "2025-10-28T20:58:52.782Z" },
]
[[package]]
@@ -205,7 +239,7 @@ wheels = [
[[package]]
name = "anthropic"
-version = "0.74.1"
+version = "0.75.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "anyio" },
@@ -217,9 +251,9 @@ dependencies = [
{ name = "sniffio" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/d7/7b/609eea5c54ae69b1a4a94169d4b0c86dc5c41b43509989913f6cdc61b81d/anthropic-0.74.1.tar.gz", hash = "sha256:04c087b2751385c524f6d332d066a913870e4de8b3e335fb0a0c595f1f88dc6e", size = 428981, upload-time = "2025-11-19T22:17:31.533Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/04/1f/08e95f4b7e2d35205ae5dcbb4ae97e7d477fc521c275c02609e2931ece2d/anthropic-0.75.0.tar.gz", hash = "sha256:e8607422f4ab616db2ea5baacc215dd5f028da99ce2f022e33c7c535b29f3dfb", size = 439565, upload-time = "2025-11-24T20:41:45.28Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/dd/45/6b18d0692302b8cbc01a10c35b43953d3c4172fbd4f83337b8ed21a8eaa4/anthropic-0.74.1-py3-none-any.whl", hash = "sha256:b07b998d1cee7f41d9f02530597d7411672b362cc2417760a40c0167b81c6e65", size = 371473, upload-time = "2025-11-19T22:17:29.998Z" },
+ { url = "https://files.pythonhosted.org/packages/60/1c/1cd02b7ae64302a6e06724bf80a96401d5313708651d277b1458504a1730/anthropic-0.75.0-py3-none-any.whl", hash = "sha256:ea8317271b6c15d80225a9f3c670152746e88805a7a61e14d4a374577164965b", size = 388164, upload-time = "2025-11-24T20:41:43.587Z" },
]
[[package]]
@@ -230,17 +264,16 @@ sdist = { url = "https://files.pythonhosted.org/packages/3e/38/7859ff46355f76f8d
[[package]]
name = "anyio"
-version = "4.11.0"
+version = "4.12.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "exceptiongroup", marker = "python_full_version < '3.11'" },
{ name = "idna" },
- { name = "sniffio" },
{ name = "typing-extensions", marker = "python_full_version < '3.13'" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/c6/78/7d432127c41b50bccba979505f272c16cbcadcc33645d5fa3a738110ae75/anyio-4.11.0.tar.gz", hash = "sha256:82a8d0b81e318cc5ce71a5f1f8b5c4e63619620b63141ef8c995fa0db95a57c4", size = 219094, upload-time = "2025-09-23T09:19:12.58Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/16/ce/8a777047513153587e5434fd752e89334ac33e379aa3497db860eeb60377/anyio-4.12.0.tar.gz", hash = "sha256:73c693b567b0c55130c104d0b43a9baf3aa6a31fc6110116509f27bf75e21ec0", size = 228266, upload-time = "2025-11-28T23:37:38.911Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/15/b3/9b1a8074496371342ec1e796a96f99c82c945a339cd81a8e73de28b4cf9e/anyio-4.11.0-py3-none-any.whl", hash = "sha256:0287e96f4d26d4149305414d4e3bc32f0dcd0862365a4bddea19d7a1ec38c4fc", size = 109097, upload-time = "2025-09-23T09:19:10.601Z" },
+ { url = "https://files.pythonhosted.org/packages/7f/9c/36c5c37947ebfb8c7f22e0eb6e4d188ee2d53aa3880f3f2744fb894f0cb1/anyio-4.12.0-py3-none-any.whl", hash = "sha256:dad2376a628f98eeca4881fc56cd06affd18f659b17a747d3ff0307ced94b1bb", size = 113362, upload-time = "2025-11-28T23:36:57.897Z" },
]
[[package]]
@@ -319,6 +352,7 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/55/07/f0b3375bf0d06014e9787797e6b7cc02b38ac9ff9726ccfe834d94e9991e/backrefs-5.9-py311-none-any.whl", hash = "sha256:6907635edebbe9b2dc3de3a2befff44d74f30a4562adbb8b36f21252ea19c5cf", size = 392072, upload-time = "2025-06-22T19:34:06.743Z" },
{ url = "https://files.pythonhosted.org/packages/9d/12/4f345407259dd60a0997107758ba3f221cf89a9b5a0f8ed5b961aef97253/backrefs-5.9-py312-none-any.whl", hash = "sha256:7fdf9771f63e6028d7fee7e0c497c81abda597ea45d6b8f89e8ad76994f5befa", size = 397947, upload-time = "2025-06-22T19:34:08.172Z" },
{ url = "https://files.pythonhosted.org/packages/10/bf/fa31834dc27a7f05e5290eae47c82690edc3a7b37d58f7fb35a1bdbf355b/backrefs-5.9-py313-none-any.whl", hash = "sha256:cc37b19fa219e93ff825ed1fed8879e47b4d89aa7a1884860e2db64ccd7c676b", size = 399843, upload-time = "2025-06-22T19:34:09.68Z" },
+ { url = "https://files.pythonhosted.org/packages/fc/24/b29af34b2c9c41645a9f4ff117bae860291780d73880f449e0b5d948c070/backrefs-5.9-py314-none-any.whl", hash = "sha256:df5e169836cc8acb5e440ebae9aad4bf9d15e226d3bad049cf3f6a5c20cc8dc9", size = 411762, upload-time = "2025-06-22T19:34:11.037Z" },
{ url = "https://files.pythonhosted.org/packages/41/ff/392bff89415399a979be4a65357a41d92729ae8580a66073d8ec8d810f98/backrefs-5.9-py39-none-any.whl", hash = "sha256:f48ee18f6252b8f5777a22a00a09a85de0ca931658f1dd96d4406a34f3748c60", size = 380265, upload-time = "2025-06-22T19:34:12.405Z" },
]
@@ -351,16 +385,16 @@ wheels = [
[[package]]
name = "boto3-stubs"
-version = "1.41.0"
+version = "1.42.14"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "botocore-stubs" },
{ name = "types-s3transfer" },
{ name = "typing-extensions", marker = "python_full_version < '3.12'" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/e9/de/ed64826dfe146e1aa91126e89a876f8c321a2039f6e29eb41ccfacc61bbd/boto3_stubs-1.41.0.tar.gz", hash = "sha256:74d138f2d2f5f48140be81d680722b0194e09bcdf8d2080a914c21d277c2cfe3", size = 99816, upload-time = "2025-11-19T21:09:18.788Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/ac/42/2a73afec394eec6350d59c4deb4bda2639f7fc0ca8dfb2a41dcc4115f07e/boto3_stubs-1.42.14.tar.gz", hash = "sha256:b06c4be79348573fa03fc7fbe4bd82ebbc7e1e27cf208c8f5ab7bfcb75f55c05", size = 101097, upload-time = "2025-12-19T20:41:44.497Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/69/05/71601d7c9e845d34628108170d6e4ec0c91fc6fd44c71ba8d52bc607aeb8/boto3_stubs-1.41.0-py3-none-any.whl", hash = "sha256:9e373ac5f9c721c5e615ef694a992c333480c71905d3b8e940175dd7265eef93", size = 69211, upload-time = "2025-11-19T21:09:10.914Z" },
+ { url = "https://files.pythonhosted.org/packages/14/6a/f325a61d06e664ab1cd904a1813c10f0a29b64a63bf521c574ff840d191d/boto3_stubs-1.42.14-py3-none-any.whl", hash = "sha256:87bbad7f8e3dbd50e11c47f6850084d598934cd5b7ef85af13539a50b54d1202", size = 69888, upload-time = "2025-12-19T20:41:41.611Z" },
]
[[package]]
@@ -379,14 +413,14 @@ wheels = [
[[package]]
name = "botocore-stubs"
-version = "1.40.76"
+version = "1.42.14"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "types-awscrt" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/c9/03/02f3ca1bd4baae56dfb148d8f7a18466f0b10b0006c57811dc73d24ccedc/botocore_stubs-1.40.76.tar.gz", hash = "sha256:261d51e71a164a93abf9c6a5c779c5664d307ec4450de917ad9cbe7c29782223", size = 42227, upload-time = "2025-11-18T20:30:28.629Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/8a/36/1a0f56e6537df74e176cc1843048b25a6273567ab2a5e2b6a8c6c27778e1/botocore_stubs-1.42.14.tar.gz", hash = "sha256:635192fb510e59b6f46843c9893029b8fd387b7089ec72f700063316a67bbb14", size = 42386, upload-time = "2025-12-19T21:24:59.476Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/70/2d/3b71d25da85e10700287d90bd5c525821985d80b55895d81f7d0683e4e07/botocore_stubs-1.40.76-py3-none-any.whl", hash = "sha256:84c9a24c2a38a59dd173f2655afacf7b6484c05f3d61cf198b59bb54a6efebc5", size = 66542, upload-time = "2025-11-18T20:30:26.596Z" },
+ { url = "https://files.pythonhosted.org/packages/76/ba/89fa39e2aa8b296b8a0b99a3c19d55bf76d3edb5e4711936359d410d18c0/botocore_stubs-1.42.14-py3-none-any.whl", hash = "sha256:e8b8d87b57bb6c9104f02db54b5df12a91aad913305967d017eba25a6aaf8b32", size = 66761, upload-time = "2025-12-19T21:24:58.317Z" },
]
[[package]]
@@ -400,11 +434,11 @@ wheels = [
[[package]]
name = "cachetools"
-version = "6.2.2"
+version = "6.2.4"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/fb/44/ca1675be2a83aeee1886ab745b28cda92093066590233cc501890eb8417a/cachetools-6.2.2.tar.gz", hash = "sha256:8e6d266b25e539df852251cfd6f990b4bc3a141db73b939058d809ebd2590fc6", size = 31571, upload-time = "2025-11-13T17:42:51.465Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/bc/1d/ede8680603f6016887c062a2cf4fc8fdba905866a3ab8831aa8aa651320c/cachetools-6.2.4.tar.gz", hash = "sha256:82c5c05585e70b6ba2d3ae09ea60b79548872185d2f24ae1f2709d37299fd607", size = 31731, upload-time = "2025-12-15T18:24:53.744Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/e6/46/eb6eca305c77a4489affe1c5d8f4cae82f285d9addd8de4ec084a7184221/cachetools-6.2.2-py3-none-any.whl", hash = "sha256:6c09c98183bf58560c97b2abfcedcbaf6a896a490f534b031b661d3723b45ace", size = 11503, upload-time = "2025-11-13T17:42:50.232Z" },
+ { url = "https://files.pythonhosted.org/packages/2c/fc/1d7b80d0eb7b714984ce40efc78859c022cd930e402f599d8ca9e39c78a4/cachetools-6.2.4-py3-none-any.whl", hash = "sha256:69a7a52634fed8b8bf6e24a050fb60bff1c9bd8f6d24572b99c32d4e71e62a51", size = 11551, upload-time = "2025-12-15T18:24:52.332Z" },
]
[[package]]
@@ -495,6 +529,22 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/89/66/c7a9e1b7429be72123441bfdbaf2bc13faab3f90b933f664db506dea5915/charset_normalizer-3.4.4-cp313-cp313-win32.whl", hash = "sha256:9b35f4c90079ff2e2edc5b26c0c77925e5d2d255c42c74fdb70fb49b172726ac", size = 99404, upload-time = "2025-10-14T04:41:29.95Z" },
{ url = "https://files.pythonhosted.org/packages/c4/26/b9924fa27db384bdcd97ab83b4f0a8058d96ad9626ead570674d5e737d90/charset_normalizer-3.4.4-cp313-cp313-win_amd64.whl", hash = "sha256:b435cba5f4f750aa6c0a0d92c541fb79f69a387c91e61f1795227e4ed9cece14", size = 107092, upload-time = "2025-10-14T04:41:31.188Z" },
{ url = "https://files.pythonhosted.org/packages/af/8f/3ed4bfa0c0c72a7ca17f0380cd9e4dd842b09f664e780c13cff1dcf2ef1b/charset_normalizer-3.4.4-cp313-cp313-win_arm64.whl", hash = "sha256:542d2cee80be6f80247095cc36c418f7bddd14f4a6de45af91dfad36d817bba2", size = 100408, upload-time = "2025-10-14T04:41:32.624Z" },
+ { url = "https://files.pythonhosted.org/packages/2a/35/7051599bd493e62411d6ede36fd5af83a38f37c4767b92884df7301db25d/charset_normalizer-3.4.4-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:da3326d9e65ef63a817ecbcc0df6e94463713b754fe293eaa03da99befb9a5bd", size = 207746, upload-time = "2025-10-14T04:41:33.773Z" },
+ { url = "https://files.pythonhosted.org/packages/10/9a/97c8d48ef10d6cd4fcead2415523221624bf58bcf68a802721a6bc807c8f/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8af65f14dc14a79b924524b1e7fffe304517b2bff5a58bf64f30b98bbc5079eb", size = 147889, upload-time = "2025-10-14T04:41:34.897Z" },
+ { url = "https://files.pythonhosted.org/packages/10/bf/979224a919a1b606c82bd2c5fa49b5c6d5727aa47b4312bb27b1734f53cd/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:74664978bb272435107de04e36db5a9735e78232b85b77d45cfb38f758efd33e", size = 143641, upload-time = "2025-10-14T04:41:36.116Z" },
+ { url = "https://files.pythonhosted.org/packages/ba/33/0ad65587441fc730dc7bd90e9716b30b4702dc7b617e6ba4997dc8651495/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:752944c7ffbfdd10c074dc58ec2d5a8a4cd9493b314d367c14d24c17684ddd14", size = 160779, upload-time = "2025-10-14T04:41:37.229Z" },
+ { url = "https://files.pythonhosted.org/packages/67/ed/331d6b249259ee71ddea93f6f2f0a56cfebd46938bde6fcc6f7b9a3d0e09/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d1f13550535ad8cff21b8d757a3257963e951d96e20ec82ab44bc64aeb62a191", size = 159035, upload-time = "2025-10-14T04:41:38.368Z" },
+ { url = "https://files.pythonhosted.org/packages/67/ff/f6b948ca32e4f2a4576aa129d8bed61f2e0543bf9f5f2b7fc3758ed005c9/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ecaae4149d99b1c9e7b88bb03e3221956f68fd6d50be2ef061b2381b61d20838", size = 152542, upload-time = "2025-10-14T04:41:39.862Z" },
+ { url = "https://files.pythonhosted.org/packages/16/85/276033dcbcc369eb176594de22728541a925b2632f9716428c851b149e83/charset_normalizer-3.4.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:cb6254dc36b47a990e59e1068afacdcd02958bdcce30bb50cc1700a8b9d624a6", size = 149524, upload-time = "2025-10-14T04:41:41.319Z" },
+ { url = "https://files.pythonhosted.org/packages/9e/f2/6a2a1f722b6aba37050e626530a46a68f74e63683947a8acff92569f979a/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c8ae8a0f02f57a6e61203a31428fa1d677cbe50c93622b4149d5c0f319c1d19e", size = 150395, upload-time = "2025-10-14T04:41:42.539Z" },
+ { url = "https://files.pythonhosted.org/packages/60/bb/2186cb2f2bbaea6338cad15ce23a67f9b0672929744381e28b0592676824/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:47cc91b2f4dd2833fddaedd2893006b0106129d4b94fdb6af1f4ce5a9965577c", size = 143680, upload-time = "2025-10-14T04:41:43.661Z" },
+ { url = "https://files.pythonhosted.org/packages/7d/a5/bf6f13b772fbb2a90360eb620d52ed8f796f3c5caee8398c3b2eb7b1c60d/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:82004af6c302b5d3ab2cfc4cc5f29db16123b1a8417f2e25f9066f91d4411090", size = 162045, upload-time = "2025-10-14T04:41:44.821Z" },
+ { url = "https://files.pythonhosted.org/packages/df/c5/d1be898bf0dc3ef9030c3825e5d3b83f2c528d207d246cbabe245966808d/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2b7d8f6c26245217bd2ad053761201e9f9680f8ce52f0fcd8d0755aeae5b2152", size = 149687, upload-time = "2025-10-14T04:41:46.442Z" },
+ { url = "https://files.pythonhosted.org/packages/a5/42/90c1f7b9341eef50c8a1cb3f098ac43b0508413f33affd762855f67a410e/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:799a7a5e4fb2d5898c60b640fd4981d6a25f1c11790935a44ce38c54e985f828", size = 160014, upload-time = "2025-10-14T04:41:47.631Z" },
+ { url = "https://files.pythonhosted.org/packages/76/be/4d3ee471e8145d12795ab655ece37baed0929462a86e72372fd25859047c/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:99ae2cffebb06e6c22bdc25801d7b30f503cc87dbd283479e7b606f70aff57ec", size = 154044, upload-time = "2025-10-14T04:41:48.81Z" },
+ { url = "https://files.pythonhosted.org/packages/b0/6f/8f7af07237c34a1defe7defc565a9bc1807762f672c0fde711a4b22bf9c0/charset_normalizer-3.4.4-cp314-cp314-win32.whl", hash = "sha256:f9d332f8c2a2fcbffe1378594431458ddbef721c1769d78e2cbc06280d8155f9", size = 99940, upload-time = "2025-10-14T04:41:49.946Z" },
+ { url = "https://files.pythonhosted.org/packages/4b/51/8ade005e5ca5b0d80fb4aff72a3775b325bdc3d27408c8113811a7cbe640/charset_normalizer-3.4.4-cp314-cp314-win_amd64.whl", hash = "sha256:8a6562c3700cce886c5be75ade4a5db4214fda19fede41d9792d100288d8f94c", size = 107104, upload-time = "2025-10-14T04:41:51.051Z" },
+ { url = "https://files.pythonhosted.org/packages/da/5f/6b8f83a55bb8278772c5ae54a577f3099025f9ade59d0136ac24a0df4bde/charset_normalizer-3.4.4-cp314-cp314-win_arm64.whl", hash = "sha256:de00632ca48df9daf77a2c65a484531649261ec9f25489917f09e455cb09ddb2", size = 100743, upload-time = "2025-10-14T04:41:52.122Z" },
{ url = "https://files.pythonhosted.org/packages/0a/4c/925909008ed5a988ccbb72dcc897407e5d6d3bd72410d69e051fc0c14647/charset_normalizer-3.4.4-py3-none-any.whl", hash = "sha256:7a32c560861a02ff789ad905a2fe94e3f840803362c84fecf1851cb4cf3dc37f", size = 53402, upload-time = "2025-10-14T04:42:31.76Z" },
]
@@ -533,75 +583,101 @@ wheels = [
[[package]]
name = "coverage"
-version = "7.12.0"
-source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/89/26/4a96807b193b011588099c3b5c89fbb05294e5b90e71018e065465f34eb6/coverage-7.12.0.tar.gz", hash = "sha256:fc11e0a4e372cb5f282f16ef90d4a585034050ccda536451901abfb19a57f40c", size = 819341, upload-time = "2025-11-18T13:34:20.766Z" }
-wheels = [
- { url = "https://files.pythonhosted.org/packages/26/4a/0dc3de1c172d35abe512332cfdcc43211b6ebce629e4cc42e6cd25ed8f4d/coverage-7.12.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:32b75c2ba3f324ee37af3ccee5b30458038c50b349ad9b88cee85096132a575b", size = 217409, upload-time = "2025-11-18T13:31:53.122Z" },
- { url = "https://files.pythonhosted.org/packages/01/c3/086198b98db0109ad4f84241e8e9ea7e5fb2db8c8ffb787162d40c26cc76/coverage-7.12.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:cb2a1b6ab9fe833714a483a915de350abc624a37149649297624c8d57add089c", size = 217927, upload-time = "2025-11-18T13:31:54.458Z" },
- { url = "https://files.pythonhosted.org/packages/5d/5f/34614dbf5ce0420828fc6c6f915126a0fcb01e25d16cf141bf5361e6aea6/coverage-7.12.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:5734b5d913c3755e72f70bf6cc37a0518d4f4745cde760c5d8e12005e62f9832", size = 244678, upload-time = "2025-11-18T13:31:55.805Z" },
- { url = "https://files.pythonhosted.org/packages/55/7b/6b26fb32e8e4a6989ac1d40c4e132b14556131493b1d06bc0f2be169c357/coverage-7.12.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:b527a08cdf15753279b7afb2339a12073620b761d79b81cbe2cdebdb43d90daa", size = 246507, upload-time = "2025-11-18T13:31:57.05Z" },
- { url = "https://files.pythonhosted.org/packages/06/42/7d70e6603d3260199b90fb48b537ca29ac183d524a65cc31366b2e905fad/coverage-7.12.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9bb44c889fb68004e94cab71f6a021ec83eac9aeabdbb5a5a88821ec46e1da73", size = 248366, upload-time = "2025-11-18T13:31:58.362Z" },
- { url = "https://files.pythonhosted.org/packages/2d/4a/d86b837923878424c72458c5b25e899a3c5ca73e663082a915f5b3c4d749/coverage-7.12.0-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:4b59b501455535e2e5dde5881739897967b272ba25988c89145c12d772810ccb", size = 245366, upload-time = "2025-11-18T13:31:59.572Z" },
- { url = "https://files.pythonhosted.org/packages/e6/c2/2adec557e0aa9721875f06ced19730fdb7fc58e31b02b5aa56f2ebe4944d/coverage-7.12.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d8842f17095b9868a05837b7b1b73495293091bed870e099521ada176aa3e00e", size = 246408, upload-time = "2025-11-18T13:32:00.784Z" },
- { url = "https://files.pythonhosted.org/packages/5a/4b/8bd1f1148260df11c618e535fdccd1e5aaf646e55b50759006a4f41d8a26/coverage-7.12.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:c5a6f20bf48b8866095c6820641e7ffbe23f2ac84a2efc218d91235e404c7777", size = 244416, upload-time = "2025-11-18T13:32:01.963Z" },
- { url = "https://files.pythonhosted.org/packages/0e/13/3a248dd6a83df90414c54a4e121fd081fb20602ca43955fbe1d60e2312a9/coverage-7.12.0-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:5f3738279524e988d9da2893f307c2093815c623f8d05a8f79e3eff3a7a9e553", size = 244681, upload-time = "2025-11-18T13:32:03.408Z" },
- { url = "https://files.pythonhosted.org/packages/76/30/aa833827465a5e8c938935f5d91ba055f70516941078a703740aaf1aa41f/coverage-7.12.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e0d68c1f7eabbc8abe582d11fa393ea483caf4f44b0af86881174769f185c94d", size = 245300, upload-time = "2025-11-18T13:32:04.686Z" },
- { url = "https://files.pythonhosted.org/packages/38/24/f85b3843af1370fb3739fa7571819b71243daa311289b31214fe3e8c9d68/coverage-7.12.0-cp310-cp310-win32.whl", hash = "sha256:7670d860e18b1e3ee5930b17a7d55ae6287ec6e55d9799982aa103a2cc1fa2ef", size = 220008, upload-time = "2025-11-18T13:32:05.806Z" },
- { url = "https://files.pythonhosted.org/packages/3a/a2/c7da5b9566f7164db9eefa133d17761ecb2c2fde9385d754e5b5c80f710d/coverage-7.12.0-cp310-cp310-win_amd64.whl", hash = "sha256:f999813dddeb2a56aab5841e687b68169da0d3f6fc78ccf50952fa2463746022", size = 220943, upload-time = "2025-11-18T13:32:07.166Z" },
- { url = "https://files.pythonhosted.org/packages/5a/0c/0dfe7f0487477d96432e4815537263363fb6dd7289743a796e8e51eabdf2/coverage-7.12.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:aa124a3683d2af98bd9d9c2bfa7a5076ca7e5ab09fdb96b81fa7d89376ae928f", size = 217535, upload-time = "2025-11-18T13:32:08.812Z" },
- { url = "https://files.pythonhosted.org/packages/9b/f5/f9a4a053a5bbff023d3bec259faac8f11a1e5a6479c2ccf586f910d8dac7/coverage-7.12.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d93fbf446c31c0140208dcd07c5d882029832e8ed7891a39d6d44bd65f2316c3", size = 218044, upload-time = "2025-11-18T13:32:10.329Z" },
- { url = "https://files.pythonhosted.org/packages/95/c5/84fc3697c1fa10cd8571919bf9693f693b7373278daaf3b73e328d502bc8/coverage-7.12.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:52ca620260bd8cd6027317bdd8b8ba929be1d741764ee765b42c4d79a408601e", size = 248440, upload-time = "2025-11-18T13:32:12.536Z" },
- { url = "https://files.pythonhosted.org/packages/f4/36/2d93fbf6a04670f3874aed397d5a5371948a076e3249244a9e84fb0e02d6/coverage-7.12.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:f3433ffd541380f3a0e423cff0f4926d55b0cc8c1d160fdc3be24a4c03aa65f7", size = 250361, upload-time = "2025-11-18T13:32:13.852Z" },
- { url = "https://files.pythonhosted.org/packages/5d/49/66dc65cc456a6bfc41ea3d0758c4afeaa4068a2b2931bf83be6894cf1058/coverage-7.12.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f7bbb321d4adc9f65e402c677cd1c8e4c2d0105d3ce285b51b4d87f1d5db5245", size = 252472, upload-time = "2025-11-18T13:32:15.068Z" },
- { url = "https://files.pythonhosted.org/packages/35/1f/ebb8a18dffd406db9fcd4b3ae42254aedcaf612470e8712f12041325930f/coverage-7.12.0-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:22a7aade354a72dff3b59c577bfd18d6945c61f97393bc5fb7bd293a4237024b", size = 248592, upload-time = "2025-11-18T13:32:16.328Z" },
- { url = "https://files.pythonhosted.org/packages/da/a8/67f213c06e5ea3b3d4980df7dc344d7fea88240b5fe878a5dcbdfe0e2315/coverage-7.12.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:3ff651dcd36d2fea66877cd4a82de478004c59b849945446acb5baf9379a1b64", size = 250167, upload-time = "2025-11-18T13:32:17.687Z" },
- { url = "https://files.pythonhosted.org/packages/f0/00/e52aef68154164ea40cc8389c120c314c747fe63a04b013a5782e989b77f/coverage-7.12.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:31b8b2e38391a56e3cea39d22a23faaa7c3fc911751756ef6d2621d2a9daf742", size = 248238, upload-time = "2025-11-18T13:32:19.2Z" },
- { url = "https://files.pythonhosted.org/packages/1f/a4/4d88750bcf9d6d66f77865e5a05a20e14db44074c25fd22519777cb69025/coverage-7.12.0-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:297bc2da28440f5ae51c845a47c8175a4db0553a53827886e4fb25c66633000c", size = 247964, upload-time = "2025-11-18T13:32:21.027Z" },
- { url = "https://files.pythonhosted.org/packages/a7/6b/b74693158899d5b47b0bf6238d2c6722e20ba749f86b74454fac0696bb00/coverage-7.12.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:6ff7651cc01a246908eac162a6a86fc0dbab6de1ad165dfb9a1e2ec660b44984", size = 248862, upload-time = "2025-11-18T13:32:22.304Z" },
- { url = "https://files.pythonhosted.org/packages/18/de/6af6730227ce0e8ade307b1cc4a08e7f51b419a78d02083a86c04ccceb29/coverage-7.12.0-cp311-cp311-win32.whl", hash = "sha256:313672140638b6ddb2c6455ddeda41c6a0b208298034544cfca138978c6baed6", size = 220033, upload-time = "2025-11-18T13:32:23.714Z" },
- { url = "https://files.pythonhosted.org/packages/e2/a1/e7f63021a7c4fe20994359fcdeae43cbef4a4d0ca36a5a1639feeea5d9e1/coverage-7.12.0-cp311-cp311-win_amd64.whl", hash = "sha256:a1783ed5bd0d5938d4435014626568dc7f93e3cb99bc59188cc18857c47aa3c4", size = 220966, upload-time = "2025-11-18T13:32:25.599Z" },
- { url = "https://files.pythonhosted.org/packages/77/e8/deae26453f37c20c3aa0c4433a1e32cdc169bf415cce223a693117aa3ddd/coverage-7.12.0-cp311-cp311-win_arm64.whl", hash = "sha256:4648158fd8dd9381b5847622df1c90ff314efbfc1df4550092ab6013c238a5fc", size = 219637, upload-time = "2025-11-18T13:32:27.265Z" },
- { url = "https://files.pythonhosted.org/packages/02/bf/638c0427c0f0d47638242e2438127f3c8ee3cfc06c7fdeb16778ed47f836/coverage-7.12.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:29644c928772c78512b48e14156b81255000dcfd4817574ff69def189bcb3647", size = 217704, upload-time = "2025-11-18T13:32:28.906Z" },
- { url = "https://files.pythonhosted.org/packages/08/e1/706fae6692a66c2d6b871a608bbde0da6281903fa0e9f53a39ed441da36a/coverage-7.12.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8638cbb002eaa5d7c8d04da667813ce1067080b9a91099801a0053086e52b736", size = 218064, upload-time = "2025-11-18T13:32:30.161Z" },
- { url = "https://files.pythonhosted.org/packages/a9/8b/eb0231d0540f8af3ffda39720ff43cb91926489d01524e68f60e961366e4/coverage-7.12.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:083631eeff5eb9992c923e14b810a179798bb598e6a0dd60586819fc23be6e60", size = 249560, upload-time = "2025-11-18T13:32:31.835Z" },
- { url = "https://files.pythonhosted.org/packages/e9/a1/67fb52af642e974d159b5b379e4d4c59d0ebe1288677fbd04bbffe665a82/coverage-7.12.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:99d5415c73ca12d558e07776bd957c4222c687b9f1d26fa0e1b57e3598bdcde8", size = 252318, upload-time = "2025-11-18T13:32:33.178Z" },
- { url = "https://files.pythonhosted.org/packages/41/e5/38228f31b2c7665ebf9bdfdddd7a184d56450755c7e43ac721c11a4b8dab/coverage-7.12.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e949ebf60c717c3df63adb4a1a366c096c8d7fd8472608cd09359e1bd48ef59f", size = 253403, upload-time = "2025-11-18T13:32:34.45Z" },
- { url = "https://files.pythonhosted.org/packages/ec/4b/df78e4c8188f9960684267c5a4897836f3f0f20a20c51606ee778a1d9749/coverage-7.12.0-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6d907ddccbca819afa2cd014bc69983b146cca2735a0b1e6259b2a6c10be1e70", size = 249984, upload-time = "2025-11-18T13:32:35.747Z" },
- { url = "https://files.pythonhosted.org/packages/ba/51/bb163933d195a345c6f63eab9e55743413d064c291b6220df754075c2769/coverage-7.12.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b1518ecbad4e6173f4c6e6c4a46e49555ea5679bf3feda5edb1b935c7c44e8a0", size = 251339, upload-time = "2025-11-18T13:32:37.352Z" },
- { url = "https://files.pythonhosted.org/packages/15/40/c9b29cdb8412c837cdcbc2cfa054547dd83affe6cbbd4ce4fdb92b6ba7d1/coverage-7.12.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:51777647a749abdf6f6fd8c7cffab12de68ab93aab15efc72fbbb83036c2a068", size = 249489, upload-time = "2025-11-18T13:32:39.212Z" },
- { url = "https://files.pythonhosted.org/packages/c8/da/b3131e20ba07a0de4437a50ef3b47840dfabf9293675b0cd5c2c7f66dd61/coverage-7.12.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:42435d46d6461a3b305cdfcad7cdd3248787771f53fe18305548cba474e6523b", size = 249070, upload-time = "2025-11-18T13:32:40.598Z" },
- { url = "https://files.pythonhosted.org/packages/70/81/b653329b5f6302c08d683ceff6785bc60a34be9ae92a5c7b63ee7ee7acec/coverage-7.12.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:5bcead88c8423e1855e64b8057d0544e33e4080b95b240c2a355334bb7ced937", size = 250929, upload-time = "2025-11-18T13:32:42.915Z" },
- { url = "https://files.pythonhosted.org/packages/a3/00/250ac3bca9f252a5fb1338b5ad01331ebb7b40223f72bef5b1b2cb03aa64/coverage-7.12.0-cp312-cp312-win32.whl", hash = "sha256:dcbb630ab034e86d2a0f79aefd2be07e583202f41e037602d438c80044957baa", size = 220241, upload-time = "2025-11-18T13:32:44.665Z" },
- { url = "https://files.pythonhosted.org/packages/64/1c/77e79e76d37ce83302f6c21980b45e09f8aa4551965213a10e62d71ce0ab/coverage-7.12.0-cp312-cp312-win_amd64.whl", hash = "sha256:2fd8354ed5d69775ac42986a691fbf68b4084278710cee9d7c3eaa0c28fa982a", size = 221051, upload-time = "2025-11-18T13:32:46.008Z" },
- { url = "https://files.pythonhosted.org/packages/31/f5/641b8a25baae564f9e52cac0e2667b123de961985709a004e287ee7663cc/coverage-7.12.0-cp312-cp312-win_arm64.whl", hash = "sha256:737c3814903be30695b2de20d22bcc5428fdae305c61ba44cdc8b3252984c49c", size = 219692, upload-time = "2025-11-18T13:32:47.372Z" },
- { url = "https://files.pythonhosted.org/packages/b8/14/771700b4048774e48d2c54ed0c674273702713c9ee7acdfede40c2666747/coverage-7.12.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:47324fffca8d8eae7e185b5bb20c14645f23350f870c1649003618ea91a78941", size = 217725, upload-time = "2025-11-18T13:32:49.22Z" },
- { url = "https://files.pythonhosted.org/packages/17/a7/3aa4144d3bcb719bf67b22d2d51c2d577bf801498c13cb08f64173e80497/coverage-7.12.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:ccf3b2ede91decd2fb53ec73c1f949c3e034129d1e0b07798ff1d02ea0c8fa4a", size = 218098, upload-time = "2025-11-18T13:32:50.78Z" },
- { url = "https://files.pythonhosted.org/packages/fc/9c/b846bbc774ff81091a12a10203e70562c91ae71badda00c5ae5b613527b1/coverage-7.12.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:b365adc70a6936c6b0582dc38746b33b2454148c02349345412c6e743efb646d", size = 249093, upload-time = "2025-11-18T13:32:52.554Z" },
- { url = "https://files.pythonhosted.org/packages/76/b6/67d7c0e1f400b32c883e9342de4a8c2ae7c1a0b57c5de87622b7262e2309/coverage-7.12.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:bc13baf85cd8a4cfcf4a35c7bc9d795837ad809775f782f697bf630b7e200211", size = 251686, upload-time = "2025-11-18T13:32:54.862Z" },
- { url = "https://files.pythonhosted.org/packages/cc/75/b095bd4b39d49c3be4bffbb3135fea18a99a431c52dd7513637c0762fecb/coverage-7.12.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:099d11698385d572ceafb3288a5b80fe1fc58bf665b3f9d362389de488361d3d", size = 252930, upload-time = "2025-11-18T13:32:56.417Z" },
- { url = "https://files.pythonhosted.org/packages/6e/f3/466f63015c7c80550bead3093aacabf5380c1220a2a93c35d374cae8f762/coverage-7.12.0-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:473dc45d69694069adb7680c405fb1e81f60b2aff42c81e2f2c3feaf544d878c", size = 249296, upload-time = "2025-11-18T13:32:58.074Z" },
- { url = "https://files.pythonhosted.org/packages/27/86/eba2209bf2b7e28c68698fc13437519a295b2d228ba9e0ec91673e09fa92/coverage-7.12.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:583f9adbefd278e9de33c33d6846aa8f5d164fa49b47144180a0e037f0688bb9", size = 251068, upload-time = "2025-11-18T13:32:59.646Z" },
- { url = "https://files.pythonhosted.org/packages/ec/55/ca8ae7dbba962a3351f18940b359b94c6bafdd7757945fdc79ec9e452dc7/coverage-7.12.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:b2089cc445f2dc0af6f801f0d1355c025b76c24481935303cf1af28f636688f0", size = 249034, upload-time = "2025-11-18T13:33:01.481Z" },
- { url = "https://files.pythonhosted.org/packages/7a/d7/39136149325cad92d420b023b5fd900dabdd1c3a0d1d5f148ef4a8cedef5/coverage-7.12.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:950411f1eb5d579999c5f66c62a40961f126fc71e5e14419f004471957b51508", size = 248853, upload-time = "2025-11-18T13:33:02.935Z" },
- { url = "https://files.pythonhosted.org/packages/fe/b6/76e1add8b87ef60e00643b0b7f8f7bb73d4bf5249a3be19ebefc5793dd25/coverage-7.12.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:b1aab7302a87bafebfe76b12af681b56ff446dc6f32ed178ff9c092ca776e6bc", size = 250619, upload-time = "2025-11-18T13:33:04.336Z" },
- { url = "https://files.pythonhosted.org/packages/95/87/924c6dc64f9203f7a3c1832a6a0eee5a8335dbe5f1bdadcc278d6f1b4d74/coverage-7.12.0-cp313-cp313-win32.whl", hash = "sha256:d7e0d0303c13b54db495eb636bc2465b2fb8475d4c8bcec8fe4b5ca454dfbae8", size = 220261, upload-time = "2025-11-18T13:33:06.493Z" },
- { url = "https://files.pythonhosted.org/packages/91/77/dd4aff9af16ff776bf355a24d87eeb48fc6acde54c907cc1ea89b14a8804/coverage-7.12.0-cp313-cp313-win_amd64.whl", hash = "sha256:ce61969812d6a98a981d147d9ac583a36ac7db7766f2e64a9d4d059c2fe29d07", size = 221072, upload-time = "2025-11-18T13:33:07.926Z" },
- { url = "https://files.pythonhosted.org/packages/70/49/5c9dc46205fef31b1b226a6e16513193715290584317fd4df91cdaf28b22/coverage-7.12.0-cp313-cp313-win_arm64.whl", hash = "sha256:bcec6f47e4cb8a4c2dc91ce507f6eefc6a1b10f58df32cdc61dff65455031dfc", size = 219702, upload-time = "2025-11-18T13:33:09.631Z" },
- { url = "https://files.pythonhosted.org/packages/9b/62/f87922641c7198667994dd472a91e1d9b829c95d6c29529ceb52132436ad/coverage-7.12.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:459443346509476170d553035e4a3eed7b860f4fe5242f02de1010501956ce87", size = 218420, upload-time = "2025-11-18T13:33:11.153Z" },
- { url = "https://files.pythonhosted.org/packages/85/dd/1cc13b2395ef15dbb27d7370a2509b4aee77890a464fb35d72d428f84871/coverage-7.12.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:04a79245ab2b7a61688958f7a855275997134bc84f4a03bc240cf64ff132abf6", size = 218773, upload-time = "2025-11-18T13:33:12.569Z" },
- { url = "https://files.pythonhosted.org/packages/74/40/35773cc4bb1e9d4658d4fb669eb4195b3151bef3bbd6f866aba5cd5dac82/coverage-7.12.0-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:09a86acaaa8455f13d6a99221d9654df249b33937b4e212b4e5a822065f12aa7", size = 260078, upload-time = "2025-11-18T13:33:14.037Z" },
- { url = "https://files.pythonhosted.org/packages/ec/ee/231bb1a6ffc2905e396557585ebc6bdc559e7c66708376d245a1f1d330fc/coverage-7.12.0-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:907e0df1b71ba77463687a74149c6122c3f6aac56c2510a5d906b2f368208560", size = 262144, upload-time = "2025-11-18T13:33:15.601Z" },
- { url = "https://files.pythonhosted.org/packages/28/be/32f4aa9f3bf0b56f3971001b56508352c7753915345d45fab4296a986f01/coverage-7.12.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9b57e2d0ddd5f0582bae5437c04ee71c46cd908e7bc5d4d0391f9a41e812dd12", size = 264574, upload-time = "2025-11-18T13:33:17.354Z" },
- { url = "https://files.pythonhosted.org/packages/68/7c/00489fcbc2245d13ab12189b977e0cf06ff3351cb98bc6beba8bd68c5902/coverage-7.12.0-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:58c1c6aa677f3a1411fe6fb28ec3a942e4f665df036a3608816e0847fad23296", size = 259298, upload-time = "2025-11-18T13:33:18.958Z" },
- { url = "https://files.pythonhosted.org/packages/96/b4/f0760d65d56c3bea95b449e02570d4abd2549dc784bf39a2d4721a2d8ceb/coverage-7.12.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:4c589361263ab2953e3c4cd2a94db94c4ad4a8e572776ecfbad2389c626e4507", size = 262150, upload-time = "2025-11-18T13:33:20.644Z" },
- { url = "https://files.pythonhosted.org/packages/c5/71/9a9314df00f9326d78c1e5a910f520d599205907432d90d1c1b7a97aa4b1/coverage-7.12.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:91b810a163ccad2e43b1faa11d70d3cf4b6f3d83f9fd5f2df82a32d47b648e0d", size = 259763, upload-time = "2025-11-18T13:33:22.189Z" },
- { url = "https://files.pythonhosted.org/packages/10/34/01a0aceed13fbdf925876b9a15d50862eb8845454301fe3cdd1df08b2182/coverage-7.12.0-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:40c867af715f22592e0d0fb533a33a71ec9e0f73a6945f722a0c85c8c1cbe3a2", size = 258653, upload-time = "2025-11-18T13:33:24.239Z" },
- { url = "https://files.pythonhosted.org/packages/8d/04/81d8fd64928acf1574bbb0181f66901c6c1c6279c8ccf5f84259d2c68ae9/coverage-7.12.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:68b0d0a2d84f333de875666259dadf28cc67858bc8fd8b3f1eae84d3c2bec455", size = 260856, upload-time = "2025-11-18T13:33:26.365Z" },
- { url = "https://files.pythonhosted.org/packages/f2/76/fa2a37bfaeaf1f766a2d2360a25a5297d4fb567098112f6517475eee120b/coverage-7.12.0-cp313-cp313t-win32.whl", hash = "sha256:73f9e7fbd51a221818fd11b7090eaa835a353ddd59c236c57b2199486b116c6d", size = 220936, upload-time = "2025-11-18T13:33:28.165Z" },
- { url = "https://files.pythonhosted.org/packages/f9/52/60f64d932d555102611c366afb0eb434b34266b1d9266fc2fe18ab641c47/coverage-7.12.0-cp313-cp313t-win_amd64.whl", hash = "sha256:24cff9d1f5743f67db7ba46ff284018a6e9aeb649b67aa1e70c396aa1b7cb23c", size = 222001, upload-time = "2025-11-18T13:33:29.656Z" },
- { url = "https://files.pythonhosted.org/packages/77/df/c303164154a5a3aea7472bf323b7c857fed93b26618ed9fc5c2955566bb0/coverage-7.12.0-cp313-cp313t-win_arm64.whl", hash = "sha256:c87395744f5c77c866d0f5a43d97cc39e17c7f1cb0115e54a2fe67ca75c5d14d", size = 220273, upload-time = "2025-11-18T13:33:31.415Z" },
- { url = "https://files.pythonhosted.org/packages/ce/a3/43b749004e3c09452e39bb56347a008f0a0668aad37324a99b5c8ca91d9e/coverage-7.12.0-py3-none-any.whl", hash = "sha256:159d50c0b12e060b15ed3d39f87ed43d4f7f7ad40b8a534f4dd331adbb51104a", size = 209503, upload-time = "2025-11-18T13:34:18.892Z" },
+version = "7.13.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/b6/45/2c665ca77ec32ad67e25c77daf1cee28ee4558f3bc571cdbaf88a00b9f23/coverage-7.13.0.tar.gz", hash = "sha256:a394aa27f2d7ff9bc04cf703817773a59ad6dfbd577032e690f961d2460ee936", size = 820905, upload-time = "2025-12-08T13:14:38.055Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/db/08/bdd7ccca14096f7eb01412b87ac11e5d16e4cb54b6e328afc9dee8bdaec1/coverage-7.13.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:02d9fb9eccd48f6843c98a37bd6817462f130b86da8660461e8f5e54d4c06070", size = 217979, upload-time = "2025-12-08T13:12:14.505Z" },
+ { url = "https://files.pythonhosted.org/packages/fa/f0/d1302e3416298a28b5663ae1117546a745d9d19fde7e28402b2c5c3e2109/coverage-7.13.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:367449cf07d33dc216c083f2036bb7d976c6e4903ab31be400ad74ad9f85ce98", size = 218496, upload-time = "2025-12-08T13:12:16.237Z" },
+ { url = "https://files.pythonhosted.org/packages/07/26/d36c354c8b2a320819afcea6bffe72839efd004b98d1d166b90801d49d57/coverage-7.13.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:cdb3c9f8fef0a954c632f64328a3935988d33a6604ce4bf67ec3e39670f12ae5", size = 245237, upload-time = "2025-12-08T13:12:17.858Z" },
+ { url = "https://files.pythonhosted.org/packages/91/52/be5e85631e0eec547873d8b08dd67a5f6b111ecfe89a86e40b89b0c1c61c/coverage-7.13.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:d10fd186aac2316f9bbb46ef91977f9d394ded67050ad6d84d94ed6ea2e8e54e", size = 247061, upload-time = "2025-12-08T13:12:19.132Z" },
+ { url = "https://files.pythonhosted.org/packages/0f/45/a5e8fa0caf05fbd8fa0402470377bff09cc1f026d21c05c71e01295e55ab/coverage-7.13.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7f88ae3e69df2ab62fb0bc5219a597cb890ba5c438190ffa87490b315190bb33", size = 248928, upload-time = "2025-12-08T13:12:20.702Z" },
+ { url = "https://files.pythonhosted.org/packages/f5/42/ffb5069b6fd1b95fae482e02f3fecf380d437dd5a39bae09f16d2e2e7e01/coverage-7.13.0-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c4be718e51e86f553bcf515305a158a1cd180d23b72f07ae76d6017c3cc5d791", size = 245931, upload-time = "2025-12-08T13:12:22.243Z" },
+ { url = "https://files.pythonhosted.org/packages/95/6e/73e809b882c2858f13e55c0c36e94e09ce07e6165d5644588f9517efe333/coverage-7.13.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a00d3a393207ae12f7c49bb1c113190883b500f48979abb118d8b72b8c95c032", size = 246968, upload-time = "2025-12-08T13:12:23.52Z" },
+ { url = "https://files.pythonhosted.org/packages/87/08/64ebd9e64b6adb8b4a4662133d706fbaccecab972e0b3ccc23f64e2678ad/coverage-7.13.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:3a7b1cd820e1b6116f92c6128f1188e7afe421c7e1b35fa9836b11444e53ebd9", size = 244972, upload-time = "2025-12-08T13:12:24.781Z" },
+ { url = "https://files.pythonhosted.org/packages/12/97/f4d27c6fe0cb375a5eced4aabcaef22de74766fb80a3d5d2015139e54b22/coverage-7.13.0-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:37eee4e552a65866f15dedd917d5e5f3d59805994260720821e2c1b51ac3248f", size = 245241, upload-time = "2025-12-08T13:12:28.041Z" },
+ { url = "https://files.pythonhosted.org/packages/0c/94/42f8ae7f633bf4c118bf1038d80472f9dade88961a466f290b81250f7ab7/coverage-7.13.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:62d7c4f13102148c78d7353c6052af6d899a7f6df66a32bddcc0c0eb7c5326f8", size = 245847, upload-time = "2025-12-08T13:12:29.337Z" },
+ { url = "https://files.pythonhosted.org/packages/a8/2f/6369ca22b6b6d933f4f4d27765d313d8914cc4cce84f82a16436b1a233db/coverage-7.13.0-cp310-cp310-win32.whl", hash = "sha256:24e4e56304fdb56f96f80eabf840eab043b3afea9348b88be680ec5986780a0f", size = 220573, upload-time = "2025-12-08T13:12:30.905Z" },
+ { url = "https://files.pythonhosted.org/packages/f1/dc/a6a741e519acceaeccc70a7f4cfe5d030efc4b222595f0677e101af6f1f3/coverage-7.13.0-cp310-cp310-win_amd64.whl", hash = "sha256:74c136e4093627cf04b26a35dab8cbfc9b37c647f0502fc313376e11726ba303", size = 221509, upload-time = "2025-12-08T13:12:32.09Z" },
+ { url = "https://files.pythonhosted.org/packages/f1/dc/888bf90d8b1c3d0b4020a40e52b9f80957d75785931ec66c7dfaccc11c7d/coverage-7.13.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0dfa3855031070058add1a59fdfda0192fd3e8f97e7c81de0596c145dea51820", size = 218104, upload-time = "2025-12-08T13:12:33.333Z" },
+ { url = "https://files.pythonhosted.org/packages/8d/ea/069d51372ad9c380214e86717e40d1a743713a2af191cfba30a0911b0a4a/coverage-7.13.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4fdb6f54f38e334db97f72fa0c701e66d8479af0bc3f9bfb5b90f1c30f54500f", size = 218606, upload-time = "2025-12-08T13:12:34.498Z" },
+ { url = "https://files.pythonhosted.org/packages/68/09/77b1c3a66c2aa91141b6c4471af98e5b1ed9b9e6d17255da5eb7992299e3/coverage-7.13.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:7e442c013447d1d8d195be62852270b78b6e255b79b8675bad8479641e21fd96", size = 248999, upload-time = "2025-12-08T13:12:36.02Z" },
+ { url = "https://files.pythonhosted.org/packages/0a/32/2e2f96e9d5691eaf1181d9040f850b8b7ce165ea10810fd8e2afa534cef7/coverage-7.13.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:1ed5630d946859de835a85e9a43b721123a8a44ec26e2830b296d478c7fd4259", size = 250925, upload-time = "2025-12-08T13:12:37.221Z" },
+ { url = "https://files.pythonhosted.org/packages/7b/45/b88ddac1d7978859b9a39a8a50ab323186148f1d64bc068f86fc77706321/coverage-7.13.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7f15a931a668e58087bc39d05d2b4bf4b14ff2875b49c994bbdb1c2217a8daeb", size = 253032, upload-time = "2025-12-08T13:12:38.763Z" },
+ { url = "https://files.pythonhosted.org/packages/71/cb/e15513f94c69d4820a34b6bf3d2b1f9f8755fa6021be97c7065442d7d653/coverage-7.13.0-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:30a3a201a127ea57f7e14ba43c93c9c4be8b7d17a26e03bb49e6966d019eede9", size = 249134, upload-time = "2025-12-08T13:12:40.382Z" },
+ { url = "https://files.pythonhosted.org/packages/09/61/d960ff7dc9e902af3310ce632a875aaa7860f36d2bc8fc8b37ee7c1b82a5/coverage-7.13.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7a485ff48fbd231efa32d58f479befce52dcb6bfb2a88bb7bf9a0b89b1bc8030", size = 250731, upload-time = "2025-12-08T13:12:41.992Z" },
+ { url = "https://files.pythonhosted.org/packages/98/34/c7c72821794afc7c7c2da1db8f00c2c98353078aa7fb6b5ff36aac834b52/coverage-7.13.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:22486cdafba4f9e471c816a2a5745337742a617fef68e890d8baf9f3036d7833", size = 248795, upload-time = "2025-12-08T13:12:43.331Z" },
+ { url = "https://files.pythonhosted.org/packages/0a/5b/e0f07107987a43b2def9aa041c614ddb38064cbf294a71ef8c67d43a0cdd/coverage-7.13.0-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:263c3dbccc78e2e331e59e90115941b5f53e85cfcc6b3b2fbff1fd4e3d2c6ea8", size = 248514, upload-time = "2025-12-08T13:12:44.546Z" },
+ { url = "https://files.pythonhosted.org/packages/71/c2/c949c5d3b5e9fc6dd79e1b73cdb86a59ef14f3709b1d72bf7668ae12e000/coverage-7.13.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:e5330fa0cc1f5c3c4c3bb8e101b742025933e7848989370a1d4c8c5e401ea753", size = 249424, upload-time = "2025-12-08T13:12:45.759Z" },
+ { url = "https://files.pythonhosted.org/packages/11/f1/bbc009abd6537cec0dffb2cc08c17a7f03de74c970e6302db4342a6e05af/coverage-7.13.0-cp311-cp311-win32.whl", hash = "sha256:0f4872f5d6c54419c94c25dd6ae1d015deeb337d06e448cd890a1e89a8ee7f3b", size = 220597, upload-time = "2025-12-08T13:12:47.378Z" },
+ { url = "https://files.pythonhosted.org/packages/c4/f6/d9977f2fb51c10fbaed0718ce3d0a8541185290b981f73b1d27276c12d91/coverage-7.13.0-cp311-cp311-win_amd64.whl", hash = "sha256:51a202e0f80f241ccb68e3e26e19ab5b3bf0f813314f2c967642f13ebcf1ddfe", size = 221536, upload-time = "2025-12-08T13:12:48.7Z" },
+ { url = "https://files.pythonhosted.org/packages/be/ad/3fcf43fd96fb43e337a3073dea63ff148dcc5c41ba7a14d4c7d34efb2216/coverage-7.13.0-cp311-cp311-win_arm64.whl", hash = "sha256:d2a9d7f1c11487b1c69367ab3ac2d81b9b3721f097aa409a3191c3e90f8f3dd7", size = 220206, upload-time = "2025-12-08T13:12:50.365Z" },
+ { url = "https://files.pythonhosted.org/packages/9b/f1/2619559f17f31ba00fc40908efd1fbf1d0a5536eb75dc8341e7d660a08de/coverage-7.13.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:0b3d67d31383c4c68e19a88e28fc4c2e29517580f1b0ebec4a069d502ce1e0bf", size = 218274, upload-time = "2025-12-08T13:12:52.095Z" },
+ { url = "https://files.pythonhosted.org/packages/2b/11/30d71ae5d6e949ff93b2a79a2c1b4822e00423116c5c6edfaeef37301396/coverage-7.13.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:581f086833d24a22c89ae0fe2142cfaa1c92c930adf637ddf122d55083fb5a0f", size = 218638, upload-time = "2025-12-08T13:12:53.418Z" },
+ { url = "https://files.pythonhosted.org/packages/79/c2/fce80fc6ded8d77e53207489d6065d0fed75db8951457f9213776615e0f5/coverage-7.13.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:0a3a30f0e257df382f5f9534d4ce3d4cf06eafaf5192beb1a7bd066cb10e78fb", size = 250129, upload-time = "2025-12-08T13:12:54.744Z" },
+ { url = "https://files.pythonhosted.org/packages/5b/b6/51b5d1eb6fcbb9a1d5d6984e26cbe09018475c2922d554fd724dd0f056ee/coverage-7.13.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:583221913fbc8f53b88c42e8dbb8fca1d0f2e597cb190ce45916662b8b9d9621", size = 252885, upload-time = "2025-12-08T13:12:56.401Z" },
+ { url = "https://files.pythonhosted.org/packages/0d/f8/972a5affea41de798691ab15d023d3530f9f56a72e12e243f35031846ff7/coverage-7.13.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5f5d9bd30756fff3e7216491a0d6d520c448d5124d3d8e8f56446d6412499e74", size = 253974, upload-time = "2025-12-08T13:12:57.718Z" },
+ { url = "https://files.pythonhosted.org/packages/8a/56/116513aee860b2c7968aa3506b0f59b22a959261d1dbf3aea7b4450a7520/coverage-7.13.0-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a23e5a1f8b982d56fa64f8e442e037f6ce29322f1f9e6c2344cd9e9f4407ee57", size = 250538, upload-time = "2025-12-08T13:12:59.254Z" },
+ { url = "https://files.pythonhosted.org/packages/d6/75/074476d64248fbadf16dfafbf93fdcede389ec821f74ca858d7c87d2a98c/coverage-7.13.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:9b01c22bc74a7fb44066aaf765224c0d933ddf1f5047d6cdfe4795504a4493f8", size = 251912, upload-time = "2025-12-08T13:13:00.604Z" },
+ { url = "https://files.pythonhosted.org/packages/f2/d2/aa4f8acd1f7c06024705c12609d8698c51b27e4d635d717cd1934c9668e2/coverage-7.13.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:898cce66d0836973f48dda4e3514d863d70142bdf6dfab932b9b6a90ea5b222d", size = 250054, upload-time = "2025-12-08T13:13:01.892Z" },
+ { url = "https://files.pythonhosted.org/packages/19/98/8df9e1af6a493b03694a1e8070e024e7d2cdc77adedc225a35e616d505de/coverage-7.13.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:3ab483ea0e251b5790c2aac03acde31bff0c736bf8a86829b89382b407cd1c3b", size = 249619, upload-time = "2025-12-08T13:13:03.236Z" },
+ { url = "https://files.pythonhosted.org/packages/d8/71/f8679231f3353018ca66ef647fa6fe7b77e6bff7845be54ab84f86233363/coverage-7.13.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:1d84e91521c5e4cb6602fe11ece3e1de03b2760e14ae4fcf1a4b56fa3c801fcd", size = 251496, upload-time = "2025-12-08T13:13:04.511Z" },
+ { url = "https://files.pythonhosted.org/packages/04/86/9cb406388034eaf3c606c22094edbbb82eea1fa9d20c0e9efadff20d0733/coverage-7.13.0-cp312-cp312-win32.whl", hash = "sha256:193c3887285eec1dbdb3f2bd7fbc351d570ca9c02ca756c3afbc71b3c98af6ef", size = 220808, upload-time = "2025-12-08T13:13:06.422Z" },
+ { url = "https://files.pythonhosted.org/packages/1c/59/af483673df6455795daf5f447c2f81a3d2fcfc893a22b8ace983791f6f34/coverage-7.13.0-cp312-cp312-win_amd64.whl", hash = "sha256:4f3e223b2b2db5e0db0c2b97286aba0036ca000f06aca9b12112eaa9af3d92ae", size = 221616, upload-time = "2025-12-08T13:13:07.95Z" },
+ { url = "https://files.pythonhosted.org/packages/64/b0/959d582572b30a6830398c60dd419c1965ca4b5fb38ac6b7093a0d50ca8d/coverage-7.13.0-cp312-cp312-win_arm64.whl", hash = "sha256:086cede306d96202e15a4b77ace8472e39d9f4e5f9fd92dd4fecdfb2313b2080", size = 220261, upload-time = "2025-12-08T13:13:09.581Z" },
+ { url = "https://files.pythonhosted.org/packages/7c/cc/bce226595eb3bf7d13ccffe154c3c487a22222d87ff018525ab4dd2e9542/coverage-7.13.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:28ee1c96109974af104028a8ef57cec21447d42d0e937c0275329272e370ebcf", size = 218297, upload-time = "2025-12-08T13:13:10.977Z" },
+ { url = "https://files.pythonhosted.org/packages/3b/9f/73c4d34600aae03447dff3d7ad1d0ac649856bfb87d1ca7d681cfc913f9e/coverage-7.13.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:d1e97353dcc5587b85986cda4ff3ec98081d7e84dd95e8b2a6d59820f0545f8a", size = 218673, upload-time = "2025-12-08T13:13:12.562Z" },
+ { url = "https://files.pythonhosted.org/packages/63/ab/8fa097db361a1e8586535ae5073559e6229596b3489ec3ef2f5b38df8cb2/coverage-7.13.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:99acd4dfdfeb58e1937629eb1ab6ab0899b131f183ee5f23e0b5da5cba2fec74", size = 249652, upload-time = "2025-12-08T13:13:13.909Z" },
+ { url = "https://files.pythonhosted.org/packages/90/3a/9bfd4de2ff191feb37ef9465855ca56a6f2f30a3bca172e474130731ac3d/coverage-7.13.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:ff45e0cd8451e293b63ced93161e189780baf444119391b3e7d25315060368a6", size = 252251, upload-time = "2025-12-08T13:13:15.553Z" },
+ { url = "https://files.pythonhosted.org/packages/df/61/b5d8105f016e1b5874af0d7c67542da780ccd4a5f2244a433d3e20ceb1ad/coverage-7.13.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f4f72a85316d8e13234cafe0a9f81b40418ad7a082792fa4165bd7d45d96066b", size = 253492, upload-time = "2025-12-08T13:13:16.849Z" },
+ { url = "https://files.pythonhosted.org/packages/f3/b8/0fad449981803cc47a4694768b99823fb23632150743f9c83af329bb6090/coverage-7.13.0-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:11c21557d0e0a5a38632cbbaca5f008723b26a89d70db6315523df6df77d6232", size = 249850, upload-time = "2025-12-08T13:13:18.142Z" },
+ { url = "https://files.pythonhosted.org/packages/9a/e9/8d68337c3125014d918cf4327d5257553a710a2995a6a6de2ac77e5aa429/coverage-7.13.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:76541dc8d53715fb4f7a3a06b34b0dc6846e3c69bc6204c55653a85dd6220971", size = 251633, upload-time = "2025-12-08T13:13:19.56Z" },
+ { url = "https://files.pythonhosted.org/packages/55/14/d4112ab26b3a1bc4b3c1295d8452dcf399ed25be4cf649002fb3e64b2d93/coverage-7.13.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:6e9e451dee940a86789134b6b0ffbe31c454ade3b849bb8a9d2cca2541a8e91d", size = 249586, upload-time = "2025-12-08T13:13:20.883Z" },
+ { url = "https://files.pythonhosted.org/packages/2c/a9/22b0000186db663b0d82f86c2f1028099ae9ac202491685051e2a11a5218/coverage-7.13.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:5c67dace46f361125e6b9cace8fe0b729ed8479f47e70c89b838d319375c8137", size = 249412, upload-time = "2025-12-08T13:13:22.22Z" },
+ { url = "https://files.pythonhosted.org/packages/a1/2e/42d8e0d9e7527fba439acdc6ed24a2b97613b1dc85849b1dd935c2cffef0/coverage-7.13.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:f59883c643cb19630500f57016f76cfdcd6845ca8c5b5ea1f6e17f74c8e5f511", size = 251191, upload-time = "2025-12-08T13:13:23.899Z" },
+ { url = "https://files.pythonhosted.org/packages/a4/af/8c7af92b1377fd8860536aadd58745119252aaaa71a5213e5a8e8007a9f5/coverage-7.13.0-cp313-cp313-win32.whl", hash = "sha256:58632b187be6f0be500f553be41e277712baa278147ecb7559983c6d9faf7ae1", size = 220829, upload-time = "2025-12-08T13:13:25.182Z" },
+ { url = "https://files.pythonhosted.org/packages/58/f9/725e8bf16f343d33cbe076c75dc8370262e194ff10072c0608b8e5cf33a3/coverage-7.13.0-cp313-cp313-win_amd64.whl", hash = "sha256:73419b89f812f498aca53f757dd834919b48ce4799f9d5cad33ca0ae442bdb1a", size = 221640, upload-time = "2025-12-08T13:13:26.836Z" },
+ { url = "https://files.pythonhosted.org/packages/8a/ff/e98311000aa6933cc79274e2b6b94a2fe0fe3434fca778eba82003675496/coverage-7.13.0-cp313-cp313-win_arm64.whl", hash = "sha256:eb76670874fdd6091eedcc856128ee48c41a9bbbb9c3f1c7c3cf169290e3ffd6", size = 220269, upload-time = "2025-12-08T13:13:28.116Z" },
+ { url = "https://files.pythonhosted.org/packages/cf/cf/bbaa2e1275b300343ea865f7d424cc0a2e2a1df6925a070b2b2d5d765330/coverage-7.13.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:6e63ccc6e0ad8986386461c3c4b737540f20426e7ec932f42e030320896c311a", size = 218990, upload-time = "2025-12-08T13:13:29.463Z" },
+ { url = "https://files.pythonhosted.org/packages/21/1d/82f0b3323b3d149d7672e7744c116e9c170f4957e0c42572f0366dbb4477/coverage-7.13.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:494f5459ffa1bd45e18558cd98710c36c0b8fbfa82a5eabcbe671d80ecffbfe8", size = 219340, upload-time = "2025-12-08T13:13:31.524Z" },
+ { url = "https://files.pythonhosted.org/packages/fb/e3/fe3fd4702a3832a255f4d43013eacb0ef5fc155a5960ea9269d8696db28b/coverage-7.13.0-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:06cac81bf10f74034e055e903f5f946e3e26fc51c09fc9f584e4a1605d977053", size = 260638, upload-time = "2025-12-08T13:13:32.965Z" },
+ { url = "https://files.pythonhosted.org/packages/ad/01/63186cb000307f2b4da463f72af9b85d380236965574c78e7e27680a2593/coverage-7.13.0-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:f2ffc92b46ed6e6760f1d47a71e56b5664781bc68986dbd1836b2b70c0ce2071", size = 262705, upload-time = "2025-12-08T13:13:34.378Z" },
+ { url = "https://files.pythonhosted.org/packages/7c/a1/c0dacef0cc865f2455d59eed3548573ce47ed603205ffd0735d1d78b5906/coverage-7.13.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0602f701057c6823e5db1b74530ce85f17c3c5be5c85fc042ac939cbd909426e", size = 265125, upload-time = "2025-12-08T13:13:35.73Z" },
+ { url = "https://files.pythonhosted.org/packages/ef/92/82b99223628b61300bd382c205795533bed021505eab6dd86e11fb5d7925/coverage-7.13.0-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:25dc33618d45456ccb1d37bce44bc78cf269909aa14c4db2e03d63146a8a1493", size = 259844, upload-time = "2025-12-08T13:13:37.69Z" },
+ { url = "https://files.pythonhosted.org/packages/cf/2c/89b0291ae4e6cd59ef042708e1c438e2290f8c31959a20055d8768349ee2/coverage-7.13.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:71936a8b3b977ddd0b694c28c6a34f4fff2e9dd201969a4ff5d5fc7742d614b0", size = 262700, upload-time = "2025-12-08T13:13:39.525Z" },
+ { url = "https://files.pythonhosted.org/packages/bf/f9/a5f992efae1996245e796bae34ceb942b05db275e4b34222a9a40b9fbd3b/coverage-7.13.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:936bc20503ce24770c71938d1369461f0c5320830800933bc3956e2a4ded930e", size = 260321, upload-time = "2025-12-08T13:13:41.172Z" },
+ { url = "https://files.pythonhosted.org/packages/4c/89/a29f5d98c64fedbe32e2ac3c227fbf78edc01cc7572eee17d61024d89889/coverage-7.13.0-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:af0a583efaacc52ae2521f8d7910aff65cdb093091d76291ac5820d5e947fc1c", size = 259222, upload-time = "2025-12-08T13:13:43.282Z" },
+ { url = "https://files.pythonhosted.org/packages/b3/c3/940fe447aae302a6701ee51e53af7e08b86ff6eed7631e5740c157ee22b9/coverage-7.13.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f1c23e24a7000da892a312fb17e33c5f94f8b001de44b7cf8ba2e36fbd15859e", size = 261411, upload-time = "2025-12-08T13:13:44.72Z" },
+ { url = "https://files.pythonhosted.org/packages/eb/31/12a4aec689cb942a89129587860ed4d0fd522d5fda81237147fde554b8ae/coverage-7.13.0-cp313-cp313t-win32.whl", hash = "sha256:5f8a0297355e652001015e93be345ee54393e45dc3050af4a0475c5a2b767d46", size = 221505, upload-time = "2025-12-08T13:13:46.332Z" },
+ { url = "https://files.pythonhosted.org/packages/65/8c/3b5fe3259d863572d2b0827642c50c3855d26b3aefe80bdc9eba1f0af3b0/coverage-7.13.0-cp313-cp313t-win_amd64.whl", hash = "sha256:6abb3a4c52f05e08460bd9acf04fec027f8718ecaa0d09c40ffbc3fbd70ecc39", size = 222569, upload-time = "2025-12-08T13:13:47.79Z" },
+ { url = "https://files.pythonhosted.org/packages/b0/39/f71fa8316a96ac72fc3908839df651e8eccee650001a17f2c78cdb355624/coverage-7.13.0-cp313-cp313t-win_arm64.whl", hash = "sha256:3ad968d1e3aa6ce5be295ab5fe3ae1bf5bb4769d0f98a80a0252d543a2ef2e9e", size = 220841, upload-time = "2025-12-08T13:13:49.243Z" },
+ { url = "https://files.pythonhosted.org/packages/f8/4b/9b54bedda55421449811dcd5263a2798a63f48896c24dfb92b0f1b0845bd/coverage-7.13.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:453b7ec753cf5e4356e14fe858064e5520c460d3bbbcb9c35e55c0d21155c256", size = 218343, upload-time = "2025-12-08T13:13:50.811Z" },
+ { url = "https://files.pythonhosted.org/packages/59/df/c3a1f34d4bba2e592c8979f924da4d3d4598b0df2392fbddb7761258e3dc/coverage-7.13.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:af827b7cbb303e1befa6c4f94fd2bf72f108089cfa0f8abab8f4ca553cf5ca5a", size = 218672, upload-time = "2025-12-08T13:13:52.284Z" },
+ { url = "https://files.pythonhosted.org/packages/07/62/eec0659e47857698645ff4e6ad02e30186eb8afd65214fd43f02a76537cb/coverage-7.13.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:9987a9e4f8197a1000280f7cc089e3ea2c8b3c0a64d750537809879a7b4ceaf9", size = 249715, upload-time = "2025-12-08T13:13:53.791Z" },
+ { url = "https://files.pythonhosted.org/packages/23/2d/3c7ff8b2e0e634c1f58d095f071f52ed3c23ff25be524b0ccae8b71f99f8/coverage-7.13.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:3188936845cd0cb114fa6a51842a304cdbac2958145d03be2377ec41eb285d19", size = 252225, upload-time = "2025-12-08T13:13:55.274Z" },
+ { url = "https://files.pythonhosted.org/packages/aa/ac/fb03b469d20e9c9a81093575003f959cf91a4a517b783aab090e4538764b/coverage-7.13.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a2bdb3babb74079f021696cb46b8bb5f5661165c385d3a238712b031a12355be", size = 253559, upload-time = "2025-12-08T13:13:57.161Z" },
+ { url = "https://files.pythonhosted.org/packages/29/62/14afa9e792383c66cc0a3b872a06ded6e4ed1079c7d35de274f11d27064e/coverage-7.13.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7464663eaca6adba4175f6c19354feea61ebbdd735563a03d1e472c7072d27bb", size = 249724, upload-time = "2025-12-08T13:13:58.692Z" },
+ { url = "https://files.pythonhosted.org/packages/31/b7/333f3dab2939070613696ab3ee91738950f0467778c6e5a5052e840646b7/coverage-7.13.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:8069e831f205d2ff1f3d355e82f511eb7c5522d7d413f5db5756b772ec8697f8", size = 251582, upload-time = "2025-12-08T13:14:00.642Z" },
+ { url = "https://files.pythonhosted.org/packages/81/cb/69162bda9381f39b2287265d7e29ee770f7c27c19f470164350a38318764/coverage-7.13.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:6fb2d5d272341565f08e962cce14cdf843a08ac43bd621783527adb06b089c4b", size = 249538, upload-time = "2025-12-08T13:14:02.556Z" },
+ { url = "https://files.pythonhosted.org/packages/e0/76/350387b56a30f4970abe32b90b2a434f87d29f8b7d4ae40d2e8a85aacfb3/coverage-7.13.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:5e70f92ef89bac1ac8a99b3324923b4749f008fdbd7aa9cb35e01d7a284a04f9", size = 249349, upload-time = "2025-12-08T13:14:04.015Z" },
+ { url = "https://files.pythonhosted.org/packages/86/0d/7f6c42b8d59f4c7e43ea3059f573c0dcfed98ba46eb43c68c69e52ae095c/coverage-7.13.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:4b5de7d4583e60d5fd246dd57fcd3a8aa23c6e118a8c72b38adf666ba8e7e927", size = 251011, upload-time = "2025-12-08T13:14:05.505Z" },
+ { url = "https://files.pythonhosted.org/packages/d7/f1/4bb2dff379721bb0b5c649d5c5eaf438462cad824acf32eb1b7ca0c7078e/coverage-7.13.0-cp314-cp314-win32.whl", hash = "sha256:a6c6e16b663be828a8f0b6c5027d36471d4a9f90d28444aa4ced4d48d7d6ae8f", size = 221091, upload-time = "2025-12-08T13:14:07.127Z" },
+ { url = "https://files.pythonhosted.org/packages/ba/44/c239da52f373ce379c194b0ee3bcc121020e397242b85f99e0afc8615066/coverage-7.13.0-cp314-cp314-win_amd64.whl", hash = "sha256:0900872f2fdb3ee5646b557918d02279dc3af3dfb39029ac4e945458b13f73bc", size = 221904, upload-time = "2025-12-08T13:14:08.542Z" },
+ { url = "https://files.pythonhosted.org/packages/89/1f/b9f04016d2a29c2e4a0307baefefad1a4ec5724946a2b3e482690486cade/coverage-7.13.0-cp314-cp314-win_arm64.whl", hash = "sha256:3a10260e6a152e5f03f26db4a407c4c62d3830b9af9b7c0450b183615f05d43b", size = 220480, upload-time = "2025-12-08T13:14:10.958Z" },
+ { url = "https://files.pythonhosted.org/packages/16/d4/364a1439766c8e8647860584171c36010ca3226e6e45b1753b1b249c5161/coverage-7.13.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:9097818b6cc1cfb5f174e3263eba4a62a17683bcfe5c4b5d07f4c97fa51fbf28", size = 219074, upload-time = "2025-12-08T13:14:13.345Z" },
+ { url = "https://files.pythonhosted.org/packages/ce/f4/71ba8be63351e099911051b2089662c03d5671437a0ec2171823c8e03bec/coverage-7.13.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0018f73dfb4301a89292c73be6ba5f58722ff79f51593352759c1790ded1cabe", size = 219342, upload-time = "2025-12-08T13:14:15.02Z" },
+ { url = "https://files.pythonhosted.org/packages/5e/25/127d8ed03d7711a387d96f132589057213e3aef7475afdaa303412463f22/coverage-7.13.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:166ad2a22ee770f5656e1257703139d3533b4a0b6909af67c6b4a3adc1c98657", size = 260713, upload-time = "2025-12-08T13:14:16.907Z" },
+ { url = "https://files.pythonhosted.org/packages/fd/db/559fbb6def07d25b2243663b46ba9eb5a3c6586c0c6f4e62980a68f0ee1c/coverage-7.13.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:f6aaef16d65d1787280943f1c8718dc32e9cf141014e4634d64446702d26e0ff", size = 262825, upload-time = "2025-12-08T13:14:18.68Z" },
+ { url = "https://files.pythonhosted.org/packages/37/99/6ee5bf7eff884766edb43bd8736b5e1c5144d0fe47498c3779326fe75a35/coverage-7.13.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e999e2dcc094002d6e2c7bbc1fb85b58ba4f465a760a8014d97619330cdbbbf3", size = 265233, upload-time = "2025-12-08T13:14:20.55Z" },
+ { url = "https://files.pythonhosted.org/packages/d8/90/92f18fe0356ea69e1f98f688ed80cec39f44e9f09a1f26a1bbf017cc67f2/coverage-7.13.0-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:00c3d22cf6fb1cf3bf662aaaa4e563be8243a5ed2630339069799835a9cc7f9b", size = 259779, upload-time = "2025-12-08T13:14:22.367Z" },
+ { url = "https://files.pythonhosted.org/packages/90/5d/b312a8b45b37a42ea7d27d7d3ff98ade3a6c892dd48d1d503e773503373f/coverage-7.13.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:22ccfe8d9bb0d6134892cbe1262493a8c70d736b9df930f3f3afae0fe3ac924d", size = 262700, upload-time = "2025-12-08T13:14:24.309Z" },
+ { url = "https://files.pythonhosted.org/packages/63/f8/b1d0de5c39351eb71c366f872376d09386640840a2e09b0d03973d791e20/coverage-7.13.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:9372dff5ea15930fea0445eaf37bbbafbc771a49e70c0aeed8b4e2c2614cc00e", size = 260302, upload-time = "2025-12-08T13:14:26.068Z" },
+ { url = "https://files.pythonhosted.org/packages/aa/7c/d42f4435bc40c55558b3109a39e2d456cddcec37434f62a1f1230991667a/coverage-7.13.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:69ac2c492918c2461bc6ace42d0479638e60719f2a4ef3f0815fa2df88e9f940", size = 259136, upload-time = "2025-12-08T13:14:27.604Z" },
+ { url = "https://files.pythonhosted.org/packages/b8/d3/23413241dc04d47cfe19b9a65b32a2edd67ecd0b817400c2843ebc58c847/coverage-7.13.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:739c6c051a7540608d097b8e13c76cfa85263ced467168dc6b477bae3df7d0e2", size = 261467, upload-time = "2025-12-08T13:14:29.09Z" },
+ { url = "https://files.pythonhosted.org/packages/13/e6/6e063174500eee216b96272c0d1847bf215926786f85c2bd024cf4d02d2f/coverage-7.13.0-cp314-cp314t-win32.whl", hash = "sha256:fe81055d8c6c9de76d60c94ddea73c290b416e061d40d542b24a5871bad498b7", size = 221875, upload-time = "2025-12-08T13:14:31.106Z" },
+ { url = "https://files.pythonhosted.org/packages/3b/46/f4fb293e4cbe3620e3ac2a3e8fd566ed33affb5861a9b20e3dd6c1896cbc/coverage-7.13.0-cp314-cp314t-win_amd64.whl", hash = "sha256:445badb539005283825959ac9fa4a28f712c214b65af3a2c464f1adc90f5fcbc", size = 222982, upload-time = "2025-12-08T13:14:33.1Z" },
+ { url = "https://files.pythonhosted.org/packages/68/62/5b3b9018215ed9733fbd1ae3b2ed75c5de62c3b55377a52cae732e1b7805/coverage-7.13.0-cp314-cp314t-win_arm64.whl", hash = "sha256:de7f6748b890708578fc4b7bb967d810aeb6fcc9bff4bb77dbca77dab2f9df6a", size = 221016, upload-time = "2025-12-08T13:14:34.601Z" },
+ { url = "https://files.pythonhosted.org/packages/8d/4c/1968f32fb9a2604645827e11ff84a31e59d532e01995f904723b4f5328b3/coverage-7.13.0-py3-none-any.whl", hash = "sha256:850d2998f380b1e266459ca5b47bc9e7daf9af1d070f66317972f382d46f1904", size = 210068, upload-time = "2025-12-08T13:14:36.236Z" },
]
[package.optional-dependencies]
@@ -647,7 +723,7 @@ wheels = [
[[package]]
name = "docling"
-version = "2.64.1"
+version = "2.66.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "accelerate" },
@@ -680,14 +756,14 @@ dependencies = [
{ name = "tqdm" },
{ name = "typer" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/d9/91/54b666b55dc130c1758db8b19c2331803c363aebc43aec27d4547a595217/docling-2.64.1.tar.gz", hash = "sha256:f2fe2cfc75f5edaa1d6230a1f49e5c67f93ddead2595119f164877cf4cc52f02", size = 256469, upload-time = "2025-12-09T09:07:24.573Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/6e/fe/ae95be643a84bf820c66e061c09033bf5e482d307b6331b5a6f231c13342/docling-2.66.0.tar.gz", hash = "sha256:5125c09f9390ae26e2bbb2d49adbb4d87be1596b5a917ef827635caf61388960", size = 258523, upload-time = "2025-12-24T10:47:39.449Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/35/5d/56d6fde18cca4bef15846fac4ad3ba9f12ba8a7d829adaefce5f74c8b5bb/docling-2.64.1-py3-none-any.whl", hash = "sha256:bbd3265341ca28b9dab9bd58a59e72144918659f3cbe0ff9ec51a6242727db33", size = 274806, upload-time = "2025-12-09T09:07:22.815Z" },
+ { url = "https://files.pythonhosted.org/packages/79/b6/f45b9b2cddcef22ac41a63e962ee071b71b806c01e496dff8fd203ee5e7b/docling-2.66.0-py3-none-any.whl", hash = "sha256:d330eed50a783f4e153f197d4d9680356a36266dd7bab5fe7aeccf07efbf3d18", size = 276860, upload-time = "2025-12-24T10:47:38.141Z" },
]
[[package]]
name = "docling-core"
-version = "2.55.0"
+version = "2.57.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "jsonref" },
@@ -701,9 +777,9 @@ dependencies = [
{ name = "typer" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/e9/77/bad4f298c12b2fab737861178c04d9f21c741b65c561197a9fd918031c31/docling_core-2.55.0.tar.gz", hash = "sha256:184a61552d5947b0fb035d48231ae03d3165c4a749e961737652a0d110d53a3f", size = 203784, upload-time = "2025-12-10T10:44:19.303Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/08/fa/541931a448ddc9609a3e21ca176baf28bd0a89cbbd7be23380637a87d427/docling_core-2.57.0.tar.gz", hash = "sha256:24b71172e8bc4fbe2b4213b29f51878114f4c13f25fc0bc9920168505c76c1a3", size = 230768, upload-time = "2025-12-18T14:18:14.928Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/5d/a8/7c42ba02595c92c18a7b2fceb2f8b30d3a595d6283b130cc380fa6b2b01d/docling_core-2.55.0-py3-none-any.whl", hash = "sha256:dac64cd56d7f2fb471da1286dc9112c8c160bc69e451fcc12b97dd5019b38284", size = 202847, upload-time = "2025-12-10T10:44:17.681Z" },
+ { url = "https://files.pythonhosted.org/packages/24/1c/03cc087b360b7815c5472f5cfaaf9b09fa6d0397c05c120a7c623654bf21/docling_core-2.57.0-py3-none-any.whl", hash = "sha256:398768b4d275ad2e11703ad9446fd0315a9a5fc8d09bc45ed207302d844d6ed5", size = 223002, upload-time = "2025-12-18T14:18:13.558Z" },
]
[package.optional-dependencies]
@@ -728,7 +804,7 @@ dependencies = [
{ name = "huggingface-hub" },
{ name = "jsonlines" },
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
- { name = "numpy", version = "2.3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "numpy", version = "2.4.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
{ name = "pillow" },
{ name = "pydantic" },
{ name = "rtree" },
@@ -776,6 +852,11 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/8a/d0/01c2f3c31c828e203abf01317b6e6664faf9a693299e0769d0354f08ab58/docling_parse-4.7.2-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c94a9ca03c8f59955c9a7e8707c33617d69edc8f5557d05b3eaddb43aea3061a", size = 14981616, upload-time = "2025-12-02T16:39:47.387Z" },
{ url = "https://files.pythonhosted.org/packages/e0/5b/25f89921e3dde90f5962a539cb0e33652c90cdb0f96f07224fc042b542f8/docling_parse-4.7.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ff2652ab0f357750389e49d3d31a057ae70d4d3a972c3e5f76341a8a5f4a41b0", size = 15092401, upload-time = "2025-12-02T16:39:49.676Z" },
{ url = "https://files.pythonhosted.org/packages/18/2e/7b9665a674b9c2b87e6a5f5deace11ee11aa41cb82d4e9da4846ef70d2d3/docling_parse-4.7.2-cp313-cp313-win_amd64.whl", hash = "sha256:30b9e68bdd59c44db72713fb9786c9430f16c3b222978f0afa9515857986b6d6", size = 16146576, upload-time = "2025-12-02T16:39:52.355Z" },
+ { url = "https://files.pythonhosted.org/packages/40/77/57fb6b61d20031e59735fd310ebac2b678c800b89bc3ad935699cfbbc387/docling_parse-4.7.2-cp314-cp314-macosx_13_0_x86_64.whl", hash = "sha256:44d3ea53edd3caa0d64669858583605a6e4ef31df3b12c6c05d923d6a2e0ad5d", size = 14741350, upload-time = "2025-12-02T16:39:54.504Z" },
+ { url = "https://files.pythonhosted.org/packages/93/68/eb5e37be1fb8f060951cc542aa21a9e46ac60c87b6a3b2bf0808fe8a7ca9/docling_parse-4.7.2-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:f7834ab19727eb6d0fa6584e05cdbdcf68017bf24e71232a538805f663181a49", size = 14616787, upload-time = "2025-12-02T16:39:57.16Z" },
+ { url = "https://files.pythonhosted.org/packages/98/e7/a79392f9500625270466dd035593c480929e32cc257b769403d5f8ac9151/docling_parse-4.7.2-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5e83b2a981c6b402666331ff92d98443492722c659f8867088cad40f2713cdd4", size = 14981588, upload-time = "2025-12-02T16:40:00.187Z" },
+ { url = "https://files.pythonhosted.org/packages/a4/8c/0450290ee2ac0a2140c4ebc3200ae7c854ee13edd6419405fe5495a36747/docling_parse-4.7.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:30e1a531d183fc8e8ab37d596484d99c48d0cbf00805b4904ce7ff7d39573441", size = 15092383, upload-time = "2025-12-02T16:40:02.483Z" },
+ { url = "https://files.pythonhosted.org/packages/63/ad/f8db83c3b57fc12c5c38aa7794f0e0d47fd94ad31bfa6d2392bfca7d13ac/docling_parse-4.7.2-cp314-cp314-win_amd64.whl", hash = "sha256:5884094ac8b03066f018956e9fea215ca396e74c9ba51b93be4940797994ce87", size = 16786739, upload-time = "2025-12-02T16:40:05.105Z" },
{ url = "https://files.pythonhosted.org/packages/e1/62/c635fc1d5d6e11970e5aafae8ab31dc0514dd13dae11b57b089002150a54/docling_parse-4.7.2-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:8759c64d66594da1d2361513fc6b0778d262710dcc6b9062e08da1f79c336e35", size = 18060135, upload-time = "2025-12-02T16:40:21.562Z" },
]
@@ -799,23 +880,23 @@ wheels = [
[[package]]
name = "eval-type-backport"
-version = "0.3.0"
+version = "0.3.1"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/51/23/079e39571d6dd8d90d7a369ecb55ad766efb6bae4e77389629e14458c280/eval_type_backport-0.3.0.tar.gz", hash = "sha256:1638210401e184ff17f877e9a2fa076b60b5838790f4532a21761cc2be67aea1", size = 9272, upload-time = "2025-11-13T20:56:50.845Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/fb/a3/cafafb4558fd638aadfe4121dc6cefb8d743368c085acb2f521df0f3d9d7/eval_type_backport-0.3.1.tar.gz", hash = "sha256:57e993f7b5b69d271e37482e62f74e76a0276c82490cf8e4f0dffeb6b332d5ed", size = 9445, upload-time = "2025-12-02T11:51:42.987Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/19/d8/2a1c638d9e0aa7e269269a1a1bf423ddd94267f1a01bbe3ad03432b67dd4/eval_type_backport-0.3.0-py3-none-any.whl", hash = "sha256:975a10a0fe333c8b6260d7fdb637698c9a16c3a9e3b6eb943fee6a6f67a37fe8", size = 6061, upload-time = "2025-11-13T20:56:49.499Z" },
+ { url = "https://files.pythonhosted.org/packages/cf/22/fdc2e30d43ff853720042fa15baa3e6122722be1a7950a98233ebb55cd71/eval_type_backport-0.3.1-py3-none-any.whl", hash = "sha256:279ab641905e9f11129f56a8a78f493518515b83402b860f6f06dd7c011fdfa8", size = 6063, upload-time = "2025-12-02T11:51:41.665Z" },
]
[[package]]
name = "exceptiongroup"
-version = "1.3.0"
+version = "1.3.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "typing-extensions", marker = "python_full_version < '3.11'" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/0b/9f/a65090624ecf468cdca03533906e7c69ed7588582240cfe7cc9e770b50eb/exceptiongroup-1.3.0.tar.gz", hash = "sha256:b241f5885f560bc56a59ee63ca4c6a8bfa46ae4ad651af316d4e81817bb9fd88", size = 29749, upload-time = "2025-05-10T17:42:51.123Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/50/79/66800aadf48771f6b62f7eb014e352e5d06856655206165d775e675a02c9/exceptiongroup-1.3.1.tar.gz", hash = "sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219", size = 30371, upload-time = "2025-11-21T23:01:54.787Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/36/f4/c6e662dade71f56cd2f3735141b265c3c79293c109549c1e6933b0651ffc/exceptiongroup-1.3.0-py3-none-any.whl", hash = "sha256:4d111e6e0c13d0644cad6ddaa7ed0261a0b36971f6d23e7ec9b4b9097da78a10", size = 16674, upload-time = "2025-05-10T17:42:49.33Z" },
+ { url = "https://files.pythonhosted.org/packages/8a/0e/97c33bf5009bdbac74fd2beace167cab3f978feb69cc36f1ef79360d6c4e/exceptiongroup-1.3.1-py3-none-any.whl", hash = "sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598", size = 16740, upload-time = "2025-11-21T23:01:53.443Z" },
]
[[package]]
@@ -829,36 +910,38 @@ wheels = [
[[package]]
name = "faker"
-version = "38.2.0"
+version = "39.0.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "tzdata" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/64/27/022d4dbd4c20567b4c294f79a133cc2f05240ea61e0d515ead18c995c249/faker-38.2.0.tar.gz", hash = "sha256:20672803db9c7cb97f9b56c18c54b915b6f1d8991f63d1d673642dc43f5ce7ab", size = 1941469, upload-time = "2025-11-19T16:37:31.892Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/30/b9/0897fb5888ddda099dc0f314a8a9afb5faa7e52eaf6865c00686dfb394db/faker-39.0.0.tar.gz", hash = "sha256:ddae46d3b27e01cea7894651d687b33bcbe19a45ef044042c721ceac6d3da0ff", size = 1941757, upload-time = "2025-12-17T19:19:04.762Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/17/93/00c94d45f55c336434a15f98d906387e87ce28f9918e4444829a8fda432d/faker-38.2.0-py3-none-any.whl", hash = "sha256:35fe4a0a79dee0dc4103a6083ee9224941e7d3594811a50e3969e547b0d2ee65", size = 1980505, upload-time = "2025-11-19T16:37:30.208Z" },
+ { url = "https://files.pythonhosted.org/packages/eb/5a/26cdb1b10a55ac6eb11a738cea14865fa753606c4897d7be0f5dc230df00/faker-39.0.0-py3-none-any.whl", hash = "sha256:c72f1fca8f1a24b8da10fcaa45739135a19772218ddd61b86b7ea1b8c790dce7", size = 1980775, upload-time = "2025-12-17T19:19:02.926Z" },
]
[[package]]
name = "fal-client"
-version = "0.9.1"
+version = "0.10.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "httpx" },
{ name = "httpx-sse" },
+ { name = "msgpack" },
+ { name = "websockets" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/b8/a1/98ab1cea4c2424ee612292bc92b07905e1a15a05584f6c263cde38e6a3a2/fal_client-0.9.1.tar.gz", hash = "sha256:c8f7f88f79c4b4c4f069be9f571be924dc7c4a6bf07c252fe0b75f3c46c8d66d", size = 17085, upload-time = "2025-11-13T18:15:09.911Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/8e/2e/3e876008b26f9739183d8821697d751df561b7a765632fcce07a43f8881e/fal_client-0.10.0.tar.gz", hash = "sha256:53036d0308117ab2da75d58b4d09e95109363a86f7b16fc59a1862760298661f", size = 19441, upload-time = "2025-12-05T21:38:15.933Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/8b/57/775821a71459f2b83bbaa59452a4b1e4772f7c770de88a6f591c9d43c7c8/fal_client-0.9.1-py3-none-any.whl", hash = "sha256:8eba86c947299852c8306f685eee883ce01856543bf4344b87f65abd4b7d7622", size = 11157, upload-time = "2025-11-13T18:15:08.528Z" },
+ { url = "https://files.pythonhosted.org/packages/6d/f0/13dc2b556968cc2915a6f69bc775bdc63699a815589d8bdfcdc56d71d145/fal_client-0.10.0-py3-none-any.whl", hash = "sha256:794baf3dc03e89593b3b5b7ee5eaedee79539bbba88a3c3368a18b7a1e1ec6b8", size = 12862, upload-time = "2025-12-05T21:38:14.649Z" },
]
[[package]]
name = "filelock"
-version = "3.20.0"
+version = "3.20.1"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/58/46/0028a82567109b5ef6e4d2a1f04a583fb513e6cf9527fcdd09afd817deeb/filelock-3.20.0.tar.gz", hash = "sha256:711e943b4ec6be42e1d4e6690b48dc175c822967466bb31c0c293f34334c13f4", size = 18922, upload-time = "2025-10-08T18:03:50.056Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/a7/23/ce7a1126827cedeb958fc043d61745754464eb56c5937c35bbf2b8e26f34/filelock-3.20.1.tar.gz", hash = "sha256:b8360948b351b80f420878d8516519a2204b07aefcdcfd24912a5d33127f188c", size = 19476, upload-time = "2025-12-15T23:54:28.027Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/76/91/7216b27286936c16f5b4d0c530087e4a54eead683e6b0b73dd0c64844af6/filelock-3.20.0-py3-none-any.whl", hash = "sha256:339b4732ffda5cd79b13f4e2711a31b0365ce445d95d243bb996273d072546a2", size = 16054, upload-time = "2025-10-08T18:03:48.35Z" },
+ { url = "https://files.pythonhosted.org/packages/e3/7f/a1a97644e39e7316d850784c642093c99df1290a460df4ede27659056834/filelock-3.20.1-py3-none-any.whl", hash = "sha256:15d9e9a67306188a44baa72f569d2bfd803076269365fdea0934385da4dc361a", size = 16666, upload-time = "2025-12-15T23:54:26.874Z" },
]
[[package]]
@@ -956,6 +1039,38 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/fd/00/04ca1c3a7a124b6de4f8a9a17cc2fcad138b4608e7a3fc5877804b8715d7/frozenlist-1.8.0-cp313-cp313t-win32.whl", hash = "sha256:0f96534f8bfebc1a394209427d0f8a63d343c9779cda6fc25e8e121b5fd8555b", size = 43492, upload-time = "2025-10-06T05:37:04.915Z" },
{ url = "https://files.pythonhosted.org/packages/59/5e/c69f733a86a94ab10f68e496dc6b7e8bc078ebb415281d5698313e3af3a1/frozenlist-1.8.0-cp313-cp313t-win_amd64.whl", hash = "sha256:5d63a068f978fc69421fb0e6eb91a9603187527c86b7cd3f534a5b77a592b888", size = 48034, upload-time = "2025-10-06T05:37:06.343Z" },
{ url = "https://files.pythonhosted.org/packages/16/6c/be9d79775d8abe79b05fa6d23da99ad6e7763a1d080fbae7290b286093fd/frozenlist-1.8.0-cp313-cp313t-win_arm64.whl", hash = "sha256:bf0a7e10b077bf5fb9380ad3ae8ce20ef919a6ad93b4552896419ac7e1d8e042", size = 41749, upload-time = "2025-10-06T05:37:07.431Z" },
+ { url = "https://files.pythonhosted.org/packages/f1/c8/85da824b7e7b9b6e7f7705b2ecaf9591ba6f79c1177f324c2735e41d36a2/frozenlist-1.8.0-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:cee686f1f4cadeb2136007ddedd0aaf928ab95216e7691c63e50a8ec066336d0", size = 86127, upload-time = "2025-10-06T05:37:08.438Z" },
+ { url = "https://files.pythonhosted.org/packages/8e/e8/a1185e236ec66c20afd72399522f142c3724c785789255202d27ae992818/frozenlist-1.8.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:119fb2a1bd47307e899c2fac7f28e85b9a543864df47aa7ec9d3c1b4545f096f", size = 49698, upload-time = "2025-10-06T05:37:09.48Z" },
+ { url = "https://files.pythonhosted.org/packages/a1/93/72b1736d68f03fda5fdf0f2180fb6caaae3894f1b854d006ac61ecc727ee/frozenlist-1.8.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4970ece02dbc8c3a92fcc5228e36a3e933a01a999f7094ff7c23fbd2beeaa67c", size = 49749, upload-time = "2025-10-06T05:37:10.569Z" },
+ { url = "https://files.pythonhosted.org/packages/a7/b2/fabede9fafd976b991e9f1b9c8c873ed86f202889b864756f240ce6dd855/frozenlist-1.8.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:cba69cb73723c3f329622e34bdbf5ce1f80c21c290ff04256cff1cd3c2036ed2", size = 231298, upload-time = "2025-10-06T05:37:11.993Z" },
+ { url = "https://files.pythonhosted.org/packages/3a/3b/d9b1e0b0eed36e70477ffb8360c49c85c8ca8ef9700a4e6711f39a6e8b45/frozenlist-1.8.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:778a11b15673f6f1df23d9586f83c4846c471a8af693a22e066508b77d201ec8", size = 232015, upload-time = "2025-10-06T05:37:13.194Z" },
+ { url = "https://files.pythonhosted.org/packages/dc/94/be719d2766c1138148564a3960fc2c06eb688da592bdc25adcf856101be7/frozenlist-1.8.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0325024fe97f94c41c08872db482cf8ac4800d80e79222c6b0b7b162d5b13686", size = 225038, upload-time = "2025-10-06T05:37:14.577Z" },
+ { url = "https://files.pythonhosted.org/packages/e4/09/6712b6c5465f083f52f50cf74167b92d4ea2f50e46a9eea0523d658454ae/frozenlist-1.8.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:97260ff46b207a82a7567b581ab4190bd4dfa09f4db8a8b49d1a958f6aa4940e", size = 240130, upload-time = "2025-10-06T05:37:15.781Z" },
+ { url = "https://files.pythonhosted.org/packages/f8/d4/cd065cdcf21550b54f3ce6a22e143ac9e4836ca42a0de1022da8498eac89/frozenlist-1.8.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:54b2077180eb7f83dd52c40b2750d0a9f175e06a42e3213ce047219de902717a", size = 242845, upload-time = "2025-10-06T05:37:17.037Z" },
+ { url = "https://files.pythonhosted.org/packages/62/c3/f57a5c8c70cd1ead3d5d5f776f89d33110b1addae0ab010ad774d9a44fb9/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:2f05983daecab868a31e1da44462873306d3cbfd76d1f0b5b69c473d21dbb128", size = 229131, upload-time = "2025-10-06T05:37:18.221Z" },
+ { url = "https://files.pythonhosted.org/packages/6c/52/232476fe9cb64f0742f3fde2b7d26c1dac18b6d62071c74d4ded55e0ef94/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:33f48f51a446114bc5d251fb2954ab0164d5be02ad3382abcbfe07e2531d650f", size = 240542, upload-time = "2025-10-06T05:37:19.771Z" },
+ { url = "https://files.pythonhosted.org/packages/5f/85/07bf3f5d0fb5414aee5f47d33c6f5c77bfe49aac680bfece33d4fdf6a246/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:154e55ec0655291b5dd1b8731c637ecdb50975a2ae70c606d100750a540082f7", size = 237308, upload-time = "2025-10-06T05:37:20.969Z" },
+ { url = "https://files.pythonhosted.org/packages/11/99/ae3a33d5befd41ac0ca2cc7fd3aa707c9c324de2e89db0e0f45db9a64c26/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:4314debad13beb564b708b4a496020e5306c7333fa9a3ab90374169a20ffab30", size = 238210, upload-time = "2025-10-06T05:37:22.252Z" },
+ { url = "https://files.pythonhosted.org/packages/b2/60/b1d2da22f4970e7a155f0adde9b1435712ece01b3cd45ba63702aea33938/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:073f8bf8becba60aa931eb3bc420b217bb7d5b8f4750e6f8b3be7f3da85d38b7", size = 231972, upload-time = "2025-10-06T05:37:23.5Z" },
+ { url = "https://files.pythonhosted.org/packages/3f/ab/945b2f32de889993b9c9133216c068b7fcf257d8595a0ac420ac8677cab0/frozenlist-1.8.0-cp314-cp314-win32.whl", hash = "sha256:bac9c42ba2ac65ddc115d930c78d24ab8d4f465fd3fc473cdedfccadb9429806", size = 40536, upload-time = "2025-10-06T05:37:25.581Z" },
+ { url = "https://files.pythonhosted.org/packages/59/ad/9caa9b9c836d9ad6f067157a531ac48b7d36499f5036d4141ce78c230b1b/frozenlist-1.8.0-cp314-cp314-win_amd64.whl", hash = "sha256:3e0761f4d1a44f1d1a47996511752cf3dcec5bbdd9cc2b4fe595caf97754b7a0", size = 44330, upload-time = "2025-10-06T05:37:26.928Z" },
+ { url = "https://files.pythonhosted.org/packages/82/13/e6950121764f2676f43534c555249f57030150260aee9dcf7d64efda11dd/frozenlist-1.8.0-cp314-cp314-win_arm64.whl", hash = "sha256:d1eaff1d00c7751b7c6662e9c5ba6eb2c17a2306ba5e2a37f24ddf3cc953402b", size = 40627, upload-time = "2025-10-06T05:37:28.075Z" },
+ { url = "https://files.pythonhosted.org/packages/c0/c7/43200656ecc4e02d3f8bc248df68256cd9572b3f0017f0a0c4e93440ae23/frozenlist-1.8.0-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:d3bb933317c52d7ea5004a1c442eef86f426886fba134ef8cf4226ea6ee1821d", size = 89238, upload-time = "2025-10-06T05:37:29.373Z" },
+ { url = "https://files.pythonhosted.org/packages/d1/29/55c5f0689b9c0fb765055629f472c0de484dcaf0acee2f7707266ae3583c/frozenlist-1.8.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:8009897cdef112072f93a0efdce29cd819e717fd2f649ee3016efd3cd885a7ed", size = 50738, upload-time = "2025-10-06T05:37:30.792Z" },
+ { url = "https://files.pythonhosted.org/packages/ba/7d/b7282a445956506fa11da8c2db7d276adcbf2b17d8bb8407a47685263f90/frozenlist-1.8.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2c5dcbbc55383e5883246d11fd179782a9d07a986c40f49abe89ddf865913930", size = 51739, upload-time = "2025-10-06T05:37:32.127Z" },
+ { url = "https://files.pythonhosted.org/packages/62/1c/3d8622e60d0b767a5510d1d3cf21065b9db874696a51ea6d7a43180a259c/frozenlist-1.8.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:39ecbc32f1390387d2aa4f5a995e465e9e2f79ba3adcac92d68e3e0afae6657c", size = 284186, upload-time = "2025-10-06T05:37:33.21Z" },
+ { url = "https://files.pythonhosted.org/packages/2d/14/aa36d5f85a89679a85a1d44cd7a6657e0b1c75f61e7cad987b203d2daca8/frozenlist-1.8.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:92db2bf818d5cc8d9c1f1fc56b897662e24ea5adb36ad1f1d82875bd64e03c24", size = 292196, upload-time = "2025-10-06T05:37:36.107Z" },
+ { url = "https://files.pythonhosted.org/packages/05/23/6bde59eb55abd407d34f77d39a5126fb7b4f109a3f611d3929f14b700c66/frozenlist-1.8.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2dc43a022e555de94c3b68a4ef0b11c4f747d12c024a520c7101709a2144fb37", size = 273830, upload-time = "2025-10-06T05:37:37.663Z" },
+ { url = "https://files.pythonhosted.org/packages/d2/3f/22cff331bfad7a8afa616289000ba793347fcd7bc275f3b28ecea2a27909/frozenlist-1.8.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:cb89a7f2de3602cfed448095bab3f178399646ab7c61454315089787df07733a", size = 294289, upload-time = "2025-10-06T05:37:39.261Z" },
+ { url = "https://files.pythonhosted.org/packages/a4/89/5b057c799de4838b6c69aa82b79705f2027615e01be996d2486a69ca99c4/frozenlist-1.8.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:33139dc858c580ea50e7e60a1b0ea003efa1fd42e6ec7fdbad78fff65fad2fd2", size = 300318, upload-time = "2025-10-06T05:37:43.213Z" },
+ { url = "https://files.pythonhosted.org/packages/30/de/2c22ab3eb2a8af6d69dc799e48455813bab3690c760de58e1bf43b36da3e/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:168c0969a329b416119507ba30b9ea13688fafffac1b7822802537569a1cb0ef", size = 282814, upload-time = "2025-10-06T05:37:45.337Z" },
+ { url = "https://files.pythonhosted.org/packages/59/f7/970141a6a8dbd7f556d94977858cfb36fa9b66e0892c6dd780d2219d8cd8/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:28bd570e8e189d7f7b001966435f9dac6718324b5be2990ac496cf1ea9ddb7fe", size = 291762, upload-time = "2025-10-06T05:37:46.657Z" },
+ { url = "https://files.pythonhosted.org/packages/c1/15/ca1adae83a719f82df9116d66f5bb28bb95557b3951903d39135620ef157/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b2a095d45c5d46e5e79ba1e5b9cb787f541a8dee0433836cea4b96a2c439dcd8", size = 289470, upload-time = "2025-10-06T05:37:47.946Z" },
+ { url = "https://files.pythonhosted.org/packages/ac/83/dca6dc53bf657d371fbc88ddeb21b79891e747189c5de990b9dfff2ccba1/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:eab8145831a0d56ec9c4139b6c3e594c7a83c2c8be25d5bcf2d86136a532287a", size = 289042, upload-time = "2025-10-06T05:37:49.499Z" },
+ { url = "https://files.pythonhosted.org/packages/96/52/abddd34ca99be142f354398700536c5bd315880ed0a213812bc491cff5e4/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:974b28cf63cc99dfb2188d8d222bc6843656188164848c4f679e63dae4b0708e", size = 283148, upload-time = "2025-10-06T05:37:50.745Z" },
+ { url = "https://files.pythonhosted.org/packages/af/d3/76bd4ed4317e7119c2b7f57c3f6934aba26d277acc6309f873341640e21f/frozenlist-1.8.0-cp314-cp314t-win32.whl", hash = "sha256:342c97bf697ac5480c0a7ec73cd700ecfa5a8a40ac923bd035484616efecc2df", size = 44676, upload-time = "2025-10-06T05:37:52.222Z" },
+ { url = "https://files.pythonhosted.org/packages/89/76/c615883b7b521ead2944bb3480398cbb07e12b7b4e4d073d3752eb721558/frozenlist-1.8.0-cp314-cp314t-win_amd64.whl", hash = "sha256:06be8f67f39c8b1dc671f5d83aaefd3358ae5cdcf8314552c57e7ed3e6475bdd", size = 49451, upload-time = "2025-10-06T05:37:53.425Z" },
+ { url = "https://files.pythonhosted.org/packages/e0/a3/5982da14e113d07b325230f95060e2169f5311b1017ea8af2a29b374c289/frozenlist-1.8.0-cp314-cp314t-win_arm64.whl", hash = "sha256:102e6314ca4da683dca92e3b1355490fed5f313b768500084fbe6371fddfdb79", size = 42507, upload-time = "2025-10-06T05:37:54.513Z" },
{ url = "https://files.pythonhosted.org/packages/9a/9a/e35b4a917281c0b8419d4207f4334c8e8c5dbf4f3f5f9ada73958d937dcc/frozenlist-1.8.0-py3-none-any.whl", hash = "sha256:0c18a16eab41e82c295618a77502e17b195883241c563b00f0aa5106fc4eaa0d", size = 13409, upload-time = "2025-10-06T05:38:16.721Z" },
]
@@ -994,6 +1109,11 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/be/a4/7319a2a8add4cc352be9e3efeff5e2aacee917c85ca2fa1647e29089983c/google_auth-2.41.1-py2.py3-none-any.whl", hash = "sha256:754843be95575b9a19c604a848a41be03f7f2afd8c019f716dc1f51ee41c639d", size = 221302, upload-time = "2025-09-30T22:51:24.212Z" },
]
+[package.optional-dependencies]
+requests = [
+ { name = "requests" },
+]
+
[[package]]
name = "google-auth-oauthlib"
version = "1.2.3"
@@ -1009,21 +1129,23 @@ wheels = [
[[package]]
name = "google-genai"
-version = "1.51.0"
+version = "1.55.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "anyio" },
- { name = "google-auth" },
+ { name = "distro" },
+ { name = "google-auth", extra = ["requests"] },
{ name = "httpx" },
{ name = "pydantic" },
{ name = "requests" },
+ { name = "sniffio" },
{ name = "tenacity" },
{ name = "typing-extensions" },
{ name = "websockets" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/c3/1c/29245699c7c274ed5709b33b6a5192af2d57da5da3d2f189f222d1895336/google_genai-1.51.0.tar.gz", hash = "sha256:596c1ec964b70fec17a6ccfe6ee4edede31022584e8b1d33371d93037c4001b1", size = 258060, upload-time = "2025-11-18T05:32:47.068Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/1d/7c/19b59750592702305ae211905985ec8ab56f34270af4a159fba5f0214846/google_genai-1.55.0.tar.gz", hash = "sha256:ae9f1318fedb05c7c1b671a4148724751201e8908a87568364a309804064d986", size = 477615, upload-time = "2025-12-11T02:49:28.624Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/c6/28/0185dcda66f1994171067cfdb0e44a166450239d5b11b3a8a281dd2da459/google_genai-1.51.0-py3-none-any.whl", hash = "sha256:bfb7d0c6ba48ba9bda539f0d5e69dad827d8735a8b1e4703bafa0a2945d293e1", size = 260483, upload-time = "2025-11-18T05:32:45.938Z" },
+ { url = "https://files.pythonhosted.org/packages/3e/86/a5a8e32b2d40b30b5fb20e7b8113fafd1e38befa4d1801abd5ce6991065a/google_genai-1.55.0-py3-none-any.whl", hash = "sha256:98c422762b5ff6e16b8d9a1e4938e8e0ad910392a5422e47f5301498d7f373a1", size = 703389, upload-time = "2025-12-11T02:49:27.105Z" },
]
[[package]]
@@ -1060,6 +1182,13 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/4a/1d/04513e3cab8f29ab8c109d309ddd21a2705afab9d52f2ba1151e0c14f086/hf_xet-1.2.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6de1fc44f58f6dd937956c8d304d8c2dea264c80680bcfa61ca4a15e7b76780f", size = 3408448, upload-time = "2025-10-24T19:04:20.951Z" },
{ url = "https://files.pythonhosted.org/packages/f0/7c/60a2756d7feec7387db3a1176c632357632fbe7849fce576c5559d4520c7/hf_xet-1.2.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f182f264ed2acd566c514e45da9f2119110e48a87a327ca271027904c70c5832", size = 3503401, upload-time = "2025-10-24T19:04:22.549Z" },
{ url = "https://files.pythonhosted.org/packages/4e/64/48fffbd67fb418ab07451e4ce641a70de1c40c10a13e25325e24858ebe5a/hf_xet-1.2.0-cp313-cp313t-win_amd64.whl", hash = "sha256:293a7a3787e5c95d7be1857358a9130694a9c6021de3f27fa233f37267174382", size = 2900866, upload-time = "2025-10-24T19:04:33.461Z" },
+ { url = "https://files.pythonhosted.org/packages/e2/51/f7e2caae42f80af886db414d4e9885fac959330509089f97cccb339c6b87/hf_xet-1.2.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:10bfab528b968c70e062607f663e21e34e2bba349e8038db546646875495179e", size = 2861861, upload-time = "2025-10-24T19:04:19.01Z" },
+ { url = "https://files.pythonhosted.org/packages/6e/1d/a641a88b69994f9371bd347f1dd35e5d1e2e2460a2e350c8d5165fc62005/hf_xet-1.2.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2a212e842647b02eb6a911187dc878e79c4aa0aa397e88dd3b26761676e8c1f8", size = 2717699, upload-time = "2025-10-24T19:04:17.306Z" },
+ { url = "https://files.pythonhosted.org/packages/df/e0/e5e9bba7d15f0318955f7ec3f4af13f92e773fbb368c0b8008a5acbcb12f/hf_xet-1.2.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:30e06daccb3a7d4c065f34fc26c14c74f4653069bb2b194e7f18f17cbe9939c0", size = 3314885, upload-time = "2025-10-24T19:04:07.642Z" },
+ { url = "https://files.pythonhosted.org/packages/21/90/b7fe5ff6f2b7b8cbdf1bd56145f863c90a5807d9758a549bf3d916aa4dec/hf_xet-1.2.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:29c8fc913a529ec0a91867ce3d119ac1aac966e098cf49501800c870328cc090", size = 3221550, upload-time = "2025-10-24T19:04:05.55Z" },
+ { url = "https://files.pythonhosted.org/packages/6f/cb/73f276f0a7ce46cc6a6ec7d6c7d61cbfe5f2e107123d9bbd0193c355f106/hf_xet-1.2.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e159cbfcfbb29f920db2c09ed8b660eb894640d284f102ada929b6e3dc410a", size = 3408010, upload-time = "2025-10-24T19:04:28.598Z" },
+ { url = "https://files.pythonhosted.org/packages/b8/1e/d642a12caa78171f4be64f7cd9c40e3ca5279d055d0873188a58c0f5fbb9/hf_xet-1.2.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:9c91d5ae931510107f148874e9e2de8a16052b6f1b3ca3c1b12f15ccb491390f", size = 3503264, upload-time = "2025-10-24T19:04:30.397Z" },
+ { url = "https://files.pythonhosted.org/packages/17/b5/33764714923fa1ff922770f7ed18c2daae034d21ae6e10dbf4347c854154/hf_xet-1.2.0-cp314-cp314t-win_amd64.whl", hash = "sha256:210d577732b519ac6ede149d2f2f34049d44e8622bf14eb3d63bbcd2d4b332dc", size = 2901071, upload-time = "2025-10-24T19:04:37.463Z" },
{ url = "https://files.pythonhosted.org/packages/96/2d/22338486473df5923a9ab7107d375dbef9173c338ebef5098ef593d2b560/hf_xet-1.2.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:46740d4ac024a7ca9b22bebf77460ff43332868b661186a8e46c227fdae01848", size = 2866099, upload-time = "2025-10-24T19:04:15.366Z" },
{ url = "https://files.pythonhosted.org/packages/7f/8c/c5becfa53234299bc2210ba314eaaae36c2875e0045809b82e40a9544f0c/hf_xet-1.2.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:27df617a076420d8845bea087f59303da8be17ed7ec0cd7ee3b9b9f579dff0e4", size = 2722178, upload-time = "2025-10-24T19:04:13.695Z" },
{ url = "https://files.pythonhosted.org/packages/9a/92/cf3ab0b652b082e66876d08da57fcc6fa2f0e6c70dfbbafbd470bb73eb47/hf_xet-1.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3651fd5bfe0281951b988c0facbe726aa5e347b103a675f49a3fa8144c7968fd", size = 3320214, upload-time = "2025-10-24T19:04:03.596Z" },
@@ -1145,14 +1274,14 @@ wheels = [
[[package]]
name = "importlib-metadata"
-version = "8.7.0"
+version = "8.7.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "zipp" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/76/66/650a33bd90f786193e4de4b3ad86ea60b53c89b669a5c7be931fac31cdb0/importlib_metadata-8.7.0.tar.gz", hash = "sha256:d13b81ad223b890aa16c5471f2ac3056cf76c5f10f82d6f9292f0b415f389000", size = 56641, upload-time = "2025-04-27T15:29:01.736Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/f3/49/3b30cad09e7771a4982d9975a8cbf64f00d4a1ececb53297f1d9a7be1b10/importlib_metadata-8.7.1.tar.gz", hash = "sha256:49fef1ae6440c182052f407c8d34a68f72efc36db9ca90dc0113398f2fdde8bb", size = 57107, upload-time = "2025-12-21T10:00:19.278Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/20/b0/36bd937216ec521246249be3bf9855081de4c5e06a0c9b4219dbeda50373/importlib_metadata-8.7.0-py3-none-any.whl", hash = "sha256:e5dd1551894c77868a30651cef00984d50e1002d06942a7101d34870c5f02afd", size = 27656, upload-time = "2025-04-27T15:29:00.214Z" },
+ { url = "https://files.pythonhosted.org/packages/fa/5e/f8e9a1d23b9c20a551a8a02ea3637b4642e22c2626e3a13a9a29cdea99eb/importlib_metadata-8.7.1-py3-none-any.whl", hash = "sha256:5a1f80bf1daa489495071efbb095d75a634cf28a8bc299581244063b53176151", size = 27865, upload-time = "2025-12-21T10:00:18.329Z" },
]
[[package]]
@@ -1278,6 +1407,31 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/da/00/2355dbfcbf6cdeaddfdca18287f0f38ae49446bb6378e4a5971e9356fc8a/jiter-0.11.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:330e8e6a11ad4980cd66a0f4a3e0e2e0f646c911ce047014f984841924729789", size = 356399, upload-time = "2025-10-17T11:30:02.084Z" },
{ url = "https://files.pythonhosted.org/packages/c9/07/c2bd748d578fa933d894a55bff33f983bc27f75fc4e491b354bef7b78012/jiter-0.11.1-cp313-cp313t-win_amd64.whl", hash = "sha256:09e2e386ebf298547ca3a3704b729471f7ec666c2906c5c26c1a915ea24741ec", size = 203289, upload-time = "2025-10-17T11:30:03.656Z" },
{ url = "https://files.pythonhosted.org/packages/e6/ee/ace64a853a1acbd318eb0ca167bad1cf5ee037207504b83a868a5849747b/jiter-0.11.1-cp313-cp313t-win_arm64.whl", hash = "sha256:fe4a431c291157e11cee7c34627990ea75e8d153894365a3bc84b7a959d23ca8", size = 188284, upload-time = "2025-10-17T11:30:05.046Z" },
+ { url = "https://files.pythonhosted.org/packages/8d/00/d6006d069e7b076e4c66af90656b63da9481954f290d5eca8c715f4bf125/jiter-0.11.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:0fa1f70da7a8a9713ff8e5f75ec3f90c0c870be6d526aa95e7c906f6a1c8c676", size = 304624, upload-time = "2025-10-17T11:30:06.678Z" },
+ { url = "https://files.pythonhosted.org/packages/fc/45/4a0e31eb996b9ccfddbae4d3017b46f358a599ccf2e19fbffa5e531bd304/jiter-0.11.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:569ee559e5046a42feb6828c55307cf20fe43308e3ae0d8e9e4f8d8634d99944", size = 315042, upload-time = "2025-10-17T11:30:08.87Z" },
+ { url = "https://files.pythonhosted.org/packages/e7/91/22f5746f5159a28c76acdc0778801f3c1181799aab196dbea2d29e064968/jiter-0.11.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f69955fa1d92e81987f092b233f0be49d4c937da107b7f7dcf56306f1d3fcce9", size = 346357, upload-time = "2025-10-17T11:30:10.222Z" },
+ { url = "https://files.pythonhosted.org/packages/f5/4f/57620857d4e1dc75c8ff4856c90cb6c135e61bff9b4ebfb5dc86814e82d7/jiter-0.11.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:090f4c9d4a825e0fcbd0a2647c9a88a0f366b75654d982d95a9590745ff0c48d", size = 365057, upload-time = "2025-10-17T11:30:11.585Z" },
+ { url = "https://files.pythonhosted.org/packages/ce/34/caf7f9cc8ae0a5bb25a5440cc76c7452d264d1b36701b90fdadd28fe08ec/jiter-0.11.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bbf3d8cedf9e9d825233e0dcac28ff15c47b7c5512fdfe2e25fd5bbb6e6b0cee", size = 487086, upload-time = "2025-10-17T11:30:13.052Z" },
+ { url = "https://files.pythonhosted.org/packages/50/17/85b5857c329d533d433fedf98804ebec696004a1f88cabad202b2ddc55cf/jiter-0.11.1-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2aa9b1958f9c30d3d1a558b75f0626733c60eb9b7774a86b34d88060be1e67fe", size = 376083, upload-time = "2025-10-17T11:30:14.416Z" },
+ { url = "https://files.pythonhosted.org/packages/85/d3/2d9f973f828226e6faebdef034097a2918077ea776fb4d88489949024787/jiter-0.11.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e42d1ca16590b768c5e7d723055acd2633908baacb3628dd430842e2e035aa90", size = 357825, upload-time = "2025-10-17T11:30:15.765Z" },
+ { url = "https://files.pythonhosted.org/packages/f4/55/848d4dabf2c2c236a05468c315c2cb9dc736c5915e65449ccecdba22fb6f/jiter-0.11.1-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5db4c2486a023820b701a17aec9c5a6173c5ba4393f26662f032f2de9c848b0f", size = 383933, upload-time = "2025-10-17T11:30:17.34Z" },
+ { url = "https://files.pythonhosted.org/packages/0b/6c/204c95a4fbb0e26dfa7776c8ef4a878d0c0b215868011cc904bf44f707e2/jiter-0.11.1-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:4573b78777ccfac954859a6eff45cbd9d281d80c8af049d0f1a3d9fc323d5c3a", size = 517118, upload-time = "2025-10-17T11:30:18.684Z" },
+ { url = "https://files.pythonhosted.org/packages/88/25/09956644ea5a2b1e7a2a0f665cb69a973b28f4621fa61fc0c0f06ff40a31/jiter-0.11.1-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:7593ac6f40831d7961cb67633c39b9fef6689a211d7919e958f45710504f52d3", size = 508194, upload-time = "2025-10-17T11:30:20.719Z" },
+ { url = "https://files.pythonhosted.org/packages/09/49/4d1657355d7f5c9e783083a03a3f07d5858efa6916a7d9634d07db1c23bd/jiter-0.11.1-cp314-cp314-win32.whl", hash = "sha256:87202ec6ff9626ff5f9351507def98fcf0df60e9a146308e8ab221432228f4ea", size = 203961, upload-time = "2025-10-17T11:30:22.073Z" },
+ { url = "https://files.pythonhosted.org/packages/76/bd/f063bd5cc2712e7ca3cf6beda50894418fc0cfeb3f6ff45a12d87af25996/jiter-0.11.1-cp314-cp314-win_amd64.whl", hash = "sha256:a5dd268f6531a182c89d0dd9a3f8848e86e92dfff4201b77a18e6b98aa59798c", size = 202804, upload-time = "2025-10-17T11:30:23.452Z" },
+ { url = "https://files.pythonhosted.org/packages/52/ca/4d84193dfafef1020bf0bedd5e1a8d0e89cb67c54b8519040effc694964b/jiter-0.11.1-cp314-cp314-win_arm64.whl", hash = "sha256:5d761f863f912a44748a21b5c4979c04252588ded8d1d2760976d2e42cd8d991", size = 188001, upload-time = "2025-10-17T11:30:24.915Z" },
+ { url = "https://files.pythonhosted.org/packages/d5/fa/3b05e5c9d32efc770a8510eeb0b071c42ae93a5b576fd91cee9af91689a1/jiter-0.11.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2cc5a3965285ddc33e0cab933e96b640bc9ba5940cea27ebbbf6695e72d6511c", size = 312561, upload-time = "2025-10-17T11:30:26.742Z" },
+ { url = "https://files.pythonhosted.org/packages/50/d3/335822eb216154ddb79a130cbdce88fdf5c3e2b43dc5dba1fd95c485aaf5/jiter-0.11.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6b572b3636a784c2768b2342f36a23078c8d3aa6d8a30745398b1bab58a6f1a8", size = 344551, upload-time = "2025-10-17T11:30:28.252Z" },
+ { url = "https://files.pythonhosted.org/packages/31/6d/a0bed13676b1398f9b3ba61f32569f20a3ff270291161100956a577b2dd3/jiter-0.11.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ad93e3d67a981f96596d65d2298fe8d1aa649deb5374a2fb6a434410ee11915e", size = 363051, upload-time = "2025-10-17T11:30:30.009Z" },
+ { url = "https://files.pythonhosted.org/packages/a4/03/313eda04aa08545a5a04ed5876e52f49ab76a4d98e54578896ca3e16313e/jiter-0.11.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a83097ce379e202dcc3fe3fc71a16d523d1ee9192c8e4e854158f96b3efe3f2f", size = 485897, upload-time = "2025-10-17T11:30:31.429Z" },
+ { url = "https://files.pythonhosted.org/packages/5f/13/a1011b9d325e40b53b1b96a17c010b8646013417f3902f97a86325b19299/jiter-0.11.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7042c51e7fbeca65631eb0c332f90c0c082eab04334e7ccc28a8588e8e2804d9", size = 375224, upload-time = "2025-10-17T11:30:33.18Z" },
+ { url = "https://files.pythonhosted.org/packages/92/da/1b45026b19dd39b419e917165ff0ea629dbb95f374a3a13d2df95e40a6ac/jiter-0.11.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0a68d679c0e47649a61df591660507608adc2652442de7ec8276538ac46abe08", size = 356606, upload-time = "2025-10-17T11:30:34.572Z" },
+ { url = "https://files.pythonhosted.org/packages/7a/0c/9acb0e54d6a8ba59ce923a180ebe824b4e00e80e56cefde86cc8e0a948be/jiter-0.11.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a1b0da75dbf4b6ec0b3c9e604d1ee8beaf15bc046fff7180f7d89e3cdbd3bb51", size = 384003, upload-time = "2025-10-17T11:30:35.987Z" },
+ { url = "https://files.pythonhosted.org/packages/3f/2b/e5a5fe09d6da2145e4eed651e2ce37f3c0cf8016e48b1d302e21fb1628b7/jiter-0.11.1-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:69dd514bf0fa31c62147d6002e5ca2b3e7ef5894f5ac6f0a19752385f4e89437", size = 516946, upload-time = "2025-10-17T11:30:37.425Z" },
+ { url = "https://files.pythonhosted.org/packages/5f/fe/db936e16e0228d48eb81f9934e8327e9fde5185e84f02174fcd22a01be87/jiter-0.11.1-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:bb31ac0b339efa24c0ca606febd8b77ef11c58d09af1b5f2be4c99e907b11111", size = 507614, upload-time = "2025-10-17T11:30:38.977Z" },
+ { url = "https://files.pythonhosted.org/packages/86/db/c4438e8febfb303486d13c6b72f5eb71cf851e300a0c1f0b4140018dd31f/jiter-0.11.1-cp314-cp314t-win32.whl", hash = "sha256:b2ce0d6156a1d3ad41da3eec63b17e03e296b78b0e0da660876fccfada86d2f7", size = 204043, upload-time = "2025-10-17T11:30:40.308Z" },
+ { url = "https://files.pythonhosted.org/packages/36/59/81badb169212f30f47f817dfaabf965bc9b8204fed906fab58104ee541f9/jiter-0.11.1-cp314-cp314t-win_amd64.whl", hash = "sha256:f4db07d127b54c4a2d43b4cf05ff0193e4f73e0dd90c74037e16df0b29f666e1", size = 204046, upload-time = "2025-10-17T11:30:41.692Z" },
+ { url = "https://files.pythonhosted.org/packages/dd/01/43f7b4eb61db3e565574c4c5714685d042fb652f9eef7e5a3de6aafa943a/jiter-0.11.1-cp314-cp314t-win_arm64.whl", hash = "sha256:28e4fdf2d7ebfc935523e50d1efa3970043cfaa161674fe66f9642409d001dfe", size = 188069, upload-time = "2025-10-17T11:30:43.23Z" },
{ url = "https://files.pythonhosted.org/packages/9d/51/bd41562dd284e2a18b6dc0a99d195fd4a3560d52ab192c42e56fe0316643/jiter-0.11.1-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:e642b5270e61dd02265866398707f90e365b5db2eb65a4f30c789d826682e1f6", size = 306871, upload-time = "2025-10-17T11:31:03.616Z" },
{ url = "https://files.pythonhosted.org/packages/ba/cb/64e7f21dd357e8cd6b3c919c26fac7fc198385bbd1d85bb3b5355600d787/jiter-0.11.1-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:464ba6d000585e4e2fd1e891f31f1231f497273414f5019e27c00a4b8f7a24ad", size = 301454, upload-time = "2025-10-17T11:31:05.338Z" },
{ url = "https://files.pythonhosted.org/packages/55/b0/54bdc00da4ef39801b1419a01035bd8857983de984fd3776b0be6b94add7/jiter-0.11.1-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:055568693ab35e0bf3a171b03bb40b2dcb10352359e0ab9b5ed0da2bf1eb6f6f", size = 336801, upload-time = "2025-10-17T11:31:06.893Z" },
@@ -1317,11 +1471,11 @@ wheels = [
[[package]]
name = "jsonpath-python"
-version = "1.0.6"
+version = "1.1.4"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/b5/49/e582e50b0c54c1b47e714241c4a4767bf28758bf90212248aea8e1ce8516/jsonpath-python-1.0.6.tar.gz", hash = "sha256:dd5be4a72d8a2995c3f583cf82bf3cd1a9544cfdabf2d22595b67aff07349666", size = 18121, upload-time = "2022-03-14T02:35:01.877Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/b8/bf/626a72f2d093c5eb4f4de55b443714afa7231beeae40d4a1c69b5c5aa4d1/jsonpath_python-1.1.4.tar.gz", hash = "sha256:bb3e13854e4807c078a1503ae2d87c211b8bff4d9b40b6455ed583b3b50a7fdd", size = 84766, upload-time = "2025-11-25T12:08:39.521Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/16/8a/d63959f4eff03893a00e6e63592e3a9f15b9266ed8e0275ab77f8c7dbc94/jsonpath_python-1.0.6-py3-none-any.whl", hash = "sha256:1e3b78df579f5efc23565293612decee04214609208a2335884b3ee3f786b575", size = 7552, upload-time = "2022-03-14T02:34:59.754Z" },
+ { url = "https://files.pythonhosted.org/packages/ee/bc/52e5bf0d9839e082b976c19afcab7561d0d719c7627483bf5dc251d27eed/jsonpath_python-1.1.4-py3-none-any.whl", hash = "sha256:8700cb8610c44da6e5e9bff50232779c44bf7dc5bc62662d49319ee746898442", size = 12687, upload-time = "2025-11-25T12:08:38.453Z" },
]
[[package]]
@@ -1381,6 +1535,79 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/3e/76/d661ea2e529c3d464f9efd73f9ac31626b45279eb4306e684054ea20e3d4/latex2mathml-3.78.1-py3-none-any.whl", hash = "sha256:f089b6d75e85b937f99693c93e8c16c0804008672c3dd2a3d25affd36f238100", size = 73892, upload-time = "2025-08-29T23:34:21.98Z" },
]
+[[package]]
+name = "librt"
+version = "0.7.4"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/93/e4/b59bdf1197fdf9888452ea4d2048cdad61aef85eb83e99dc52551d7fdc04/librt-0.7.4.tar.gz", hash = "sha256:3871af56c59864d5fd21d1ac001eb2fb3b140d52ba0454720f2e4a19812404ba", size = 145862, upload-time = "2025-12-15T16:52:43.862Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/06/1e/3e61dff6c07a3b400fe907d3164b92b3b3023ef86eac1ee236869dc276f7/librt-0.7.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:dc300cb5a5a01947b1ee8099233156fdccd5001739e5f596ecfbc0dab07b5a3b", size = 54708, upload-time = "2025-12-15T16:51:03.752Z" },
+ { url = "https://files.pythonhosted.org/packages/87/98/ab2428b0a80d0fd67decaeea84a5ec920e3dd4d95ecfd074c71f51bd7315/librt-0.7.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ee8d3323d921e0f6919918a97f9b5445a7dfe647270b2629ec1008aa676c0bc0", size = 56656, upload-time = "2025-12-15T16:51:05.038Z" },
+ { url = "https://files.pythonhosted.org/packages/c1/ce/de1fad3a16e4fb5b6605bd6cbe6d0e5207cc8eca58993835749a1da0812b/librt-0.7.4-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:95cb80854a355b284c55f79674f6187cc9574df4dc362524e0cce98c89ee8331", size = 161024, upload-time = "2025-12-15T16:51:06.31Z" },
+ { url = "https://files.pythonhosted.org/packages/88/00/ddfcdc1147dd7fb68321d7b064b12f0b9101d85f466a46006f86096fde8d/librt-0.7.4-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3ca1caedf8331d8ad6027f93b52d68ed8f8009f5c420c246a46fe9d3be06be0f", size = 169529, upload-time = "2025-12-15T16:51:07.907Z" },
+ { url = "https://files.pythonhosted.org/packages/dd/b3/915702c7077df2483b015030d1979404474f490fe9a071e9576f7b26fef6/librt-0.7.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c2a6f1236151e6fe1da289351b5b5bce49651c91554ecc7b70a947bced6fe212", size = 183270, upload-time = "2025-12-15T16:51:09.164Z" },
+ { url = "https://files.pythonhosted.org/packages/45/19/ab2f217e8ec509fca4ea9e2e5022b9f72c1a7b7195f5a5770d299df807ea/librt-0.7.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:7766b57aeebaf3f1dac14fdd4a75c9a61f2ed56d8ebeefe4189db1cb9d2a3783", size = 179038, upload-time = "2025-12-15T16:51:10.538Z" },
+ { url = "https://files.pythonhosted.org/packages/10/1c/d40851d187662cf50312ebbc0b277c7478dd78dbaaf5ee94056f1d7f2f83/librt-0.7.4-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:1c4c89fb01157dd0a3bfe9e75cd6253b0a1678922befcd664eca0772a4c6c979", size = 173502, upload-time = "2025-12-15T16:51:11.888Z" },
+ { url = "https://files.pythonhosted.org/packages/07/52/d5880835c772b22c38db18660420fa6901fd9e9a433b65f0ba9b0f4da764/librt-0.7.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:f7fa8beef580091c02b4fd26542de046b2abfe0aaefa02e8bcf68acb7618f2b3", size = 193570, upload-time = "2025-12-15T16:51:13.168Z" },
+ { url = "https://files.pythonhosted.org/packages/f1/35/22d3c424b82f86ce019c0addadf001d459dfac8036aecc07fadc5c541053/librt-0.7.4-cp310-cp310-win32.whl", hash = "sha256:543c42fa242faae0466fe72d297976f3c710a357a219b1efde3a0539a68a6997", size = 42596, upload-time = "2025-12-15T16:51:14.422Z" },
+ { url = "https://files.pythonhosted.org/packages/95/b1/e7c316ac5fe60ac1fdfe515198087205220803c4cf923ee63e1cb8380b17/librt-0.7.4-cp310-cp310-win_amd64.whl", hash = "sha256:25cc40d8eb63f0a7ea4c8f49f524989b9df901969cb860a2bc0e4bad4b8cb8a8", size = 48972, upload-time = "2025-12-15T16:51:15.516Z" },
+ { url = "https://files.pythonhosted.org/packages/84/64/44089b12d8b4714a7f0e2f33fb19285ba87702d4be0829f20b36ebeeee07/librt-0.7.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:3485b9bb7dfa66167d5500ffdafdc35415b45f0da06c75eb7df131f3357b174a", size = 54709, upload-time = "2025-12-15T16:51:16.699Z" },
+ { url = "https://files.pythonhosted.org/packages/26/ef/6fa39fb5f37002f7d25e0da4f24d41b457582beea9369eeb7e9e73db5508/librt-0.7.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:188b4b1a770f7f95ea035d5bbb9d7367248fc9d12321deef78a269ebf46a5729", size = 56663, upload-time = "2025-12-15T16:51:17.856Z" },
+ { url = "https://files.pythonhosted.org/packages/9d/e4/cbaca170a13bee2469c90df9e47108610b4422c453aea1aec1779ac36c24/librt-0.7.4-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1b668b1c840183e4e38ed5a99f62fac44c3a3eef16870f7f17cfdfb8b47550ed", size = 161703, upload-time = "2025-12-15T16:51:19.421Z" },
+ { url = "https://files.pythonhosted.org/packages/d0/32/0b2296f9cc7e693ab0d0835e355863512e5eac90450c412777bd699c76ae/librt-0.7.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0e8f864b521f6cfedb314d171630f827efee08f5c3462bcbc2244ab8e1768cd6", size = 171027, upload-time = "2025-12-15T16:51:20.721Z" },
+ { url = "https://files.pythonhosted.org/packages/d8/33/c70b6d40f7342716e5f1353c8da92d9e32708a18cbfa44897a93ec2bf879/librt-0.7.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4df7c9def4fc619a9c2ab402d73a0c5b53899abe090e0100323b13ccb5a3dd82", size = 184700, upload-time = "2025-12-15T16:51:22.272Z" },
+ { url = "https://files.pythonhosted.org/packages/e4/c8/555c405155da210e4c4113a879d378f54f850dbc7b794e847750a8fadd43/librt-0.7.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:f79bc3595b6ed159a1bf0cdc70ed6ebec393a874565cab7088a219cca14da727", size = 180719, upload-time = "2025-12-15T16:51:23.561Z" },
+ { url = "https://files.pythonhosted.org/packages/6b/88/34dc1f1461c5613d1b73f0ecafc5316cc50adcc1b334435985b752ed53e5/librt-0.7.4-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:77772a4b8b5f77d47d883846928c36d730b6e612a6388c74cba33ad9eb149c11", size = 174535, upload-time = "2025-12-15T16:51:25.031Z" },
+ { url = "https://files.pythonhosted.org/packages/b6/5a/f3fafe80a221626bcedfa9fe5abbf5f04070989d44782f579b2d5920d6d0/librt-0.7.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:064a286e6ab0b4c900e228ab4fa9cb3811b4b83d3e0cc5cd816b2d0f548cb61c", size = 195236, upload-time = "2025-12-15T16:51:26.328Z" },
+ { url = "https://files.pythonhosted.org/packages/d8/77/5c048d471ce17f4c3a6e08419be19add4d291e2f7067b877437d482622ac/librt-0.7.4-cp311-cp311-win32.whl", hash = "sha256:42da201c47c77b6cc91fc17e0e2b330154428d35d6024f3278aa2683e7e2daf2", size = 42930, upload-time = "2025-12-15T16:51:27.853Z" },
+ { url = "https://files.pythonhosted.org/packages/fb/3b/514a86305a12c3d9eac03e424b07cd312c7343a9f8a52719aa079590a552/librt-0.7.4-cp311-cp311-win_amd64.whl", hash = "sha256:d31acb5886c16ae1711741f22504195af46edec8315fe69b77e477682a87a83e", size = 49240, upload-time = "2025-12-15T16:51:29.037Z" },
+ { url = "https://files.pythonhosted.org/packages/ba/01/3b7b1914f565926b780a734fac6e9a4d2c7aefe41f4e89357d73697a9457/librt-0.7.4-cp311-cp311-win_arm64.whl", hash = "sha256:114722f35093da080a333b3834fff04ef43147577ed99dd4db574b03a5f7d170", size = 42613, upload-time = "2025-12-15T16:51:30.194Z" },
+ { url = "https://files.pythonhosted.org/packages/f3/e7/b805d868d21f425b7e76a0ea71a2700290f2266a4f3c8357fcf73efc36aa/librt-0.7.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7dd3b5c37e0fb6666c27cf4e2c88ae43da904f2155c4cfc1e5a2fdce3b9fcf92", size = 55688, upload-time = "2025-12-15T16:51:31.571Z" },
+ { url = "https://files.pythonhosted.org/packages/59/5e/69a2b02e62a14cfd5bfd9f1e9adea294d5bcfeea219c7555730e5d068ee4/librt-0.7.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a9c5de1928c486201b23ed0cc4ac92e6e07be5cd7f3abc57c88a9cf4f0f32108", size = 57141, upload-time = "2025-12-15T16:51:32.714Z" },
+ { url = "https://files.pythonhosted.org/packages/6e/6b/05dba608aae1272b8ea5ff8ef12c47a4a099a04d1e00e28a94687261d403/librt-0.7.4-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:078ae52ffb3f036396cc4aed558e5b61faedd504a3c1f62b8ae34bf95ae39d94", size = 165322, upload-time = "2025-12-15T16:51:33.986Z" },
+ { url = "https://files.pythonhosted.org/packages/8f/bc/199533d3fc04a4cda8d7776ee0d79955ab0c64c79ca079366fbc2617e680/librt-0.7.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ce58420e25097b2fc201aef9b9f6d65df1eb8438e51154e1a7feb8847e4a55ab", size = 174216, upload-time = "2025-12-15T16:51:35.384Z" },
+ { url = "https://files.pythonhosted.org/packages/62/ec/09239b912a45a8ed117cb4a6616d9ff508f5d3131bd84329bf2f8d6564f1/librt-0.7.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b719c8730c02a606dc0e8413287e8e94ac2d32a51153b300baf1f62347858fba", size = 189005, upload-time = "2025-12-15T16:51:36.687Z" },
+ { url = "https://files.pythonhosted.org/packages/46/2e/e188313d54c02f5b0580dd31476bb4b0177514ff8d2be9f58d4a6dc3a7ba/librt-0.7.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3749ef74c170809e6dee68addec9d2458700a8de703de081c888e92a8b015cf9", size = 183960, upload-time = "2025-12-15T16:51:37.977Z" },
+ { url = "https://files.pythonhosted.org/packages/eb/84/f1d568d254518463d879161d3737b784137d236075215e56c7c9be191cee/librt-0.7.4-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:b35c63f557653c05b5b1b6559a074dbabe0afee28ee2a05b6c9ba21ad0d16a74", size = 177609, upload-time = "2025-12-15T16:51:40.584Z" },
+ { url = "https://files.pythonhosted.org/packages/5d/43/060bbc1c002f0d757c33a1afe6bf6a565f947a04841139508fc7cef6c08b/librt-0.7.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:1ef704e01cb6ad39ad7af668d51677557ca7e5d377663286f0ee1b6b27c28e5f", size = 199269, upload-time = "2025-12-15T16:51:41.879Z" },
+ { url = "https://files.pythonhosted.org/packages/ff/7f/708f8f02d8012ee9f366c07ea6a92882f48bd06cc1ff16a35e13d0fbfb08/librt-0.7.4-cp312-cp312-win32.whl", hash = "sha256:c66c2b245926ec15188aead25d395091cb5c9df008d3b3207268cd65557d6286", size = 43186, upload-time = "2025-12-15T16:51:43.149Z" },
+ { url = "https://files.pythonhosted.org/packages/f1/a5/4e051b061c8b2509be31b2c7ad4682090502c0a8b6406edcf8c6b4fe1ef7/librt-0.7.4-cp312-cp312-win_amd64.whl", hash = "sha256:71a56f4671f7ff723451f26a6131754d7c1809e04e22ebfbac1db8c9e6767a20", size = 49455, upload-time = "2025-12-15T16:51:44.336Z" },
+ { url = "https://files.pythonhosted.org/packages/d0/d2/90d84e9f919224a3c1f393af1636d8638f54925fdc6cd5ee47f1548461e5/librt-0.7.4-cp312-cp312-win_arm64.whl", hash = "sha256:419eea245e7ec0fe664eb7e85e7ff97dcdb2513ca4f6b45a8ec4a3346904f95a", size = 42828, upload-time = "2025-12-15T16:51:45.498Z" },
+ { url = "https://files.pythonhosted.org/packages/fe/4d/46a53ccfbb39fd0b493fd4496eb76f3ebc15bb3e45d8c2e695a27587edf5/librt-0.7.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d44a1b1ba44cbd2fc3cb77992bef6d6fdb1028849824e1dd5e4d746e1f7f7f0b", size = 55745, upload-time = "2025-12-15T16:51:46.636Z" },
+ { url = "https://files.pythonhosted.org/packages/7f/2b/3ac7f5212b1828bf4f979cf87f547db948d3e28421d7a430d4db23346ce4/librt-0.7.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c9cab4b3de1f55e6c30a84c8cee20e4d3b2476f4d547256694a1b0163da4fe32", size = 57166, upload-time = "2025-12-15T16:51:48.219Z" },
+ { url = "https://files.pythonhosted.org/packages/e8/99/6523509097cbe25f363795f0c0d1c6a3746e30c2994e25b5aefdab119b21/librt-0.7.4-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2857c875f1edd1feef3c371fbf830a61b632fb4d1e57160bb1e6a3206e6abe67", size = 165833, upload-time = "2025-12-15T16:51:49.443Z" },
+ { url = "https://files.pythonhosted.org/packages/fe/35/323611e59f8fe032649b4fb7e77f746f96eb7588fcbb31af26bae9630571/librt-0.7.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b370a77be0a16e1ad0270822c12c21462dc40496e891d3b0caf1617c8cc57e20", size = 174818, upload-time = "2025-12-15T16:51:51.015Z" },
+ { url = "https://files.pythonhosted.org/packages/41/e6/40fb2bb21616c6e06b6a64022802228066e9a31618f493e03f6b9661548a/librt-0.7.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d05acd46b9a52087bfc50c59dfdf96a2c480a601e8898a44821c7fd676598f74", size = 189607, upload-time = "2025-12-15T16:51:52.671Z" },
+ { url = "https://files.pythonhosted.org/packages/32/48/1b47c7d5d28b775941e739ed2bfe564b091c49201b9503514d69e4ed96d7/librt-0.7.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:70969229cb23d9c1a80e14225838d56e464dc71fa34c8342c954fc50e7516dee", size = 184585, upload-time = "2025-12-15T16:51:54.027Z" },
+ { url = "https://files.pythonhosted.org/packages/75/a6/ee135dfb5d3b54d5d9001dbe483806229c6beac3ee2ba1092582b7efeb1b/librt-0.7.4-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:4450c354b89dbb266730893862dbff06006c9ed5b06b6016d529b2bf644fc681", size = 178249, upload-time = "2025-12-15T16:51:55.248Z" },
+ { url = "https://files.pythonhosted.org/packages/04/87/d5b84ec997338be26af982bcd6679be0c1db9a32faadab1cf4bb24f9e992/librt-0.7.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:adefe0d48ad35b90b6f361f6ff5a1bd95af80c17d18619c093c60a20e7a5b60c", size = 199851, upload-time = "2025-12-15T16:51:56.933Z" },
+ { url = "https://files.pythonhosted.org/packages/86/63/ba1333bf48306fe398e3392a7427ce527f81b0b79d0d91618c4610ce9d15/librt-0.7.4-cp313-cp313-win32.whl", hash = "sha256:21ea710e96c1e050635700695095962a22ea420d4b3755a25e4909f2172b4ff2", size = 43249, upload-time = "2025-12-15T16:51:58.498Z" },
+ { url = "https://files.pythonhosted.org/packages/f9/8a/de2c6df06cdfa9308c080e6b060fe192790b6a48a47320b215e860f0e98c/librt-0.7.4-cp313-cp313-win_amd64.whl", hash = "sha256:772e18696cf5a64afee908662fbcb1f907460ddc851336ee3a848ef7684c8e1e", size = 49417, upload-time = "2025-12-15T16:51:59.618Z" },
+ { url = "https://files.pythonhosted.org/packages/31/66/8ee0949efc389691381ed686185e43536c20e7ad880c122dd1f31e65c658/librt-0.7.4-cp313-cp313-win_arm64.whl", hash = "sha256:52e34c6af84e12921748c8354aa6acf1912ca98ba60cdaa6920e34793f1a0788", size = 42824, upload-time = "2025-12-15T16:52:00.784Z" },
+ { url = "https://files.pythonhosted.org/packages/74/81/6921e65c8708eb6636bbf383aa77e6c7dad33a598ed3b50c313306a2da9d/librt-0.7.4-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:4f1ee004942eaaed6e06c087d93ebc1c67e9a293e5f6b9b5da558df6bf23dc5d", size = 55191, upload-time = "2025-12-15T16:52:01.97Z" },
+ { url = "https://files.pythonhosted.org/packages/0d/d6/3eb864af8a8de8b39cc8dd2e9ded1823979a27795d72c4eea0afa8c26c9f/librt-0.7.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:d854c6dc0f689bad7ed452d2a3ecff58029d80612d336a45b62c35e917f42d23", size = 56898, upload-time = "2025-12-15T16:52:03.356Z" },
+ { url = "https://files.pythonhosted.org/packages/49/bc/b1d4c0711fdf79646225d576faee8747b8528a6ec1ceb6accfd89ade7102/librt-0.7.4-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:a4f7339d9e445280f23d63dea842c0c77379c4a47471c538fc8feedab9d8d063", size = 163725, upload-time = "2025-12-15T16:52:04.572Z" },
+ { url = "https://files.pythonhosted.org/packages/2c/08/61c41cd8f0a6a41fc99ea78a2205b88187e45ba9800792410ed62f033584/librt-0.7.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:39003fc73f925e684f8521b2dbf34f61a5deb8a20a15dcf53e0d823190ce8848", size = 172469, upload-time = "2025-12-15T16:52:05.863Z" },
+ { url = "https://files.pythonhosted.org/packages/8b/c7/4ee18b4d57f01444230bc18cf59103aeab8f8c0f45e84e0e540094df1df1/librt-0.7.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6bb15ee29d95875ad697d449fe6071b67f730f15a6961913a2b0205015ca0843", size = 186804, upload-time = "2025-12-15T16:52:07.192Z" },
+ { url = "https://files.pythonhosted.org/packages/a1/af/009e8ba3fbf830c936842da048eda1b34b99329f402e49d88fafff6525d1/librt-0.7.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:02a69369862099e37d00765583052a99d6a68af7e19b887e1b78fee0146b755a", size = 181807, upload-time = "2025-12-15T16:52:08.554Z" },
+ { url = "https://files.pythonhosted.org/packages/85/26/51ae25f813656a8b117c27a974f25e8c1e90abcd5a791ac685bf5b489a1b/librt-0.7.4-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ec72342cc4d62f38b25a94e28b9efefce41839aecdecf5e9627473ed04b7be16", size = 175595, upload-time = "2025-12-15T16:52:10.186Z" },
+ { url = "https://files.pythonhosted.org/packages/48/93/36d6c71f830305f88996b15c8e017aa8d1e03e2e947b40b55bbf1a34cf24/librt-0.7.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:776dbb9bfa0fc5ce64234b446995d8d9f04badf64f544ca036bd6cff6f0732ce", size = 196504, upload-time = "2025-12-15T16:52:11.472Z" },
+ { url = "https://files.pythonhosted.org/packages/08/11/8299e70862bb9d704735bf132c6be09c17b00fbc7cda0429a9df222fdc1b/librt-0.7.4-cp314-cp314-win32.whl", hash = "sha256:0f8cac84196d0ffcadf8469d9ded4d4e3a8b1c666095c2a291e22bf58e1e8a9f", size = 39738, upload-time = "2025-12-15T16:52:12.962Z" },
+ { url = "https://files.pythonhosted.org/packages/54/d5/656b0126e4e0f8e2725cd2d2a1ec40f71f37f6f03f135a26b663c0e1a737/librt-0.7.4-cp314-cp314-win_amd64.whl", hash = "sha256:037f5cb6fe5abe23f1dc058054d50e9699fcc90d0677eee4e4f74a8677636a1a", size = 45976, upload-time = "2025-12-15T16:52:14.441Z" },
+ { url = "https://files.pythonhosted.org/packages/60/86/465ff07b75c1067da8fa7f02913c4ead096ef106cfac97a977f763783bfb/librt-0.7.4-cp314-cp314-win_arm64.whl", hash = "sha256:a5deebb53d7a4d7e2e758a96befcd8edaaca0633ae71857995a0f16033289e44", size = 39073, upload-time = "2025-12-15T16:52:15.621Z" },
+ { url = "https://files.pythonhosted.org/packages/b3/a0/24941f85960774a80d4b3c2aec651d7d980466da8101cae89e8b032a3e21/librt-0.7.4-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:b4c25312c7f4e6ab35ab16211bdf819e6e4eddcba3b2ea632fb51c9a2a97e105", size = 57369, upload-time = "2025-12-15T16:52:16.782Z" },
+ { url = "https://files.pythonhosted.org/packages/77/a0/ddb259cae86ab415786c1547d0fe1b40f04a7b089f564fd5c0242a3fafb2/librt-0.7.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:618b7459bb392bdf373f2327e477597fff8f9e6a1878fffc1b711c013d1b0da4", size = 59230, upload-time = "2025-12-15T16:52:18.259Z" },
+ { url = "https://files.pythonhosted.org/packages/31/11/77823cb530ab8a0c6fac848ac65b745be446f6f301753b8990e8809080c9/librt-0.7.4-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1437c3f72a30c7047f16fd3e972ea58b90172c3c6ca309645c1c68984f05526a", size = 183869, upload-time = "2025-12-15T16:52:19.457Z" },
+ { url = "https://files.pythonhosted.org/packages/a4/ce/157db3614cf3034b3f702ae5ba4fefda4686f11eea4b7b96542324a7a0e7/librt-0.7.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c96cb76f055b33308f6858b9b594618f1b46e147a4d03a4d7f0c449e304b9b95", size = 194606, upload-time = "2025-12-15T16:52:20.795Z" },
+ { url = "https://files.pythonhosted.org/packages/30/ef/6ec4c7e3d6490f69a4fd2803516fa5334a848a4173eac26d8ee6507bff6e/librt-0.7.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:28f990e6821204f516d09dc39966ef8b84556ffd648d5926c9a3f681e8de8906", size = 206776, upload-time = "2025-12-15T16:52:22.229Z" },
+ { url = "https://files.pythonhosted.org/packages/ad/22/750b37bf549f60a4782ab80e9d1e9c44981374ab79a7ea68670159905918/librt-0.7.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:bc4aebecc79781a1b77d7d4e7d9fe080385a439e198d993b557b60f9117addaf", size = 203205, upload-time = "2025-12-15T16:52:23.603Z" },
+ { url = "https://files.pythonhosted.org/packages/7a/87/2e8a0f584412a93df5faad46c5fa0a6825fdb5eba2ce482074b114877f44/librt-0.7.4-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:022cc673e69283a42621dd453e2407cf1647e77f8bd857d7ad7499901e62376f", size = 196696, upload-time = "2025-12-15T16:52:24.951Z" },
+ { url = "https://files.pythonhosted.org/packages/e5/ca/7bf78fa950e43b564b7de52ceeb477fb211a11f5733227efa1591d05a307/librt-0.7.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:2b3ca211ae8ea540569e9c513da052699b7b06928dcda61247cb4f318122bdb5", size = 217191, upload-time = "2025-12-15T16:52:26.194Z" },
+ { url = "https://files.pythonhosted.org/packages/d6/49/3732b0e8424ae35ad5c3166d9dd5bcdae43ce98775e0867a716ff5868064/librt-0.7.4-cp314-cp314t-win32.whl", hash = "sha256:8a461f6456981d8c8e971ff5a55f2e34f4e60871e665d2f5fde23ee74dea4eeb", size = 40276, upload-time = "2025-12-15T16:52:27.54Z" },
+ { url = "https://files.pythonhosted.org/packages/35/d6/d8823e01bd069934525fddb343189c008b39828a429b473fb20d67d5cd36/librt-0.7.4-cp314-cp314t-win_amd64.whl", hash = "sha256:721a7b125a817d60bf4924e1eec2a7867bfcf64cfc333045de1df7a0629e4481", size = 46772, upload-time = "2025-12-15T16:52:28.653Z" },
+ { url = "https://files.pythonhosted.org/packages/36/e9/a0aa60f5322814dd084a89614e9e31139702e342f8459ad8af1984a18168/librt-0.7.4-cp314-cp314t-win_arm64.whl", hash = "sha256:76b2ba71265c0102d11458879b4d53ccd0b32b0164d14deb8d2b598a018e502f", size = 39724, upload-time = "2025-12-15T16:52:29.836Z" },
+]
+
[[package]]
name = "lxml"
version = "6.0.2"
@@ -1455,6 +1682,42 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/76/04/5c5e2b8577bc936e219becb2e98cdb1aca14a4921a12995b9d0c523502ae/lxml-6.0.2-cp313-cp313-win32.whl", hash = "sha256:e8cd2415f372e7e5a789d743d133ae474290a90b9023197fd78f32e2dc6873e2", size = 3610700, upload-time = "2025-09-22T04:02:24.465Z" },
{ url = "https://files.pythonhosted.org/packages/fe/0a/4643ccc6bb8b143e9f9640aa54e38255f9d3b45feb2cbe7ae2ca47e8782e/lxml-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:b30d46379644fbfc3ab81f8f82ae4de55179414651f110a1514f0b1f8f6cb2d7", size = 4010347, upload-time = "2025-09-22T04:02:26.286Z" },
{ url = "https://files.pythonhosted.org/packages/31/ef/dcf1d29c3f530577f61e5fe2f1bd72929acf779953668a8a47a479ae6f26/lxml-6.0.2-cp313-cp313-win_arm64.whl", hash = "sha256:13dcecc9946dca97b11b7c40d29fba63b55ab4170d3c0cf8c0c164343b9bfdcf", size = 3671248, upload-time = "2025-09-22T04:02:27.918Z" },
+ { url = "https://files.pythonhosted.org/packages/03/15/d4a377b385ab693ce97b472fe0c77c2b16ec79590e688b3ccc71fba19884/lxml-6.0.2-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:b0c732aa23de8f8aec23f4b580d1e52905ef468afb4abeafd3fec77042abb6fe", size = 8659801, upload-time = "2025-09-22T04:02:30.113Z" },
+ { url = "https://files.pythonhosted.org/packages/c8/e8/c128e37589463668794d503afaeb003987373c5f94d667124ffd8078bbd9/lxml-6.0.2-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:4468e3b83e10e0317a89a33d28f7aeba1caa4d1a6fd457d115dd4ffe90c5931d", size = 4659403, upload-time = "2025-09-22T04:02:32.119Z" },
+ { url = "https://files.pythonhosted.org/packages/00/ce/74903904339decdf7da7847bb5741fc98a5451b42fc419a86c0c13d26fe2/lxml-6.0.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:abd44571493973bad4598a3be7e1d807ed45aa2adaf7ab92ab7c62609569b17d", size = 4966974, upload-time = "2025-09-22T04:02:34.155Z" },
+ { url = "https://files.pythonhosted.org/packages/1f/d3/131dec79ce61c5567fecf82515bd9bc36395df42501b50f7f7f3bd065df0/lxml-6.0.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:370cd78d5855cfbffd57c422851f7d3864e6ae72d0da615fca4dad8c45d375a5", size = 5102953, upload-time = "2025-09-22T04:02:36.054Z" },
+ { url = "https://files.pythonhosted.org/packages/3a/ea/a43ba9bb750d4ffdd885f2cd333572f5bb900cd2408b67fdda07e85978a0/lxml-6.0.2-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:901e3b4219fa04ef766885fb40fa516a71662a4c61b80c94d25336b4934b71c0", size = 5055054, upload-time = "2025-09-22T04:02:38.154Z" },
+ { url = "https://files.pythonhosted.org/packages/60/23/6885b451636ae286c34628f70a7ed1fcc759f8d9ad382d132e1c8d3d9bfd/lxml-6.0.2-cp314-cp314-manylinux_2_26_i686.manylinux_2_28_i686.whl", hash = "sha256:a4bf42d2e4cf52c28cc1812d62426b9503cdb0c87a6de81442626aa7d69707ba", size = 5352421, upload-time = "2025-09-22T04:02:40.413Z" },
+ { url = "https://files.pythonhosted.org/packages/48/5b/fc2ddfc94ddbe3eebb8e9af6e3fd65e2feba4967f6a4e9683875c394c2d8/lxml-6.0.2-cp314-cp314-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b2c7fdaa4d7c3d886a42534adec7cfac73860b89b4e5298752f60aa5984641a0", size = 5673684, upload-time = "2025-09-22T04:02:42.288Z" },
+ { url = "https://files.pythonhosted.org/packages/29/9c/47293c58cc91769130fbf85531280e8cc7868f7fbb6d92f4670071b9cb3e/lxml-6.0.2-cp314-cp314-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:98a5e1660dc7de2200b00d53fa00bcd3c35a3608c305d45a7bbcaf29fa16e83d", size = 5252463, upload-time = "2025-09-22T04:02:44.165Z" },
+ { url = "https://files.pythonhosted.org/packages/9b/da/ba6eceb830c762b48e711ded880d7e3e89fc6c7323e587c36540b6b23c6b/lxml-6.0.2-cp314-cp314-manylinux_2_31_armv7l.whl", hash = "sha256:dc051506c30b609238d79eda75ee9cab3e520570ec8219844a72a46020901e37", size = 4698437, upload-time = "2025-09-22T04:02:46.524Z" },
+ { url = "https://files.pythonhosted.org/packages/a5/24/7be3f82cb7990b89118d944b619e53c656c97dc89c28cfb143fdb7cd6f4d/lxml-6.0.2-cp314-cp314-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8799481bbdd212470d17513a54d568f44416db01250f49449647b5ab5b5dccb9", size = 5269890, upload-time = "2025-09-22T04:02:48.812Z" },
+ { url = "https://files.pythonhosted.org/packages/1b/bd/dcfb9ea1e16c665efd7538fc5d5c34071276ce9220e234217682e7d2c4a5/lxml-6.0.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:9261bb77c2dab42f3ecd9103951aeca2c40277701eb7e912c545c1b16e0e4917", size = 5097185, upload-time = "2025-09-22T04:02:50.746Z" },
+ { url = "https://files.pythonhosted.org/packages/21/04/a60b0ff9314736316f28316b694bccbbabe100f8483ad83852d77fc7468e/lxml-6.0.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:65ac4a01aba353cfa6d5725b95d7aed6356ddc0a3cd734de00124d285b04b64f", size = 4745895, upload-time = "2025-09-22T04:02:52.968Z" },
+ { url = "https://files.pythonhosted.org/packages/d6/bd/7d54bd1846e5a310d9c715921c5faa71cf5c0853372adf78aee70c8d7aa2/lxml-6.0.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:b22a07cbb82fea98f8a2fd814f3d1811ff9ed76d0fc6abc84eb21527596e7cc8", size = 5695246, upload-time = "2025-09-22T04:02:54.798Z" },
+ { url = "https://files.pythonhosted.org/packages/fd/32/5643d6ab947bc371da21323acb2a6e603cedbe71cb4c99c8254289ab6f4e/lxml-6.0.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:d759cdd7f3e055d6bc8d9bec3ad905227b2e4c785dc16c372eb5b5e83123f48a", size = 5260797, upload-time = "2025-09-22T04:02:57.058Z" },
+ { url = "https://files.pythonhosted.org/packages/33/da/34c1ec4cff1eea7d0b4cd44af8411806ed943141804ac9c5d565302afb78/lxml-6.0.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:945da35a48d193d27c188037a05fec5492937f66fb1958c24fc761fb9d40d43c", size = 5277404, upload-time = "2025-09-22T04:02:58.966Z" },
+ { url = "https://files.pythonhosted.org/packages/82/57/4eca3e31e54dc89e2c3507e1cd411074a17565fa5ffc437c4ae0a00d439e/lxml-6.0.2-cp314-cp314-win32.whl", hash = "sha256:be3aaa60da67e6153eb15715cc2e19091af5dc75faef8b8a585aea372507384b", size = 3670072, upload-time = "2025-09-22T04:03:38.05Z" },
+ { url = "https://files.pythonhosted.org/packages/e3/e0/c96cf13eccd20c9421ba910304dae0f619724dcf1702864fd59dd386404d/lxml-6.0.2-cp314-cp314-win_amd64.whl", hash = "sha256:fa25afbadead523f7001caf0c2382afd272c315a033a7b06336da2637d92d6ed", size = 4080617, upload-time = "2025-09-22T04:03:39.835Z" },
+ { url = "https://files.pythonhosted.org/packages/d5/5d/b3f03e22b3d38d6f188ef044900a9b29b2fe0aebb94625ce9fe244011d34/lxml-6.0.2-cp314-cp314-win_arm64.whl", hash = "sha256:063eccf89df5b24e361b123e257e437f9e9878f425ee9aae3144c77faf6da6d8", size = 3754930, upload-time = "2025-09-22T04:03:41.565Z" },
+ { url = "https://files.pythonhosted.org/packages/5e/5c/42c2c4c03554580708fc738d13414801f340c04c3eff90d8d2d227145275/lxml-6.0.2-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:6162a86d86893d63084faaf4ff937b3daea233e3682fb4474db07395794fa80d", size = 8910380, upload-time = "2025-09-22T04:03:01.645Z" },
+ { url = "https://files.pythonhosted.org/packages/bf/4f/12df843e3e10d18d468a7557058f8d3733e8b6e12401f30b1ef29360740f/lxml-6.0.2-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:414aaa94e974e23a3e92e7ca5b97d10c0cf37b6481f50911032c69eeb3991bba", size = 4775632, upload-time = "2025-09-22T04:03:03.814Z" },
+ { url = "https://files.pythonhosted.org/packages/e4/0c/9dc31e6c2d0d418483cbcb469d1f5a582a1cd00a1f4081953d44051f3c50/lxml-6.0.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:48461bd21625458dd01e14e2c38dd0aea69addc3c4f960c30d9f59d7f93be601", size = 4975171, upload-time = "2025-09-22T04:03:05.651Z" },
+ { url = "https://files.pythonhosted.org/packages/e7/2b/9b870c6ca24c841bdd887504808f0417aa9d8d564114689266f19ddf29c8/lxml-6.0.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:25fcc59afc57d527cfc78a58f40ab4c9b8fd096a9a3f964d2781ffb6eb33f4ed", size = 5110109, upload-time = "2025-09-22T04:03:07.452Z" },
+ { url = "https://files.pythonhosted.org/packages/bf/0c/4f5f2a4dd319a178912751564471355d9019e220c20d7db3fb8307ed8582/lxml-6.0.2-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5179c60288204e6ddde3f774a93350177e08876eaf3ab78aa3a3649d43eb7d37", size = 5041061, upload-time = "2025-09-22T04:03:09.297Z" },
+ { url = "https://files.pythonhosted.org/packages/12/64/554eed290365267671fe001a20d72d14f468ae4e6acef1e179b039436967/lxml-6.0.2-cp314-cp314t-manylinux_2_26_i686.manylinux_2_28_i686.whl", hash = "sha256:967aab75434de148ec80597b75062d8123cadf2943fb4281f385141e18b21338", size = 5306233, upload-time = "2025-09-22T04:03:11.651Z" },
+ { url = "https://files.pythonhosted.org/packages/7a/31/1d748aa275e71802ad9722df32a7a35034246b42c0ecdd8235412c3396ef/lxml-6.0.2-cp314-cp314t-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d100fcc8930d697c6561156c6810ab4a508fb264c8b6779e6e61e2ed5e7558f9", size = 5604739, upload-time = "2025-09-22T04:03:13.592Z" },
+ { url = "https://files.pythonhosted.org/packages/8f/41/2c11916bcac09ed561adccacceaedd2bf0e0b25b297ea92aab99fd03d0fa/lxml-6.0.2-cp314-cp314t-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2ca59e7e13e5981175b8b3e4ab84d7da57993eeff53c07764dcebda0d0e64ecd", size = 5225119, upload-time = "2025-09-22T04:03:15.408Z" },
+ { url = "https://files.pythonhosted.org/packages/99/05/4e5c2873d8f17aa018e6afde417c80cc5d0c33be4854cce3ef5670c49367/lxml-6.0.2-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:957448ac63a42e2e49531b9d6c0fa449a1970dbc32467aaad46f11545be9af1d", size = 4633665, upload-time = "2025-09-22T04:03:17.262Z" },
+ { url = "https://files.pythonhosted.org/packages/0f/c9/dcc2da1bebd6275cdc723b515f93edf548b82f36a5458cca3578bc899332/lxml-6.0.2-cp314-cp314t-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b7fc49c37f1786284b12af63152fe1d0990722497e2d5817acfe7a877522f9a9", size = 5234997, upload-time = "2025-09-22T04:03:19.14Z" },
+ { url = "https://files.pythonhosted.org/packages/9c/e2/5172e4e7468afca64a37b81dba152fc5d90e30f9c83c7c3213d6a02a5ce4/lxml-6.0.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e19e0643cc936a22e837f79d01a550678da8377d7d801a14487c10c34ee49c7e", size = 5090957, upload-time = "2025-09-22T04:03:21.436Z" },
+ { url = "https://files.pythonhosted.org/packages/a5/b3/15461fd3e5cd4ddcb7938b87fc20b14ab113b92312fc97afe65cd7c85de1/lxml-6.0.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:1db01e5cf14345628e0cbe71067204db658e2fb8e51e7f33631f5f4735fefd8d", size = 4764372, upload-time = "2025-09-22T04:03:23.27Z" },
+ { url = "https://files.pythonhosted.org/packages/05/33/f310b987c8bf9e61c4dd8e8035c416bd3230098f5e3cfa69fc4232de7059/lxml-6.0.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:875c6b5ab39ad5291588aed6925fac99d0097af0dd62f33c7b43736043d4a2ec", size = 5634653, upload-time = "2025-09-22T04:03:25.767Z" },
+ { url = "https://files.pythonhosted.org/packages/70/ff/51c80e75e0bc9382158133bdcf4e339b5886c6ee2418b5199b3f1a61ed6d/lxml-6.0.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:cdcbed9ad19da81c480dfd6dd161886db6096083c9938ead313d94b30aadf272", size = 5233795, upload-time = "2025-09-22T04:03:27.62Z" },
+ { url = "https://files.pythonhosted.org/packages/56/4d/4856e897df0d588789dd844dbed9d91782c4ef0b327f96ce53c807e13128/lxml-6.0.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:80dadc234ebc532e09be1975ff538d154a7fa61ea5031c03d25178855544728f", size = 5257023, upload-time = "2025-09-22T04:03:30.056Z" },
+ { url = "https://files.pythonhosted.org/packages/0f/85/86766dfebfa87bea0ab78e9ff7a4b4b45225df4b4d3b8cc3c03c5cd68464/lxml-6.0.2-cp314-cp314t-win32.whl", hash = "sha256:da08e7bb297b04e893d91087df19638dc7a6bb858a954b0cc2b9f5053c922312", size = 3911420, upload-time = "2025-09-22T04:03:32.198Z" },
+ { url = "https://files.pythonhosted.org/packages/fe/1a/b248b355834c8e32614650b8008c69ffeb0ceb149c793961dd8c0b991bb3/lxml-6.0.2-cp314-cp314t-win_amd64.whl", hash = "sha256:252a22982dca42f6155125ac76d3432e548a7625d56f5a273ee78a5057216eca", size = 4406837, upload-time = "2025-09-22T04:03:34.027Z" },
+ { url = "https://files.pythonhosted.org/packages/92/aa/df863bcc39c5e0946263454aba394de8a9084dbaff8ad143846b0d844739/lxml-6.0.2-cp314-cp314t-win_arm64.whl", hash = "sha256:bb4c1847b303835d89d785a18801a883436cdfd5dc3d62947f9c49e24f0f5a2c", size = 3822205, upload-time = "2025-09-22T04:03:36.249Z" },
{ url = "https://files.pythonhosted.org/packages/e7/9c/780c9a8fce3f04690b374f72f41306866b0400b9d0fdf3e17aaa37887eed/lxml-6.0.2-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:e748d4cf8fef2526bb2a589a417eba0c8674e29ffcb570ce2ceca44f1e567bf6", size = 3939264, upload-time = "2025-09-22T04:04:32.892Z" },
{ url = "https://files.pythonhosted.org/packages/f5/5a/1ab260c00adf645d8bf7dec7f920f744b032f69130c681302821d5debea6/lxml-6.0.2-pp310-pypy310_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:4ddb1049fa0579d0cbd00503ad8c58b9ab34d1254c77bc6a5576d96ec7853dba", size = 4216435, upload-time = "2025-09-22T04:04:34.907Z" },
{ url = "https://files.pythonhosted.org/packages/f2/37/565f3b3d7ffede22874b6d86be1a1763d00f4ea9fc5b9b6ccb11e4ec8612/lxml-6.0.2-pp310-pypy310_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:cb233f9c95f83707dae461b12b720c1af9c28c2d19208e1be03387222151daf5", size = 4325913, upload-time = "2025-09-22T04:04:37.205Z" },
@@ -1560,6 +1823,28 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/80/d6/2d1b89f6ca4bff1036499b1e29a1d02d282259f3681540e16563f27ebc23/markupsafe-3.0.3-cp313-cp313t-win32.whl", hash = "sha256:69c0b73548bc525c8cb9a251cddf1931d1db4d2258e9599c28c07ef3580ef354", size = 14612, upload-time = "2025-09-27T18:37:02.639Z" },
{ url = "https://files.pythonhosted.org/packages/2b/98/e48a4bfba0a0ffcf9925fe2d69240bfaa19c6f7507b8cd09c70684a53c1e/markupsafe-3.0.3-cp313-cp313t-win_amd64.whl", hash = "sha256:1b4b79e8ebf6b55351f0d91fe80f893b4743f104bff22e90697db1590e47a218", size = 15200, upload-time = "2025-09-27T18:37:03.582Z" },
{ url = "https://files.pythonhosted.org/packages/0e/72/e3cc540f351f316e9ed0f092757459afbc595824ca724cbc5a5d4263713f/markupsafe-3.0.3-cp313-cp313t-win_arm64.whl", hash = "sha256:ad2cf8aa28b8c020ab2fc8287b0f823d0a7d8630784c31e9ee5edea20f406287", size = 13973, upload-time = "2025-09-27T18:37:04.929Z" },
+ { url = "https://files.pythonhosted.org/packages/33/8a/8e42d4838cd89b7dde187011e97fe6c3af66d8c044997d2183fbd6d31352/markupsafe-3.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:eaa9599de571d72e2daf60164784109f19978b327a3910d3e9de8c97b5b70cfe", size = 11619, upload-time = "2025-09-27T18:37:06.342Z" },
+ { url = "https://files.pythonhosted.org/packages/b5/64/7660f8a4a8e53c924d0fa05dc3a55c9cee10bbd82b11c5afb27d44b096ce/markupsafe-3.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c47a551199eb8eb2121d4f0f15ae0f923d31350ab9280078d1e5f12b249e0026", size = 12029, upload-time = "2025-09-27T18:37:07.213Z" },
+ { url = "https://files.pythonhosted.org/packages/da/ef/e648bfd021127bef5fa12e1720ffed0c6cbb8310c8d9bea7266337ff06de/markupsafe-3.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f34c41761022dd093b4b6896d4810782ffbabe30f2d443ff5f083e0cbbb8c737", size = 24408, upload-time = "2025-09-27T18:37:09.572Z" },
+ { url = "https://files.pythonhosted.org/packages/41/3c/a36c2450754618e62008bf7435ccb0f88053e07592e6028a34776213d877/markupsafe-3.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:457a69a9577064c05a97c41f4e65148652db078a3a509039e64d3467b9e7ef97", size = 23005, upload-time = "2025-09-27T18:37:10.58Z" },
+ { url = "https://files.pythonhosted.org/packages/bc/20/b7fdf89a8456b099837cd1dc21974632a02a999ec9bf7ca3e490aacd98e7/markupsafe-3.0.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e8afc3f2ccfa24215f8cb28dcf43f0113ac3c37c2f0f0806d8c70e4228c5cf4d", size = 22048, upload-time = "2025-09-27T18:37:11.547Z" },
+ { url = "https://files.pythonhosted.org/packages/9a/a7/591f592afdc734f47db08a75793a55d7fbcc6902a723ae4cfbab61010cc5/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ec15a59cf5af7be74194f7ab02d0f59a62bdcf1a537677ce67a2537c9b87fcda", size = 23821, upload-time = "2025-09-27T18:37:12.48Z" },
+ { url = "https://files.pythonhosted.org/packages/7d/33/45b24e4f44195b26521bc6f1a82197118f74df348556594bd2262bda1038/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:0eb9ff8191e8498cca014656ae6b8d61f39da5f95b488805da4bb029cccbfbaf", size = 21606, upload-time = "2025-09-27T18:37:13.485Z" },
+ { url = "https://files.pythonhosted.org/packages/ff/0e/53dfaca23a69fbfbbf17a4b64072090e70717344c52eaaaa9c5ddff1e5f0/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2713baf880df847f2bece4230d4d094280f4e67b1e813eec43b4c0e144a34ffe", size = 23043, upload-time = "2025-09-27T18:37:14.408Z" },
+ { url = "https://files.pythonhosted.org/packages/46/11/f333a06fc16236d5238bfe74daccbca41459dcd8d1fa952e8fbd5dccfb70/markupsafe-3.0.3-cp314-cp314-win32.whl", hash = "sha256:729586769a26dbceff69f7a7dbbf59ab6572b99d94576a5592625d5b411576b9", size = 14747, upload-time = "2025-09-27T18:37:15.36Z" },
+ { url = "https://files.pythonhosted.org/packages/28/52/182836104b33b444e400b14f797212f720cbc9ed6ba34c800639d154e821/markupsafe-3.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:bdc919ead48f234740ad807933cdf545180bfbe9342c2bb451556db2ed958581", size = 15341, upload-time = "2025-09-27T18:37:16.496Z" },
+ { url = "https://files.pythonhosted.org/packages/6f/18/acf23e91bd94fd7b3031558b1f013adfa21a8e407a3fdb32745538730382/markupsafe-3.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:5a7d5dc5140555cf21a6fefbdbf8723f06fcd2f63ef108f2854de715e4422cb4", size = 14073, upload-time = "2025-09-27T18:37:17.476Z" },
+ { url = "https://files.pythonhosted.org/packages/3c/f0/57689aa4076e1b43b15fdfa646b04653969d50cf30c32a102762be2485da/markupsafe-3.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:1353ef0c1b138e1907ae78e2f6c63ff67501122006b0f9abad68fda5f4ffc6ab", size = 11661, upload-time = "2025-09-27T18:37:18.453Z" },
+ { url = "https://files.pythonhosted.org/packages/89/c3/2e67a7ca217c6912985ec766c6393b636fb0c2344443ff9d91404dc4c79f/markupsafe-3.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1085e7fbddd3be5f89cc898938f42c0b3c711fdcb37d75221de2666af647c175", size = 12069, upload-time = "2025-09-27T18:37:19.332Z" },
+ { url = "https://files.pythonhosted.org/packages/f0/00/be561dce4e6ca66b15276e184ce4b8aec61fe83662cce2f7d72bd3249d28/markupsafe-3.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1b52b4fb9df4eb9ae465f8d0c228a00624de2334f216f178a995ccdcf82c4634", size = 25670, upload-time = "2025-09-27T18:37:20.245Z" },
+ { url = "https://files.pythonhosted.org/packages/50/09/c419f6f5a92e5fadde27efd190eca90f05e1261b10dbd8cbcb39cd8ea1dc/markupsafe-3.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fed51ac40f757d41b7c48425901843666a6677e3e8eb0abcff09e4ba6e664f50", size = 23598, upload-time = "2025-09-27T18:37:21.177Z" },
+ { url = "https://files.pythonhosted.org/packages/22/44/a0681611106e0b2921b3033fc19bc53323e0b50bc70cffdd19f7d679bb66/markupsafe-3.0.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f190daf01f13c72eac4efd5c430a8de82489d9cff23c364c3ea822545032993e", size = 23261, upload-time = "2025-09-27T18:37:22.167Z" },
+ { url = "https://files.pythonhosted.org/packages/5f/57/1b0b3f100259dc9fffe780cfb60d4be71375510e435efec3d116b6436d43/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e56b7d45a839a697b5eb268c82a71bd8c7f6c94d6fd50c3d577fa39a9f1409f5", size = 24835, upload-time = "2025-09-27T18:37:23.296Z" },
+ { url = "https://files.pythonhosted.org/packages/26/6a/4bf6d0c97c4920f1597cc14dd720705eca0bf7c787aebc6bb4d1bead5388/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:f3e98bb3798ead92273dc0e5fd0f31ade220f59a266ffd8a4f6065e0a3ce0523", size = 22733, upload-time = "2025-09-27T18:37:24.237Z" },
+ { url = "https://files.pythonhosted.org/packages/14/c7/ca723101509b518797fedc2fdf79ba57f886b4aca8a7d31857ba3ee8281f/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5678211cb9333a6468fb8d8be0305520aa073f50d17f089b5b4b477ea6e67fdc", size = 23672, upload-time = "2025-09-27T18:37:25.271Z" },
+ { url = "https://files.pythonhosted.org/packages/fb/df/5bd7a48c256faecd1d36edc13133e51397e41b73bb77e1a69deab746ebac/markupsafe-3.0.3-cp314-cp314t-win32.whl", hash = "sha256:915c04ba3851909ce68ccc2b8e2cd691618c4dc4c4232fb7982bca3f41fd8c3d", size = 14819, upload-time = "2025-09-27T18:37:26.285Z" },
+ { url = "https://files.pythonhosted.org/packages/1a/8a/0402ba61a2f16038b48b39bccca271134be00c5c9f0f623208399333c448/markupsafe-3.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4faffd047e07c38848ce017e8725090413cd80cbc23d86e55c587bf979e579c9", size = 15426, upload-time = "2025-09-27T18:37:27.316Z" },
+ { url = "https://files.pythonhosted.org/packages/70/bc/6f1c2f612465f5fa89b95bead1f44dcb607670fd42891d8fdcd5d039f4f4/markupsafe-3.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:32001d6a8fc98c8cb5c947787c5d08b0a50663d139f1305bac5885d98d9b40fa", size = 14146, upload-time = "2025-09-27T18:37:28.327Z" },
]
[[package]]
@@ -1725,6 +2010,67 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c", size = 536198, upload-time = "2023-03-07T16:47:09.197Z" },
]
+[[package]]
+name = "msgpack"
+version = "1.1.2"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/4d/f2/bfb55a6236ed8725a96b0aa3acbd0ec17588e6a2c3b62a93eb513ed8783f/msgpack-1.1.2.tar.gz", hash = "sha256:3b60763c1373dd60f398488069bcdc703cd08a711477b5d480eecc9f9626f47e", size = 173581, upload-time = "2025-10-08T09:15:56.596Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/f5/a2/3b68a9e769db68668b25c6108444a35f9bd163bb848c0650d516761a59c0/msgpack-1.1.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0051fffef5a37ca2cd16978ae4f0aef92f164df86823871b5162812bebecd8e2", size = 81318, upload-time = "2025-10-08T09:14:38.722Z" },
+ { url = "https://files.pythonhosted.org/packages/5b/e1/2b720cc341325c00be44e1ed59e7cfeae2678329fbf5aa68f5bda57fe728/msgpack-1.1.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a605409040f2da88676e9c9e5853b3449ba8011973616189ea5ee55ddbc5bc87", size = 83786, upload-time = "2025-10-08T09:14:40.082Z" },
+ { url = "https://files.pythonhosted.org/packages/71/e5/c2241de64bfceac456b140737812a2ab310b10538a7b34a1d393b748e095/msgpack-1.1.2-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8b696e83c9f1532b4af884045ba7f3aa741a63b2bc22617293a2c6a7c645f251", size = 398240, upload-time = "2025-10-08T09:14:41.151Z" },
+ { url = "https://files.pythonhosted.org/packages/b7/09/2a06956383c0fdebaef5aa9246e2356776f12ea6f2a44bd1368abf0e46c4/msgpack-1.1.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:365c0bbe981a27d8932da71af63ef86acc59ed5c01ad929e09a0b88c6294e28a", size = 406070, upload-time = "2025-10-08T09:14:42.821Z" },
+ { url = "https://files.pythonhosted.org/packages/0e/74/2957703f0e1ef20637d6aead4fbb314330c26f39aa046b348c7edcf6ca6b/msgpack-1.1.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:41d1a5d875680166d3ac5c38573896453bbbea7092936d2e107214daf43b1d4f", size = 393403, upload-time = "2025-10-08T09:14:44.38Z" },
+ { url = "https://files.pythonhosted.org/packages/a5/09/3bfc12aa90f77b37322fc33e7a8a7c29ba7c8edeadfa27664451801b9860/msgpack-1.1.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:354e81bcdebaab427c3df4281187edc765d5d76bfb3a7c125af9da7a27e8458f", size = 398947, upload-time = "2025-10-08T09:14:45.56Z" },
+ { url = "https://files.pythonhosted.org/packages/4b/4f/05fcebd3b4977cb3d840f7ef6b77c51f8582086de5e642f3fefee35c86fc/msgpack-1.1.2-cp310-cp310-win32.whl", hash = "sha256:e64c8d2f5e5d5fda7b842f55dec6133260ea8f53c4257d64494c534f306bf7a9", size = 64769, upload-time = "2025-10-08T09:14:47.334Z" },
+ { url = "https://files.pythonhosted.org/packages/d0/3e/b4547e3a34210956382eed1c85935fff7e0f9b98be3106b3745d7dec9c5e/msgpack-1.1.2-cp310-cp310-win_amd64.whl", hash = "sha256:db6192777d943bdaaafb6ba66d44bf65aa0e9c5616fa1d2da9bb08828c6b39aa", size = 71293, upload-time = "2025-10-08T09:14:48.665Z" },
+ { url = "https://files.pythonhosted.org/packages/2c/97/560d11202bcd537abca693fd85d81cebe2107ba17301de42b01ac1677b69/msgpack-1.1.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2e86a607e558d22985d856948c12a3fa7b42efad264dca8a3ebbcfa2735d786c", size = 82271, upload-time = "2025-10-08T09:14:49.967Z" },
+ { url = "https://files.pythonhosted.org/packages/83/04/28a41024ccbd67467380b6fb440ae916c1e4f25e2cd4c63abe6835ac566e/msgpack-1.1.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:283ae72fc89da59aa004ba147e8fc2f766647b1251500182fac0350d8af299c0", size = 84914, upload-time = "2025-10-08T09:14:50.958Z" },
+ { url = "https://files.pythonhosted.org/packages/71/46/b817349db6886d79e57a966346cf0902a426375aadc1e8e7a86a75e22f19/msgpack-1.1.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:61c8aa3bd513d87c72ed0b37b53dd5c5a0f58f2ff9f26e1555d3bd7948fb7296", size = 416962, upload-time = "2025-10-08T09:14:51.997Z" },
+ { url = "https://files.pythonhosted.org/packages/da/e0/6cc2e852837cd6086fe7d8406af4294e66827a60a4cf60b86575a4a65ca8/msgpack-1.1.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:454e29e186285d2ebe65be34629fa0e8605202c60fbc7c4c650ccd41870896ef", size = 426183, upload-time = "2025-10-08T09:14:53.477Z" },
+ { url = "https://files.pythonhosted.org/packages/25/98/6a19f030b3d2ea906696cedd1eb251708e50a5891d0978b012cb6107234c/msgpack-1.1.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7bc8813f88417599564fafa59fd6f95be417179f76b40325b500b3c98409757c", size = 411454, upload-time = "2025-10-08T09:14:54.648Z" },
+ { url = "https://files.pythonhosted.org/packages/b7/cd/9098fcb6adb32187a70b7ecaabf6339da50553351558f37600e53a4a2a23/msgpack-1.1.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:bafca952dc13907bdfdedfc6a5f579bf4f292bdd506fadb38389afa3ac5b208e", size = 422341, upload-time = "2025-10-08T09:14:56.328Z" },
+ { url = "https://files.pythonhosted.org/packages/e6/ae/270cecbcf36c1dc85ec086b33a51a4d7d08fc4f404bdbc15b582255d05ff/msgpack-1.1.2-cp311-cp311-win32.whl", hash = "sha256:602b6740e95ffc55bfb078172d279de3773d7b7db1f703b2f1323566b878b90e", size = 64747, upload-time = "2025-10-08T09:14:57.882Z" },
+ { url = "https://files.pythonhosted.org/packages/2a/79/309d0e637f6f37e83c711f547308b91af02b72d2326ddd860b966080ef29/msgpack-1.1.2-cp311-cp311-win_amd64.whl", hash = "sha256:d198d275222dc54244bf3327eb8cbe00307d220241d9cec4d306d49a44e85f68", size = 71633, upload-time = "2025-10-08T09:14:59.177Z" },
+ { url = "https://files.pythonhosted.org/packages/73/4d/7c4e2b3d9b1106cd0aa6cb56cc57c6267f59fa8bfab7d91df5adc802c847/msgpack-1.1.2-cp311-cp311-win_arm64.whl", hash = "sha256:86f8136dfa5c116365a8a651a7d7484b65b13339731dd6faebb9a0242151c406", size = 64755, upload-time = "2025-10-08T09:15:00.48Z" },
+ { url = "https://files.pythonhosted.org/packages/ad/bd/8b0d01c756203fbab65d265859749860682ccd2a59594609aeec3a144efa/msgpack-1.1.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:70a0dff9d1f8da25179ffcf880e10cf1aad55fdb63cd59c9a49a1b82290062aa", size = 81939, upload-time = "2025-10-08T09:15:01.472Z" },
+ { url = "https://files.pythonhosted.org/packages/34/68/ba4f155f793a74c1483d4bdef136e1023f7bcba557f0db4ef3db3c665cf1/msgpack-1.1.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:446abdd8b94b55c800ac34b102dffd2f6aa0ce643c55dfc017ad89347db3dbdb", size = 85064, upload-time = "2025-10-08T09:15:03.764Z" },
+ { url = "https://files.pythonhosted.org/packages/f2/60/a064b0345fc36c4c3d2c743c82d9100c40388d77f0b48b2f04d6041dbec1/msgpack-1.1.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c63eea553c69ab05b6747901b97d620bb2a690633c77f23feb0c6a947a8a7b8f", size = 417131, upload-time = "2025-10-08T09:15:05.136Z" },
+ { url = "https://files.pythonhosted.org/packages/65/92/a5100f7185a800a5d29f8d14041f61475b9de465ffcc0f3b9fba606e4505/msgpack-1.1.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:372839311ccf6bdaf39b00b61288e0557916c3729529b301c52c2d88842add42", size = 427556, upload-time = "2025-10-08T09:15:06.837Z" },
+ { url = "https://files.pythonhosted.org/packages/f5/87/ffe21d1bf7d9991354ad93949286f643b2bb6ddbeab66373922b44c3b8cc/msgpack-1.1.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2929af52106ca73fcb28576218476ffbb531a036c2adbcf54a3664de124303e9", size = 404920, upload-time = "2025-10-08T09:15:08.179Z" },
+ { url = "https://files.pythonhosted.org/packages/ff/41/8543ed2b8604f7c0d89ce066f42007faac1eaa7d79a81555f206a5cdb889/msgpack-1.1.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:be52a8fc79e45b0364210eef5234a7cf8d330836d0a64dfbb878efa903d84620", size = 415013, upload-time = "2025-10-08T09:15:09.83Z" },
+ { url = "https://files.pythonhosted.org/packages/41/0d/2ddfaa8b7e1cee6c490d46cb0a39742b19e2481600a7a0e96537e9c22f43/msgpack-1.1.2-cp312-cp312-win32.whl", hash = "sha256:1fff3d825d7859ac888b0fbda39a42d59193543920eda9d9bea44d958a878029", size = 65096, upload-time = "2025-10-08T09:15:11.11Z" },
+ { url = "https://files.pythonhosted.org/packages/8c/ec/d431eb7941fb55a31dd6ca3404d41fbb52d99172df2e7707754488390910/msgpack-1.1.2-cp312-cp312-win_amd64.whl", hash = "sha256:1de460f0403172cff81169a30b9a92b260cb809c4cb7e2fc79ae8d0510c78b6b", size = 72708, upload-time = "2025-10-08T09:15:12.554Z" },
+ { url = "https://files.pythonhosted.org/packages/c5/31/5b1a1f70eb0e87d1678e9624908f86317787b536060641d6798e3cf70ace/msgpack-1.1.2-cp312-cp312-win_arm64.whl", hash = "sha256:be5980f3ee0e6bd44f3a9e9dea01054f175b50c3e6cdb692bc9424c0bbb8bf69", size = 64119, upload-time = "2025-10-08T09:15:13.589Z" },
+ { url = "https://files.pythonhosted.org/packages/6b/31/b46518ecc604d7edf3a4f94cb3bf021fc62aa301f0cb849936968164ef23/msgpack-1.1.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:4efd7b5979ccb539c221a4c4e16aac1a533efc97f3b759bb5a5ac9f6d10383bf", size = 81212, upload-time = "2025-10-08T09:15:14.552Z" },
+ { url = "https://files.pythonhosted.org/packages/92/dc/c385f38f2c2433333345a82926c6bfa5ecfff3ef787201614317b58dd8be/msgpack-1.1.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:42eefe2c3e2af97ed470eec850facbe1b5ad1d6eacdbadc42ec98e7dcf68b4b7", size = 84315, upload-time = "2025-10-08T09:15:15.543Z" },
+ { url = "https://files.pythonhosted.org/packages/d3/68/93180dce57f684a61a88a45ed13047558ded2be46f03acb8dec6d7c513af/msgpack-1.1.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1fdf7d83102bf09e7ce3357de96c59b627395352a4024f6e2458501f158bf999", size = 412721, upload-time = "2025-10-08T09:15:16.567Z" },
+ { url = "https://files.pythonhosted.org/packages/5d/ba/459f18c16f2b3fc1a1ca871f72f07d70c07bf768ad0a507a698b8052ac58/msgpack-1.1.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fac4be746328f90caa3cd4bc67e6fe36ca2bf61d5c6eb6d895b6527e3f05071e", size = 424657, upload-time = "2025-10-08T09:15:17.825Z" },
+ { url = "https://files.pythonhosted.org/packages/38/f8/4398c46863b093252fe67368b44edc6c13b17f4e6b0e4929dbf0bdb13f23/msgpack-1.1.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:fffee09044073e69f2bad787071aeec727183e7580443dfeb8556cbf1978d162", size = 402668, upload-time = "2025-10-08T09:15:19.003Z" },
+ { url = "https://files.pythonhosted.org/packages/28/ce/698c1eff75626e4124b4d78e21cca0b4cc90043afb80a507626ea354ab52/msgpack-1.1.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:5928604de9b032bc17f5099496417f113c45bc6bc21b5c6920caf34b3c428794", size = 419040, upload-time = "2025-10-08T09:15:20.183Z" },
+ { url = "https://files.pythonhosted.org/packages/67/32/f3cd1667028424fa7001d82e10ee35386eea1408b93d399b09fb0aa7875f/msgpack-1.1.2-cp313-cp313-win32.whl", hash = "sha256:a7787d353595c7c7e145e2331abf8b7ff1e6673a6b974ded96e6d4ec09f00c8c", size = 65037, upload-time = "2025-10-08T09:15:21.416Z" },
+ { url = "https://files.pythonhosted.org/packages/74/07/1ed8277f8653c40ebc65985180b007879f6a836c525b3885dcc6448ae6cb/msgpack-1.1.2-cp313-cp313-win_amd64.whl", hash = "sha256:a465f0dceb8e13a487e54c07d04ae3ba131c7c5b95e2612596eafde1dccf64a9", size = 72631, upload-time = "2025-10-08T09:15:22.431Z" },
+ { url = "https://files.pythonhosted.org/packages/e5/db/0314e4e2db56ebcf450f277904ffd84a7988b9e5da8d0d61ab2d057df2b6/msgpack-1.1.2-cp313-cp313-win_arm64.whl", hash = "sha256:e69b39f8c0aa5ec24b57737ebee40be647035158f14ed4b40e6f150077e21a84", size = 64118, upload-time = "2025-10-08T09:15:23.402Z" },
+ { url = "https://files.pythonhosted.org/packages/22/71/201105712d0a2ff07b7873ed3c220292fb2ea5120603c00c4b634bcdafb3/msgpack-1.1.2-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:e23ce8d5f7aa6ea6d2a2b326b4ba46c985dbb204523759984430db7114f8aa00", size = 81127, upload-time = "2025-10-08T09:15:24.408Z" },
+ { url = "https://files.pythonhosted.org/packages/1b/9f/38ff9e57a2eade7bf9dfee5eae17f39fc0e998658050279cbb14d97d36d9/msgpack-1.1.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:6c15b7d74c939ebe620dd8e559384be806204d73b4f9356320632d783d1f7939", size = 84981, upload-time = "2025-10-08T09:15:25.812Z" },
+ { url = "https://files.pythonhosted.org/packages/8e/a9/3536e385167b88c2cc8f4424c49e28d49a6fc35206d4a8060f136e71f94c/msgpack-1.1.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:99e2cb7b9031568a2a5c73aa077180f93dd2e95b4f8d3b8e14a73ae94a9e667e", size = 411885, upload-time = "2025-10-08T09:15:27.22Z" },
+ { url = "https://files.pythonhosted.org/packages/2f/40/dc34d1a8d5f1e51fc64640b62b191684da52ca469da9cd74e84936ffa4a6/msgpack-1.1.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:180759d89a057eab503cf62eeec0aa61c4ea1200dee709f3a8e9397dbb3b6931", size = 419658, upload-time = "2025-10-08T09:15:28.4Z" },
+ { url = "https://files.pythonhosted.org/packages/3b/ef/2b92e286366500a09a67e03496ee8b8ba00562797a52f3c117aa2b29514b/msgpack-1.1.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:04fb995247a6e83830b62f0b07bf36540c213f6eac8e851166d8d86d83cbd014", size = 403290, upload-time = "2025-10-08T09:15:29.764Z" },
+ { url = "https://files.pythonhosted.org/packages/78/90/e0ea7990abea5764e4655b8177aa7c63cdfa89945b6e7641055800f6c16b/msgpack-1.1.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:8e22ab046fa7ede9e36eeb4cfad44d46450f37bb05d5ec482b02868f451c95e2", size = 415234, upload-time = "2025-10-08T09:15:31.022Z" },
+ { url = "https://files.pythonhosted.org/packages/72/4e/9390aed5db983a2310818cd7d3ec0aecad45e1f7007e0cda79c79507bb0d/msgpack-1.1.2-cp314-cp314-win32.whl", hash = "sha256:80a0ff7d4abf5fecb995fcf235d4064b9a9a8a40a3ab80999e6ac1e30b702717", size = 66391, upload-time = "2025-10-08T09:15:32.265Z" },
+ { url = "https://files.pythonhosted.org/packages/6e/f1/abd09c2ae91228c5f3998dbd7f41353def9eac64253de3c8105efa2082f7/msgpack-1.1.2-cp314-cp314-win_amd64.whl", hash = "sha256:9ade919fac6a3e7260b7f64cea89df6bec59104987cbea34d34a2fa15d74310b", size = 73787, upload-time = "2025-10-08T09:15:33.219Z" },
+ { url = "https://files.pythonhosted.org/packages/6a/b0/9d9f667ab48b16ad4115c1935d94023b82b3198064cb84a123e97f7466c1/msgpack-1.1.2-cp314-cp314-win_arm64.whl", hash = "sha256:59415c6076b1e30e563eb732e23b994a61c159cec44deaf584e5cc1dd662f2af", size = 66453, upload-time = "2025-10-08T09:15:34.225Z" },
+ { url = "https://files.pythonhosted.org/packages/16/67/93f80545eb1792b61a217fa7f06d5e5cb9e0055bed867f43e2b8e012e137/msgpack-1.1.2-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:897c478140877e5307760b0ea66e0932738879e7aa68144d9b78ea4c8302a84a", size = 85264, upload-time = "2025-10-08T09:15:35.61Z" },
+ { url = "https://files.pythonhosted.org/packages/87/1c/33c8a24959cf193966ef11a6f6a2995a65eb066bd681fd085afd519a57ce/msgpack-1.1.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:a668204fa43e6d02f89dbe79a30b0d67238d9ec4c5bd8a940fc3a004a47b721b", size = 89076, upload-time = "2025-10-08T09:15:36.619Z" },
+ { url = "https://files.pythonhosted.org/packages/fc/6b/62e85ff7193663fbea5c0254ef32f0c77134b4059f8da89b958beb7696f3/msgpack-1.1.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5559d03930d3aa0f3aacb4c42c776af1a2ace2611871c84a75afe436695e6245", size = 435242, upload-time = "2025-10-08T09:15:37.647Z" },
+ { url = "https://files.pythonhosted.org/packages/c1/47/5c74ecb4cc277cf09f64e913947871682ffa82b3b93c8dad68083112f412/msgpack-1.1.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:70c5a7a9fea7f036b716191c29047374c10721c389c21e9ffafad04df8c52c90", size = 432509, upload-time = "2025-10-08T09:15:38.794Z" },
+ { url = "https://files.pythonhosted.org/packages/24/a4/e98ccdb56dc4e98c929a3f150de1799831c0a800583cde9fa022fa90602d/msgpack-1.1.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:f2cb069d8b981abc72b41aea1c580ce92d57c673ec61af4c500153a626cb9e20", size = 415957, upload-time = "2025-10-08T09:15:40.238Z" },
+ { url = "https://files.pythonhosted.org/packages/da/28/6951f7fb67bc0a4e184a6b38ab71a92d9ba58080b27a77d3e2fb0be5998f/msgpack-1.1.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:d62ce1f483f355f61adb5433ebfd8868c5f078d1a52d042b0a998682b4fa8c27", size = 422910, upload-time = "2025-10-08T09:15:41.505Z" },
+ { url = "https://files.pythonhosted.org/packages/f0/03/42106dcded51f0a0b5284d3ce30a671e7bd3f7318d122b2ead66ad289fed/msgpack-1.1.2-cp314-cp314t-win32.whl", hash = "sha256:1d1418482b1ee984625d88aa9585db570180c286d942da463533b238b98b812b", size = 75197, upload-time = "2025-10-08T09:15:42.954Z" },
+ { url = "https://files.pythonhosted.org/packages/15/86/d0071e94987f8db59d4eeb386ddc64d0bb9b10820a8d82bcd3e53eeb2da6/msgpack-1.1.2-cp314-cp314t-win_amd64.whl", hash = "sha256:5a46bf7e831d09470ad92dff02b8b1ac92175ca36b087f904a0519857c6be3ff", size = 85772, upload-time = "2025-10-08T09:15:43.954Z" },
+ { url = "https://files.pythonhosted.org/packages/81/f2/08ace4142eb281c12701fc3b93a10795e4d4dc7f753911d836675050f886/msgpack-1.1.2-cp314-cp314t-win_arm64.whl", hash = "sha256:d99ef64f349d5ec3293688e91486c5fdb925ed03807f64d98d205d2713c60b46", size = 70868, upload-time = "2025-10-08T09:15:44.959Z" },
+]
+
[[package]]
name = "multidict"
version = "6.7.0"
@@ -1824,6 +2170,42 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/ef/a0/f83ae75e42d694b3fbad3e047670e511c138be747bc713cf1b10d5096416/multidict-6.7.0-cp313-cp313t-win32.whl", hash = "sha256:19a1d55338ec1be74ef62440ca9e04a2f001a04d0cc49a4983dc320ff0f3212d", size = 47777, upload-time = "2025-10-06T14:50:47.154Z" },
{ url = "https://files.pythonhosted.org/packages/dc/80/9b174a92814a3830b7357307a792300f42c9e94664b01dee8e457551fa66/multidict-6.7.0-cp313-cp313t-win_amd64.whl", hash = "sha256:3da4fb467498df97e986af166b12d01f05d2e04f978a9c1c680ea1988e0bc4b6", size = 53104, upload-time = "2025-10-06T14:50:48.851Z" },
{ url = "https://files.pythonhosted.org/packages/cc/28/04baeaf0428d95bb7a7bea0e691ba2f31394338ba424fb0679a9ed0f4c09/multidict-6.7.0-cp313-cp313t-win_arm64.whl", hash = "sha256:b4121773c49a0776461f4a904cdf6264c88e42218aaa8407e803ca8025872792", size = 45503, upload-time = "2025-10-06T14:50:50.16Z" },
+ { url = "https://files.pythonhosted.org/packages/e2/b1/3da6934455dd4b261d4c72f897e3a5728eba81db59959f3a639245891baa/multidict-6.7.0-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:3bab1e4aff7adaa34410f93b1f8e57c4b36b9af0426a76003f441ee1d3c7e842", size = 75128, upload-time = "2025-10-06T14:50:51.92Z" },
+ { url = "https://files.pythonhosted.org/packages/14/2c/f069cab5b51d175a1a2cb4ccdf7a2c2dabd58aa5bd933fa036a8d15e2404/multidict-6.7.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:b8512bac933afc3e45fb2b18da8e59b78d4f408399a960339598374d4ae3b56b", size = 44410, upload-time = "2025-10-06T14:50:53.275Z" },
+ { url = "https://files.pythonhosted.org/packages/42/e2/64bb41266427af6642b6b128e8774ed84c11b80a90702c13ac0a86bb10cc/multidict-6.7.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:79dcf9e477bc65414ebfea98ffd013cb39552b5ecd62908752e0e413d6d06e38", size = 43205, upload-time = "2025-10-06T14:50:54.911Z" },
+ { url = "https://files.pythonhosted.org/packages/02/68/6b086fef8a3f1a8541b9236c594f0c9245617c29841f2e0395d979485cde/multidict-6.7.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:31bae522710064b5cbeddaf2e9f32b1abab70ac6ac91d42572502299e9953128", size = 245084, upload-time = "2025-10-06T14:50:56.369Z" },
+ { url = "https://files.pythonhosted.org/packages/15/ee/f524093232007cd7a75c1d132df70f235cfd590a7c9eaccd7ff422ef4ae8/multidict-6.7.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4a0df7ff02397bb63e2fd22af2c87dfa39e8c7f12947bc524dbdc528282c7e34", size = 252667, upload-time = "2025-10-06T14:50:57.991Z" },
+ { url = "https://files.pythonhosted.org/packages/02/a5/eeb3f43ab45878f1895118c3ef157a480db58ede3f248e29b5354139c2c9/multidict-6.7.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7a0222514e8e4c514660e182d5156a415c13ef0aabbd71682fc714e327b95e99", size = 233590, upload-time = "2025-10-06T14:50:59.589Z" },
+ { url = "https://files.pythonhosted.org/packages/6a/1e/76d02f8270b97269d7e3dbd45644b1785bda457b474315f8cf999525a193/multidict-6.7.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2397ab4daaf2698eb51a76721e98db21ce4f52339e535725de03ea962b5a3202", size = 264112, upload-time = "2025-10-06T14:51:01.183Z" },
+ { url = "https://files.pythonhosted.org/packages/76/0b/c28a70ecb58963847c2a8efe334904cd254812b10e535aefb3bcce513918/multidict-6.7.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8891681594162635948a636c9fe0ff21746aeb3dd5463f6e25d9bea3a8a39ca1", size = 261194, upload-time = "2025-10-06T14:51:02.794Z" },
+ { url = "https://files.pythonhosted.org/packages/b4/63/2ab26e4209773223159b83aa32721b4021ffb08102f8ac7d689c943fded1/multidict-6.7.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:18706cc31dbf402a7945916dd5cddf160251b6dab8a2c5f3d6d5a55949f676b3", size = 248510, upload-time = "2025-10-06T14:51:04.724Z" },
+ { url = "https://files.pythonhosted.org/packages/93/cd/06c1fa8282af1d1c46fd55c10a7930af652afdce43999501d4d68664170c/multidict-6.7.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:f844a1bbf1d207dd311a56f383f7eda2d0e134921d45751842d8235e7778965d", size = 248395, upload-time = "2025-10-06T14:51:06.306Z" },
+ { url = "https://files.pythonhosted.org/packages/99/ac/82cb419dd6b04ccf9e7e61befc00c77614fc8134362488b553402ecd55ce/multidict-6.7.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:d4393e3581e84e5645506923816b9cc81f5609a778c7e7534054091acc64d1c6", size = 239520, upload-time = "2025-10-06T14:51:08.091Z" },
+ { url = "https://files.pythonhosted.org/packages/fa/f3/a0f9bf09493421bd8716a362e0cd1d244f5a6550f5beffdd6b47e885b331/multidict-6.7.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:fbd18dc82d7bf274b37aa48d664534330af744e03bccf696d6f4c6042e7d19e7", size = 245479, upload-time = "2025-10-06T14:51:10.365Z" },
+ { url = "https://files.pythonhosted.org/packages/8d/01/476d38fc73a212843f43c852b0eee266b6971f0e28329c2184a8df90c376/multidict-6.7.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:b6234e14f9314731ec45c42fc4554b88133ad53a09092cc48a88e771c125dadb", size = 258903, upload-time = "2025-10-06T14:51:12.466Z" },
+ { url = "https://files.pythonhosted.org/packages/49/6d/23faeb0868adba613b817d0e69c5f15531b24d462af8012c4f6de4fa8dc3/multidict-6.7.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:08d4379f9744d8f78d98c8673c06e202ffa88296f009c71bbafe8a6bf847d01f", size = 252333, upload-time = "2025-10-06T14:51:14.48Z" },
+ { url = "https://files.pythonhosted.org/packages/1e/cc/48d02ac22b30fa247f7dad82866e4b1015431092f4ba6ebc7e77596e0b18/multidict-6.7.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9fe04da3f79387f450fd0061d4dd2e45a72749d31bf634aecc9e27f24fdc4b3f", size = 243411, upload-time = "2025-10-06T14:51:16.072Z" },
+ { url = "https://files.pythonhosted.org/packages/4a/03/29a8bf5a18abf1fe34535c88adbdfa88c9fb869b5a3b120692c64abe8284/multidict-6.7.0-cp314-cp314-win32.whl", hash = "sha256:fbafe31d191dfa7c4c51f7a6149c9fb7e914dcf9ffead27dcfd9f1ae382b3885", size = 40940, upload-time = "2025-10-06T14:51:17.544Z" },
+ { url = "https://files.pythonhosted.org/packages/82/16/7ed27b680791b939de138f906d5cf2b4657b0d45ca6f5dd6236fdddafb1a/multidict-6.7.0-cp314-cp314-win_amd64.whl", hash = "sha256:2f67396ec0310764b9222a1728ced1ab638f61aadc6226f17a71dd9324f9a99c", size = 45087, upload-time = "2025-10-06T14:51:18.875Z" },
+ { url = "https://files.pythonhosted.org/packages/cd/3c/e3e62eb35a1950292fe39315d3c89941e30a9d07d5d2df42965ab041da43/multidict-6.7.0-cp314-cp314-win_arm64.whl", hash = "sha256:ba672b26069957ee369cfa7fc180dde1fc6f176eaf1e6beaf61fbebbd3d9c000", size = 42368, upload-time = "2025-10-06T14:51:20.225Z" },
+ { url = "https://files.pythonhosted.org/packages/8b/40/cd499bd0dbc5f1136726db3153042a735fffd0d77268e2ee20d5f33c010f/multidict-6.7.0-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:c1dcc7524066fa918c6a27d61444d4ee7900ec635779058571f70d042d86ed63", size = 82326, upload-time = "2025-10-06T14:51:21.588Z" },
+ { url = "https://files.pythonhosted.org/packages/13/8a/18e031eca251c8df76daf0288e6790561806e439f5ce99a170b4af30676b/multidict-6.7.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:27e0b36c2d388dc7b6ced3406671b401e84ad7eb0656b8f3a2f46ed0ce483718", size = 48065, upload-time = "2025-10-06T14:51:22.93Z" },
+ { url = "https://files.pythonhosted.org/packages/40/71/5e6701277470a87d234e433fb0a3a7deaf3bcd92566e421e7ae9776319de/multidict-6.7.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2a7baa46a22e77f0988e3b23d4ede5513ebec1929e34ee9495be535662c0dfe2", size = 46475, upload-time = "2025-10-06T14:51:24.352Z" },
+ { url = "https://files.pythonhosted.org/packages/fe/6a/bab00cbab6d9cfb57afe1663318f72ec28289ea03fd4e8236bb78429893a/multidict-6.7.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:7bf77f54997a9166a2f5675d1201520586439424c2511723a7312bdb4bcc034e", size = 239324, upload-time = "2025-10-06T14:51:25.822Z" },
+ { url = "https://files.pythonhosted.org/packages/2a/5f/8de95f629fc22a7769ade8b41028e3e5a822c1f8904f618d175945a81ad3/multidict-6.7.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e011555abada53f1578d63389610ac8a5400fc70ce71156b0aa30d326f1a5064", size = 246877, upload-time = "2025-10-06T14:51:27.604Z" },
+ { url = "https://files.pythonhosted.org/packages/23/b4/38881a960458f25b89e9f4a4fdcb02ac101cfa710190db6e5528841e67de/multidict-6.7.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:28b37063541b897fd6a318007373930a75ca6d6ac7c940dbe14731ffdd8d498e", size = 225824, upload-time = "2025-10-06T14:51:29.664Z" },
+ { url = "https://files.pythonhosted.org/packages/1e/39/6566210c83f8a261575f18e7144736059f0c460b362e96e9cf797a24b8e7/multidict-6.7.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:05047ada7a2fde2631a0ed706f1fd68b169a681dfe5e4cf0f8e4cb6618bbc2cd", size = 253558, upload-time = "2025-10-06T14:51:31.684Z" },
+ { url = "https://files.pythonhosted.org/packages/00/a3/67f18315100f64c269f46e6c0319fa87ba68f0f64f2b8e7fd7c72b913a0b/multidict-6.7.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:716133f7d1d946a4e1b91b1756b23c088881e70ff180c24e864c26192ad7534a", size = 252339, upload-time = "2025-10-06T14:51:33.699Z" },
+ { url = "https://files.pythonhosted.org/packages/c8/2a/1cb77266afee2458d82f50da41beba02159b1d6b1f7973afc9a1cad1499b/multidict-6.7.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d1bed1b467ef657f2a0ae62844a607909ef1c6889562de5e1d505f74457d0b96", size = 244895, upload-time = "2025-10-06T14:51:36.189Z" },
+ { url = "https://files.pythonhosted.org/packages/dd/72/09fa7dd487f119b2eb9524946ddd36e2067c08510576d43ff68469563b3b/multidict-6.7.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:ca43bdfa5d37bd6aee89d85e1d0831fb86e25541be7e9d376ead1b28974f8e5e", size = 241862, upload-time = "2025-10-06T14:51:41.291Z" },
+ { url = "https://files.pythonhosted.org/packages/65/92/bc1f8bd0853d8669300f732c801974dfc3702c3eeadae2f60cef54dc69d7/multidict-6.7.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:44b546bd3eb645fd26fb949e43c02a25a2e632e2ca21a35e2e132c8105dc8599", size = 232376, upload-time = "2025-10-06T14:51:43.55Z" },
+ { url = "https://files.pythonhosted.org/packages/09/86/ac39399e5cb9d0c2ac8ef6e10a768e4d3bc933ac808d49c41f9dc23337eb/multidict-6.7.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:a6ef16328011d3f468e7ebc326f24c1445f001ca1dec335b2f8e66bed3006394", size = 240272, upload-time = "2025-10-06T14:51:45.265Z" },
+ { url = "https://files.pythonhosted.org/packages/3d/b6/fed5ac6b8563ec72df6cb1ea8dac6d17f0a4a1f65045f66b6d3bf1497c02/multidict-6.7.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:5aa873cbc8e593d361ae65c68f85faadd755c3295ea2c12040ee146802f23b38", size = 248774, upload-time = "2025-10-06T14:51:46.836Z" },
+ { url = "https://files.pythonhosted.org/packages/6b/8d/b954d8c0dc132b68f760aefd45870978deec6818897389dace00fcde32ff/multidict-6.7.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:3d7b6ccce016e29df4b7ca819659f516f0bc7a4b3efa3bb2012ba06431b044f9", size = 242731, upload-time = "2025-10-06T14:51:48.541Z" },
+ { url = "https://files.pythonhosted.org/packages/16/9d/a2dac7009125d3540c2f54e194829ea18ac53716c61b655d8ed300120b0f/multidict-6.7.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:171b73bd4ee683d307599b66793ac80981b06f069b62eea1c9e29c9241aa66b0", size = 240193, upload-time = "2025-10-06T14:51:50.355Z" },
+ { url = "https://files.pythonhosted.org/packages/39/ca/c05f144128ea232ae2178b008d5011d4e2cea86e4ee8c85c2631b1b94802/multidict-6.7.0-cp314-cp314t-win32.whl", hash = "sha256:b2d7f80c4e1fd010b07cb26820aae86b7e73b681ee4889684fb8d2d4537aab13", size = 48023, upload-time = "2025-10-06T14:51:51.883Z" },
+ { url = "https://files.pythonhosted.org/packages/ba/8f/0a60e501584145588be1af5cc829265701ba3c35a64aec8e07cbb71d39bb/multidict-6.7.0-cp314-cp314t-win_amd64.whl", hash = "sha256:09929cab6fcb68122776d575e03c6cc64ee0b8fca48d17e135474b042ce515cd", size = 53507, upload-time = "2025-10-06T14:51:53.672Z" },
+ { url = "https://files.pythonhosted.org/packages/7f/ae/3148b988a9c6239903e786eac19c889fab607c31d6efa7fb2147e5680f23/multidict-6.7.0-cp314-cp314t-win_arm64.whl", hash = "sha256:cc41db090ed742f32bd2d2c721861725e6109681eddf835d0a82bd3a5c382827", size = 44804, upload-time = "2025-10-06T14:51:55.415Z" },
{ url = "https://files.pythonhosted.org/packages/b7/da/7d22601b625e241d4f23ef1ebff8acfc60da633c9e7e7922e24d10f592b3/multidict-6.7.0-py3-none-any.whl", hash = "sha256:394fc5c42a333c9ffc3e421a4c85e08580d990e08b99f6bf35b4132114c5dcb3", size = 12317, upload-time = "2025-10-06T14:52:29.272Z" },
]
@@ -1852,41 +2234,48 @@ wheels = [
[[package]]
name = "mypy"
-version = "1.18.2"
+version = "1.19.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
+ { name = "librt", marker = "platform_python_implementation != 'PyPy'" },
{ name = "mypy-extensions" },
{ name = "pathspec" },
{ name = "tomli", marker = "python_full_version < '3.11'" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/c0/77/8f0d0001ffad290cef2f7f216f96c814866248a0b92a722365ed54648e7e/mypy-1.18.2.tar.gz", hash = "sha256:06a398102a5f203d7477b2923dda3634c36727fa5c237d8f859ef90c42a9924b", size = 3448846, upload-time = "2025-09-19T00:11:10.519Z" }
-wheels = [
- { url = "https://files.pythonhosted.org/packages/03/6f/657961a0743cff32e6c0611b63ff1c1970a0b482ace35b069203bf705187/mypy-1.18.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c1eab0cf6294dafe397c261a75f96dc2c31bffe3b944faa24db5def4e2b0f77c", size = 12807973, upload-time = "2025-09-19T00:10:35.282Z" },
- { url = "https://files.pythonhosted.org/packages/10/e9/420822d4f661f13ca8900f5fa239b40ee3be8b62b32f3357df9a3045a08b/mypy-1.18.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:7a780ca61fc239e4865968ebc5240bb3bf610ef59ac398de9a7421b54e4a207e", size = 11896527, upload-time = "2025-09-19T00:10:55.791Z" },
- { url = "https://files.pythonhosted.org/packages/aa/73/a05b2bbaa7005f4642fcfe40fb73f2b4fb6bb44229bd585b5878e9a87ef8/mypy-1.18.2-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:448acd386266989ef11662ce3c8011fd2a7b632e0ec7d61a98edd8e27472225b", size = 12507004, upload-time = "2025-09-19T00:11:05.411Z" },
- { url = "https://files.pythonhosted.org/packages/4f/01/f6e4b9f0d031c11ccbd6f17da26564f3a0f3c4155af344006434b0a05a9d/mypy-1.18.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f9e171c465ad3901dc652643ee4bffa8e9fef4d7d0eece23b428908c77a76a66", size = 13245947, upload-time = "2025-09-19T00:10:46.923Z" },
- { url = "https://files.pythonhosted.org/packages/d7/97/19727e7499bfa1ae0773d06afd30ac66a58ed7437d940c70548634b24185/mypy-1.18.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:592ec214750bc00741af1f80cbf96b5013d81486b7bb24cb052382c19e40b428", size = 13499217, upload-time = "2025-09-19T00:09:39.472Z" },
- { url = "https://files.pythonhosted.org/packages/9f/4f/90dc8c15c1441bf31cf0f9918bb077e452618708199e530f4cbd5cede6ff/mypy-1.18.2-cp310-cp310-win_amd64.whl", hash = "sha256:7fb95f97199ea11769ebe3638c29b550b5221e997c63b14ef93d2e971606ebed", size = 9766753, upload-time = "2025-09-19T00:10:49.161Z" },
- { url = "https://files.pythonhosted.org/packages/88/87/cafd3ae563f88f94eec33f35ff722d043e09832ea8530ef149ec1efbaf08/mypy-1.18.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:807d9315ab9d464125aa9fcf6d84fde6e1dc67da0b6f80e7405506b8ac72bc7f", size = 12731198, upload-time = "2025-09-19T00:09:44.857Z" },
- { url = "https://files.pythonhosted.org/packages/0f/e0/1e96c3d4266a06d4b0197ace5356d67d937d8358e2ee3ffac71faa843724/mypy-1.18.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:776bb00de1778caf4db739c6e83919c1d85a448f71979b6a0edd774ea8399341", size = 11817879, upload-time = "2025-09-19T00:09:47.131Z" },
- { url = "https://files.pythonhosted.org/packages/72/ef/0c9ba89eb03453e76bdac5a78b08260a848c7bfc5d6603634774d9cd9525/mypy-1.18.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1379451880512ffce14505493bd9fe469e0697543717298242574882cf8cdb8d", size = 12427292, upload-time = "2025-09-19T00:10:22.472Z" },
- { url = "https://files.pythonhosted.org/packages/1a/52/ec4a061dd599eb8179d5411d99775bec2a20542505988f40fc2fee781068/mypy-1.18.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1331eb7fd110d60c24999893320967594ff84c38ac6d19e0a76c5fd809a84c86", size = 13163750, upload-time = "2025-09-19T00:09:51.472Z" },
- { url = "https://files.pythonhosted.org/packages/c4/5f/2cf2ceb3b36372d51568f2208c021870fe7834cf3186b653ac6446511839/mypy-1.18.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:3ca30b50a51e7ba93b00422e486cbb124f1c56a535e20eff7b2d6ab72b3b2e37", size = 13351827, upload-time = "2025-09-19T00:09:58.311Z" },
- { url = "https://files.pythonhosted.org/packages/c8/7d/2697b930179e7277529eaaec1513f8de622818696857f689e4a5432e5e27/mypy-1.18.2-cp311-cp311-win_amd64.whl", hash = "sha256:664dc726e67fa54e14536f6e1224bcfce1d9e5ac02426d2326e2bb4e081d1ce8", size = 9757983, upload-time = "2025-09-19T00:10:09.071Z" },
- { url = "https://files.pythonhosted.org/packages/07/06/dfdd2bc60c66611dd8335f463818514733bc763e4760dee289dcc33df709/mypy-1.18.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:33eca32dd124b29400c31d7cf784e795b050ace0e1f91b8dc035672725617e34", size = 12908273, upload-time = "2025-09-19T00:10:58.321Z" },
- { url = "https://files.pythonhosted.org/packages/81/14/6a9de6d13a122d5608e1a04130724caf9170333ac5a924e10f670687d3eb/mypy-1.18.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a3c47adf30d65e89b2dcd2fa32f3aeb5e94ca970d2c15fcb25e297871c8e4764", size = 11920910, upload-time = "2025-09-19T00:10:20.043Z" },
- { url = "https://files.pythonhosted.org/packages/5f/a9/b29de53e42f18e8cc547e38daa9dfa132ffdc64f7250e353f5c8cdd44bee/mypy-1.18.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5d6c838e831a062f5f29d11c9057c6009f60cb294fea33a98422688181fe2893", size = 12465585, upload-time = "2025-09-19T00:10:33.005Z" },
- { url = "https://files.pythonhosted.org/packages/77/ae/6c3d2c7c61ff21f2bee938c917616c92ebf852f015fb55917fd6e2811db2/mypy-1.18.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:01199871b6110a2ce984bde85acd481232d17413868c9807e95c1b0739a58914", size = 13348562, upload-time = "2025-09-19T00:10:11.51Z" },
- { url = "https://files.pythonhosted.org/packages/4d/31/aec68ab3b4aebdf8f36d191b0685d99faa899ab990753ca0fee60fb99511/mypy-1.18.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:a2afc0fa0b0e91b4599ddfe0f91e2c26c2b5a5ab263737e998d6817874c5f7c8", size = 13533296, upload-time = "2025-09-19T00:10:06.568Z" },
- { url = "https://files.pythonhosted.org/packages/9f/83/abcb3ad9478fca3ebeb6a5358bb0b22c95ea42b43b7789c7fb1297ca44f4/mypy-1.18.2-cp312-cp312-win_amd64.whl", hash = "sha256:d8068d0afe682c7c4897c0f7ce84ea77f6de953262b12d07038f4d296d547074", size = 9828828, upload-time = "2025-09-19T00:10:28.203Z" },
- { url = "https://files.pythonhosted.org/packages/5f/04/7f462e6fbba87a72bc8097b93f6842499c428a6ff0c81dd46948d175afe8/mypy-1.18.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:07b8b0f580ca6d289e69209ec9d3911b4a26e5abfde32228a288eb79df129fcc", size = 12898728, upload-time = "2025-09-19T00:10:01.33Z" },
- { url = "https://files.pythonhosted.org/packages/99/5b/61ed4efb64f1871b41fd0b82d29a64640f3516078f6c7905b68ab1ad8b13/mypy-1.18.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:ed4482847168439651d3feee5833ccedbf6657e964572706a2adb1f7fa4dfe2e", size = 11910758, upload-time = "2025-09-19T00:10:42.607Z" },
- { url = "https://files.pythonhosted.org/packages/3c/46/d297d4b683cc89a6e4108c4250a6a6b717f5fa96e1a30a7944a6da44da35/mypy-1.18.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c3ad2afadd1e9fea5cf99a45a822346971ede8685cc581ed9cd4d42eaf940986", size = 12475342, upload-time = "2025-09-19T00:11:00.371Z" },
- { url = "https://files.pythonhosted.org/packages/83/45/4798f4d00df13eae3bfdf726c9244bcb495ab5bd588c0eed93a2f2dd67f3/mypy-1.18.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a431a6f1ef14cf8c144c6b14793a23ec4eae3db28277c358136e79d7d062f62d", size = 13338709, upload-time = "2025-09-19T00:11:03.358Z" },
- { url = "https://files.pythonhosted.org/packages/d7/09/479f7358d9625172521a87a9271ddd2441e1dab16a09708f056e97007207/mypy-1.18.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:7ab28cc197f1dd77a67e1c6f35cd1f8e8b73ed2217e4fc005f9e6a504e46e7ba", size = 13529806, upload-time = "2025-09-19T00:10:26.073Z" },
- { url = "https://files.pythonhosted.org/packages/71/cf/ac0f2c7e9d0ea3c75cd99dff7aec1c9df4a1376537cb90e4c882267ee7e9/mypy-1.18.2-cp313-cp313-win_amd64.whl", hash = "sha256:0e2785a84b34a72ba55fb5daf079a1003a34c05b22238da94fcae2bbe46f3544", size = 9833262, upload-time = "2025-09-19T00:10:40.035Z" },
- { url = "https://files.pythonhosted.org/packages/87/e3/be76d87158ebafa0309946c4a73831974d4d6ab4f4ef40c3b53a385a66fd/mypy-1.18.2-py3-none-any.whl", hash = "sha256:22a1748707dd62b58d2ae53562ffc4d7f8bcc727e8ac7cbc69c053ddc874d47e", size = 2352367, upload-time = "2025-09-19T00:10:15.489Z" },
+sdist = { url = "https://files.pythonhosted.org/packages/f5/db/4efed9504bc01309ab9c2da7e352cc223569f05478012b5d9ece38fd44d2/mypy-1.19.1.tar.gz", hash = "sha256:19d88bb05303fe63f71dd2c6270daca27cb9401c4ca8255fe50d1d920e0eb9ba", size = 3582404, upload-time = "2025-12-15T05:03:48.42Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/2f/63/e499890d8e39b1ff2df4c0c6ce5d371b6844ee22b8250687a99fd2f657a8/mypy-1.19.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5f05aa3d375b385734388e844bc01733bd33c644ab48e9684faa54e5389775ec", size = 13101333, upload-time = "2025-12-15T05:03:03.28Z" },
+ { url = "https://files.pythonhosted.org/packages/72/4b/095626fc136fba96effc4fd4a82b41d688ab92124f8c4f7564bffe5cf1b0/mypy-1.19.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:022ea7279374af1a5d78dfcab853fe6a536eebfda4b59deab53cd21f6cd9f00b", size = 12164102, upload-time = "2025-12-15T05:02:33.611Z" },
+ { url = "https://files.pythonhosted.org/packages/0c/5b/952928dd081bf88a83a5ccd49aaecfcd18fd0d2710c7ff07b8fb6f7032b9/mypy-1.19.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee4c11e460685c3e0c64a4c5de82ae143622410950d6be863303a1c4ba0e36d6", size = 12765799, upload-time = "2025-12-15T05:03:28.44Z" },
+ { url = "https://files.pythonhosted.org/packages/2a/0d/93c2e4a287f74ef11a66fb6d49c7a9f05e47b0a4399040e6719b57f500d2/mypy-1.19.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:de759aafbae8763283b2ee5869c7255391fbc4de3ff171f8f030b5ec48381b74", size = 13522149, upload-time = "2025-12-15T05:02:36.011Z" },
+ { url = "https://files.pythonhosted.org/packages/7b/0e/33a294b56aaad2b338d203e3a1d8b453637ac36cb278b45005e0901cf148/mypy-1.19.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:ab43590f9cd5108f41aacf9fca31841142c786827a74ab7cc8a2eacb634e09a1", size = 13810105, upload-time = "2025-12-15T05:02:40.327Z" },
+ { url = "https://files.pythonhosted.org/packages/0e/fd/3e82603a0cb66b67c5e7abababce6bf1a929ddf67bf445e652684af5c5a0/mypy-1.19.1-cp310-cp310-win_amd64.whl", hash = "sha256:2899753e2f61e571b3971747e302d5f420c3fd09650e1951e99f823bc3089dac", size = 10057200, upload-time = "2025-12-15T05:02:51.012Z" },
+ { url = "https://files.pythonhosted.org/packages/ef/47/6b3ebabd5474d9cdc170d1342fbf9dddc1b0ec13ec90bf9004ee6f391c31/mypy-1.19.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:d8dfc6ab58ca7dda47d9237349157500468e404b17213d44fc1cb77bce532288", size = 13028539, upload-time = "2025-12-15T05:03:44.129Z" },
+ { url = "https://files.pythonhosted.org/packages/5c/a6/ac7c7a88a3c9c54334f53a941b765e6ec6c4ebd65d3fe8cdcfbe0d0fd7db/mypy-1.19.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e3f276d8493c3c97930e354b2595a44a21348b320d859fb4a2b9f66da9ed27ab", size = 12083163, upload-time = "2025-12-15T05:03:37.679Z" },
+ { url = "https://files.pythonhosted.org/packages/67/af/3afa9cf880aa4a2c803798ac24f1d11ef72a0c8079689fac5cfd815e2830/mypy-1.19.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2abb24cf3f17864770d18d673c85235ba52456b36a06b6afc1e07c1fdcd3d0e6", size = 12687629, upload-time = "2025-12-15T05:02:31.526Z" },
+ { url = "https://files.pythonhosted.org/packages/2d/46/20f8a7114a56484ab268b0ab372461cb3a8f7deed31ea96b83a4e4cfcfca/mypy-1.19.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a009ffa5a621762d0c926a078c2d639104becab69e79538a494bcccb62cc0331", size = 13436933, upload-time = "2025-12-15T05:03:15.606Z" },
+ { url = "https://files.pythonhosted.org/packages/5b/f8/33b291ea85050a21f15da910002460f1f445f8007adb29230f0adea279cb/mypy-1.19.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f7cee03c9a2e2ee26ec07479f38ea9c884e301d42c6d43a19d20fb014e3ba925", size = 13661754, upload-time = "2025-12-15T05:02:26.731Z" },
+ { url = "https://files.pythonhosted.org/packages/fd/a3/47cbd4e85bec4335a9cd80cf67dbc02be21b5d4c9c23ad6b95d6c5196bac/mypy-1.19.1-cp311-cp311-win_amd64.whl", hash = "sha256:4b84a7a18f41e167f7995200a1d07a4a6810e89d29859df936f1c3923d263042", size = 10055772, upload-time = "2025-12-15T05:03:26.179Z" },
+ { url = "https://files.pythonhosted.org/packages/06/8a/19bfae96f6615aa8a0604915512e0289b1fad33d5909bf7244f02935d33a/mypy-1.19.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:a8174a03289288c1f6c46d55cef02379b478bfbc8e358e02047487cad44c6ca1", size = 13206053, upload-time = "2025-12-15T05:03:46.622Z" },
+ { url = "https://files.pythonhosted.org/packages/a5/34/3e63879ab041602154ba2a9f99817bb0c85c4df19a23a1443c8986e4d565/mypy-1.19.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ffcebe56eb09ff0c0885e750036a095e23793ba6c2e894e7e63f6d89ad51f22e", size = 12219134, upload-time = "2025-12-15T05:03:24.367Z" },
+ { url = "https://files.pythonhosted.org/packages/89/cc/2db6f0e95366b630364e09845672dbee0cbf0bbe753a204b29a944967cd9/mypy-1.19.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b64d987153888790bcdb03a6473d321820597ab8dd9243b27a92153c4fa50fd2", size = 12731616, upload-time = "2025-12-15T05:02:44.725Z" },
+ { url = "https://files.pythonhosted.org/packages/00/be/dd56c1fd4807bc1eba1cf18b2a850d0de7bacb55e158755eb79f77c41f8e/mypy-1.19.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c35d298c2c4bba75feb2195655dfea8124d855dfd7343bf8b8c055421eaf0cf8", size = 13620847, upload-time = "2025-12-15T05:03:39.633Z" },
+ { url = "https://files.pythonhosted.org/packages/6d/42/332951aae42b79329f743bf1da088cd75d8d4d9acc18fbcbd84f26c1af4e/mypy-1.19.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:34c81968774648ab5ac09c29a375fdede03ba253f8f8287847bd480782f73a6a", size = 13834976, upload-time = "2025-12-15T05:03:08.786Z" },
+ { url = "https://files.pythonhosted.org/packages/6f/63/e7493e5f90e1e085c562bb06e2eb32cae27c5057b9653348d38b47daaecc/mypy-1.19.1-cp312-cp312-win_amd64.whl", hash = "sha256:b10e7c2cd7870ba4ad9b2d8a6102eb5ffc1f16ca35e3de6bfa390c1113029d13", size = 10118104, upload-time = "2025-12-15T05:03:10.834Z" },
+ { url = "https://files.pythonhosted.org/packages/de/9f/a6abae693f7a0c697dbb435aac52e958dc8da44e92e08ba88d2e42326176/mypy-1.19.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e3157c7594ff2ef1634ee058aafc56a82db665c9438fd41b390f3bde1ab12250", size = 13201927, upload-time = "2025-12-15T05:02:29.138Z" },
+ { url = "https://files.pythonhosted.org/packages/9a/a4/45c35ccf6e1c65afc23a069f50e2c66f46bd3798cbe0d680c12d12935caa/mypy-1.19.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:bdb12f69bcc02700c2b47e070238f42cb87f18c0bc1fc4cdb4fb2bc5fd7a3b8b", size = 12206730, upload-time = "2025-12-15T05:03:01.325Z" },
+ { url = "https://files.pythonhosted.org/packages/05/bb/cdcf89678e26b187650512620eec8368fded4cfd99cfcb431e4cdfd19dec/mypy-1.19.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f859fb09d9583a985be9a493d5cfc5515b56b08f7447759a0c5deaf68d80506e", size = 12724581, upload-time = "2025-12-15T05:03:20.087Z" },
+ { url = "https://files.pythonhosted.org/packages/d1/32/dd260d52babf67bad8e6770f8e1102021877ce0edea106e72df5626bb0ec/mypy-1.19.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c9a6538e0415310aad77cb94004ca6482330fece18036b5f360b62c45814c4ef", size = 13616252, upload-time = "2025-12-15T05:02:49.036Z" },
+ { url = "https://files.pythonhosted.org/packages/71/d0/5e60a9d2e3bd48432ae2b454b7ef2b62a960ab51292b1eda2a95edd78198/mypy-1.19.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:da4869fc5e7f62a88f3fe0b5c919d1d9f7ea3cef92d3689de2823fd27e40aa75", size = 13840848, upload-time = "2025-12-15T05:02:55.95Z" },
+ { url = "https://files.pythonhosted.org/packages/98/76/d32051fa65ecf6cc8c6610956473abdc9b4c43301107476ac03559507843/mypy-1.19.1-cp313-cp313-win_amd64.whl", hash = "sha256:016f2246209095e8eda7538944daa1d60e1e8134d98983b9fc1e92c1fc0cb8dd", size = 10135510, upload-time = "2025-12-15T05:02:58.438Z" },
+ { url = "https://files.pythonhosted.org/packages/de/eb/b83e75f4c820c4247a58580ef86fcd35165028f191e7e1ba57128c52782d/mypy-1.19.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:06e6170bd5836770e8104c8fdd58e5e725cfeb309f0a6c681a811f557e97eac1", size = 13199744, upload-time = "2025-12-15T05:03:30.823Z" },
+ { url = "https://files.pythonhosted.org/packages/94/28/52785ab7bfa165f87fcbb61547a93f98bb20e7f82f90f165a1f69bce7b3d/mypy-1.19.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:804bd67b8054a85447c8954215a906d6eff9cabeabe493fb6334b24f4bfff718", size = 12215815, upload-time = "2025-12-15T05:02:42.323Z" },
+ { url = "https://files.pythonhosted.org/packages/0a/c6/bdd60774a0dbfb05122e3e925f2e9e846c009e479dcec4821dad881f5b52/mypy-1.19.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:21761006a7f497cb0d4de3d8ef4ca70532256688b0523eee02baf9eec895e27b", size = 12740047, upload-time = "2025-12-15T05:03:33.168Z" },
+ { url = "https://files.pythonhosted.org/packages/32/2a/66ba933fe6c76bd40d1fe916a83f04fed253152f451a877520b3c4a5e41e/mypy-1.19.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:28902ee51f12e0f19e1e16fbe2f8f06b6637f482c459dd393efddd0ec7f82045", size = 13601998, upload-time = "2025-12-15T05:03:13.056Z" },
+ { url = "https://files.pythonhosted.org/packages/e3/da/5055c63e377c5c2418760411fd6a63ee2b96cf95397259038756c042574f/mypy-1.19.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:481daf36a4c443332e2ae9c137dfee878fcea781a2e3f895d54bd3002a900957", size = 13807476, upload-time = "2025-12-15T05:03:17.977Z" },
+ { url = "https://files.pythonhosted.org/packages/cd/09/4ebd873390a063176f06b0dbf1f7783dd87bd120eae7727fa4ae4179b685/mypy-1.19.1-cp314-cp314-win_amd64.whl", hash = "sha256:8bb5c6f6d043655e055be9b542aa5f3bdd30e4f3589163e85f93f3640060509f", size = 10281872, upload-time = "2025-12-15T05:03:05.549Z" },
+ { url = "https://files.pythonhosted.org/packages/8d/f4/4ce9a05ce5ded1de3ec1c1d96cf9f9504a04e54ce0ed55cfa38619a32b8d/mypy-1.19.1-py3-none-any.whl", hash = "sha256:f1235f5ea01b7db5468d53ece6aaddf1ad0b88d9e7462b86ef96fe04995d7247", size = 2471239, upload-time = "2025-12-15T05:03:07.248Z" },
]
[[package]]
@@ -1914,7 +2303,7 @@ wheels = [
[[package]]
name = "networkx"
-version = "3.5"
+version = "3.6.1"
source = { registry = "https://pypi.org/simple" }
resolution-markers = [
"python_full_version >= '3.12' and sys_platform == 'darwin'",
@@ -1924,18 +2313,18 @@ resolution-markers = [
"python_full_version == '3.11.*' and platform_machine == 'aarch64' and sys_platform == 'linux'",
"(python_full_version == '3.11.*' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version == '3.11.*' and sys_platform != 'darwin' and sys_platform != 'linux')",
]
-sdist = { url = "https://files.pythonhosted.org/packages/6c/4f/ccdb8ad3a38e583f214547fd2f7ff1fc160c43a75af88e6aec213404b96a/networkx-3.5.tar.gz", hash = "sha256:d4c6f9cf81f52d69230866796b82afbccdec3db7ae4fbd1b65ea750feed50037", size = 2471065, upload-time = "2025-05-29T11:35:07.804Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/6a/51/63fe664f3908c97be9d2e4f1158eb633317598cfa6e1fc14af5383f17512/networkx-3.6.1.tar.gz", hash = "sha256:26b7c357accc0c8cde558ad486283728b65b6a95d85ee1cd66bafab4c8168509", size = 2517025, upload-time = "2025-12-08T17:02:39.908Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/eb/8d/776adee7bbf76365fdd7f2552710282c79a4ead5d2a46408c9043a2b70ba/networkx-3.5-py3-none-any.whl", hash = "sha256:0030d386a9a06dee3565298b4a734b68589749a544acbb6c412dc9e2489ec6ec", size = 2034406, upload-time = "2025-05-29T11:35:04.961Z" },
+ { url = "https://files.pythonhosted.org/packages/9e/c9/b2622292ea83fbb4ec318f5b9ab867d0a28ab43c5717bb85b0a5f6b3b0a4/networkx-3.6.1-py3-none-any.whl", hash = "sha256:d47fbf302e7d9cbbb9e2555a0d267983d2aa476bac30e90dfbe5669bd57f3762", size = 2068504, upload-time = "2025-12-08T17:02:38.159Z" },
]
[[package]]
name = "nodeenv"
-version = "1.9.1"
+version = "1.10.0"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/43/16/fc88b08840de0e0a72a2f9d8c6bae36be573e475a6326ae854bcc549fc45/nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f", size = 47437, upload-time = "2024-06-04T18:44:11.171Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/24/bf/d1bda4f6168e0b2e9e5958945e01910052158313224ada5ce1fb2e1113b8/nodeenv-1.10.0.tar.gz", hash = "sha256:996c191ad80897d076bdfba80a41994c2b47c68e224c542b48feba42ba00f8bb", size = 55611, upload-time = "2025-12-20T14:08:54.006Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/d2/1d/1b658dbd2b9fa9c4c9f32accbfc0205d532c8c6194dc0f2a4c0428e7128a/nodeenv-1.9.1-py2.py3-none-any.whl", hash = "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9", size = 22314, upload-time = "2024-06-04T18:44:08.352Z" },
+ { url = "https://files.pythonhosted.org/packages/88/b2/d0896bdcdc8d28a7fc5717c305f1a861c26e18c05047949fb371034d98bd/nodeenv-1.10.0-py2.py3-none-any.whl", hash = "sha256:5bb13e3eed2923615535339b3c620e76779af4cb4c6a90deccc9e36b274d3827", size = 23438, upload-time = "2025-12-20T14:08:52.782Z" },
]
[[package]]
@@ -2007,7 +2396,7 @@ wheels = [
[[package]]
name = "numpy"
-version = "2.3.5"
+version = "2.4.0"
source = { registry = "https://pypi.org/simple" }
resolution-markers = [
"python_full_version >= '3.12' and sys_platform == 'darwin'",
@@ -2017,59 +2406,79 @@ resolution-markers = [
"python_full_version == '3.11.*' and platform_machine == 'aarch64' and sys_platform == 'linux'",
"(python_full_version == '3.11.*' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version == '3.11.*' and sys_platform != 'darwin' and sys_platform != 'linux')",
]
-sdist = { url = "https://files.pythonhosted.org/packages/76/65/21b3bc86aac7b8f2862db1e808f1ea22b028e30a225a34a5ede9bf8678f2/numpy-2.3.5.tar.gz", hash = "sha256:784db1dcdab56bf0517743e746dfb0f885fc68d948aba86eeec2cba234bdf1c0", size = 20584950, upload-time = "2025-11-16T22:52:42.067Z" }
-wheels = [
- { url = "https://files.pythonhosted.org/packages/43/77/84dd1d2e34d7e2792a236ba180b5e8fcc1e3e414e761ce0253f63d7f572e/numpy-2.3.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:de5672f4a7b200c15a4127042170a694d4df43c992948f5e1af57f0174beed10", size = 17034641, upload-time = "2025-11-16T22:49:19.336Z" },
- { url = "https://files.pythonhosted.org/packages/2a/ea/25e26fa5837106cde46ae7d0b667e20f69cbbc0efd64cba8221411ab26ae/numpy-2.3.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:acfd89508504a19ed06ef963ad544ec6664518c863436306153e13e94605c218", size = 12528324, upload-time = "2025-11-16T22:49:22.582Z" },
- { url = "https://files.pythonhosted.org/packages/4d/1a/e85f0eea4cf03d6a0228f5c0256b53f2df4bc794706e7df019fc622e47f1/numpy-2.3.5-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:ffe22d2b05504f786c867c8395de703937f934272eb67586817b46188b4ded6d", size = 5356872, upload-time = "2025-11-16T22:49:25.408Z" },
- { url = "https://files.pythonhosted.org/packages/5c/bb/35ef04afd567f4c989c2060cde39211e4ac5357155c1833bcd1166055c61/numpy-2.3.5-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:872a5cf366aec6bb1147336480fef14c9164b154aeb6542327de4970282cd2f5", size = 6893148, upload-time = "2025-11-16T22:49:27.549Z" },
- { url = "https://files.pythonhosted.org/packages/f2/2b/05bbeb06e2dff5eab512dfc678b1cc5ee94d8ac5956a0885c64b6b26252b/numpy-2.3.5-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3095bdb8dd297e5920b010e96134ed91d852d81d490e787beca7e35ae1d89cf7", size = 14557282, upload-time = "2025-11-16T22:49:30.964Z" },
- { url = "https://files.pythonhosted.org/packages/65/fb/2b23769462b34398d9326081fad5655198fcf18966fcb1f1e49db44fbf31/numpy-2.3.5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8cba086a43d54ca804ce711b2a940b16e452807acebe7852ff327f1ecd49b0d4", size = 16897903, upload-time = "2025-11-16T22:49:34.191Z" },
- { url = "https://files.pythonhosted.org/packages/ac/14/085f4cf05fc3f1e8aa95e85404e984ffca9b2275a5dc2b1aae18a67538b8/numpy-2.3.5-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6cf9b429b21df6b99f4dee7a1218b8b7ffbbe7df8764dc0bd60ce8a0708fed1e", size = 16341672, upload-time = "2025-11-16T22:49:37.2Z" },
- { url = "https://files.pythonhosted.org/packages/6f/3b/1f73994904142b2aa290449b3bb99772477b5fd94d787093e4f24f5af763/numpy-2.3.5-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:396084a36abdb603546b119d96528c2f6263921c50df3c8fd7cb28873a237748", size = 18838896, upload-time = "2025-11-16T22:49:39.727Z" },
- { url = "https://files.pythonhosted.org/packages/cd/b9/cf6649b2124f288309ffc353070792caf42ad69047dcc60da85ee85fea58/numpy-2.3.5-cp311-cp311-win32.whl", hash = "sha256:b0c7088a73aef3d687c4deef8452a3ac7c1be4e29ed8bf3b366c8111128ac60c", size = 6563608, upload-time = "2025-11-16T22:49:42.079Z" },
- { url = "https://files.pythonhosted.org/packages/aa/44/9fe81ae1dcc29c531843852e2874080dc441338574ccc4306b39e2ff6e59/numpy-2.3.5-cp311-cp311-win_amd64.whl", hash = "sha256:a414504bef8945eae5f2d7cb7be2d4af77c5d1cb5e20b296c2c25b61dff2900c", size = 13078442, upload-time = "2025-11-16T22:49:43.99Z" },
- { url = "https://files.pythonhosted.org/packages/6d/a7/f99a41553d2da82a20a2f22e93c94f928e4490bb447c9ff3c4ff230581d3/numpy-2.3.5-cp311-cp311-win_arm64.whl", hash = "sha256:0cd00b7b36e35398fa2d16af7b907b65304ef8bb4817a550e06e5012929830fa", size = 10458555, upload-time = "2025-11-16T22:49:47.092Z" },
- { url = "https://files.pythonhosted.org/packages/44/37/e669fe6cbb2b96c62f6bbedc6a81c0f3b7362f6a59230b23caa673a85721/numpy-2.3.5-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:74ae7b798248fe62021dbf3c914245ad45d1a6b0cb4a29ecb4b31d0bfbc4cc3e", size = 16733873, upload-time = "2025-11-16T22:49:49.84Z" },
- { url = "https://files.pythonhosted.org/packages/c5/65/df0db6c097892c9380851ab9e44b52d4f7ba576b833996e0080181c0c439/numpy-2.3.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ee3888d9ff7c14604052b2ca5535a30216aa0a58e948cdd3eeb8d3415f638769", size = 12259838, upload-time = "2025-11-16T22:49:52.863Z" },
- { url = "https://files.pythonhosted.org/packages/5b/e1/1ee06e70eb2136797abe847d386e7c0e830b67ad1d43f364dd04fa50d338/numpy-2.3.5-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:612a95a17655e213502f60cfb9bf9408efdc9eb1d5f50535cc6eb365d11b42b5", size = 5088378, upload-time = "2025-11-16T22:49:55.055Z" },
- { url = "https://files.pythonhosted.org/packages/6d/9c/1ca85fb86708724275103b81ec4cf1ac1d08f465368acfc8da7ab545bdae/numpy-2.3.5-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:3101e5177d114a593d79dd79658650fe28b5a0d8abeb8ce6f437c0e6df5be1a4", size = 6628559, upload-time = "2025-11-16T22:49:57.371Z" },
- { url = "https://files.pythonhosted.org/packages/74/78/fcd41e5a0ce4f3f7b003da85825acddae6d7ecb60cf25194741b036ca7d6/numpy-2.3.5-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8b973c57ff8e184109db042c842423ff4f60446239bd585a5131cc47f06f789d", size = 14250702, upload-time = "2025-11-16T22:49:59.632Z" },
- { url = "https://files.pythonhosted.org/packages/b6/23/2a1b231b8ff672b4c450dac27164a8b2ca7d9b7144f9c02d2396518352eb/numpy-2.3.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0d8163f43acde9a73c2a33605353a4f1bc4798745a8b1d73183b28e5b435ae28", size = 16606086, upload-time = "2025-11-16T22:50:02.127Z" },
- { url = "https://files.pythonhosted.org/packages/a0/c5/5ad26fbfbe2012e190cc7d5003e4d874b88bb18861d0829edc140a713021/numpy-2.3.5-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:51c1e14eb1e154ebd80e860722f9e6ed6ec89714ad2db2d3aa33c31d7c12179b", size = 16025985, upload-time = "2025-11-16T22:50:04.536Z" },
- { url = "https://files.pythonhosted.org/packages/d2/fa/dd48e225c46c819288148d9d060b047fd2a6fb1eb37eae25112ee4cb4453/numpy-2.3.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b46b4ec24f7293f23adcd2d146960559aaf8020213de8ad1909dba6c013bf89c", size = 18542976, upload-time = "2025-11-16T22:50:07.557Z" },
- { url = "https://files.pythonhosted.org/packages/05/79/ccbd23a75862d95af03d28b5c6901a1b7da4803181513d52f3b86ed9446e/numpy-2.3.5-cp312-cp312-win32.whl", hash = "sha256:3997b5b3c9a771e157f9aae01dd579ee35ad7109be18db0e85dbdbe1de06e952", size = 6285274, upload-time = "2025-11-16T22:50:10.746Z" },
- { url = "https://files.pythonhosted.org/packages/2d/57/8aeaf160312f7f489dea47ab61e430b5cb051f59a98ae68b7133ce8fa06a/numpy-2.3.5-cp312-cp312-win_amd64.whl", hash = "sha256:86945f2ee6d10cdfd67bcb4069c1662dd711f7e2a4343db5cecec06b87cf31aa", size = 12782922, upload-time = "2025-11-16T22:50:12.811Z" },
- { url = "https://files.pythonhosted.org/packages/78/a6/aae5cc2ca78c45e64b9ef22f089141d661516856cf7c8a54ba434576900d/numpy-2.3.5-cp312-cp312-win_arm64.whl", hash = "sha256:f28620fe26bee16243be2b7b874da327312240a7cdc38b769a697578d2100013", size = 10194667, upload-time = "2025-11-16T22:50:16.16Z" },
- { url = "https://files.pythonhosted.org/packages/db/69/9cde09f36da4b5a505341180a3f2e6fadc352fd4d2b7096ce9778db83f1a/numpy-2.3.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d0f23b44f57077c1ede8c5f26b30f706498b4862d3ff0a7298b8411dd2f043ff", size = 16728251, upload-time = "2025-11-16T22:50:19.013Z" },
- { url = "https://files.pythonhosted.org/packages/79/fb/f505c95ceddd7027347b067689db71ca80bd5ecc926f913f1a23e65cf09b/numpy-2.3.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:aa5bc7c5d59d831d9773d1170acac7893ce3a5e130540605770ade83280e7188", size = 12254652, upload-time = "2025-11-16T22:50:21.487Z" },
- { url = "https://files.pythonhosted.org/packages/78/da/8c7738060ca9c31b30e9301ee0cf6c5ffdbf889d9593285a1cead337f9a5/numpy-2.3.5-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:ccc933afd4d20aad3c00bcef049cb40049f7f196e0397f1109dba6fed63267b0", size = 5083172, upload-time = "2025-11-16T22:50:24.562Z" },
- { url = "https://files.pythonhosted.org/packages/a4/b4/ee5bb2537fb9430fd2ef30a616c3672b991a4129bb1c7dcc42aa0abbe5d7/numpy-2.3.5-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:afaffc4393205524af9dfa400fa250143a6c3bc646c08c9f5e25a9f4b4d6a903", size = 6622990, upload-time = "2025-11-16T22:50:26.47Z" },
- { url = "https://files.pythonhosted.org/packages/95/03/dc0723a013c7d7c19de5ef29e932c3081df1c14ba582b8b86b5de9db7f0f/numpy-2.3.5-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c75442b2209b8470d6d5d8b1c25714270686f14c749028d2199c54e29f20b4d", size = 14248902, upload-time = "2025-11-16T22:50:28.861Z" },
- { url = "https://files.pythonhosted.org/packages/f5/10/ca162f45a102738958dcec8023062dad0cbc17d1ab99d68c4e4a6c45fb2b/numpy-2.3.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:11e06aa0af8c0f05104d56450d6093ee639e15f24ecf62d417329d06e522e017", size = 16597430, upload-time = "2025-11-16T22:50:31.56Z" },
- { url = "https://files.pythonhosted.org/packages/2a/51/c1e29be863588db58175175f057286900b4b3327a1351e706d5e0f8dd679/numpy-2.3.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ed89927b86296067b4f81f108a2271d8926467a8868e554eaf370fc27fa3ccaf", size = 16024551, upload-time = "2025-11-16T22:50:34.242Z" },
- { url = "https://files.pythonhosted.org/packages/83/68/8236589d4dbb87253d28259d04d9b814ec0ecce7cb1c7fed29729f4c3a78/numpy-2.3.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:51c55fe3451421f3a6ef9a9c1439e82101c57a2c9eab9feb196a62b1a10b58ce", size = 18533275, upload-time = "2025-11-16T22:50:37.651Z" },
- { url = "https://files.pythonhosted.org/packages/40/56/2932d75b6f13465239e3b7b7e511be27f1b8161ca2510854f0b6e521c395/numpy-2.3.5-cp313-cp313-win32.whl", hash = "sha256:1978155dd49972084bd6ef388d66ab70f0c323ddee6f693d539376498720fb7e", size = 6277637, upload-time = "2025-11-16T22:50:40.11Z" },
- { url = "https://files.pythonhosted.org/packages/0c/88/e2eaa6cffb115b85ed7c7c87775cb8bcf0816816bc98ca8dbfa2ee33fe6e/numpy-2.3.5-cp313-cp313-win_amd64.whl", hash = "sha256:00dc4e846108a382c5869e77c6ed514394bdeb3403461d25a829711041217d5b", size = 12779090, upload-time = "2025-11-16T22:50:42.503Z" },
- { url = "https://files.pythonhosted.org/packages/8f/88/3f41e13a44ebd4034ee17baa384acac29ba6a4fcc2aca95f6f08ca0447d1/numpy-2.3.5-cp313-cp313-win_arm64.whl", hash = "sha256:0472f11f6ec23a74a906a00b48a4dcf3849209696dff7c189714511268d103ae", size = 10194710, upload-time = "2025-11-16T22:50:44.971Z" },
- { url = "https://files.pythonhosted.org/packages/13/cb/71744144e13389d577f867f745b7df2d8489463654a918eea2eeb166dfc9/numpy-2.3.5-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:414802f3b97f3c1eef41e530aaba3b3c1620649871d8cb38c6eaff034c2e16bd", size = 16827292, upload-time = "2025-11-16T22:50:47.715Z" },
- { url = "https://files.pythonhosted.org/packages/71/80/ba9dc6f2a4398e7f42b708a7fdc841bb638d353be255655498edbf9a15a8/numpy-2.3.5-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:5ee6609ac3604fa7780e30a03e5e241a7956f8e2fcfe547d51e3afa5247ac47f", size = 12378897, upload-time = "2025-11-16T22:50:51.327Z" },
- { url = "https://files.pythonhosted.org/packages/2e/6d/db2151b9f64264bcceccd51741aa39b50150de9b602d98ecfe7e0c4bff39/numpy-2.3.5-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:86d835afea1eaa143012a2d7a3f45a3adce2d7adc8b4961f0b362214d800846a", size = 5207391, upload-time = "2025-11-16T22:50:54.542Z" },
- { url = "https://files.pythonhosted.org/packages/80/ae/429bacace5ccad48a14c4ae5332f6aa8ab9f69524193511d60ccdfdc65fa/numpy-2.3.5-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:30bc11310e8153ca664b14c5f1b73e94bd0503681fcf136a163de856f3a50139", size = 6721275, upload-time = "2025-11-16T22:50:56.794Z" },
- { url = "https://files.pythonhosted.org/packages/74/5b/1919abf32d8722646a38cd527bc3771eb229a32724ee6ba340ead9b92249/numpy-2.3.5-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1062fde1dcf469571705945b0f221b73928f34a20c904ffb45db101907c3454e", size = 14306855, upload-time = "2025-11-16T22:50:59.208Z" },
- { url = "https://files.pythonhosted.org/packages/a5/87/6831980559434973bebc30cd9c1f21e541a0f2b0c280d43d3afd909b66d0/numpy-2.3.5-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ce581db493ea1a96c0556360ede6607496e8bf9b3a8efa66e06477267bc831e9", size = 16657359, upload-time = "2025-11-16T22:51:01.991Z" },
- { url = "https://files.pythonhosted.org/packages/dd/91/c797f544491ee99fd00495f12ebb7802c440c1915811d72ac5b4479a3356/numpy-2.3.5-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:cc8920d2ec5fa99875b670bb86ddeb21e295cb07aa331810d9e486e0b969d946", size = 16093374, upload-time = "2025-11-16T22:51:05.291Z" },
- { url = "https://files.pythonhosted.org/packages/74/a6/54da03253afcbe7a72785ec4da9c69fb7a17710141ff9ac5fcb2e32dbe64/numpy-2.3.5-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:9ee2197ef8c4f0dfe405d835f3b6a14f5fee7782b5de51ba06fb65fc9b36e9f1", size = 18594587, upload-time = "2025-11-16T22:51:08.585Z" },
- { url = "https://files.pythonhosted.org/packages/80/e9/aff53abbdd41b0ecca94285f325aff42357c6b5abc482a3fcb4994290b18/numpy-2.3.5-cp313-cp313t-win32.whl", hash = "sha256:70b37199913c1bd300ff6e2693316c6f869c7ee16378faf10e4f5e3275b299c3", size = 6405940, upload-time = "2025-11-16T22:51:11.541Z" },
- { url = "https://files.pythonhosted.org/packages/d5/81/50613fec9d4de5480de18d4f8ef59ad7e344d497edbef3cfd80f24f98461/numpy-2.3.5-cp313-cp313t-win_amd64.whl", hash = "sha256:b501b5fa195cc9e24fe102f21ec0a44dffc231d2af79950b451e0d99cea02234", size = 12920341, upload-time = "2025-11-16T22:51:14.312Z" },
- { url = "https://files.pythonhosted.org/packages/bb/ab/08fd63b9a74303947f34f0bd7c5903b9c5532c2d287bead5bdf4c556c486/numpy-2.3.5-cp313-cp313t-win_arm64.whl", hash = "sha256:a80afd79f45f3c4a7d341f13acbe058d1ca8ac017c165d3fa0d3de6bc1a079d7", size = 10262507, upload-time = "2025-11-16T22:51:16.846Z" },
- { url = "https://files.pythonhosted.org/packages/c6/65/f9dea8e109371ade9c782b4e4756a82edf9d3366bca495d84d79859a0b79/numpy-2.3.5-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:f0963b55cdd70fad460fa4c1341f12f976bb26cb66021a5580329bd498988310", size = 16910689, upload-time = "2025-11-16T22:52:23.247Z" },
- { url = "https://files.pythonhosted.org/packages/00/4f/edb00032a8fb92ec0a679d3830368355da91a69cab6f3e9c21b64d0bb986/numpy-2.3.5-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:f4255143f5160d0de972d28c8f9665d882b5f61309d8362fdd3e103cf7bf010c", size = 12457053, upload-time = "2025-11-16T22:52:26.367Z" },
- { url = "https://files.pythonhosted.org/packages/16/a4/e8a53b5abd500a63836a29ebe145fc1ab1f2eefe1cfe59276020373ae0aa/numpy-2.3.5-pp311-pypy311_pp73-macosx_14_0_arm64.whl", hash = "sha256:a4b9159734b326535f4dd01d947f919c6eefd2d9827466a696c44ced82dfbc18", size = 5285635, upload-time = "2025-11-16T22:52:29.266Z" },
- { url = "https://files.pythonhosted.org/packages/a3/2f/37eeb9014d9c8b3e9c55bc599c68263ca44fdbc12a93e45a21d1d56df737/numpy-2.3.5-pp311-pypy311_pp73-macosx_14_0_x86_64.whl", hash = "sha256:2feae0d2c91d46e59fcd62784a3a83b3fb677fead592ce51b5a6fbb4f95965ff", size = 6801770, upload-time = "2025-11-16T22:52:31.421Z" },
- { url = "https://files.pythonhosted.org/packages/7d/e4/68d2f474df2cb671b2b6c2986a02e520671295647dad82484cde80ca427b/numpy-2.3.5-pp311-pypy311_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ffac52f28a7849ad7576293c0cb7b9f08304e8f7d738a8cb8a90ec4c55a998eb", size = 14391768, upload-time = "2025-11-16T22:52:33.593Z" },
- { url = "https://files.pythonhosted.org/packages/b8/50/94ccd8a2b141cb50651fddd4f6a48874acb3c91c8f0842b08a6afc4b0b21/numpy-2.3.5-pp311-pypy311_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:63c0e9e7eea69588479ebf4a8a270d5ac22763cc5854e9a7eae952a3908103f7", size = 16729263, upload-time = "2025-11-16T22:52:36.369Z" },
- { url = "https://files.pythonhosted.org/packages/2d/ee/346fa473e666fe14c52fcdd19ec2424157290a032d4c41f98127bfb31ac7/numpy-2.3.5-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:f16417ec91f12f814b10bafe79ef77e70113a2f5f7018640e7425ff979253425", size = 12967213, upload-time = "2025-11-16T22:52:39.38Z" },
+sdist = { url = "https://files.pythonhosted.org/packages/a4/7a/6a3d14e205d292b738db449d0de649b373a59edb0d0b4493821d0a3e8718/numpy-2.4.0.tar.gz", hash = "sha256:6e504f7b16118198f138ef31ba24d985b124c2c469fe8467007cf30fd992f934", size = 20685720, upload-time = "2025-12-20T16:18:19.023Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/26/7e/7bae7cbcc2f8132271967aa03e03954fc1e48aa1f3bf32b29ca95fbef352/numpy-2.4.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:316b2f2584682318539f0bcaca5a496ce9ca78c88066579ebd11fd06f8e4741e", size = 16940166, upload-time = "2025-12-20T16:15:43.434Z" },
+ { url = "https://files.pythonhosted.org/packages/0f/27/6c13f5b46776d6246ec884ac5817452672156a506d08a1f2abb39961930a/numpy-2.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a2718c1de8504121714234b6f8241d0019450353276c88b9453c9c3d92e101db", size = 12641781, upload-time = "2025-12-20T16:15:45.701Z" },
+ { url = "https://files.pythonhosted.org/packages/14/1c/83b4998d4860d15283241d9e5215f28b40ac31f497c04b12fa7f428ff370/numpy-2.4.0-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:21555da4ec4a0c942520ead42c3b0dc9477441e085c42b0fbdd6a084869a6f6b", size = 5470247, upload-time = "2025-12-20T16:15:47.943Z" },
+ { url = "https://files.pythonhosted.org/packages/54/08/cbce72c835d937795571b0464b52069f869c9e78b0c076d416c5269d2718/numpy-2.4.0-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:413aa561266a4be2d06cd2b9665e89d9f54c543f418773076a76adcf2af08bc7", size = 6799807, upload-time = "2025-12-20T16:15:49.795Z" },
+ { url = "https://files.pythonhosted.org/packages/ff/be/2e647961cd8c980591d75cdcd9e8f647d69fbe05e2a25613dc0a2ea5fb1a/numpy-2.4.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0feafc9e03128074689183031181fac0897ff169692d8492066e949041096548", size = 14701992, upload-time = "2025-12-20T16:15:51.615Z" },
+ { url = "https://files.pythonhosted.org/packages/a2/fb/e1652fb8b6fd91ce6ed429143fe2e01ce714711e03e5b762615e7b36172c/numpy-2.4.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a8fdfed3deaf1928fb7667d96e0567cdf58c2b370ea2ee7e586aa383ec2cb346", size = 16646871, upload-time = "2025-12-20T16:15:54.129Z" },
+ { url = "https://files.pythonhosted.org/packages/62/23/d841207e63c4322842f7cd042ae981cffe715c73376dcad8235fb31debf1/numpy-2.4.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:e06a922a469cae9a57100864caf4f8a97a1026513793969f8ba5b63137a35d25", size = 16487190, upload-time = "2025-12-20T16:15:56.147Z" },
+ { url = "https://files.pythonhosted.org/packages/bc/a0/6a842c8421ebfdec0a230e65f61e0dabda6edbef443d999d79b87c273965/numpy-2.4.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:927ccf5cd17c48f801f4ed43a7e5673a2724bd2171460be3e3894e6e332ef83a", size = 18580762, upload-time = "2025-12-20T16:15:58.524Z" },
+ { url = "https://files.pythonhosted.org/packages/0a/d1/c79e0046641186f2134dde05e6181825b911f8bdcef31b19ddd16e232847/numpy-2.4.0-cp311-cp311-win32.whl", hash = "sha256:882567b7ae57c1b1a0250208cc21a7976d8cbcc49d5a322e607e6f09c9e0bd53", size = 6233359, upload-time = "2025-12-20T16:16:00.938Z" },
+ { url = "https://files.pythonhosted.org/packages/fc/f0/74965001d231f28184d6305b8cdc1b6fcd4bf23033f6cb039cfe76c9fca7/numpy-2.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:8b986403023c8f3bf8f487c2e6186afda156174d31c175f747d8934dfddf3479", size = 12601132, upload-time = "2025-12-20T16:16:02.484Z" },
+ { url = "https://files.pythonhosted.org/packages/65/32/55408d0f46dfebce38017f5bd931affa7256ad6beac1a92a012e1fbc67a7/numpy-2.4.0-cp311-cp311-win_arm64.whl", hash = "sha256:3f3096405acc48887458bbf9f6814d43785ac7ba2a57ea6442b581dedbc60ce6", size = 10573977, upload-time = "2025-12-20T16:16:04.77Z" },
+ { url = "https://files.pythonhosted.org/packages/8b/ff/f6400ffec95de41c74b8e73df32e3fff1830633193a7b1e409be7fb1bb8c/numpy-2.4.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:2a8b6bb8369abefb8bd1801b054ad50e02b3275c8614dc6e5b0373c305291037", size = 16653117, upload-time = "2025-12-20T16:16:06.709Z" },
+ { url = "https://files.pythonhosted.org/packages/fd/28/6c23e97450035072e8d830a3c411bf1abd1f42c611ff9d29e3d8f55c6252/numpy-2.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2e284ca13d5a8367e43734148622caf0b261b275673823593e3e3634a6490f83", size = 12369711, upload-time = "2025-12-20T16:16:08.758Z" },
+ { url = "https://files.pythonhosted.org/packages/bc/af/acbef97b630ab1bb45e6a7d01d1452e4251aa88ce680ac36e56c272120ec/numpy-2.4.0-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:49ff32b09f5aa0cd30a20c2b39db3e669c845589f2b7fc910365210887e39344", size = 5198355, upload-time = "2025-12-20T16:16:10.902Z" },
+ { url = "https://files.pythonhosted.org/packages/c1/c8/4e0d436b66b826f2e53330adaa6311f5cac9871a5b5c31ad773b27f25a74/numpy-2.4.0-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:36cbfb13c152b1c7c184ddac43765db8ad672567e7bafff2cc755a09917ed2e6", size = 6545298, upload-time = "2025-12-20T16:16:12.607Z" },
+ { url = "https://files.pythonhosted.org/packages/ef/27/e1f5d144ab54eac34875e79037011d511ac57b21b220063310cb96c80fbc/numpy-2.4.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35ddc8f4914466e6fc954c76527aa91aa763682a4f6d73249ef20b418fe6effb", size = 14398387, upload-time = "2025-12-20T16:16:14.257Z" },
+ { url = "https://files.pythonhosted.org/packages/67/64/4cb909dd5ab09a9a5d086eff9586e69e827b88a5585517386879474f4cf7/numpy-2.4.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:dc578891de1db95b2a35001b695451767b580bb45753717498213c5ff3c41d63", size = 16363091, upload-time = "2025-12-20T16:16:17.32Z" },
+ { url = "https://files.pythonhosted.org/packages/9d/9c/8efe24577523ec6809261859737cf117b0eb6fdb655abdfdc81b2e468ce4/numpy-2.4.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:98e81648e0b36e325ab67e46b5400a7a6d4a22b8a7c8e8bbfe20e7db7906bf95", size = 16176394, upload-time = "2025-12-20T16:16:19.524Z" },
+ { url = "https://files.pythonhosted.org/packages/61/f0/1687441ece7b47a62e45a1f82015352c240765c707928edd8aef875d5951/numpy-2.4.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d57b5046c120561ba8fa8e4030fbb8b822f3063910fa901ffadf16e2b7128ad6", size = 18287378, upload-time = "2025-12-20T16:16:22.866Z" },
+ { url = "https://files.pythonhosted.org/packages/d3/6f/f868765d44e6fc466467ed810ba9d8d6db1add7d4a748abfa2a4c99a3194/numpy-2.4.0-cp312-cp312-win32.whl", hash = "sha256:92190db305a6f48734d3982f2c60fa30d6b5ee9bff10f2887b930d7b40119f4c", size = 5955432, upload-time = "2025-12-20T16:16:25.06Z" },
+ { url = "https://files.pythonhosted.org/packages/d4/b5/94c1e79fcbab38d1ca15e13777477b2914dd2d559b410f96949d6637b085/numpy-2.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:680060061adb2d74ce352628cb798cfdec399068aa7f07ba9fb818b2b3305f98", size = 12306201, upload-time = "2025-12-20T16:16:26.979Z" },
+ { url = "https://files.pythonhosted.org/packages/70/09/c39dadf0b13bb0768cd29d6a3aaff1fb7c6905ac40e9aaeca26b1c086e06/numpy-2.4.0-cp312-cp312-win_arm64.whl", hash = "sha256:39699233bc72dd482da1415dcb06076e32f60eddc796a796c5fb6c5efce94667", size = 10308234, upload-time = "2025-12-20T16:16:29.417Z" },
+ { url = "https://files.pythonhosted.org/packages/a7/0d/853fd96372eda07c824d24adf02e8bc92bb3731b43a9b2a39161c3667cc4/numpy-2.4.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a152d86a3ae00ba5f47b3acf3b827509fd0b6cb7d3259665e63dafbad22a75ea", size = 16649088, upload-time = "2025-12-20T16:16:31.421Z" },
+ { url = "https://files.pythonhosted.org/packages/e3/37/cc636f1f2a9f585434e20a3e6e63422f70bfe4f7f6698e941db52ea1ac9a/numpy-2.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:39b19251dec4de8ff8496cd0806cbe27bf0684f765abb1f4809554de93785f2d", size = 12364065, upload-time = "2025-12-20T16:16:33.491Z" },
+ { url = "https://files.pythonhosted.org/packages/ed/69/0b78f37ca3690969beee54103ce5f6021709134e8020767e93ba691a72f1/numpy-2.4.0-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:009bd0ea12d3c784b6639a8457537016ce5172109e585338e11334f6a7bb88ee", size = 5192640, upload-time = "2025-12-20T16:16:35.636Z" },
+ { url = "https://files.pythonhosted.org/packages/1d/2a/08569f8252abf590294dbb09a430543ec8f8cc710383abfb3e75cc73aeda/numpy-2.4.0-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:5fe44e277225fd3dff6882d86d3d447205d43532c3627313d17e754fb3905a0e", size = 6541556, upload-time = "2025-12-20T16:16:37.276Z" },
+ { url = "https://files.pythonhosted.org/packages/93/e9/a949885a4e177493d61519377952186b6cbfdf1d6002764c664ba28349b5/numpy-2.4.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f935c4493eda9069851058fa0d9e39dbf6286be690066509305e52912714dbb2", size = 14396562, upload-time = "2025-12-20T16:16:38.953Z" },
+ { url = "https://files.pythonhosted.org/packages/99/98/9d4ad53b0e9ef901c2ef1d550d2136f5ac42d3fd2988390a6def32e23e48/numpy-2.4.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8cfa5f29a695cb7438965e6c3e8d06e0416060cf0d709c1b1c1653a939bf5c2a", size = 16351719, upload-time = "2025-12-20T16:16:41.503Z" },
+ { url = "https://files.pythonhosted.org/packages/28/de/5f3711a38341d6e8dd619f6353251a0cdd07f3d6d101a8fd46f4ef87f895/numpy-2.4.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ba0cb30acd3ef11c94dc27fbfba68940652492bc107075e7ffe23057f9425681", size = 16176053, upload-time = "2025-12-20T16:16:44.552Z" },
+ { url = "https://files.pythonhosted.org/packages/2a/5b/2a3753dc43916501b4183532e7ace862e13211042bceafa253afb5c71272/numpy-2.4.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:60e8c196cd82cbbd4f130b5290007e13e6de3eca79f0d4d38014769d96a7c475", size = 18277859, upload-time = "2025-12-20T16:16:47.174Z" },
+ { url = "https://files.pythonhosted.org/packages/2c/c5/a18bcdd07a941db3076ef489d036ab16d2bfc2eae0cf27e5a26e29189434/numpy-2.4.0-cp313-cp313-win32.whl", hash = "sha256:5f48cb3e88fbc294dc90e215d86fbaf1c852c63dbdb6c3a3e63f45c4b57f7344", size = 5953849, upload-time = "2025-12-20T16:16:49.554Z" },
+ { url = "https://files.pythonhosted.org/packages/4f/f1/719010ff8061da6e8a26e1980cf090412d4f5f8060b31f0c45d77dd67a01/numpy-2.4.0-cp313-cp313-win_amd64.whl", hash = "sha256:a899699294f28f7be8992853c0c60741f16ff199205e2e6cdca155762cbaa59d", size = 12302840, upload-time = "2025-12-20T16:16:51.227Z" },
+ { url = "https://files.pythonhosted.org/packages/f5/5a/b3d259083ed8b4d335270c76966cb6cf14a5d1b69e1a608994ac57a659e6/numpy-2.4.0-cp313-cp313-win_arm64.whl", hash = "sha256:9198f447e1dc5647d07c9a6bbe2063cc0132728cc7175b39dbc796da5b54920d", size = 10308509, upload-time = "2025-12-20T16:16:53.313Z" },
+ { url = "https://files.pythonhosted.org/packages/31/01/95edcffd1bb6c0633df4e808130545c4f07383ab629ac7e316fb44fff677/numpy-2.4.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:74623f2ab5cc3f7c886add4f735d1031a1d2be4a4ae63c0546cfd74e7a31ddf6", size = 12491815, upload-time = "2025-12-20T16:16:55.496Z" },
+ { url = "https://files.pythonhosted.org/packages/59/ea/5644b8baa92cc1c7163b4b4458c8679852733fa74ca49c942cfa82ded4e0/numpy-2.4.0-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:0804a8e4ab070d1d35496e65ffd3cf8114c136a2b81f61dfab0de4b218aacfd5", size = 5320321, upload-time = "2025-12-20T16:16:57.468Z" },
+ { url = "https://files.pythonhosted.org/packages/26/4e/e10938106d70bc21319bd6a86ae726da37edc802ce35a3a71ecdf1fdfe7f/numpy-2.4.0-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:02a2038eb27f9443a8b266a66911e926566b5a6ffd1a689b588f7f35b81e7dc3", size = 6641635, upload-time = "2025-12-20T16:16:59.379Z" },
+ { url = "https://files.pythonhosted.org/packages/b3/8d/a8828e3eaf5c0b4ab116924df82f24ce3416fa38d0674d8f708ddc6c8aac/numpy-2.4.0-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1889b3a3f47a7b5bee16bc25a2145bd7cb91897f815ce3499db64c7458b6d91d", size = 14456053, upload-time = "2025-12-20T16:17:01.768Z" },
+ { url = "https://files.pythonhosted.org/packages/68/a1/17d97609d87d4520aa5ae2dcfb32305654550ac6a35effb946d303e594ce/numpy-2.4.0-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:85eef4cb5625c47ee6425c58a3502555e10f45ee973da878ac8248ad58c136f3", size = 16401702, upload-time = "2025-12-20T16:17:04.235Z" },
+ { url = "https://files.pythonhosted.org/packages/18/32/0f13c1b2d22bea1118356b8b963195446f3af124ed7a5adfa8fdecb1b6ca/numpy-2.4.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6dc8b7e2f4eb184b37655195f421836cfae6f58197b67e3ffc501f1333d993fa", size = 16242493, upload-time = "2025-12-20T16:17:06.856Z" },
+ { url = "https://files.pythonhosted.org/packages/ae/23/48f21e3d309fbc137c068a1475358cbd3a901b3987dcfc97a029ab3068e2/numpy-2.4.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:44aba2f0cafd287871a495fb3163408b0bd25bbce135c6f621534a07f4f7875c", size = 18324222, upload-time = "2025-12-20T16:17:09.392Z" },
+ { url = "https://files.pythonhosted.org/packages/ac/52/41f3d71296a3dcaa4f456aaa3c6fc8e745b43d0552b6bde56571bb4b4a0f/numpy-2.4.0-cp313-cp313t-win32.whl", hash = "sha256:20c115517513831860c573996e395707aa9fb691eb179200125c250e895fcd93", size = 6076216, upload-time = "2025-12-20T16:17:11.437Z" },
+ { url = "https://files.pythonhosted.org/packages/35/ff/46fbfe60ab0710d2a2b16995f708750307d30eccbb4c38371ea9e986866e/numpy-2.4.0-cp313-cp313t-win_amd64.whl", hash = "sha256:b48e35f4ab6f6a7597c46e301126ceba4c44cd3280e3750f85db48b082624fa4", size = 12444263, upload-time = "2025-12-20T16:17:13.182Z" },
+ { url = "https://files.pythonhosted.org/packages/a3/e3/9189ab319c01d2ed556c932ccf55064c5d75bb5850d1df7a482ce0badead/numpy-2.4.0-cp313-cp313t-win_arm64.whl", hash = "sha256:4d1cfce39e511069b11e67cd0bd78ceff31443b7c9e5c04db73c7a19f572967c", size = 10378265, upload-time = "2025-12-20T16:17:15.211Z" },
+ { url = "https://files.pythonhosted.org/packages/ab/ed/52eac27de39d5e5a6c9aadabe672bc06f55e24a3d9010cd1183948055d76/numpy-2.4.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:c95eb6db2884917d86cde0b4d4cf31adf485c8ec36bf8696dd66fa70de96f36b", size = 16647476, upload-time = "2025-12-20T16:17:17.671Z" },
+ { url = "https://files.pythonhosted.org/packages/77/c0/990ce1b7fcd4e09aeaa574e2a0a839589e4b08b2ca68070f1acb1fea6736/numpy-2.4.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:65167da969cd1ec3a1df31cb221ca3a19a8aaa25370ecb17d428415e93c1935e", size = 12374563, upload-time = "2025-12-20T16:17:20.216Z" },
+ { url = "https://files.pythonhosted.org/packages/37/7c/8c5e389c6ae8f5fd2277a988600d79e9625db3fff011a2d87ac80b881a4c/numpy-2.4.0-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:3de19cfecd1465d0dcf8a5b5ea8b3155b42ed0b639dba4b71e323d74f2a3be5e", size = 5203107, upload-time = "2025-12-20T16:17:22.47Z" },
+ { url = "https://files.pythonhosted.org/packages/e6/94/ca5b3bd6a8a70a5eec9a0b8dd7f980c1eff4b8a54970a9a7fef248ef564f/numpy-2.4.0-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:6c05483c3136ac4c91b4e81903cb53a8707d316f488124d0398499a4f8e8ef51", size = 6538067, upload-time = "2025-12-20T16:17:24.001Z" },
+ { url = "https://files.pythonhosted.org/packages/79/43/993eb7bb5be6761dde2b3a3a594d689cec83398e3f58f4758010f3b85727/numpy-2.4.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:36667db4d6c1cea79c8930ab72fadfb4060feb4bfe724141cd4bd064d2e5f8ce", size = 14411926, upload-time = "2025-12-20T16:17:25.822Z" },
+ { url = "https://files.pythonhosted.org/packages/03/75/d4c43b61de473912496317a854dac54f1efec3eeb158438da6884b70bb90/numpy-2.4.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9a818668b674047fd88c4cddada7ab8f1c298812783e8328e956b78dc4807f9f", size = 16354295, upload-time = "2025-12-20T16:17:28.308Z" },
+ { url = "https://files.pythonhosted.org/packages/b8/0a/b54615b47ee8736a6461a4bb6749128dd3435c5a759d5663f11f0e9af4ac/numpy-2.4.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:1ee32359fb7543b7b7bd0b2f46294db27e29e7bbdf70541e81b190836cd83ded", size = 16190242, upload-time = "2025-12-20T16:17:30.993Z" },
+ { url = "https://files.pythonhosted.org/packages/98/ce/ea207769aacad6246525ec6c6bbd66a2bf56c72443dc10e2f90feed29290/numpy-2.4.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:e493962256a38f58283de033d8af176c5c91c084ea30f15834f7545451c42059", size = 18280875, upload-time = "2025-12-20T16:17:33.327Z" },
+ { url = "https://files.pythonhosted.org/packages/17/ef/ec409437aa962ea372ed601c519a2b141701683ff028f894b7466f0ab42b/numpy-2.4.0-cp314-cp314-win32.whl", hash = "sha256:6bbaebf0d11567fa8926215ae731e1d58e6ec28a8a25235b8a47405d301332db", size = 6002530, upload-time = "2025-12-20T16:17:35.729Z" },
+ { url = "https://files.pythonhosted.org/packages/5f/4a/5cb94c787a3ed1ac65e1271b968686521169a7b3ec0b6544bb3ca32960b0/numpy-2.4.0-cp314-cp314-win_amd64.whl", hash = "sha256:3d857f55e7fdf7c38ab96c4558c95b97d1c685be6b05c249f5fdafcbd6f9899e", size = 12435890, upload-time = "2025-12-20T16:17:37.599Z" },
+ { url = "https://files.pythonhosted.org/packages/48/a0/04b89db963af9de1104975e2544f30de89adbf75b9e75f7dd2599be12c79/numpy-2.4.0-cp314-cp314-win_arm64.whl", hash = "sha256:bb50ce5fb202a26fd5404620e7ef820ad1ab3558b444cb0b55beb7ef66cd2d63", size = 10591892, upload-time = "2025-12-20T16:17:39.649Z" },
+ { url = "https://files.pythonhosted.org/packages/53/e5/d74b5ccf6712c06c7a545025a6a71bfa03bdc7e0568b405b0d655232fd92/numpy-2.4.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:355354388cba60f2132df297e2d53053d4063f79077b67b481d21276d61fc4df", size = 12494312, upload-time = "2025-12-20T16:17:41.714Z" },
+ { url = "https://files.pythonhosted.org/packages/c2/08/3ca9cc2ddf54dfee7ae9a6479c071092a228c68aef08252aa08dac2af002/numpy-2.4.0-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:1d8f9fde5f6dc1b6fc34df8162f3b3079365468703fee7f31d4e0cc8c63baed9", size = 5322862, upload-time = "2025-12-20T16:17:44.145Z" },
+ { url = "https://files.pythonhosted.org/packages/87/74/0bb63a68394c0c1e52670cfff2e309afa41edbe11b3327d9af29e4383f34/numpy-2.4.0-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:e0434aa22c821f44eeb4c650b81c7fbdd8c0122c6c4b5a576a76d5a35625ecd9", size = 6644986, upload-time = "2025-12-20T16:17:46.203Z" },
+ { url = "https://files.pythonhosted.org/packages/06/8f/9264d9bdbcf8236af2823623fe2f3981d740fc3461e2787e231d97c38c28/numpy-2.4.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:40483b2f2d3ba7aad426443767ff5632ec3156ef09742b96913787d13c336471", size = 14457958, upload-time = "2025-12-20T16:17:48.017Z" },
+ { url = "https://files.pythonhosted.org/packages/8c/d9/f9a69ae564bbc7236a35aa883319364ef5fd41f72aa320cc1cbe66148fe2/numpy-2.4.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d9e6a7664ddd9746e20b7325351fe1a8408d0a2bf9c63b5e898290ddc8f09544", size = 16398394, upload-time = "2025-12-20T16:17:50.409Z" },
+ { url = "https://files.pythonhosted.org/packages/34/c7/39241501408dde7f885d241a98caba5421061a2c6d2b2197ac5e3aa842d8/numpy-2.4.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:ecb0019d44f4cdb50b676c5d0cb4b1eae8e15d1ed3d3e6639f986fc92b2ec52c", size = 16241044, upload-time = "2025-12-20T16:17:52.661Z" },
+ { url = "https://files.pythonhosted.org/packages/7c/95/cae7effd90e065a95e59fe710eeee05d7328ed169776dfdd9f789e032125/numpy-2.4.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:d0ffd9e2e4441c96a9c91ec1783285d80bf835b677853fc2770a89d50c1e48ac", size = 18321772, upload-time = "2025-12-20T16:17:54.947Z" },
+ { url = "https://files.pythonhosted.org/packages/96/df/3c6c279accd2bfb968a76298e5b276310bd55d243df4fa8ac5816d79347d/numpy-2.4.0-cp314-cp314t-win32.whl", hash = "sha256:77f0d13fa87036d7553bf81f0e1fe3ce68d14c9976c9851744e4d3e91127e95f", size = 6148320, upload-time = "2025-12-20T16:17:57.249Z" },
+ { url = "https://files.pythonhosted.org/packages/92/8d/f23033cce252e7a75cae853d17f582e86534c46404dea1c8ee094a9d6d84/numpy-2.4.0-cp314-cp314t-win_amd64.whl", hash = "sha256:b1f5b45829ac1848893f0ddf5cb326110604d6df96cdc255b0bf9edd154104d4", size = 12623460, upload-time = "2025-12-20T16:17:58.963Z" },
+ { url = "https://files.pythonhosted.org/packages/a4/4f/1f8475907d1a7c4ef9020edf7f39ea2422ec896849245f00688e4b268a71/numpy-2.4.0-cp314-cp314t-win_arm64.whl", hash = "sha256:23a3e9d1a6f360267e8fbb38ba5db355a6a7e9be71d7fce7ab3125e88bb646c8", size = 10661799, upload-time = "2025-12-20T16:18:01.078Z" },
+ { url = "https://files.pythonhosted.org/packages/4b/ef/088e7c7342f300aaf3ee5f2c821c4b9996a1bef2aaf6a49cc8ab4883758e/numpy-2.4.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:b54c83f1c0c0f1d748dca0af516062b8829d53d1f0c402be24b4257a9c48ada6", size = 16819003, upload-time = "2025-12-20T16:18:03.41Z" },
+ { url = "https://files.pythonhosted.org/packages/ff/ce/a53017b5443b4b84517182d463fc7bcc2adb4faa8b20813f8e5f5aeb5faa/numpy-2.4.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:aabb081ca0ec5d39591fc33018cd4b3f96e1a2dd6756282029986d00a785fba4", size = 12567105, upload-time = "2025-12-20T16:18:05.594Z" },
+ { url = "https://files.pythonhosted.org/packages/77/58/5ff91b161f2ec650c88a626c3905d938c89aaadabd0431e6d9c1330c83e2/numpy-2.4.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl", hash = "sha256:8eafe7c36c8430b7794edeab3087dec7bf31d634d92f2af9949434b9d1964cba", size = 5395590, upload-time = "2025-12-20T16:18:08.031Z" },
+ { url = "https://files.pythonhosted.org/packages/1d/4e/f1a084106df8c2df8132fc437e56987308e0524836aa7733721c8429d4fe/numpy-2.4.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl", hash = "sha256:2f585f52b2baf07ff3356158d9268ea095e221371f1074fadea2f42544d58b4d", size = 6709947, upload-time = "2025-12-20T16:18:09.836Z" },
+ { url = "https://files.pythonhosted.org/packages/63/09/3d8aeb809c0332c3f642da812ac2e3d74fc9252b3021f8c30c82e99e3f3d/numpy-2.4.0-pp311-pypy311_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:32ed06d0fe9cae27d8fb5f400c63ccee72370599c75e683a6358dd3a4fb50aaf", size = 14535119, upload-time = "2025-12-20T16:18:12.105Z" },
+ { url = "https://files.pythonhosted.org/packages/fd/7f/68f0fc43a2cbdc6bb239160c754d87c922f60fbaa0fa3cd3d312b8a7f5ee/numpy-2.4.0-pp311-pypy311_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:57c540ed8fb1f05cb997c6761cd56db72395b0d6985e90571ff660452ade4f98", size = 16475815, upload-time = "2025-12-20T16:18:14.433Z" },
+ { url = "https://files.pythonhosted.org/packages/11/73/edeacba3167b1ca66d51b1a5a14697c2c40098b5ffa01811c67b1785a5ab/numpy-2.4.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:a39fb973a726e63223287adc6dafe444ce75af952d711e400f3bf2b36ef55a7b", size = 12489376, upload-time = "2025-12-20T16:18:16.524Z" },
]
[[package]]
@@ -2244,7 +2653,7 @@ wheels = [
[[package]]
name = "openai"
-version = "2.8.1"
+version = "2.14.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "anyio" },
@@ -2256,9 +2665,9 @@ dependencies = [
{ name = "tqdm" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/d5/e4/42591e356f1d53c568418dc7e30dcda7be31dd5a4d570bca22acb0525862/openai-2.8.1.tar.gz", hash = "sha256:cb1b79eef6e809f6da326a7ef6038719e35aa944c42d081807bfa1be8060f15f", size = 602490, upload-time = "2025-11-17T22:39:59.549Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/d8/b1/12fe1c196bea326261718eb037307c1c1fe1dedc2d2d4de777df822e6238/openai-2.14.0.tar.gz", hash = "sha256:419357bedde9402d23bf8f2ee372fca1985a73348debba94bddff06f19459952", size = 626938, upload-time = "2025-12-19T03:28:45.742Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/55/4f/dbc0c124c40cb390508a82770fb9f6e3ed162560181a85089191a851c59a/openai-2.8.1-py3-none-any.whl", hash = "sha256:c6c3b5a04994734386e8dad3c00a393f56d3b68a27cd2e8acae91a59e4122463", size = 1022688, upload-time = "2025-11-17T22:39:57.675Z" },
+ { url = "https://files.pythonhosted.org/packages/27/4b/7c1a00c2c3fbd004253937f7520f692a9650767aa73894d7a34f0d65d3f4/openai-2.14.0-py3-none-any.whl", hash = "sha256:7ea40aca4ffc4c4a776e77679021b47eec1160e341f42ae086ba949c9dcc9183", size = 1067558, upload-time = "2025-12-19T03:28:43.727Z" },
]
[[package]]
@@ -2267,7 +2676,7 @@ version = "4.11.0.86"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
- { name = "numpy", version = "2.3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "numpy", version = "2.4.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/17/06/68c27a523103dad5837dc5b87e71285280c4f098c60e4fe8a8db6486ab09/opencv-python-4.11.0.86.tar.gz", hash = "sha256:03d60ccae62304860d232272e4a4fda93c39d595780cb40b161b310244b736a4", size = 95171956, upload-time = "2025-01-16T13:52:24.737Z" }
wheels = [
@@ -2293,32 +2702,32 @@ wheels = [
[[package]]
name = "opentelemetry-api"
-version = "1.39.0"
+version = "1.39.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "importlib-metadata" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/c0/0b/e5428c009d4d9af0515b0a8371a8aaae695371af291f45e702f7969dce6b/opentelemetry_api-1.39.0.tar.gz", hash = "sha256:6130644268c5ac6bdffaf660ce878f10906b3e789f7e2daa5e169b047a2933b9", size = 65763, upload-time = "2025-12-03T13:19:56.378Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/97/b9/3161be15bb8e3ad01be8be5a968a9237c3027c5be504362ff800fca3e442/opentelemetry_api-1.39.1.tar.gz", hash = "sha256:fbde8c80e1b937a2c61f20347e91c0c18a1940cecf012d62e65a7caf08967c9c", size = 65767, upload-time = "2025-12-11T13:32:39.182Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/05/85/d831a9bc0a9e0e1a304ff3d12c1489a5fbc9bf6690a15dcbdae372bbca45/opentelemetry_api-1.39.0-py3-none-any.whl", hash = "sha256:3c3b3ca5c5687b1b5b37e5c5027ff68eacea8675241b29f13110a8ffbb8f0459", size = 66357, upload-time = "2025-12-03T13:19:33.043Z" },
+ { url = "https://files.pythonhosted.org/packages/cf/df/d3f1ddf4bb4cb50ed9b1139cc7b1c54c34a1e7ce8fd1b9a37c0d1551a6bd/opentelemetry_api-1.39.1-py3-none-any.whl", hash = "sha256:2edd8463432a7f8443edce90972169b195e7d6a05500cd29e6d13898187c9950", size = 66356, upload-time = "2025-12-11T13:32:17.304Z" },
]
[[package]]
name = "opentelemetry-exporter-otlp-proto-common"
-version = "1.39.0"
+version = "1.39.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "opentelemetry-proto" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/11/cb/3a29ce606b10c76d413d6edd42d25a654af03e73e50696611e757d2602f3/opentelemetry_exporter_otlp_proto_common-1.39.0.tar.gz", hash = "sha256:a135fceed1a6d767f75be65bd2845da344dd8b9258eeed6bc48509d02b184409", size = 20407, upload-time = "2025-12-03T13:19:59.003Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/e9/9d/22d241b66f7bbde88a3bfa6847a351d2c46b84de23e71222c6aae25c7050/opentelemetry_exporter_otlp_proto_common-1.39.1.tar.gz", hash = "sha256:763370d4737a59741c89a67b50f9e39271639ee4afc999dadfe768541c027464", size = 20409, upload-time = "2025-12-11T13:32:40.885Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/ef/c6/215edba62d13a3948c718b289539f70e40965bc37fc82ecd55bb0b749c1a/opentelemetry_exporter_otlp_proto_common-1.39.0-py3-none-any.whl", hash = "sha256:3d77be7c4bdf90f1a76666c934368b8abed730b5c6f0547a2ec57feb115849ac", size = 18367, upload-time = "2025-12-03T13:19:36.906Z" },
+ { url = "https://files.pythonhosted.org/packages/8c/02/ffc3e143d89a27ac21fd557365b98bd0653b98de8a101151d5805b5d4c33/opentelemetry_exporter_otlp_proto_common-1.39.1-py3-none-any.whl", hash = "sha256:08f8a5862d64cc3435105686d0216c1365dc5701f86844a8cd56597d0c764fde", size = 18366, upload-time = "2025-12-11T13:32:20.2Z" },
]
[[package]]
name = "opentelemetry-exporter-otlp-proto-http"
-version = "1.39.0"
+version = "1.39.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "googleapis-common-protos" },
@@ -2329,48 +2738,48 @@ dependencies = [
{ name = "requests" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/81/dc/1e9bf3f6a28e29eba516bc0266e052996d02bc7e92675f3cd38169607609/opentelemetry_exporter_otlp_proto_http-1.39.0.tar.gz", hash = "sha256:28d78fc0eb82d5a71ae552263d5012fa3ebad18dfd189bf8d8095ba0e65ee1ed", size = 17287, upload-time = "2025-12-03T13:20:01.134Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/80/04/2a08fa9c0214ae38880df01e8bfae12b067ec0793446578575e5080d6545/opentelemetry_exporter_otlp_proto_http-1.39.1.tar.gz", hash = "sha256:31bdab9745c709ce90a49a0624c2bd445d31a28ba34275951a6a362d16a0b9cb", size = 17288, upload-time = "2025-12-11T13:32:42.029Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/bc/46/e4a102e17205bb05a50dbf24ef0e92b66b648cd67db9a68865af06a242fd/opentelemetry_exporter_otlp_proto_http-1.39.0-py3-none-any.whl", hash = "sha256:5789cb1375a8b82653328c0ce13a054d285f774099faf9d068032a49de4c7862", size = 19639, upload-time = "2025-12-03T13:19:39.536Z" },
+ { url = "https://files.pythonhosted.org/packages/95/f1/b27d3e2e003cd9a3592c43d099d2ed8d0a947c15281bf8463a256db0b46c/opentelemetry_exporter_otlp_proto_http-1.39.1-py3-none-any.whl", hash = "sha256:d9f5207183dd752a412c4cd564ca8875ececba13be6e9c6c370ffb752fd59985", size = 19641, upload-time = "2025-12-11T13:32:22.248Z" },
]
[[package]]
name = "opentelemetry-proto"
-version = "1.39.0"
+version = "1.39.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "protobuf" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/48/b5/64d2f8c3393cd13ea2092106118f7b98461ba09333d40179a31444c6f176/opentelemetry_proto-1.39.0.tar.gz", hash = "sha256:c1fa48678ad1a1624258698e59be73f990b7fc1f39e73e16a9d08eef65dd838c", size = 46153, upload-time = "2025-12-03T13:20:08.729Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/49/1d/f25d76d8260c156c40c97c9ed4511ec0f9ce353f8108ca6e7561f82a06b2/opentelemetry_proto-1.39.1.tar.gz", hash = "sha256:6c8e05144fc0d3ed4d22c2289c6b126e03bcd0e6a7da0f16cedd2e1c2772e2c8", size = 46152, upload-time = "2025-12-11T13:32:48.681Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/e3/4d/d500e1862beed68318705732d1976c390f4a72ca8009c4983ff627acff20/opentelemetry_proto-1.39.0-py3-none-any.whl", hash = "sha256:1e086552ac79acb501485ff0ce75533f70f3382d43d0a30728eeee594f7bf818", size = 72534, upload-time = "2025-12-03T13:19:50.251Z" },
+ { url = "https://files.pythonhosted.org/packages/51/95/b40c96a7b5203005a0b03d8ce8cd212ff23f1793d5ba289c87a097571b18/opentelemetry_proto-1.39.1-py3-none-any.whl", hash = "sha256:22cdc78efd3b3765d09e68bfbd010d4fc254c9818afd0b6b423387d9dee46007", size = 72535, upload-time = "2025-12-11T13:32:33.866Z" },
]
[[package]]
name = "opentelemetry-sdk"
-version = "1.39.0"
+version = "1.39.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "opentelemetry-api" },
{ name = "opentelemetry-semantic-conventions" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/51/e3/7cd989003e7cde72e0becfe830abff0df55c69d237ee7961a541e0167833/opentelemetry_sdk-1.39.0.tar.gz", hash = "sha256:c22204f12a0529e07aa4d985f1bca9d6b0e7b29fe7f03e923548ae52e0e15dde", size = 171322, upload-time = "2025-12-03T13:20:09.651Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/eb/fb/c76080c9ba07e1e8235d24cdcc4d125ef7aa3edf23eb4e497c2e50889adc/opentelemetry_sdk-1.39.1.tar.gz", hash = "sha256:cf4d4563caf7bff906c9f7967e2be22d0d6b349b908be0d90fb21c8e9c995cc6", size = 171460, upload-time = "2025-12-11T13:32:49.369Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/a4/b4/2adc8bc83eb1055ecb592708efb6f0c520cc2eb68970b02b0f6ecda149cf/opentelemetry_sdk-1.39.0-py3-none-any.whl", hash = "sha256:90cfb07600dfc0d2de26120cebc0c8f27e69bf77cd80ef96645232372709a514", size = 132413, upload-time = "2025-12-03T13:19:51.364Z" },
+ { url = "https://files.pythonhosted.org/packages/7c/98/e91cf858f203d86f4eccdf763dcf01cf03f1dae80c3750f7e635bfa206b6/opentelemetry_sdk-1.39.1-py3-none-any.whl", hash = "sha256:4d5482c478513ecb0a5d938dcc61394e647066e0cc2676bee9f3af3f3f45f01c", size = 132565, upload-time = "2025-12-11T13:32:35.069Z" },
]
[[package]]
name = "opentelemetry-semantic-conventions"
-version = "0.60b0"
+version = "0.60b1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "opentelemetry-api" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/71/0e/176a7844fe4e3cb5de604212094dffaed4e18b32f1c56b5258bcbcba85c2/opentelemetry_semantic_conventions-0.60b0.tar.gz", hash = "sha256:227d7aa73cbb8a2e418029d6b6465553aa01cf7e78ec9d0bc3255c7b3ac5bf8f", size = 137935, upload-time = "2025-12-03T13:20:12.395Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/91/df/553f93ed38bf22f4b999d9be9c185adb558982214f33eae539d3b5cd0858/opentelemetry_semantic_conventions-0.60b1.tar.gz", hash = "sha256:87c228b5a0669b748c76d76df6c364c369c28f1c465e50f661e39737e84bc953", size = 137935, upload-time = "2025-12-11T13:32:50.487Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/d0/56/af0306666f91bae47db14d620775604688361f0f76a872e0005277311131/opentelemetry_semantic_conventions-0.60b0-py3-none-any.whl", hash = "sha256:069530852691136018087b52688857d97bba61cd641d0f8628d2d92788c4f78a", size = 219981, upload-time = "2025-12-03T13:19:53.585Z" },
+ { url = "https://files.pythonhosted.org/packages/7a/5e/5958555e09635d09b75de3c4f8b9cae7335ca545d77392ffe7331534c402/opentelemetry_semantic_conventions-0.60b1-py3-none-any.whl", hash = "sha256:9fa8c8b0c110da289809292b0591220d3a7b53c1526a23021e977d68597893fb", size = 219982, upload-time = "2025-12-11T13:32:36.955Z" },
]
[[package]]
@@ -2397,7 +2806,7 @@ version = "2.3.3"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
- { name = "numpy", version = "2.3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "numpy", version = "2.4.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
{ name = "python-dateutil" },
{ name = "pytz" },
{ name = "tzdata" },
@@ -2438,6 +2847,19 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/44/23/78d645adc35d94d1ac4f2a3c4112ab6f5b8999f4898b8cdf01252f8df4a9/pandas-2.3.3-cp313-cp313t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:900f47d8f20860de523a1ac881c4c36d65efcb2eb850e6948140fa781736e110", size = 12121912, upload-time = "2025-09-29T23:23:05.042Z" },
{ url = "https://files.pythonhosted.org/packages/53/da/d10013df5e6aaef6b425aa0c32e1fc1f3e431e4bcabd420517dceadce354/pandas-2.3.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:a45c765238e2ed7d7c608fc5bc4a6f88b642f2f01e70c0c23d2224dd21829d86", size = 12712160, upload-time = "2025-09-29T23:23:28.57Z" },
{ url = "https://files.pythonhosted.org/packages/bd/17/e756653095a083d8a37cbd816cb87148debcfcd920129b25f99dd8d04271/pandas-2.3.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:c4fc4c21971a1a9f4bdb4c73978c7f7256caa3e62b323f70d6cb80db583350bc", size = 13199233, upload-time = "2025-09-29T23:24:24.876Z" },
+ { url = "https://files.pythonhosted.org/packages/04/fd/74903979833db8390b73b3a8a7d30d146d710bd32703724dd9083950386f/pandas-2.3.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:ee15f284898e7b246df8087fc82b87b01686f98ee67d85a17b7ab44143a3a9a0", size = 11540635, upload-time = "2025-09-29T23:25:52.486Z" },
+ { url = "https://files.pythonhosted.org/packages/21/00/266d6b357ad5e6d3ad55093a7e8efc7dd245f5a842b584db9f30b0f0a287/pandas-2.3.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1611aedd912e1ff81ff41c745822980c49ce4a7907537be8692c8dbc31924593", size = 10759079, upload-time = "2025-09-29T23:26:33.204Z" },
+ { url = "https://files.pythonhosted.org/packages/ca/05/d01ef80a7a3a12b2f8bbf16daba1e17c98a2f039cbc8e2f77a2c5a63d382/pandas-2.3.3-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6d2cefc361461662ac48810cb14365a365ce864afe85ef1f447ff5a1e99ea81c", size = 11814049, upload-time = "2025-09-29T23:27:15.384Z" },
+ { url = "https://files.pythonhosted.org/packages/15/b2/0e62f78c0c5ba7e3d2c5945a82456f4fac76c480940f805e0b97fcbc2f65/pandas-2.3.3-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ee67acbbf05014ea6c763beb097e03cd629961c8a632075eeb34247120abcb4b", size = 12332638, upload-time = "2025-09-29T23:27:51.625Z" },
+ { url = "https://files.pythonhosted.org/packages/c5/33/dd70400631b62b9b29c3c93d2feee1d0964dc2bae2e5ad7a6c73a7f25325/pandas-2.3.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c46467899aaa4da076d5abc11084634e2d197e9460643dd455ac3db5856b24d6", size = 12886834, upload-time = "2025-09-29T23:28:21.289Z" },
+ { url = "https://files.pythonhosted.org/packages/d3/18/b5d48f55821228d0d2692b34fd5034bb185e854bdb592e9c640f6290e012/pandas-2.3.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:6253c72c6a1d990a410bc7de641d34053364ef8bcd3126f7e7450125887dffe3", size = 13409925, upload-time = "2025-09-29T23:28:58.261Z" },
+ { url = "https://files.pythonhosted.org/packages/a6/3d/124ac75fcd0ecc09b8fdccb0246ef65e35b012030defb0e0eba2cbbbe948/pandas-2.3.3-cp314-cp314-win_amd64.whl", hash = "sha256:1b07204a219b3b7350abaae088f451860223a52cfb8a6c53358e7948735158e5", size = 11109071, upload-time = "2025-09-29T23:32:27.484Z" },
+ { url = "https://files.pythonhosted.org/packages/89/9c/0e21c895c38a157e0faa1fb64587a9226d6dd46452cac4532d80c3c4a244/pandas-2.3.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:2462b1a365b6109d275250baaae7b760fd25c726aaca0054649286bcfbb3e8ec", size = 12048504, upload-time = "2025-09-29T23:29:31.47Z" },
+ { url = "https://files.pythonhosted.org/packages/d7/82/b69a1c95df796858777b68fbe6a81d37443a33319761d7c652ce77797475/pandas-2.3.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0242fe9a49aa8b4d78a4fa03acb397a58833ef6199e9aa40a95f027bb3a1b6e7", size = 11410702, upload-time = "2025-09-29T23:29:54.591Z" },
+ { url = "https://files.pythonhosted.org/packages/f9/88/702bde3ba0a94b8c73a0181e05144b10f13f29ebfc2150c3a79062a8195d/pandas-2.3.3-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a21d830e78df0a515db2b3d2f5570610f5e6bd2e27749770e8bb7b524b89b450", size = 11634535, upload-time = "2025-09-29T23:30:21.003Z" },
+ { url = "https://files.pythonhosted.org/packages/a4/1e/1bac1a839d12e6a82ec6cb40cda2edde64a2013a66963293696bbf31fbbb/pandas-2.3.3-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2e3ebdb170b5ef78f19bfb71b0dc5dc58775032361fa188e814959b74d726dd5", size = 12121582, upload-time = "2025-09-29T23:30:43.391Z" },
+ { url = "https://files.pythonhosted.org/packages/44/91/483de934193e12a3b1d6ae7c8645d083ff88dec75f46e827562f1e4b4da6/pandas-2.3.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:d051c0e065b94b7a3cea50eb1ec32e912cd96dba41647eb24104b6c6c14c5788", size = 12699963, upload-time = "2025-09-29T23:31:10.009Z" },
+ { url = "https://files.pythonhosted.org/packages/70/44/5191d2e4026f86a2a109053e194d3ba7a31a2d10a9c2348368c63ed4e85a/pandas-2.3.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:3869faf4bd07b3b66a9f462417d0ca3a9df29a9f6abd5d0d0dbab15dac7abe87", size = 13202175, upload-time = "2025-09-29T23:31:59.173Z" },
]
[[package]]
@@ -2513,6 +2935,28 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/49/6b/00187a044f98255225f172de653941e61da37104a9ea60e4f6887717e2b5/pillow-11.3.0-cp313-cp313t-win32.whl", hash = "sha256:2a3117c06b8fb646639dce83694f2f9eac405472713fcb1ae887469c0d4f6788", size = 6277546, upload-time = "2025-07-01T09:15:11.311Z" },
{ url = "https://files.pythonhosted.org/packages/e8/5c/6caaba7e261c0d75bab23be79f1d06b5ad2a2ae49f028ccec801b0e853d6/pillow-11.3.0-cp313-cp313t-win_amd64.whl", hash = "sha256:857844335c95bea93fb39e0fa2726b4d9d758850b34075a7e3ff4f4fa3aa3b31", size = 6985102, upload-time = "2025-07-01T09:15:13.164Z" },
{ url = "https://files.pythonhosted.org/packages/f3/7e/b623008460c09a0cb38263c93b828c666493caee2eb34ff67f778b87e58c/pillow-11.3.0-cp313-cp313t-win_arm64.whl", hash = "sha256:8797edc41f3e8536ae4b10897ee2f637235c94f27404cac7297f7b607dd0716e", size = 2424803, upload-time = "2025-07-01T09:15:15.695Z" },
+ { url = "https://files.pythonhosted.org/packages/73/f4/04905af42837292ed86cb1b1dabe03dce1edc008ef14c473c5c7e1443c5d/pillow-11.3.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:d9da3df5f9ea2a89b81bb6087177fb1f4d1c7146d583a3fe5c672c0d94e55e12", size = 5278520, upload-time = "2025-07-01T09:15:17.429Z" },
+ { url = "https://files.pythonhosted.org/packages/41/b0/33d79e377a336247df6348a54e6d2a2b85d644ca202555e3faa0cf811ecc/pillow-11.3.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:0b275ff9b04df7b640c59ec5a3cb113eefd3795a8df80bac69646ef699c6981a", size = 4686116, upload-time = "2025-07-01T09:15:19.423Z" },
+ { url = "https://files.pythonhosted.org/packages/49/2d/ed8bc0ab219ae8768f529597d9509d184fe8a6c4741a6864fea334d25f3f/pillow-11.3.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0743841cabd3dba6a83f38a92672cccbd69af56e3e91777b0ee7f4dba4385632", size = 5864597, upload-time = "2025-07-03T13:10:38.404Z" },
+ { url = "https://files.pythonhosted.org/packages/b5/3d/b932bb4225c80b58dfadaca9d42d08d0b7064d2d1791b6a237f87f661834/pillow-11.3.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:2465a69cf967b8b49ee1b96d76718cd98c4e925414ead59fdf75cf0fd07df673", size = 7638246, upload-time = "2025-07-03T13:10:44.987Z" },
+ { url = "https://files.pythonhosted.org/packages/09/b5/0487044b7c096f1b48f0d7ad416472c02e0e4bf6919541b111efd3cae690/pillow-11.3.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:41742638139424703b4d01665b807c6468e23e699e8e90cffefe291c5832b027", size = 5973336, upload-time = "2025-07-01T09:15:21.237Z" },
+ { url = "https://files.pythonhosted.org/packages/a8/2d/524f9318f6cbfcc79fbc004801ea6b607ec3f843977652fdee4857a7568b/pillow-11.3.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:93efb0b4de7e340d99057415c749175e24c8864302369e05914682ba642e5d77", size = 6642699, upload-time = "2025-07-01T09:15:23.186Z" },
+ { url = "https://files.pythonhosted.org/packages/6f/d2/a9a4f280c6aefedce1e8f615baaa5474e0701d86dd6f1dede66726462bbd/pillow-11.3.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7966e38dcd0fa11ca390aed7c6f20454443581d758242023cf36fcb319b1a874", size = 6083789, upload-time = "2025-07-01T09:15:25.1Z" },
+ { url = "https://files.pythonhosted.org/packages/fe/54/86b0cd9dbb683a9d5e960b66c7379e821a19be4ac5810e2e5a715c09a0c0/pillow-11.3.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:98a9afa7b9007c67ed84c57c9e0ad86a6000da96eaa638e4f8abe5b65ff83f0a", size = 6720386, upload-time = "2025-07-01T09:15:27.378Z" },
+ { url = "https://files.pythonhosted.org/packages/e7/95/88efcaf384c3588e24259c4203b909cbe3e3c2d887af9e938c2022c9dd48/pillow-11.3.0-cp314-cp314-win32.whl", hash = "sha256:02a723e6bf909e7cea0dac1b0e0310be9d7650cd66222a5f1c571455c0a45214", size = 6370911, upload-time = "2025-07-01T09:15:29.294Z" },
+ { url = "https://files.pythonhosted.org/packages/2e/cc/934e5820850ec5eb107e7b1a72dd278140731c669f396110ebc326f2a503/pillow-11.3.0-cp314-cp314-win_amd64.whl", hash = "sha256:a418486160228f64dd9e9efcd132679b7a02a5f22c982c78b6fc7dab3fefb635", size = 7117383, upload-time = "2025-07-01T09:15:31.128Z" },
+ { url = "https://files.pythonhosted.org/packages/d6/e9/9c0a616a71da2a5d163aa37405e8aced9a906d574b4a214bede134e731bc/pillow-11.3.0-cp314-cp314-win_arm64.whl", hash = "sha256:155658efb5e044669c08896c0c44231c5e9abcaadbc5cd3648df2f7c0b96b9a6", size = 2511385, upload-time = "2025-07-01T09:15:33.328Z" },
+ { url = "https://files.pythonhosted.org/packages/1a/33/c88376898aff369658b225262cd4f2659b13e8178e7534df9e6e1fa289f6/pillow-11.3.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:59a03cdf019efbfeeed910bf79c7c93255c3d54bc45898ac2a4140071b02b4ae", size = 5281129, upload-time = "2025-07-01T09:15:35.194Z" },
+ { url = "https://files.pythonhosted.org/packages/1f/70/d376247fb36f1844b42910911c83a02d5544ebd2a8bad9efcc0f707ea774/pillow-11.3.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f8a5827f84d973d8636e9dc5764af4f0cf2318d26744b3d902931701b0d46653", size = 4689580, upload-time = "2025-07-01T09:15:37.114Z" },
+ { url = "https://files.pythonhosted.org/packages/eb/1c/537e930496149fbac69efd2fc4329035bbe2e5475b4165439e3be9cb183b/pillow-11.3.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ee92f2fd10f4adc4b43d07ec5e779932b4eb3dbfbc34790ada5a6669bc095aa6", size = 5902860, upload-time = "2025-07-03T13:10:50.248Z" },
+ { url = "https://files.pythonhosted.org/packages/bd/57/80f53264954dcefeebcf9dae6e3eb1daea1b488f0be8b8fef12f79a3eb10/pillow-11.3.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c96d333dcf42d01f47b37e0979b6bd73ec91eae18614864622d9b87bbd5bbf36", size = 7670694, upload-time = "2025-07-03T13:10:56.432Z" },
+ { url = "https://files.pythonhosted.org/packages/70/ff/4727d3b71a8578b4587d9c276e90efad2d6fe0335fd76742a6da08132e8c/pillow-11.3.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4c96f993ab8c98460cd0c001447bff6194403e8b1d7e149ade5f00594918128b", size = 6005888, upload-time = "2025-07-01T09:15:39.436Z" },
+ { url = "https://files.pythonhosted.org/packages/05/ae/716592277934f85d3be51d7256f3636672d7b1abfafdc42cf3f8cbd4b4c8/pillow-11.3.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:41342b64afeba938edb034d122b2dda5db2139b9a4af999729ba8818e0056477", size = 6670330, upload-time = "2025-07-01T09:15:41.269Z" },
+ { url = "https://files.pythonhosted.org/packages/e7/bb/7fe6cddcc8827b01b1a9766f5fdeb7418680744f9082035bdbabecf1d57f/pillow-11.3.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:068d9c39a2d1b358eb9f245ce7ab1b5c3246c7c8c7d9ba58cfa5b43146c06e50", size = 6114089, upload-time = "2025-07-01T09:15:43.13Z" },
+ { url = "https://files.pythonhosted.org/packages/8b/f5/06bfaa444c8e80f1a8e4bff98da9c83b37b5be3b1deaa43d27a0db37ef84/pillow-11.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:a1bc6ba083b145187f648b667e05a2534ecc4b9f2784c2cbe3089e44868f2b9b", size = 6748206, upload-time = "2025-07-01T09:15:44.937Z" },
+ { url = "https://files.pythonhosted.org/packages/f0/77/bc6f92a3e8e6e46c0ca78abfffec0037845800ea38c73483760362804c41/pillow-11.3.0-cp314-cp314t-win32.whl", hash = "sha256:118ca10c0d60b06d006be10a501fd6bbdfef559251ed31b794668ed569c87e12", size = 6377370, upload-time = "2025-07-01T09:15:46.673Z" },
+ { url = "https://files.pythonhosted.org/packages/4a/82/3a721f7d69dca802befb8af08b7c79ebcab461007ce1c18bd91a5d5896f9/pillow-11.3.0-cp314-cp314t-win_amd64.whl", hash = "sha256:8924748b688aa210d79883357d102cd64690e56b923a186f35a82cbc10f997db", size = 7121500, upload-time = "2025-07-01T09:15:48.512Z" },
+ { url = "https://files.pythonhosted.org/packages/89/c7/5572fa4a3f45740eaab6ae86fcdf7195b55beac1371ac8c619d880cfe948/pillow-11.3.0-cp314-cp314t-win_arm64.whl", hash = "sha256:79ea0d14d3ebad43ec77ad5272e6ff9bba5b679ef73375ea760261207fa8e0aa", size = 2512835, upload-time = "2025-07-01T09:15:50.399Z" },
{ url = "https://files.pythonhosted.org/packages/6f/8b/209bd6b62ce8367f47e68a218bffac88888fdf2c9fcf1ecadc6c3ec1ebc7/pillow-11.3.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:3cee80663f29e3843b68199b9d6f4f54bd1d4a6b59bdd91bceefc51238bcb967", size = 5270556, upload-time = "2025-07-01T09:16:09.961Z" },
{ url = "https://files.pythonhosted.org/packages/2e/e6/231a0b76070c2cfd9e260a7a5b504fb72da0a95279410fa7afd99d9751d6/pillow-11.3.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:b5f56c3f344f2ccaf0dd875d3e180f631dc60a51b314295a3e681fe8cf851fbe", size = 4654625, upload-time = "2025-07-01T09:16:11.913Z" },
{ url = "https://files.pythonhosted.org/packages/13/f4/10cf94fda33cb12765f2397fc285fa6d8eb9c29de7f3185165b702fc7386/pillow-11.3.0-pp310-pypy310_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:e67d793d180c9df62f1f40aee3accca4829d3794c95098887edc18af4b8b780c", size = 4874207, upload-time = "2025-07-03T13:11:10.201Z" },
@@ -2544,7 +2988,7 @@ dependencies = [
{ name = "kajson" },
{ name = "markdown" },
{ name = "networkx", version = "3.4.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
- { name = "networkx", version = "3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "networkx", version = "3.6.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
{ name = "openai" },
{ name = "opentelemetry-api" },
{ name = "opentelemetry-exporter-otlp-proto-http" },
@@ -2611,6 +3055,9 @@ google-genai = [
{ name = "google-genai" },
{ name = "instructor", extra = ["google-genai"] },
]
+huggingface = [
+ { name = "huggingface-hub" },
+]
mistralai = [
{ name = "mistralai" },
]
@@ -2629,6 +3076,7 @@ requires-dist = [
{ name = "google-auth-oauthlib", marker = "extra == 'google'", specifier = ">=1.2.1" },
{ name = "google-genai", marker = "extra == 'google-genai'" },
{ name = "httpx", specifier = ">=0.23.0,<1.0.0" },
+ { name = "huggingface-hub", marker = "extra == 'huggingface'", specifier = ">=0.23,<1.0.0" },
{ name = "instructor", specifier = ">=1.8.3,!=1.11.*,!=1.12.*" },
{ name = "instructor", extras = ["google-genai"], marker = "extra == 'google-genai'" },
{ name = "jinja2", specifier = ">=3.1.4" },
@@ -2676,15 +3124,15 @@ requires-dist = [
{ name = "types-pyyaml", marker = "extra == 'dev'", specifier = ">=6.0.12.20250326" },
{ name = "typing-extensions", specifier = ">=4.13.2" },
]
-provides-extras = ["anthropic", "bedrock", "docling", "fal", "google", "google-genai", "mistralai", "docs", "dev"]
+provides-extras = ["anthropic", "bedrock", "docling", "fal", "google", "google-genai", "huggingface", "mistralai", "docs", "dev"]
[[package]]
name = "platformdirs"
-version = "4.5.0"
+version = "4.5.1"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/61/33/9611380c2bdb1225fdef633e2a9610622310fed35ab11dac9620972ee088/platformdirs-4.5.0.tar.gz", hash = "sha256:70ddccdd7c99fc5942e9fc25636a8b34d04c24b335100223152c2803e4063312", size = 21632, upload-time = "2025-10-08T17:44:48.791Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/cf/86/0248f086a84f01b37aaec0fa567b397df1a119f73c16f6c7a9aac73ea309/platformdirs-4.5.1.tar.gz", hash = "sha256:61d5cdcc6065745cdd94f0f878977f8de9437be93de97c1c12f853c9c0cdcbda", size = 21715, upload-time = "2025-12-05T13:52:58.638Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/73/cb/ac7874b3e5d58441674fb70742e6c374b28b0c7cb988d37d991cde47166c/platformdirs-4.5.0-py3-none-any.whl", hash = "sha256:e578a81bb873cbb89a41fcc904c7ef523cc18284b7e3b3ccf06aca1403b7ebd3", size = 18651, upload-time = "2025-10-08T17:44:47.223Z" },
+ { url = "https://files.pythonhosted.org/packages/cb/28/3bfe2fa5a7b9c46fe7e13c97bda14c895fb10fa2ebf1d0abb90e0cea7ee1/platformdirs-4.5.1-py3-none-any.whl", hash = "sha256:d03afa3963c806a9bed9d5125c8f4cb2fdaf74a55ab60e5d59b3fde758104d31", size = 18731, upload-time = "2025-12-05T13:52:56.823Z" },
]
[[package]]
@@ -2698,15 +3146,15 @@ wheels = [
[[package]]
name = "polyfactory"
-version = "3.0.0"
+version = "3.2.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "faker" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/45/c6/2f795ede27e82bf6ed10a6b689f975017e36bf497915bfeafc3932b1a613/polyfactory-3.0.0.tar.gz", hash = "sha256:c1be54fc10fe738415eef2248bcfc687e3d74634f5e73b70e4ba58952df31363", size = 304234, upload-time = "2025-11-15T11:23:02.003Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/97/92/e90639b1d2abe982749eba7e734571a343ea062f7d486498b1c2b852f019/polyfactory-3.2.0.tar.gz", hash = "sha256:879242f55208f023eee1de48522de5cb1f9fd2d09b2314e999a9592829d596d1", size = 346878, upload-time = "2025-12-21T11:18:51.017Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/54/86/742c4eb237cdb5e7e6dfb1474f5f0dac967896185f832c012dff4d7bdce2/polyfactory-3.0.0-py3-none-any.whl", hash = "sha256:ad9ba3b3f04c292d30673587946e1c5d18e249074368b09abb7c9455288cfc37", size = 61237, upload-time = "2025-11-15T11:23:00.524Z" },
+ { url = "https://files.pythonhosted.org/packages/d9/21/93363d7b802aa904f8d4169bc33e0e316d06d26ee68d40fe0355057da98c/polyfactory-3.2.0-py3-none-any.whl", hash = "sha256:5945799cce4c56cd44ccad96fb0352996914553cc3efaa5a286930599f569571", size = 62181, upload-time = "2025-12-21T11:18:49.311Z" },
]
[[package]]
@@ -2732,7 +3180,7 @@ wheels = [
[[package]]
name = "posthog"
-version = "7.0.1"
+version = "7.4.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "backoff" },
@@ -2742,14 +3190,14 @@ dependencies = [
{ name = "six" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/a2/d4/b9afe855a8a7a1bf4459c28ae4c300b40338122dc850acabefcf2c3df24d/posthog-7.0.1.tar.gz", hash = "sha256:21150562c2630a599c1d7eac94bc5c64eb6f6acbf3ff52ccf1e57345706db05a", size = 126985, upload-time = "2025-11-15T12:44:22.465Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/fb/a9/90bee782b3122b69462c579c496e2431786d3d1adebd1bff66d5e69f66cf/posthog-7.4.2.tar.gz", hash = "sha256:5953f31a21c5e2485ac57eb5d600a231a70118f884f438c0e8b493c30373c409", size = 144136, upload-time = "2025-12-22T11:03:15.301Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/05/0c/8b6b20b0be71725e6e8a32dcd460cdbf62fe6df9bc656a650150dc98fedd/posthog-7.0.1-py3-none-any.whl", hash = "sha256:efe212d8d88a9ba80a20c588eab4baf4b1a5e90e40b551160a5603bb21e96904", size = 145234, upload-time = "2025-11-15T12:44:21.247Z" },
+ { url = "https://files.pythonhosted.org/packages/c5/95/ed48309ec45d8856e38c07ff2f65e7f904e2e4249905d2bf903e2eb0ad32/posthog-7.4.2-py3-none-any.whl", hash = "sha256:36954f06f4adede905d97faeb24926a705a4d86f4a308506b15b41b661ef064c", size = 166516, upload-time = "2025-12-22T11:03:14.27Z" },
]
[[package]]
name = "pre-commit"
-version = "4.4.0"
+version = "4.5.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "cfgv" },
@@ -2758,9 +3206,9 @@ dependencies = [
{ name = "pyyaml" },
{ name = "virtualenv" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/a6/49/7845c2d7bf6474efd8e27905b51b11e6ce411708c91e829b93f324de9929/pre_commit-4.4.0.tar.gz", hash = "sha256:f0233ebab440e9f17cabbb558706eb173d19ace965c68cdce2c081042b4fab15", size = 197501, upload-time = "2025-11-08T21:12:11.607Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/40/f1/6d86a29246dfd2e9b6237f0b5823717f60cad94d47ddc26afa916d21f525/pre_commit-4.5.1.tar.gz", hash = "sha256:eb545fcff725875197837263e977ea257a402056661f09dae08e4b149b030a61", size = 198232, upload-time = "2025-12-16T21:14:33.552Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/27/11/574fe7d13acf30bfd0a8dd7fa1647040f2b8064f13f43e8c963b1e65093b/pre_commit-4.4.0-py2.py3-none-any.whl", hash = "sha256:b35ea52957cbf83dcc5d8ee636cbead8624e3a15fbfa61a370e42158ac8a5813", size = 226049, upload-time = "2025-11-08T21:12:10.228Z" },
+ { url = "https://files.pythonhosted.org/packages/5d/19/fd3ef348460c80af7bb4669ea7926651d1f95c23ff2df18b9d24bab4f3fa/pre_commit-4.5.1-py2.py3-none-any.whl", hash = "sha256:3b3afd891e97337708c1674210f8eba659b52a38ea5f822ff142d10786221f77", size = 226437, upload-time = "2025-12-16T21:14:32.409Z" },
]
[[package]]
@@ -2844,42 +3292,80 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/92/f7/1d4ec5841505f423469efbfc381d64b7b467438cd5a4bbcbb063f3b73d27/propcache-0.4.1-cp313-cp313t-win32.whl", hash = "sha256:2ad890caa1d928c7c2965b48f3a3815c853180831d0e5503d35cf00c472f4717", size = 41396, upload-time = "2025-10-08T19:47:47.202Z" },
{ url = "https://files.pythonhosted.org/packages/48/f0/615c30622316496d2cbbc29f5985f7777d3ada70f23370608c1d3e081c1f/propcache-0.4.1-cp313-cp313t-win_amd64.whl", hash = "sha256:f7ee0e597f495cf415bcbd3da3caa3bd7e816b74d0d52b8145954c5e6fd3ff37", size = 44897, upload-time = "2025-10-08T19:47:48.336Z" },
{ url = "https://files.pythonhosted.org/packages/fd/ca/6002e46eccbe0e33dcd4069ef32f7f1c9e243736e07adca37ae8c4830ec3/propcache-0.4.1-cp313-cp313t-win_arm64.whl", hash = "sha256:929d7cbe1f01bb7baffb33dc14eb5691c95831450a26354cd210a8155170c93a", size = 39789, upload-time = "2025-10-08T19:47:49.876Z" },
+ { url = "https://files.pythonhosted.org/packages/8e/5c/bca52d654a896f831b8256683457ceddd490ec18d9ec50e97dfd8fc726a8/propcache-0.4.1-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:3f7124c9d820ba5548d431afb4632301acf965db49e666aa21c305cbe8c6de12", size = 78152, upload-time = "2025-10-08T19:47:51.051Z" },
+ { url = "https://files.pythonhosted.org/packages/65/9b/03b04e7d82a5f54fb16113d839f5ea1ede58a61e90edf515f6577c66fa8f/propcache-0.4.1-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:c0d4b719b7da33599dfe3b22d3db1ef789210a0597bc650b7cee9c77c2be8c5c", size = 44869, upload-time = "2025-10-08T19:47:52.594Z" },
+ { url = "https://files.pythonhosted.org/packages/b2/fa/89a8ef0468d5833a23fff277b143d0573897cf75bd56670a6d28126c7d68/propcache-0.4.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:9f302f4783709a78240ebc311b793f123328716a60911d667e0c036bc5dcbded", size = 46596, upload-time = "2025-10-08T19:47:54.073Z" },
+ { url = "https://files.pythonhosted.org/packages/86/bd/47816020d337f4a746edc42fe8d53669965138f39ee117414c7d7a340cfe/propcache-0.4.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c80ee5802e3fb9ea37938e7eecc307fb984837091d5fd262bb37238b1ae97641", size = 206981, upload-time = "2025-10-08T19:47:55.715Z" },
+ { url = "https://files.pythonhosted.org/packages/df/f6/c5fa1357cc9748510ee55f37173eb31bfde6d94e98ccd9e6f033f2fc06e1/propcache-0.4.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ed5a841e8bb29a55fb8159ed526b26adc5bdd7e8bd7bf793ce647cb08656cdf4", size = 211490, upload-time = "2025-10-08T19:47:57.499Z" },
+ { url = "https://files.pythonhosted.org/packages/80/1e/e5889652a7c4a3846683401a48f0f2e5083ce0ec1a8a5221d8058fbd1adf/propcache-0.4.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:55c72fd6ea2da4c318e74ffdf93c4fe4e926051133657459131a95c846d16d44", size = 215371, upload-time = "2025-10-08T19:47:59.317Z" },
+ { url = "https://files.pythonhosted.org/packages/b2/f2/889ad4b2408f72fe1a4f6a19491177b30ea7bf1a0fd5f17050ca08cfc882/propcache-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8326e144341460402713f91df60ade3c999d601e7eb5ff8f6f7862d54de0610d", size = 201424, upload-time = "2025-10-08T19:48:00.67Z" },
+ { url = "https://files.pythonhosted.org/packages/27/73/033d63069b57b0812c8bd19f311faebeceb6ba31b8f32b73432d12a0b826/propcache-0.4.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:060b16ae65bc098da7f6d25bf359f1f31f688384858204fe5d652979e0015e5b", size = 197566, upload-time = "2025-10-08T19:48:02.604Z" },
+ { url = "https://files.pythonhosted.org/packages/dc/89/ce24f3dc182630b4e07aa6d15f0ff4b14ed4b9955fae95a0b54c58d66c05/propcache-0.4.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:89eb3fa9524f7bec9de6e83cf3faed9d79bffa560672c118a96a171a6f55831e", size = 193130, upload-time = "2025-10-08T19:48:04.499Z" },
+ { url = "https://files.pythonhosted.org/packages/a9/24/ef0d5fd1a811fb5c609278d0209c9f10c35f20581fcc16f818da959fc5b4/propcache-0.4.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:dee69d7015dc235f526fe80a9c90d65eb0039103fe565776250881731f06349f", size = 202625, upload-time = "2025-10-08T19:48:06.213Z" },
+ { url = "https://files.pythonhosted.org/packages/f5/02/98ec20ff5546f68d673df2f7a69e8c0d076b5abd05ca882dc7ee3a83653d/propcache-0.4.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:5558992a00dfd54ccbc64a32726a3357ec93825a418a401f5cc67df0ac5d9e49", size = 204209, upload-time = "2025-10-08T19:48:08.432Z" },
+ { url = "https://files.pythonhosted.org/packages/a0/87/492694f76759b15f0467a2a93ab68d32859672b646aa8a04ce4864e7932d/propcache-0.4.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:c9b822a577f560fbd9554812526831712c1436d2c046cedee4c3796d3543b144", size = 197797, upload-time = "2025-10-08T19:48:09.968Z" },
+ { url = "https://files.pythonhosted.org/packages/ee/36/66367de3575db1d2d3f3d177432bd14ee577a39d3f5d1b3d5df8afe3b6e2/propcache-0.4.1-cp314-cp314-win32.whl", hash = "sha256:ab4c29b49d560fe48b696cdcb127dd36e0bc2472548f3bf56cc5cb3da2b2984f", size = 38140, upload-time = "2025-10-08T19:48:11.232Z" },
+ { url = "https://files.pythonhosted.org/packages/0c/2a/a758b47de253636e1b8aef181c0b4f4f204bf0dd964914fb2af90a95b49b/propcache-0.4.1-cp314-cp314-win_amd64.whl", hash = "sha256:5a103c3eb905fcea0ab98be99c3a9a5ab2de60228aa5aceedc614c0281cf6153", size = 41257, upload-time = "2025-10-08T19:48:12.707Z" },
+ { url = "https://files.pythonhosted.org/packages/34/5e/63bd5896c3fec12edcbd6f12508d4890d23c265df28c74b175e1ef9f4f3b/propcache-0.4.1-cp314-cp314-win_arm64.whl", hash = "sha256:74c1fb26515153e482e00177a1ad654721bf9207da8a494a0c05e797ad27b992", size = 38097, upload-time = "2025-10-08T19:48:13.923Z" },
+ { url = "https://files.pythonhosted.org/packages/99/85/9ff785d787ccf9bbb3f3106f79884a130951436f58392000231b4c737c80/propcache-0.4.1-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:824e908bce90fb2743bd6b59db36eb4f45cd350a39637c9f73b1c1ea66f5b75f", size = 81455, upload-time = "2025-10-08T19:48:15.16Z" },
+ { url = "https://files.pythonhosted.org/packages/90/85/2431c10c8e7ddb1445c1f7c4b54d886e8ad20e3c6307e7218f05922cad67/propcache-0.4.1-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:c2b5e7db5328427c57c8e8831abda175421b709672f6cfc3d630c3b7e2146393", size = 46372, upload-time = "2025-10-08T19:48:16.424Z" },
+ { url = "https://files.pythonhosted.org/packages/01/20/b0972d902472da9bcb683fa595099911f4d2e86e5683bcc45de60dd05dc3/propcache-0.4.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:6f6ff873ed40292cd4969ef5310179afd5db59fdf055897e282485043fc80ad0", size = 48411, upload-time = "2025-10-08T19:48:17.577Z" },
+ { url = "https://files.pythonhosted.org/packages/e2/e3/7dc89f4f21e8f99bad3d5ddb3a3389afcf9da4ac69e3deb2dcdc96e74169/propcache-0.4.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:49a2dc67c154db2c1463013594c458881a069fcf98940e61a0569016a583020a", size = 275712, upload-time = "2025-10-08T19:48:18.901Z" },
+ { url = "https://files.pythonhosted.org/packages/20/67/89800c8352489b21a8047c773067644e3897f02ecbbd610f4d46b7f08612/propcache-0.4.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:005f08e6a0529984491e37d8dbc3dd86f84bd78a8ceb5fa9a021f4c48d4984be", size = 273557, upload-time = "2025-10-08T19:48:20.762Z" },
+ { url = "https://files.pythonhosted.org/packages/e2/a1/b52b055c766a54ce6d9c16d9aca0cad8059acd9637cdf8aa0222f4a026ef/propcache-0.4.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5c3310452e0d31390da9035c348633b43d7e7feb2e37be252be6da45abd1abcc", size = 280015, upload-time = "2025-10-08T19:48:22.592Z" },
+ { url = "https://files.pythonhosted.org/packages/48/c8/33cee30bd890672c63743049f3c9e4be087e6780906bfc3ec58528be59c1/propcache-0.4.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4c3c70630930447f9ef1caac7728c8ad1c56bc5015338b20fed0d08ea2480b3a", size = 262880, upload-time = "2025-10-08T19:48:23.947Z" },
+ { url = "https://files.pythonhosted.org/packages/0c/b1/8f08a143b204b418285c88b83d00edbd61afbc2c6415ffafc8905da7038b/propcache-0.4.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8e57061305815dfc910a3634dcf584f08168a8836e6999983569f51a8544cd89", size = 260938, upload-time = "2025-10-08T19:48:25.656Z" },
+ { url = "https://files.pythonhosted.org/packages/cf/12/96e4664c82ca2f31e1c8dff86afb867348979eb78d3cb8546a680287a1e9/propcache-0.4.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:521a463429ef54143092c11a77e04056dd00636f72e8c45b70aaa3140d639726", size = 247641, upload-time = "2025-10-08T19:48:27.207Z" },
+ { url = "https://files.pythonhosted.org/packages/18/ed/e7a9cfca28133386ba52278136d42209d3125db08d0a6395f0cba0c0285c/propcache-0.4.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:120c964da3fdc75e3731aa392527136d4ad35868cc556fd09bb6d09172d9a367", size = 262510, upload-time = "2025-10-08T19:48:28.65Z" },
+ { url = "https://files.pythonhosted.org/packages/f5/76/16d8bf65e8845dd62b4e2b57444ab81f07f40caa5652b8969b87ddcf2ef6/propcache-0.4.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:d8f353eb14ee3441ee844ade4277d560cdd68288838673273b978e3d6d2c8f36", size = 263161, upload-time = "2025-10-08T19:48:30.133Z" },
+ { url = "https://files.pythonhosted.org/packages/e7/70/c99e9edb5d91d5ad8a49fa3c1e8285ba64f1476782fed10ab251ff413ba1/propcache-0.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:ab2943be7c652f09638800905ee1bab2c544e537edb57d527997a24c13dc1455", size = 257393, upload-time = "2025-10-08T19:48:31.567Z" },
+ { url = "https://files.pythonhosted.org/packages/08/02/87b25304249a35c0915d236575bc3574a323f60b47939a2262b77632a3ee/propcache-0.4.1-cp314-cp314t-win32.whl", hash = "sha256:05674a162469f31358c30bcaa8883cb7829fa3110bf9c0991fe27d7896c42d85", size = 42546, upload-time = "2025-10-08T19:48:32.872Z" },
+ { url = "https://files.pythonhosted.org/packages/cb/ef/3c6ecf8b317aa982f309835e8f96987466123c6e596646d4e6a1dfcd080f/propcache-0.4.1-cp314-cp314t-win_amd64.whl", hash = "sha256:990f6b3e2a27d683cb7602ed6c86f15ee6b43b1194736f9baaeb93d0016633b1", size = 46259, upload-time = "2025-10-08T19:48:34.226Z" },
+ { url = "https://files.pythonhosted.org/packages/c4/2d/346e946d4951f37eca1e4f55be0f0174c52cd70720f84029b02f296f4a38/propcache-0.4.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ecef2343af4cc68e05131e45024ba34f6095821988a9d0a02aa7c73fcc448aa9", size = 40428, upload-time = "2025-10-08T19:48:35.441Z" },
{ url = "https://files.pythonhosted.org/packages/5b/5a/bc7b4a4ef808fa59a816c17b20c4bef6884daebbdf627ff2a161da67da19/propcache-0.4.1-py3-none-any.whl", hash = "sha256:af2a6052aeb6cf17d3e46ee169099044fd8224cbaf75c76a2ef596e8163e2237", size = 13305, upload-time = "2025-10-08T19:49:00.792Z" },
]
[[package]]
name = "protobuf"
-version = "6.33.1"
+version = "6.33.2"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/0a/03/a1440979a3f74f16cab3b75b0da1a1a7f922d56a8ddea96092391998edc0/protobuf-6.33.1.tar.gz", hash = "sha256:97f65757e8d09870de6fd973aeddb92f85435607235d20b2dfed93405d00c85b", size = 443432, upload-time = "2025-11-13T16:44:18.895Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/34/44/e49ecff446afeec9d1a66d6bbf9adc21e3c7cea7803a920ca3773379d4f6/protobuf-6.33.2.tar.gz", hash = "sha256:56dc370c91fbb8ac85bc13582c9e373569668a290aa2e66a590c2a0d35ddb9e4", size = 444296, upload-time = "2025-12-06T00:17:53.311Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/06/f1/446a9bbd2c60772ca36556bac8bfde40eceb28d9cc7838755bc41e001d8f/protobuf-6.33.1-cp310-abi3-win32.whl", hash = "sha256:f8d3fdbc966aaab1d05046d0240dd94d40f2a8c62856d41eaa141ff64a79de6b", size = 425593, upload-time = "2025-11-13T16:44:06.275Z" },
- { url = "https://files.pythonhosted.org/packages/a6/79/8780a378c650e3df849b73de8b13cf5412f521ca2ff9b78a45c247029440/protobuf-6.33.1-cp310-abi3-win_amd64.whl", hash = "sha256:923aa6d27a92bf44394f6abf7ea0500f38769d4b07f4be41cb52bd8b1123b9ed", size = 436883, upload-time = "2025-11-13T16:44:09.222Z" },
- { url = "https://files.pythonhosted.org/packages/cd/93/26213ff72b103ae55bb0d73e7fb91ea570ef407c3ab4fd2f1f27cac16044/protobuf-6.33.1-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:fe34575f2bdde76ac429ec7b570235bf0c788883e70aee90068e9981806f2490", size = 427522, upload-time = "2025-11-13T16:44:10.475Z" },
- { url = "https://files.pythonhosted.org/packages/c2/32/df4a35247923393aa6b887c3b3244a8c941c32a25681775f96e2b418f90e/protobuf-6.33.1-cp39-abi3-manylinux2014_aarch64.whl", hash = "sha256:f8adba2e44cde2d7618996b3fc02341f03f5bc3f2748be72dc7b063319276178", size = 324445, upload-time = "2025-11-13T16:44:11.869Z" },
- { url = "https://files.pythonhosted.org/packages/8e/d0/d796e419e2ec93d2f3fa44888861c3f88f722cde02b7c3488fcc6a166820/protobuf-6.33.1-cp39-abi3-manylinux2014_s390x.whl", hash = "sha256:0f4cf01222c0d959c2b399142deb526de420be8236f22c71356e2a544e153c53", size = 339161, upload-time = "2025-11-13T16:44:12.778Z" },
- { url = "https://files.pythonhosted.org/packages/1d/2a/3c5f05a4af06649547027d288747f68525755de692a26a7720dced3652c0/protobuf-6.33.1-cp39-abi3-manylinux2014_x86_64.whl", hash = "sha256:8fd7d5e0eb08cd5b87fd3df49bc193f5cfd778701f47e11d127d0afc6c39f1d1", size = 323171, upload-time = "2025-11-13T16:44:14.035Z" },
- { url = "https://files.pythonhosted.org/packages/08/b4/46310463b4f6ceef310f8348786f3cff181cea671578e3d9743ba61a459e/protobuf-6.33.1-py3-none-any.whl", hash = "sha256:d595a9fd694fdeb061a62fbe10eb039cc1e444df81ec9bb70c7fc59ebcb1eafa", size = 170477, upload-time = "2025-11-13T16:44:17.633Z" },
+ { url = "https://files.pythonhosted.org/packages/bc/91/1e3a34881a88697a7354ffd177e8746e97a722e5e8db101544b47e84afb1/protobuf-6.33.2-cp310-abi3-win32.whl", hash = "sha256:87eb388bd2d0f78febd8f4c8779c79247b26a5befad525008e49a6955787ff3d", size = 425603, upload-time = "2025-12-06T00:17:41.114Z" },
+ { url = "https://files.pythonhosted.org/packages/64/20/4d50191997e917ae13ad0a235c8b42d8c1ab9c3e6fd455ca16d416944355/protobuf-6.33.2-cp310-abi3-win_amd64.whl", hash = "sha256:fc2a0e8b05b180e5fc0dd1559fe8ebdae21a27e81ac77728fb6c42b12c7419b4", size = 436930, upload-time = "2025-12-06T00:17:43.278Z" },
+ { url = "https://files.pythonhosted.org/packages/b2/ca/7e485da88ba45c920fb3f50ae78de29ab925d9e54ef0de678306abfbb497/protobuf-6.33.2-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:d9b19771ca75935b3a4422957bc518b0cecb978b31d1dd12037b088f6bcc0e43", size = 427621, upload-time = "2025-12-06T00:17:44.445Z" },
+ { url = "https://files.pythonhosted.org/packages/7d/4f/f743761e41d3b2b2566748eb76bbff2b43e14d5fcab694f494a16458b05f/protobuf-6.33.2-cp39-abi3-manylinux2014_aarch64.whl", hash = "sha256:b5d3b5625192214066d99b2b605f5783483575656784de223f00a8d00754fc0e", size = 324460, upload-time = "2025-12-06T00:17:45.678Z" },
+ { url = "https://files.pythonhosted.org/packages/b1/fa/26468d00a92824020f6f2090d827078c09c9c587e34cbfd2d0c7911221f8/protobuf-6.33.2-cp39-abi3-manylinux2014_s390x.whl", hash = "sha256:8cd7640aee0b7828b6d03ae518b5b4806fdfc1afe8de82f79c3454f8aef29872", size = 339168, upload-time = "2025-12-06T00:17:46.813Z" },
+ { url = "https://files.pythonhosted.org/packages/56/13/333b8f421738f149d4fe5e49553bc2a2ab75235486259f689b4b91f96cec/protobuf-6.33.2-cp39-abi3-manylinux2014_x86_64.whl", hash = "sha256:1f8017c48c07ec5859106533b682260ba3d7c5567b1ca1f24297ce03384d1b4f", size = 323270, upload-time = "2025-12-06T00:17:48.253Z" },
+ { url = "https://files.pythonhosted.org/packages/0e/15/4f02896cc3df04fc465010a4c6a0cd89810f54617a32a70ef531ed75d61c/protobuf-6.33.2-py3-none-any.whl", hash = "sha256:7636aad9bb01768870266de5dc009de2d1b936771b38a793f73cbbf279c91c5c", size = 170501, upload-time = "2025-12-06T00:17:52.211Z" },
]
[[package]]
name = "psutil"
-version = "7.1.3"
-source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/e1/88/bdd0a41e5857d5d703287598cbf08dad90aed56774ea52ae071bae9071b6/psutil-7.1.3.tar.gz", hash = "sha256:6c86281738d77335af7aec228328e944b30930899ea760ecf33a4dba66be5e74", size = 489059, upload-time = "2025-11-02T12:25:54.619Z" }
-wheels = [
- { url = "https://files.pythonhosted.org/packages/bd/93/0c49e776b8734fef56ec9c5c57f923922f2cf0497d62e0f419465f28f3d0/psutil-7.1.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0005da714eee687b4b8decd3d6cc7c6db36215c9e74e5ad2264b90c3df7d92dc", size = 239751, upload-time = "2025-11-02T12:25:58.161Z" },
- { url = "https://files.pythonhosted.org/packages/6f/8d/b31e39c769e70780f007969815195a55c81a63efebdd4dbe9e7a113adb2f/psutil-7.1.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:19644c85dcb987e35eeeaefdc3915d059dac7bd1167cdcdbf27e0ce2df0c08c0", size = 240368, upload-time = "2025-11-02T12:26:00.491Z" },
- { url = "https://files.pythonhosted.org/packages/62/61/23fd4acc3c9eebbf6b6c78bcd89e5d020cfde4acf0a9233e9d4e3fa698b4/psutil-7.1.3-cp313-cp313t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:95ef04cf2e5ba0ab9eaafc4a11eaae91b44f4ef5541acd2ee91d9108d00d59a7", size = 287134, upload-time = "2025-11-02T12:26:02.613Z" },
- { url = "https://files.pythonhosted.org/packages/30/1c/f921a009ea9ceb51aa355cb0cc118f68d354db36eae18174bab63affb3e6/psutil-7.1.3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1068c303be3a72f8e18e412c5b2a8f6d31750fb152f9cb106b54090296c9d251", size = 289904, upload-time = "2025-11-02T12:26:05.207Z" },
- { url = "https://files.pythonhosted.org/packages/a6/82/62d68066e13e46a5116df187d319d1724b3f437ddd0f958756fc052677f4/psutil-7.1.3-cp313-cp313t-win_amd64.whl", hash = "sha256:18349c5c24b06ac5612c0428ec2a0331c26443d259e2a0144a9b24b4395b58fa", size = 249642, upload-time = "2025-11-02T12:26:07.447Z" },
- { url = "https://files.pythonhosted.org/packages/df/ad/c1cd5fe965c14a0392112f68362cfceb5230819dbb5b1888950d18a11d9f/psutil-7.1.3-cp313-cp313t-win_arm64.whl", hash = "sha256:c525ffa774fe4496282fb0b1187725793de3e7c6b29e41562733cae9ada151ee", size = 245518, upload-time = "2025-11-02T12:26:09.719Z" },
- { url = "https://files.pythonhosted.org/packages/ef/94/46b9154a800253e7ecff5aaacdf8ebf43db99de4a2dfa18575b02548654e/psutil-7.1.3-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:2bdbcd0e58ca14996a42adf3621a6244f1bb2e2e528886959c72cf1e326677ab", size = 238359, upload-time = "2025-11-02T12:26:25.284Z" },
- { url = "https://files.pythonhosted.org/packages/68/3a/9f93cff5c025029a36d9a92fef47220ab4692ee7f2be0fba9f92813d0cb8/psutil-7.1.3-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:bc31fa00f1fbc3c3802141eede66f3a2d51d89716a194bf2cd6fc68310a19880", size = 239171, upload-time = "2025-11-02T12:26:27.23Z" },
- { url = "https://files.pythonhosted.org/packages/ce/b1/5f49af514f76431ba4eea935b8ad3725cdeb397e9245ab919dbc1d1dc20f/psutil-7.1.3-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3bb428f9f05c1225a558f53e30ccbad9930b11c3fc206836242de1091d3e7dd3", size = 263261, upload-time = "2025-11-02T12:26:29.48Z" },
- { url = "https://files.pythonhosted.org/packages/e0/95/992c8816a74016eb095e73585d747e0a8ea21a061ed3689474fabb29a395/psutil-7.1.3-cp36-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:56d974e02ca2c8eb4812c3f76c30e28836fffc311d55d979f1465c1feeb2b68b", size = 264635, upload-time = "2025-11-02T12:26:31.74Z" },
- { url = "https://files.pythonhosted.org/packages/55/4c/c3ed1a622b6ae2fd3c945a366e64eb35247a31e4db16cf5095e269e8eb3c/psutil-7.1.3-cp37-abi3-win_amd64.whl", hash = "sha256:f39c2c19fe824b47484b96f9692932248a54c43799a84282cfe58d05a6449efd", size = 247633, upload-time = "2025-11-02T12:26:33.887Z" },
- { url = "https://files.pythonhosted.org/packages/c9/ad/33b2ccec09bf96c2b2ef3f9a6f66baac8253d7565d8839e024a6b905d45d/psutil-7.1.3-cp37-abi3-win_arm64.whl", hash = "sha256:bd0d69cee829226a761e92f28140bec9a5ee9d5b4fb4b0cc589068dbfff559b1", size = 244608, upload-time = "2025-11-02T12:26:36.136Z" },
+version = "7.2.1"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/73/cb/09e5184fb5fc0358d110fc3ca7f6b1d033800734d34cac10f4136cfac10e/psutil-7.2.1.tar.gz", hash = "sha256:f7583aec590485b43ca601dd9cea0dcd65bd7bb21d30ef4ddbf4ea6b5ed1bdd3", size = 490253, upload-time = "2025-12-29T08:26:00.169Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/77/8e/f0c242053a368c2aa89584ecd1b054a18683f13d6e5a318fc9ec36582c94/psutil-7.2.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:ba9f33bb525b14c3ea563b2fd521a84d2fa214ec59e3e6a2858f78d0844dd60d", size = 129624, upload-time = "2025-12-29T08:26:04.255Z" },
+ { url = "https://files.pythonhosted.org/packages/26/97/a58a4968f8990617decee234258a2b4fc7cd9e35668387646c1963e69f26/psutil-7.2.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:81442dac7abfc2f4f4385ea9e12ddf5a796721c0f6133260687fec5c3780fa49", size = 130132, upload-time = "2025-12-29T08:26:06.228Z" },
+ { url = "https://files.pythonhosted.org/packages/db/6d/ed44901e830739af5f72a85fa7ec5ff1edea7f81bfbf4875e409007149bd/psutil-7.2.1-cp313-cp313t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ea46c0d060491051d39f0d2cff4f98d5c72b288289f57a21556cc7d504db37fc", size = 180612, upload-time = "2025-12-29T08:26:08.276Z" },
+ { url = "https://files.pythonhosted.org/packages/c7/65/b628f8459bca4efbfae50d4bf3feaab803de9a160b9d5f3bd9295a33f0c2/psutil-7.2.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35630d5af80d5d0d49cfc4d64c1c13838baf6717a13effb35869a5919b854cdf", size = 183201, upload-time = "2025-12-29T08:26:10.622Z" },
+ { url = "https://files.pythonhosted.org/packages/fb/23/851cadc9764edcc18f0effe7d0bf69f727d4cf2442deb4a9f78d4e4f30f2/psutil-7.2.1-cp313-cp313t-win_amd64.whl", hash = "sha256:923f8653416604e356073e6e0bccbe7c09990acef442def2f5640dd0faa9689f", size = 139081, upload-time = "2025-12-29T08:26:12.483Z" },
+ { url = "https://files.pythonhosted.org/packages/59/82/d63e8494ec5758029f31c6cb06d7d161175d8281e91d011a4a441c8a43b5/psutil-7.2.1-cp313-cp313t-win_arm64.whl", hash = "sha256:cfbe6b40ca48019a51827f20d830887b3107a74a79b01ceb8cc8de4ccb17b672", size = 134767, upload-time = "2025-12-29T08:26:14.528Z" },
+ { url = "https://files.pythonhosted.org/packages/05/c2/5fb764bd61e40e1fe756a44bd4c21827228394c17414ade348e28f83cd79/psutil-7.2.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:494c513ccc53225ae23eec7fe6e1482f1b8a44674241b54561f755a898650679", size = 129716, upload-time = "2025-12-29T08:26:16.017Z" },
+ { url = "https://files.pythonhosted.org/packages/c9/d2/935039c20e06f615d9ca6ca0ab756cf8408a19d298ffaa08666bc18dc805/psutil-7.2.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:3fce5f92c22b00cdefd1645aa58ab4877a01679e901555067b1bd77039aa589f", size = 130133, upload-time = "2025-12-29T08:26:18.009Z" },
+ { url = "https://files.pythonhosted.org/packages/77/69/19f1eb0e01d24c2b3eacbc2f78d3b5add8a89bf0bb69465bc8d563cc33de/psutil-7.2.1-cp314-cp314t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:93f3f7b0bb07711b49626e7940d6fe52aa9940ad86e8f7e74842e73189712129", size = 181518, upload-time = "2025-12-29T08:26:20.241Z" },
+ { url = "https://files.pythonhosted.org/packages/e1/6d/7e18b1b4fa13ad370787626c95887b027656ad4829c156bb6569d02f3262/psutil-7.2.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d34d2ca888208eea2b5c68186841336a7f5e0b990edec929be909353a202768a", size = 184348, upload-time = "2025-12-29T08:26:22.215Z" },
+ { url = "https://files.pythonhosted.org/packages/98/60/1672114392dd879586d60dd97896325df47d9a130ac7401318005aab28ec/psutil-7.2.1-cp314-cp314t-win_amd64.whl", hash = "sha256:2ceae842a78d1603753561132d5ad1b2f8a7979cb0c283f5b52fb4e6e14b1a79", size = 140400, upload-time = "2025-12-29T08:26:23.993Z" },
+ { url = "https://files.pythonhosted.org/packages/fb/7b/d0e9d4513c46e46897b46bcfc410d51fc65735837ea57a25170f298326e6/psutil-7.2.1-cp314-cp314t-win_arm64.whl", hash = "sha256:08a2f175e48a898c8eb8eace45ce01777f4785bc744c90aa2cc7f2fa5462a266", size = 135430, upload-time = "2025-12-29T08:26:25.999Z" },
+ { url = "https://files.pythonhosted.org/packages/c5/cf/5180eb8c8bdf6a503c6919f1da28328bd1e6b3b1b5b9d5b01ae64f019616/psutil-7.2.1-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:b2e953fcfaedcfbc952b44744f22d16575d3aa78eb4f51ae74165b4e96e55f42", size = 128137, upload-time = "2025-12-29T08:26:27.759Z" },
+ { url = "https://files.pythonhosted.org/packages/c5/2c/78e4a789306a92ade5000da4f5de3255202c534acdadc3aac7b5458fadef/psutil-7.2.1-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:05cc68dbb8c174828624062e73078e7e35406f4ca2d0866c272c2410d8ef06d1", size = 128947, upload-time = "2025-12-29T08:26:29.548Z" },
+ { url = "https://files.pythonhosted.org/packages/29/f8/40e01c350ad9a2b3cb4e6adbcc8a83b17ee50dd5792102b6142385937db5/psutil-7.2.1-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5e38404ca2bb30ed7267a46c02f06ff842e92da3bb8c5bfdadbd35a5722314d8", size = 154694, upload-time = "2025-12-29T08:26:32.147Z" },
+ { url = "https://files.pythonhosted.org/packages/06/e4/b751cdf839c011a9714a783f120e6a86b7494eb70044d7d81a25a5cd295f/psutil-7.2.1-cp36-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ab2b98c9fc19f13f59628d94df5cc4cc4844bc572467d113a8b517d634e362c6", size = 156136, upload-time = "2025-12-29T08:26:34.079Z" },
+ { url = "https://files.pythonhosted.org/packages/44/ad/bbf6595a8134ee1e94a4487af3f132cef7fce43aef4a93b49912a48c3af7/psutil-7.2.1-cp36-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:f78baafb38436d5a128f837fab2d92c276dfb48af01a240b861ae02b2413ada8", size = 148108, upload-time = "2025-12-29T08:26:36.225Z" },
+ { url = "https://files.pythonhosted.org/packages/1c/15/dd6fd869753ce82ff64dcbc18356093471a5a5adf4f77ed1f805d473d859/psutil-7.2.1-cp36-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:99a4cd17a5fdd1f3d014396502daa70b5ec21bf4ffe38393e152f8e449757d67", size = 147402, upload-time = "2025-12-29T08:26:39.21Z" },
+ { url = "https://files.pythonhosted.org/packages/34/68/d9317542e3f2b180c4306e3f45d3c922d7e86d8ce39f941bb9e2e9d8599e/psutil-7.2.1-cp37-abi3-win_amd64.whl", hash = "sha256:b1b0671619343aa71c20ff9767eced0483e4fc9e1f489d50923738caf6a03c17", size = 136938, upload-time = "2025-12-29T08:26:41.036Z" },
+ { url = "https://files.pythonhosted.org/packages/3e/73/2ce007f4198c80fcf2cb24c169884f833fe93fbc03d55d302627b094ee91/psutil-7.2.1-cp37-abi3-win_arm64.whl", hash = "sha256:0d67c1822c355aa6f7314d92018fb4268a76668a536f133599b91edd48759442", size = 133836, upload-time = "2025-12-29T08:26:43.086Z" },
]
[[package]]
@@ -2933,12 +3419,22 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/07/bf/d493fd1b33bb090fa64e28c1009374d5d72fa705f9331cd56517c35e381e/pyclipper-1.4.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f2a50c22c3a78cb4e48347ecf06930f61ce98cf9252f2e292aa025471e9d75b1", size = 952789, upload-time = "2025-12-01T13:15:17.042Z" },
{ url = "https://files.pythonhosted.org/packages/cf/88/b95ea8ea21ddca34aa14b123226a81526dd2faaa993f9aabd3ed21231604/pyclipper-1.4.0-cp313-cp313-win32.whl", hash = "sha256:c9a3faa416ff536cee93417a72bfb690d9dea136dc39a39dbbe1e5dadf108c9c", size = 94817, upload-time = "2025-12-01T13:15:18.724Z" },
{ url = "https://files.pythonhosted.org/packages/ba/42/0a1920d276a0e1ca21dc0d13ee9e3ba10a9a8aa3abac76cd5e5a9f503306/pyclipper-1.4.0-cp313-cp313-win_amd64.whl", hash = "sha256:d4b2d7c41086f1927d14947c563dfc7beed2f6c0d9af13c42fe3dcdc20d35832", size = 104007, upload-time = "2025-12-01T13:15:19.763Z" },
+ { url = "https://files.pythonhosted.org/packages/1a/20/04d58c70f3ccd404f179f8dd81d16722a05a3bf1ab61445ee64e8218c1f8/pyclipper-1.4.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:7c87480fc91a5af4c1ba310bdb7de2f089a3eeef5fe351a3cedc37da1fcced1c", size = 265167, upload-time = "2025-12-01T13:15:20.844Z" },
+ { url = "https://files.pythonhosted.org/packages/bd/2e/a570c1abe69b7260ca0caab4236ce6ea3661193ebf8d1bd7f78ccce537a5/pyclipper-1.4.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:81d8bb2d1fb9d66dc7ea4373b176bb4b02443a7e328b3b603a73faec088b952e", size = 139966, upload-time = "2025-12-01T13:15:22.036Z" },
+ { url = "https://files.pythonhosted.org/packages/e8/3b/e0859e54adabdde8a24a29d3f525ebb31c71ddf2e8d93edce83a3c212ffc/pyclipper-1.4.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:773c0e06b683214dcfc6711be230c83b03cddebe8a57eae053d4603dd63582f9", size = 968216, upload-time = "2025-12-01T13:15:23.18Z" },
+ { url = "https://files.pythonhosted.org/packages/f6/6b/e3c4febf0a35ae643ee579b09988dd931602b5bf311020535fd9e5b7e715/pyclipper-1.4.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9bc45f2463d997848450dbed91c950ca37c6cf27f84a49a5cad4affc0b469e39", size = 954198, upload-time = "2025-12-01T13:15:24.522Z" },
+ { url = "https://files.pythonhosted.org/packages/fc/74/728efcee02e12acb486ce9d56fa037120c9bf5b77c54bbdbaa441c14a9d9/pyclipper-1.4.0-cp314-cp314-win32.whl", hash = "sha256:0b8c2105b3b3c44dbe1a266f64309407fe30bf372cf39a94dc8aaa97df00da5b", size = 96951, upload-time = "2025-12-01T13:15:25.79Z" },
+ { url = "https://files.pythonhosted.org/packages/e3/d7/7f4354e69f10a917e5c7d5d72a499ef2e10945312f5e72c414a0a08d2ae4/pyclipper-1.4.0-cp314-cp314-win_amd64.whl", hash = "sha256:6c317e182590c88ec0194149995e3d71a979cfef3b246383f4e035f9d4a11826", size = 106782, upload-time = "2025-12-01T13:15:26.945Z" },
+ { url = "https://files.pythonhosted.org/packages/63/60/fc32c7a3d7f61a970511ec2857ecd09693d8ac80d560ee7b8e67a6d268c9/pyclipper-1.4.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:f160a2c6ba036f7eaf09f1f10f4fbfa734234af9112fb5187877efed78df9303", size = 269880, upload-time = "2025-12-01T13:15:28.117Z" },
+ { url = "https://files.pythonhosted.org/packages/49/df/c4a72d3f62f0ba03ec440c4fff56cd2d674a4334d23c5064cbf41c9583f6/pyclipper-1.4.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:a9f11ad133257c52c40d50de7a0ca3370a0cdd8e3d11eec0604ad3c34ba549e9", size = 141706, upload-time = "2025-12-01T13:15:30.134Z" },
+ { url = "https://files.pythonhosted.org/packages/c5/0b/cf55df03e2175e1e2da9db585241401e0bc98f76bee3791bed39d0313449/pyclipper-1.4.0-cp314-cp314t-win32.whl", hash = "sha256:bbc827b77442c99deaeee26e0e7f172355ddb097a5e126aea206d447d3b26286", size = 105308, upload-time = "2025-12-01T13:15:31.225Z" },
+ { url = "https://files.pythonhosted.org/packages/8f/dc/53df8b6931d47080b4fe4ee8450d42e660ee1c5c1556c7ab73359182b769/pyclipper-1.4.0-cp314-cp314t-win_amd64.whl", hash = "sha256:29dae3e0296dff8502eeb7639fcfee794b0eec8590ba3563aee28db269da6b04", size = 117608, upload-time = "2025-12-01T13:15:32.69Z" },
{ url = "https://files.pythonhosted.org/packages/18/59/81050abdc9e5b90ffc2c765738c5e40e9abd8e44864aaa737b600f16c562/pyclipper-1.4.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:98b2a40f98e1fc1b29e8a6094072e7e0c7dfe901e573bf6cfc6eb7ce84a7ae87", size = 126495, upload-time = "2025-12-01T13:15:33.743Z" },
]
[[package]]
name = "pydantic"
-version = "2.12.4"
+version = "2.12.5"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "annotated-types" },
@@ -2946,9 +3442,9 @@ dependencies = [
{ name = "typing-extensions" },
{ name = "typing-inspection" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/96/ad/a17bc283d7d81837c061c49e3eaa27a45991759a1b7eae1031921c6bd924/pydantic-2.12.4.tar.gz", hash = "sha256:0f8cb9555000a4b5b617f66bfd2566264c4984b27589d3b845685983e8ea85ac", size = 821038, upload-time = "2025-11-05T10:50:08.59Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/69/44/36f1a6e523abc58ae5f928898e4aca2e0ea509b5aa6f6f392a5d882be928/pydantic-2.12.5.tar.gz", hash = "sha256:4d351024c75c0f085a9febbb665ce8c0c6ec5d30e903bdb6394b7ede26aebb49", size = 821591, upload-time = "2025-11-26T15:11:46.471Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/82/2f/e68750da9b04856e2a7ec56fc6f034a5a79775e9b9a81882252789873798/pydantic-2.12.4-py3-none-any.whl", hash = "sha256:92d3d202a745d46f9be6df459ac5a064fdaa3c1c4cd8adcfa332ccf3c05f871e", size = 463400, upload-time = "2025-11-05T10:50:06.732Z" },
+ { url = "https://files.pythonhosted.org/packages/5a/87/b70ad306ebb6f9b585f114d0ac2137d792b48be34d732d60e597c2f8465a/pydantic-2.12.5-py3-none-any.whl", hash = "sha256:e561593fccf61e8a20fc46dfc2dfe075b8be7d0188df33f221ad1f0139180f9d", size = 463580, upload-time = "2025-11-26T15:11:44.605Z" },
]
[[package]]
@@ -3015,6 +3511,34 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/1a/d9/c248c103856f807ef70c18a4f986693a46a8ffe1602e5d361485da502d20/pydantic_core-2.41.5-cp313-cp313-win32.whl", hash = "sha256:650ae77860b45cfa6e2cdafc42618ceafab3a2d9a3811fcfbd3bbf8ac3c40d36", size = 1994679, upload-time = "2025-11-04T13:40:50.619Z" },
{ url = "https://files.pythonhosted.org/packages/9e/8b/341991b158ddab181cff136acd2552c9f35bd30380422a639c0671e99a91/pydantic_core-2.41.5-cp313-cp313-win_amd64.whl", hash = "sha256:79ec52ec461e99e13791ec6508c722742ad745571f234ea6255bed38c6480f11", size = 2019766, upload-time = "2025-11-04T13:40:52.631Z" },
{ url = "https://files.pythonhosted.org/packages/73/7d/f2f9db34af103bea3e09735bb40b021788a5e834c81eedb541991badf8f5/pydantic_core-2.41.5-cp313-cp313-win_arm64.whl", hash = "sha256:3f84d5c1b4ab906093bdc1ff10484838aca54ef08de4afa9de0f5f14d69639cd", size = 1981005, upload-time = "2025-11-04T13:40:54.734Z" },
+ { url = "https://files.pythonhosted.org/packages/ea/28/46b7c5c9635ae96ea0fbb779e271a38129df2550f763937659ee6c5dbc65/pydantic_core-2.41.5-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:3f37a19d7ebcdd20b96485056ba9e8b304e27d9904d233d7b1015db320e51f0a", size = 2119622, upload-time = "2025-11-04T13:40:56.68Z" },
+ { url = "https://files.pythonhosted.org/packages/74/1a/145646e5687e8d9a1e8d09acb278c8535ebe9e972e1f162ed338a622f193/pydantic_core-2.41.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1d1d9764366c73f996edd17abb6d9d7649a7eb690006ab6adbda117717099b14", size = 1891725, upload-time = "2025-11-04T13:40:58.807Z" },
+ { url = "https://files.pythonhosted.org/packages/23/04/e89c29e267b8060b40dca97bfc64a19b2a3cf99018167ea1677d96368273/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:25e1c2af0fce638d5f1988b686f3b3ea8cd7de5f244ca147c777769e798a9cd1", size = 1915040, upload-time = "2025-11-04T13:41:00.853Z" },
+ { url = "https://files.pythonhosted.org/packages/84/a3/15a82ac7bd97992a82257f777b3583d3e84bdb06ba6858f745daa2ec8a85/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:506d766a8727beef16b7adaeb8ee6217c64fc813646b424d0804d67c16eddb66", size = 2063691, upload-time = "2025-11-04T13:41:03.504Z" },
+ { url = "https://files.pythonhosted.org/packages/74/9b/0046701313c6ef08c0c1cf0e028c67c770a4e1275ca73131563c5f2a310a/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4819fa52133c9aa3c387b3328f25c1facc356491e6135b459f1de698ff64d869", size = 2213897, upload-time = "2025-11-04T13:41:05.804Z" },
+ { url = "https://files.pythonhosted.org/packages/8a/cd/6bac76ecd1b27e75a95ca3a9a559c643b3afcd2dd62086d4b7a32a18b169/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2b761d210c9ea91feda40d25b4efe82a1707da2ef62901466a42492c028553a2", size = 2333302, upload-time = "2025-11-04T13:41:07.809Z" },
+ { url = "https://files.pythonhosted.org/packages/4c/d2/ef2074dc020dd6e109611a8be4449b98cd25e1b9b8a303c2f0fca2f2bcf7/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:22f0fb8c1c583a3b6f24df2470833b40207e907b90c928cc8d3594b76f874375", size = 2064877, upload-time = "2025-11-04T13:41:09.827Z" },
+ { url = "https://files.pythonhosted.org/packages/18/66/e9db17a9a763d72f03de903883c057b2592c09509ccfe468187f2a2eef29/pydantic_core-2.41.5-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2782c870e99878c634505236d81e5443092fba820f0373997ff75f90f68cd553", size = 2180680, upload-time = "2025-11-04T13:41:12.379Z" },
+ { url = "https://files.pythonhosted.org/packages/d3/9e/3ce66cebb929f3ced22be85d4c2399b8e85b622db77dad36b73c5387f8f8/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:0177272f88ab8312479336e1d777f6b124537d47f2123f89cb37e0accea97f90", size = 2138960, upload-time = "2025-11-04T13:41:14.627Z" },
+ { url = "https://files.pythonhosted.org/packages/a6/62/205a998f4327d2079326b01abee48e502ea739d174f0a89295c481a2272e/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:63510af5e38f8955b8ee5687740d6ebf7c2a0886d15a6d65c32814613681bc07", size = 2339102, upload-time = "2025-11-04T13:41:16.868Z" },
+ { url = "https://files.pythonhosted.org/packages/3c/0d/f05e79471e889d74d3d88f5bd20d0ed189ad94c2423d81ff8d0000aab4ff/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:e56ba91f47764cc14f1daacd723e3e82d1a89d783f0f5afe9c364b8bb491ccdb", size = 2326039, upload-time = "2025-11-04T13:41:18.934Z" },
+ { url = "https://files.pythonhosted.org/packages/ec/e1/e08a6208bb100da7e0c4b288eed624a703f4d129bde2da475721a80cab32/pydantic_core-2.41.5-cp314-cp314-win32.whl", hash = "sha256:aec5cf2fd867b4ff45b9959f8b20ea3993fc93e63c7363fe6851424c8a7e7c23", size = 1995126, upload-time = "2025-11-04T13:41:21.418Z" },
+ { url = "https://files.pythonhosted.org/packages/48/5d/56ba7b24e9557f99c9237e29f5c09913c81eeb2f3217e40e922353668092/pydantic_core-2.41.5-cp314-cp314-win_amd64.whl", hash = "sha256:8e7c86f27c585ef37c35e56a96363ab8de4e549a95512445b85c96d3e2f7c1bf", size = 2015489, upload-time = "2025-11-04T13:41:24.076Z" },
+ { url = "https://files.pythonhosted.org/packages/4e/bb/f7a190991ec9e3e0ba22e4993d8755bbc4a32925c0b5b42775c03e8148f9/pydantic_core-2.41.5-cp314-cp314-win_arm64.whl", hash = "sha256:e672ba74fbc2dc8eea59fb6d4aed6845e6905fc2a8afe93175d94a83ba2a01a0", size = 1977288, upload-time = "2025-11-04T13:41:26.33Z" },
+ { url = "https://files.pythonhosted.org/packages/92/ed/77542d0c51538e32e15afe7899d79efce4b81eee631d99850edc2f5e9349/pydantic_core-2.41.5-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:8566def80554c3faa0e65ac30ab0932b9e3a5cd7f8323764303d468e5c37595a", size = 2120255, upload-time = "2025-11-04T13:41:28.569Z" },
+ { url = "https://files.pythonhosted.org/packages/bb/3d/6913dde84d5be21e284439676168b28d8bbba5600d838b9dca99de0fad71/pydantic_core-2.41.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b80aa5095cd3109962a298ce14110ae16b8c1aece8b72f9dafe81cf597ad80b3", size = 1863760, upload-time = "2025-11-04T13:41:31.055Z" },
+ { url = "https://files.pythonhosted.org/packages/5a/f0/e5e6b99d4191da102f2b0eb9687aaa7f5bea5d9964071a84effc3e40f997/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3006c3dd9ba34b0c094c544c6006cc79e87d8612999f1a5d43b769b89181f23c", size = 1878092, upload-time = "2025-11-04T13:41:33.21Z" },
+ { url = "https://files.pythonhosted.org/packages/71/48/36fb760642d568925953bcc8116455513d6e34c4beaa37544118c36aba6d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:72f6c8b11857a856bcfa48c86f5368439f74453563f951e473514579d44aa612", size = 2053385, upload-time = "2025-11-04T13:41:35.508Z" },
+ { url = "https://files.pythonhosted.org/packages/20/25/92dc684dd8eb75a234bc1c764b4210cf2646479d54b47bf46061657292a8/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5cb1b2f9742240e4bb26b652a5aeb840aa4b417c7748b6f8387927bc6e45e40d", size = 2218832, upload-time = "2025-11-04T13:41:37.732Z" },
+ { url = "https://files.pythonhosted.org/packages/e2/09/f53e0b05023d3e30357d82eb35835d0f6340ca344720a4599cd663dca599/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bd3d54f38609ff308209bd43acea66061494157703364ae40c951f83ba99a1a9", size = 2327585, upload-time = "2025-11-04T13:41:40Z" },
+ { url = "https://files.pythonhosted.org/packages/aa/4e/2ae1aa85d6af35a39b236b1b1641de73f5a6ac4d5a7509f77b814885760c/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2ff4321e56e879ee8d2a879501c8e469414d948f4aba74a2d4593184eb326660", size = 2041078, upload-time = "2025-11-04T13:41:42.323Z" },
+ { url = "https://files.pythonhosted.org/packages/cd/13/2e215f17f0ef326fc72afe94776edb77525142c693767fc347ed6288728d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d0d2568a8c11bf8225044aa94409e21da0cb09dcdafe9ecd10250b2baad531a9", size = 2173914, upload-time = "2025-11-04T13:41:45.221Z" },
+ { url = "https://files.pythonhosted.org/packages/02/7a/f999a6dcbcd0e5660bc348a3991c8915ce6599f4f2c6ac22f01d7a10816c/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:a39455728aabd58ceabb03c90e12f71fd30fa69615760a075b9fec596456ccc3", size = 2129560, upload-time = "2025-11-04T13:41:47.474Z" },
+ { url = "https://files.pythonhosted.org/packages/3a/b1/6c990ac65e3b4c079a4fb9f5b05f5b013afa0f4ed6780a3dd236d2cbdc64/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:239edca560d05757817c13dc17c50766136d21f7cd0fac50295499ae24f90fdf", size = 2329244, upload-time = "2025-11-04T13:41:49.992Z" },
+ { url = "https://files.pythonhosted.org/packages/d9/02/3c562f3a51afd4d88fff8dffb1771b30cfdfd79befd9883ee094f5b6c0d8/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:2a5e06546e19f24c6a96a129142a75cee553cc018ffee48a460059b1185f4470", size = 2331955, upload-time = "2025-11-04T13:41:54.079Z" },
+ { url = "https://files.pythonhosted.org/packages/5c/96/5fb7d8c3c17bc8c62fdb031c47d77a1af698f1d7a406b0f79aaa1338f9ad/pydantic_core-2.41.5-cp314-cp314t-win32.whl", hash = "sha256:b4ececa40ac28afa90871c2cc2b9ffd2ff0bf749380fbdf57d165fd23da353aa", size = 1988906, upload-time = "2025-11-04T13:41:56.606Z" },
+ { url = "https://files.pythonhosted.org/packages/22/ed/182129d83032702912c2e2d8bbe33c036f342cc735737064668585dac28f/pydantic_core-2.41.5-cp314-cp314t-win_amd64.whl", hash = "sha256:80aa89cad80b32a912a65332f64a4450ed00966111b6615ca6816153d3585a8c", size = 1981607, upload-time = "2025-11-04T13:41:58.889Z" },
+ { url = "https://files.pythonhosted.org/packages/9f/ed/068e41660b832bb0b1aa5b58011dea2a3fe0ba7861ff38c4d4904c1c1a99/pydantic_core-2.41.5-cp314-cp314t-win_arm64.whl", hash = "sha256:35b44f37a3199f771c3eaa53051bc8a70cd7b54f333531c59e29fd4db5d15008", size = 1974769, upload-time = "2025-11-04T13:42:01.186Z" },
{ url = "https://files.pythonhosted.org/packages/11/72/90fda5ee3b97e51c494938a4a44c3a35a9c96c19bba12372fb9c634d6f57/pydantic_core-2.41.5-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:b96d5f26b05d03cc60f11a7761a5ded1741da411e7fe0909e27a5e6a0cb7b034", size = 2115441, upload-time = "2025-11-04T13:42:39.557Z" },
{ url = "https://files.pythonhosted.org/packages/1f/53/8942f884fa33f50794f119012dc6a1a02ac43a56407adaac20463df8e98f/pydantic_core-2.41.5-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:634e8609e89ceecea15e2d61bc9ac3718caaaa71963717bf3c8f38bfde64242c", size = 1930291, upload-time = "2025-11-04T13:42:42.169Z" },
{ url = "https://files.pythonhosted.org/packages/79/c8/ecb9ed9cd942bce09fc888ee960b52654fbdbede4ba6c2d6e0d3b1d8b49c/pydantic_core-2.41.5-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:93e8740d7503eb008aa2df04d3b9735f845d43ae845e6dcd2be0b55a2da43cd2", size = 1948632, upload-time = "2025-11-04T13:42:44.564Z" },
@@ -3072,7 +3596,7 @@ sdist = { url = "https://files.pythonhosted.org/packages/5d/ab/34ec41718af73c001
[[package]]
name = "pylint"
-version = "4.0.3"
+version = "4.0.4"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "astroid" },
@@ -3084,22 +3608,22 @@ dependencies = [
{ name = "tomli", marker = "python_full_version < '3.11'" },
{ name = "tomlkit" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/dd/9c/0500020a5446031220f487ca0c762713c6f3ddad7231b811aaf1d473f6aa/pylint-4.0.3.tar.gz", hash = "sha256:a427fe76e0e5355e9fb9b604fd106c419cafb395886ba7f3cebebb03f30e081d", size = 1570368, upload-time = "2025-11-13T15:54:41.394Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/5a/d2/b081da1a8930d00e3fc06352a1d449aaf815d4982319fab5d8cdb2e9ab35/pylint-4.0.4.tar.gz", hash = "sha256:d9b71674e19b1c36d79265b5887bf8e55278cbe236c9e95d22dc82cf044fdbd2", size = 1571735, upload-time = "2025-11-30T13:29:04.315Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/1f/01/b8acd4087102c774d432a6663bac4857405c64771445c0a3110828bc5c88/pylint-4.0.3-py3-none-any.whl", hash = "sha256:896d09afb0e78bbf2e030cd1f3d8dc92771a51f7e46828cbc3948a89cd03433a", size = 536199, upload-time = "2025-11-13T15:54:39.734Z" },
+ { url = "https://files.pythonhosted.org/packages/a6/92/d40f5d937517cc489ad848fc4414ecccc7592e4686b9071e09e64f5e378e/pylint-4.0.4-py3-none-any.whl", hash = "sha256:63e06a37d5922555ee2c20963eb42559918c20bd2b21244e4ef426e7c43b92e0", size = 536425, upload-time = "2025-11-30T13:29:02.53Z" },
]
[[package]]
name = "pymdown-extensions"
-version = "10.17.1"
+version = "10.19.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "markdown" },
{ name = "pyyaml" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/e7/d9/a987e4d549c6c82353fce5fa5f650229bb60ea4c0d1684a2714a509aef58/pymdown_extensions-10.17.1.tar.gz", hash = "sha256:60d05fe55e7fb5a1e4740fc575facad20dc6ee3a748e8d3d36ba44142e75ce03", size = 845207, upload-time = "2025-11-11T21:44:58.815Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/72/2d/9f30cee56d4d6d222430d401e85b0a6a1ae229819362f5786943d1a8c03b/pymdown_extensions-10.19.1.tar.gz", hash = "sha256:4969c691009a389fb1f9712dd8e7bd70dcc418d15a0faf70acb5117d022f7de8", size = 847839, upload-time = "2025-12-14T17:25:24.42Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/81/40/b2d7b9fdccc63e48ae4dbd363b6b89eb7ac346ea49ed667bb71f92af3021/pymdown_extensions-10.17.1-py3-none-any.whl", hash = "sha256:1f160209c82eecbb5d8a0d8f89a4d9bd6bdcbde9a8537761844cfc57ad5cd8a6", size = 266310, upload-time = "2025-11-11T21:44:56.809Z" },
+ { url = "https://files.pythonhosted.org/packages/fb/35/b763e8fbcd51968329b9adc52d188fc97859f85f2ee15fe9f379987d99c5/pymdown_extensions-10.19.1-py3-none-any.whl", hash = "sha256:e8698a66055b1dc0dca2a7f2c9d0ea6f5faa7834a9c432e3535ab96c0c4e509b", size = 266693, upload-time = "2025-12-14T17:25:22.999Z" },
]
[[package]]
@@ -3113,6 +3637,8 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/64/5a/6b15e499de73050f4a2c88fff664ae154307d25dc04da8fb38998a428358/pyobjc_core-12.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:818bcc6723561f207e5b5453efe9703f34bc8781d11ce9b8be286bb415eb4962", size = 678335, upload-time = "2025-11-14T09:32:20.107Z" },
{ url = "https://files.pythonhosted.org/packages/f4/d2/29e5e536adc07bc3d33dd09f3f7cf844bf7b4981820dc2a91dd810f3c782/pyobjc_core-12.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:01c0cf500596f03e21c23aef9b5f326b9fb1f8f118cf0d8b66749b6cf4cbb37a", size = 677370, upload-time = "2025-11-14T09:33:05.273Z" },
{ url = "https://files.pythonhosted.org/packages/1b/f0/4b4ed8924cd04e425f2a07269943018d43949afad1c348c3ed4d9d032787/pyobjc_core-12.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:177aaca84bb369a483e4961186704f64b2697708046745f8167e818d968c88fc", size = 719586, upload-time = "2025-11-14T09:33:53.302Z" },
+ { url = "https://files.pythonhosted.org/packages/25/98/9f4ed07162de69603144ff480be35cd021808faa7f730d082b92f7ebf2b5/pyobjc_core-12.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:844515f5d86395b979d02152576e7dee9cc679acc0b32dc626ef5bda315eaa43", size = 670164, upload-time = "2025-11-14T09:34:37.458Z" },
+ { url = "https://files.pythonhosted.org/packages/62/50/dc076965c96c7f0de25c0a32b7f8aa98133ed244deaeeacfc758783f1f30/pyobjc_core-12.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:453b191df1a4b80e756445b935491b974714456ae2cbae816840bd96f86db882", size = 712204, upload-time = "2025-11-14T09:35:24.148Z" },
]
[[package]]
@@ -3129,6 +3655,8 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/95/bf/ee4f27ec3920d5c6fc63c63e797c5b2cc4e20fe439217085d01ea5b63856/pyobjc_framework_cocoa-12.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:547c182837214b7ec4796dac5aee3aa25abc665757b75d7f44f83c994bcb0858", size = 384590, upload-time = "2025-11-14T09:41:17.336Z" },
{ url = "https://files.pythonhosted.org/packages/ad/31/0c2e734165abb46215797bd830c4bdcb780b699854b15f2b6240515edcc6/pyobjc_framework_cocoa-12.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:5a3dcd491cacc2f5a197142b3c556d8aafa3963011110102a093349017705118", size = 384689, upload-time = "2025-11-14T09:41:41.478Z" },
{ url = "https://files.pythonhosted.org/packages/23/3b/b9f61be7b9f9b4e0a6db18b3c35c4c4d589f2d04e963e2174d38c6555a92/pyobjc_framework_cocoa-12.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:914b74328c22d8ca261d78c23ef2befc29776e0b85555973927b338c5734ca44", size = 388843, upload-time = "2025-11-14T09:42:05.719Z" },
+ { url = "https://files.pythonhosted.org/packages/59/bb/f777cc9e775fc7dae77b569254570fe46eb842516b3e4fe383ab49eab598/pyobjc_framework_cocoa-12.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:03342a60fc0015bcdf9b93ac0b4f457d3938e9ef761b28df9564c91a14f0129a", size = 384932, upload-time = "2025-11-14T09:42:29.771Z" },
+ { url = "https://files.pythonhosted.org/packages/58/27/b457b7b37089cad692c8aada90119162dfb4c4a16f513b79a8b2b022b33b/pyobjc_framework_cocoa-12.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:6ba1dc1bfa4da42d04e93d2363491275fb2e2be5c20790e561c8a9e09b8cf2cc", size = 388970, upload-time = "2025-11-14T09:42:53.964Z" },
]
[[package]]
@@ -3146,6 +3674,8 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/bb/39/4defef0deb25c5d7e3b7826d301e71ac5b54ef901b7dac4db1adc00f172d/pyobjc_framework_coreml-12.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:10dc8e8db53d7631ebc712cad146e3a9a9a443f4e1a037e844149a24c3c42669", size = 11356, upload-time = "2025-11-14T09:45:52.271Z" },
{ url = "https://files.pythonhosted.org/packages/ae/3f/3749964aa3583f8c30d9996f0d15541120b78d307bb3070f5e47154ef38d/pyobjc_framework_coreml-12.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:48fa3bb4a03fa23e0e36c93936dca2969598e4102f4b441e1663f535fc99cd31", size = 11371, upload-time = "2025-11-14T09:45:54.105Z" },
{ url = "https://files.pythonhosted.org/packages/9c/c8/cf20ea91ae33f05f3b92dec648c6f44a65f86d1a64c1d6375c95b85ccb7c/pyobjc_framework_coreml-12.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:71de5b37e6a017e3ed16645c5d6533138f24708da5b56c35c818ae49d0253ee1", size = 11600, upload-time = "2025-11-14T09:45:55.976Z" },
+ { url = "https://files.pythonhosted.org/packages/bc/5c/510ae8e3663238d32e653ed6a09ac65611dd045a7241f12633c1ab48bb9b/pyobjc_framework_coreml-12.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:a04a96e512ecf6999aa9e1f60ad5635cb9d1cd839be470341d8d1541797baef6", size = 11418, upload-time = "2025-11-14T09:45:57.75Z" },
+ { url = "https://files.pythonhosted.org/packages/d3/1a/b7367819381b07c440fa5797d2b0487e31f09aa72079a693ceab6875fa0a/pyobjc_framework_coreml-12.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:7762b3dd2de01565b7cf3049ce1e4c27341ba179d97016b0b7607448e1c39865", size = 11593, upload-time = "2025-11-14T09:45:59.623Z" },
]
[[package]]
@@ -3163,6 +3693,8 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/e9/9b/780f057e5962f690f23fdff1083a4cfda5a96d5b4d3bb49505cac4f624f2/pyobjc_framework_quartz-12.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:7730cdce46c7e985535b5a42c31381af4aa6556e5642dc55b5e6597595e57a16", size = 218798, upload-time = "2025-11-14T10:00:01.236Z" },
{ url = "https://files.pythonhosted.org/packages/ba/2d/e8f495328101898c16c32ac10e7b14b08ff2c443a756a76fd1271915f097/pyobjc_framework_quartz-12.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:629b7971b1b43a11617f1460cd218bd308dfea247cd4ee3842eb40ca6f588860", size = 219206, upload-time = "2025-11-14T10:00:15.623Z" },
{ url = "https://files.pythonhosted.org/packages/67/43/b1f0ad3b842ab150a7e6b7d97f6257eab6af241b4c7d14cb8e7fde9214b8/pyobjc_framework_quartz-12.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:53b84e880c358ba1ddcd7e8d5ea0407d760eca58b96f0d344829162cda5f37b3", size = 224317, upload-time = "2025-11-14T10:00:30.703Z" },
+ { url = "https://files.pythonhosted.org/packages/4a/00/96249c5c7e5aaca5f688ca18b8d8ad05cd7886ebd639b3c71a6a4cadbe75/pyobjc_framework_quartz-12.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:42d306b07f05ae7d155984503e0fb1b701fecd31dcc5c79fe8ab9790ff7e0de0", size = 219558, upload-time = "2025-11-14T10:00:45.476Z" },
+ { url = "https://files.pythonhosted.org/packages/4d/a6/708a55f3ff7a18c403b30a29a11dccfed0410485a7548c60a4b6d4cc0676/pyobjc_framework_quartz-12.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:0cc08fddb339b2760df60dea1057453557588908e42bdc62184b6396ce2d6e9a", size = 224580, upload-time = "2025-11-14T10:01:00.091Z" },
]
[[package]]
@@ -3182,6 +3714,8 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/3a/5a/23502935b3fc877d7573e743fc3e6c28748f33a45c43851d503bde52cde7/pyobjc_framework_vision-12.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:6b3211d84f3a12aad0cde752cfd43a80d0218960ac9e6b46b141c730e7d655bd", size = 16625, upload-time = "2025-11-14T10:06:44.422Z" },
{ url = "https://files.pythonhosted.org/packages/f5/e4/e87361a31b82b22f8c0a59652d6e17625870dd002e8da75cb2343a84f2f9/pyobjc_framework_vision-12.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:7273e2508db4c2e88523b4b7ff38ac54808756e7ba01d78e6c08ea68f32577d2", size = 16640, upload-time = "2025-11-14T10:06:46.653Z" },
{ url = "https://files.pythonhosted.org/packages/b1/dd/def55d8a80b0817f486f2712fc6243482c3264d373dc5ff75037b3aeb7ea/pyobjc_framework_vision-12.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:04296f0848cc8cdead66c76df6063720885cbdf24fdfd1900749a6e2297313db", size = 16782, upload-time = "2025-11-14T10:06:48.816Z" },
+ { url = "https://files.pythonhosted.org/packages/a7/a4/ee1ef14d6e1df6617e64dbaaa0ecf8ecb9e0af1425613fa633f6a94049c1/pyobjc_framework_vision-12.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:631add775ed1dafb221a6116137cdcd78432addc16200ca434571c2a039c0e03", size = 16614, upload-time = "2025-11-14T10:06:50.852Z" },
+ { url = "https://files.pythonhosted.org/packages/af/53/187743d9244becd4499a77f8ee699ae286e2f6ade7c0c7ad2975ae60f187/pyobjc_framework_vision-12.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:fe41a1a70cc91068aee7b5293fa09dc66d1c666a8da79fdf948900988b439df6", size = 16771, upload-time = "2025-11-14T10:06:53.04Z" },
]
[[package]]
@@ -3219,7 +3753,7 @@ wheels = [
[[package]]
name = "pytest"
-version = "9.0.1"
+version = "9.0.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "colorama", marker = "sys_platform == 'win32'" },
@@ -3230,9 +3764,9 @@ dependencies = [
{ name = "pygments" },
{ name = "tomli", marker = "python_full_version < '3.11'" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/07/56/f013048ac4bc4c1d9be45afd4ab209ea62822fb1598f40687e6bf45dcea4/pytest-9.0.1.tar.gz", hash = "sha256:3e9c069ea73583e255c3b21cf46b8d3c56f6e3a1a8f6da94ccb0fcf57b9d73c8", size = 1564125, upload-time = "2025-11-12T13:05:09.333Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/d1/db/7ef3487e0fb0049ddb5ce41d3a49c235bf9ad299b6a25d5780a89f19230f/pytest-9.0.2.tar.gz", hash = "sha256:75186651a92bd89611d1d9fc20f0b4345fd827c41ccd5c299a868a05d70edf11", size = 1568901, upload-time = "2025-12-06T21:30:51.014Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/0b/8b/6300fb80f858cda1c51ffa17075df5d846757081d11ab4aa35cef9e6258b/pytest-9.0.1-py3-none-any.whl", hash = "sha256:67be0030d194df2dfa7b556f2e56fb3c3315bd5c8822c6951162b92b32ce7dad", size = 373668, upload-time = "2025-11-12T13:05:07.379Z" },
+ { url = "https://files.pythonhosted.org/packages/3b/ab/b3226f0bd7cdcf710fbede2b3548584366da3b19b5021e74f5bde2a8fa3f/pytest-9.0.2-py3-none-any.whl", hash = "sha256:711ffd45bf766d5264d487b917733b453d917afd2b0ad65223959f59089f875b", size = 374801, upload-time = "2025-12-06T21:30:49.154Z" },
]
[[package]]
@@ -3376,6 +3910,9 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/a5/be/3fd5de0979fcb3994bfee0d65ed8ca9506a8a1260651b86174f6a86f52b3/pywin32-311-cp313-cp313-win32.whl", hash = "sha256:f95ba5a847cba10dd8c4d8fefa9f2a6cf283b8b88ed6178fa8a6c1ab16054d0d", size = 8705700, upload-time = "2025-07-14T20:13:26.471Z" },
{ url = "https://files.pythonhosted.org/packages/e3/28/e0a1909523c6890208295a29e05c2adb2126364e289826c0a8bc7297bd5c/pywin32-311-cp313-cp313-win_amd64.whl", hash = "sha256:718a38f7e5b058e76aee1c56ddd06908116d35147e133427e59a3983f703a20d", size = 9494700, upload-time = "2025-07-14T20:13:28.243Z" },
{ url = "https://files.pythonhosted.org/packages/04/bf/90339ac0f55726dce7d794e6d79a18a91265bdf3aa70b6b9ca52f35e022a/pywin32-311-cp313-cp313-win_arm64.whl", hash = "sha256:7b4075d959648406202d92a2310cb990fea19b535c7f4a78d3f5e10b926eeb8a", size = 8709318, upload-time = "2025-07-14T20:13:30.348Z" },
+ { url = "https://files.pythonhosted.org/packages/c9/31/097f2e132c4f16d99a22bfb777e0fd88bd8e1c634304e102f313af69ace5/pywin32-311-cp314-cp314-win32.whl", hash = "sha256:b7a2c10b93f8986666d0c803ee19b5990885872a7de910fc460f9b0c2fbf92ee", size = 8840714, upload-time = "2025-07-14T20:13:32.449Z" },
+ { url = "https://files.pythonhosted.org/packages/90/4b/07c77d8ba0e01349358082713400435347df8426208171ce297da32c313d/pywin32-311-cp314-cp314-win_amd64.whl", hash = "sha256:3aca44c046bd2ed8c90de9cb8427f581c479e594e99b5c0bb19b29c10fd6cb87", size = 9656800, upload-time = "2025-07-14T20:13:34.312Z" },
+ { url = "https://files.pythonhosted.org/packages/c0/d2/21af5c535501a7233e734b8af901574572da66fcc254cb35d0609c9080dd/pywin32-311-cp314-cp314-win_arm64.whl", hash = "sha256:a508e2d9025764a8270f93111a970e1d0fbfc33f4153b388bb649b7eec4f9b42", size = 8932540, upload-time = "2025-07-14T20:13:36.379Z" },
]
[[package]]
@@ -3422,6 +3959,24 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" },
{ url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" },
{ url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" },
+ { url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" },
+ { url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" },
+ { url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" },
+ { url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" },
+ { url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" },
+ { url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" },
+ { url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" },
+ { url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" },
+ { url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" },
+ { url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" },
+ { url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" },
+ { url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" },
+ { url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" },
+ { url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" },
+ { url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" },
+ { url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" },
+ { url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" },
+ { url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" },
]
[[package]]
@@ -3438,12 +3993,12 @@ wheels = [
[[package]]
name = "rapidocr"
-version = "3.4.3"
+version = "3.4.5"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "colorlog" },
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
- { name = "numpy", version = "2.3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "numpy", version = "2.4.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
{ name = "omegaconf" },
{ name = "opencv-python" },
{ name = "pillow" },
@@ -3455,7 +4010,7 @@ dependencies = [
{ name = "tqdm" },
]
wheels = [
- { url = "https://files.pythonhosted.org/packages/cf/a8/401c97c8fa6c7f964ace3bf11d8fad4902f07f969a0f4f5d7518f46ebeef/rapidocr-3.4.3-py3-none-any.whl", hash = "sha256:a007bf196c41e2c7321dfa570e8cef06cd7fb41d7a283b91b7e4b7b08623ed27", size = 15060208, upload-time = "2025-12-09T14:45:34.189Z" },
+ { url = "https://files.pythonhosted.org/packages/be/5a/9a61f7c3250d7651c2043e763045e1181fe2fd12d0d5879f726f351818ad/rapidocr-3.4.5-py3-none-any.whl", hash = "sha256:6fb21ffb55b3aa49fee2a7c5cc5190851180e5be538b076b2166b7f44213cd5c", size = 15060573, upload-time = "2025-12-18T03:16:15.738Z" },
]
[[package]]
@@ -3549,6 +4104,34 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/4f/f9/8bd6b656592f925b6845fcbb4d57603a3ac2fb2373344ffa1ed70aa6820a/regex-2025.11.3-cp313-cp313t-win32.whl", hash = "sha256:9ddc42e68114e161e51e272f667d640f97e84a2b9ef14b7477c53aac20c2d59a", size = 268792, upload-time = "2025-11-03T21:32:44.13Z" },
{ url = "https://files.pythonhosted.org/packages/e5/87/0e7d603467775ff65cd2aeabf1b5b50cc1c3708556a8b849a2fa4dd1542b/regex-2025.11.3-cp313-cp313t-win_amd64.whl", hash = "sha256:7a7c7fdf755032ffdd72c77e3d8096bdcb0eb92e89e17571a196f03d88b11b3c", size = 280214, upload-time = "2025-11-03T21:32:45.853Z" },
{ url = "https://files.pythonhosted.org/packages/8d/d0/2afc6f8e94e2b64bfb738a7c2b6387ac1699f09f032d363ed9447fd2bb57/regex-2025.11.3-cp313-cp313t-win_arm64.whl", hash = "sha256:df9eb838c44f570283712e7cff14c16329a9f0fb19ca492d21d4b7528ee6821e", size = 271469, upload-time = "2025-11-03T21:32:48.026Z" },
+ { url = "https://files.pythonhosted.org/packages/31/e9/f6e13de7e0983837f7b6d238ad9458800a874bf37c264f7923e63409944c/regex-2025.11.3-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:9697a52e57576c83139d7c6f213d64485d3df5bf84807c35fa409e6c970801c6", size = 489089, upload-time = "2025-11-03T21:32:50.027Z" },
+ { url = "https://files.pythonhosted.org/packages/a3/5c/261f4a262f1fa65141c1b74b255988bd2fa020cc599e53b080667d591cfc/regex-2025.11.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:e18bc3f73bd41243c9b38a6d9f2366cd0e0137a9aebe2d8ff76c5b67d4c0a3f4", size = 291059, upload-time = "2025-11-03T21:32:51.682Z" },
+ { url = "https://files.pythonhosted.org/packages/8e/57/f14eeb7f072b0e9a5a090d1712741fd8f214ec193dba773cf5410108bb7d/regex-2025.11.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:61a08bcb0ec14ff4e0ed2044aad948d0659604f824cbd50b55e30b0ec6f09c73", size = 288900, upload-time = "2025-11-03T21:32:53.569Z" },
+ { url = "https://files.pythonhosted.org/packages/3c/6b/1d650c45e99a9b327586739d926a1cd4e94666b1bd4af90428b36af66dc7/regex-2025.11.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c9c30003b9347c24bcc210958c5d167b9e4f9be786cb380a7d32f14f9b84674f", size = 799010, upload-time = "2025-11-03T21:32:55.222Z" },
+ { url = "https://files.pythonhosted.org/packages/99/ee/d66dcbc6b628ce4e3f7f0cbbb84603aa2fc0ffc878babc857726b8aab2e9/regex-2025.11.3-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4e1e592789704459900728d88d41a46fe3969b82ab62945560a31732ffc19a6d", size = 864893, upload-time = "2025-11-03T21:32:57.239Z" },
+ { url = "https://files.pythonhosted.org/packages/bf/2d/f238229f1caba7ac87a6c4153d79947fb0261415827ae0f77c304260c7d3/regex-2025.11.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6538241f45eb5a25aa575dbba1069ad786f68a4f2773a29a2bd3dd1f9de787be", size = 911522, upload-time = "2025-11-03T21:32:59.274Z" },
+ { url = "https://files.pythonhosted.org/packages/bd/3d/22a4eaba214a917c80e04f6025d26143690f0419511e0116508e24b11c9b/regex-2025.11.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bce22519c989bb72a7e6b36a199384c53db7722fe669ba891da75907fe3587db", size = 803272, upload-time = "2025-11-03T21:33:01.393Z" },
+ { url = "https://files.pythonhosted.org/packages/84/b1/03188f634a409353a84b5ef49754b97dbcc0c0f6fd6c8ede505a8960a0a4/regex-2025.11.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:66d559b21d3640203ab9075797a55165d79017520685fb407b9234d72ab63c62", size = 787958, upload-time = "2025-11-03T21:33:03.379Z" },
+ { url = "https://files.pythonhosted.org/packages/99/6a/27d072f7fbf6fadd59c64d210305e1ff865cc3b78b526fd147db768c553b/regex-2025.11.3-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:669dcfb2e38f9e8c69507bace46f4889e3abbfd9b0c29719202883c0a603598f", size = 859289, upload-time = "2025-11-03T21:33:05.374Z" },
+ { url = "https://files.pythonhosted.org/packages/9a/70/1b3878f648e0b6abe023172dacb02157e685564853cc363d9961bcccde4e/regex-2025.11.3-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:32f74f35ff0f25a5021373ac61442edcb150731fbaa28286bbc8bb1582c89d02", size = 850026, upload-time = "2025-11-03T21:33:07.131Z" },
+ { url = "https://files.pythonhosted.org/packages/dd/d5/68e25559b526b8baab8e66839304ede68ff6727237a47727d240006bd0ff/regex-2025.11.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:e6c7a21dffba883234baefe91bc3388e629779582038f75d2a5be918e250f0ed", size = 789499, upload-time = "2025-11-03T21:33:09.141Z" },
+ { url = "https://files.pythonhosted.org/packages/fc/df/43971264857140a350910d4e33df725e8c94dd9dee8d2e4729fa0d63d49e/regex-2025.11.3-cp314-cp314-win32.whl", hash = "sha256:795ea137b1d809eb6836b43748b12634291c0ed55ad50a7d72d21edf1cd565c4", size = 271604, upload-time = "2025-11-03T21:33:10.9Z" },
+ { url = "https://files.pythonhosted.org/packages/01/6f/9711b57dc6894a55faf80a4c1b5aa4f8649805cb9c7aef46f7d27e2b9206/regex-2025.11.3-cp314-cp314-win_amd64.whl", hash = "sha256:9f95fbaa0ee1610ec0fc6b26668e9917a582ba80c52cc6d9ada15e30aa9ab9ad", size = 280320, upload-time = "2025-11-03T21:33:12.572Z" },
+ { url = "https://files.pythonhosted.org/packages/f1/7e/f6eaa207d4377481f5e1775cdeb5a443b5a59b392d0065f3417d31d80f87/regex-2025.11.3-cp314-cp314-win_arm64.whl", hash = "sha256:dfec44d532be4c07088c3de2876130ff0fbeeacaa89a137decbbb5f665855a0f", size = 273372, upload-time = "2025-11-03T21:33:14.219Z" },
+ { url = "https://files.pythonhosted.org/packages/c3/06/49b198550ee0f5e4184271cee87ba4dfd9692c91ec55289e6282f0f86ccf/regex-2025.11.3-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:ba0d8a5d7f04f73ee7d01d974d47c5834f8a1b0224390e4fe7c12a3a92a78ecc", size = 491985, upload-time = "2025-11-03T21:33:16.555Z" },
+ { url = "https://files.pythonhosted.org/packages/ce/bf/abdafade008f0b1c9da10d934034cb670432d6cf6cbe38bbb53a1cfd6cf8/regex-2025.11.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:442d86cf1cfe4faabf97db7d901ef58347efd004934da045c745e7b5bd57ac49", size = 292669, upload-time = "2025-11-03T21:33:18.32Z" },
+ { url = "https://files.pythonhosted.org/packages/f9/ef/0c357bb8edbd2ad8e273fcb9e1761bc37b8acbc6e1be050bebd6475f19c1/regex-2025.11.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:fd0a5e563c756de210bb964789b5abe4f114dacae9104a47e1a649b910361536", size = 291030, upload-time = "2025-11-03T21:33:20.048Z" },
+ { url = "https://files.pythonhosted.org/packages/79/06/edbb67257596649b8fb088d6aeacbcb248ac195714b18a65e018bf4c0b50/regex-2025.11.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bf3490bcbb985a1ae97b2ce9ad1c0f06a852d5b19dde9b07bdf25bf224248c95", size = 807674, upload-time = "2025-11-03T21:33:21.797Z" },
+ { url = "https://files.pythonhosted.org/packages/f4/d9/ad4deccfce0ea336296bd087f1a191543bb99ee1c53093dcd4c64d951d00/regex-2025.11.3-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:3809988f0a8b8c9dcc0f92478d6501fac7200b9ec56aecf0ec21f4a2ec4b6009", size = 873451, upload-time = "2025-11-03T21:33:23.741Z" },
+ { url = "https://files.pythonhosted.org/packages/13/75/a55a4724c56ef13e3e04acaab29df26582f6978c000ac9cd6810ad1f341f/regex-2025.11.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f4ff94e58e84aedb9c9fce66d4ef9f27a190285b451420f297c9a09f2b9abee9", size = 914980, upload-time = "2025-11-03T21:33:25.999Z" },
+ { url = "https://files.pythonhosted.org/packages/67/1e/a1657ee15bd9116f70d4a530c736983eed997b361e20ecd8f5ca3759d5c5/regex-2025.11.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7eb542fd347ce61e1321b0a6b945d5701528dca0cd9759c2e3bb8bd57e47964d", size = 812852, upload-time = "2025-11-03T21:33:27.852Z" },
+ { url = "https://files.pythonhosted.org/packages/b8/6f/f7516dde5506a588a561d296b2d0044839de06035bb486b326065b4c101e/regex-2025.11.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:d6c2d5919075a1f2e413c00b056ea0c2f065b3f5fe83c3d07d325ab92dce51d6", size = 795566, upload-time = "2025-11-03T21:33:32.364Z" },
+ { url = "https://files.pythonhosted.org/packages/d9/dd/3d10b9e170cc16fb34cb2cef91513cf3df65f440b3366030631b2984a264/regex-2025.11.3-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:3f8bf11a4827cc7ce5a53d4ef6cddd5ad25595d3c1435ef08f76825851343154", size = 868463, upload-time = "2025-11-03T21:33:34.459Z" },
+ { url = "https://files.pythonhosted.org/packages/f5/8e/935e6beff1695aa9085ff83195daccd72acc82c81793df480f34569330de/regex-2025.11.3-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:22c12d837298651e5550ac1d964e4ff57c3f56965fc1812c90c9fb2028eaf267", size = 854694, upload-time = "2025-11-03T21:33:36.793Z" },
+ { url = "https://files.pythonhosted.org/packages/92/12/10650181a040978b2f5720a6a74d44f841371a3d984c2083fc1752e4acf6/regex-2025.11.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:62ba394a3dda9ad41c7c780f60f6e4a70988741415ae96f6d1bf6c239cf01379", size = 799691, upload-time = "2025-11-03T21:33:39.079Z" },
+ { url = "https://files.pythonhosted.org/packages/67/90/8f37138181c9a7690e7e4cb388debbd389342db3c7381d636d2875940752/regex-2025.11.3-cp314-cp314t-win32.whl", hash = "sha256:4bf146dca15cdd53224a1bf46d628bd7590e4a07fbb69e720d561aea43a32b38", size = 274583, upload-time = "2025-11-03T21:33:41.302Z" },
+ { url = "https://files.pythonhosted.org/packages/8f/cd/867f5ec442d56beb56f5f854f40abcfc75e11d10b11fdb1869dd39c63aaf/regex-2025.11.3-cp314-cp314t-win_amd64.whl", hash = "sha256:adad1a1bcf1c9e76346e091d22d23ac54ef28e1365117d99521631078dfec9de", size = 284286, upload-time = "2025-11-03T21:33:43.324Z" },
+ { url = "https://files.pythonhosted.org/packages/20/31/32c0c4610cbc070362bf1d2e4ea86d1ea29014d400a6d6c2486fcfd57766/regex-2025.11.3-cp314-cp314t-win_arm64.whl", hash = "sha256:c54f768482cef41e219720013cd05933b6f971d9562544d691c68699bf2b6801", size = 274741, upload-time = "2025-11-03T21:33:45.557Z" },
]
[[package]]
@@ -3671,6 +4254,35 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/6d/61/21b8c41f68e60c8cc3b2e25644f0e3681926020f11d06ab0b78e3c6bbff1/rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4c5f36a861bc4b7da6516dbdf302c55313afa09b81931e8280361a4f6c9a2d27", size = 555806, upload-time = "2025-11-30T20:23:22.488Z" },
{ url = "https://files.pythonhosted.org/packages/f9/39/7e067bb06c31de48de3eb200f9fc7c58982a4d3db44b07e73963e10d3be9/rpds_py-0.30.0-cp313-cp313t-win32.whl", hash = "sha256:3d4a69de7a3e50ffc214ae16d79d8fbb0922972da0356dcf4d0fdca2878559c6", size = 211341, upload-time = "2025-11-30T20:23:24.449Z" },
{ url = "https://files.pythonhosted.org/packages/0a/4d/222ef0b46443cf4cf46764d9c630f3fe4abaa7245be9417e56e9f52b8f65/rpds_py-0.30.0-cp313-cp313t-win_amd64.whl", hash = "sha256:f14fc5df50a716f7ece6a80b6c78bb35ea2ca47c499e422aa4463455dd96d56d", size = 225768, upload-time = "2025-11-30T20:23:25.908Z" },
+ { url = "https://files.pythonhosted.org/packages/86/81/dad16382ebbd3d0e0328776d8fd7ca94220e4fa0798d1dc5e7da48cb3201/rpds_py-0.30.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:68f19c879420aa08f61203801423f6cd5ac5f0ac4ac82a2368a9fcd6a9a075e0", size = 362099, upload-time = "2025-11-30T20:23:27.316Z" },
+ { url = "https://files.pythonhosted.org/packages/2b/60/19f7884db5d5603edf3c6bce35408f45ad3e97e10007df0e17dd57af18f8/rpds_py-0.30.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:ec7c4490c672c1a0389d319b3a9cfcd098dcdc4783991553c332a15acf7249be", size = 353192, upload-time = "2025-11-30T20:23:29.151Z" },
+ { url = "https://files.pythonhosted.org/packages/bf/c4/76eb0e1e72d1a9c4703c69607cec123c29028bff28ce41588792417098ac/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f251c812357a3fed308d684a5079ddfb9d933860fc6de89f2b7ab00da481e65f", size = 384080, upload-time = "2025-11-30T20:23:30.785Z" },
+ { url = "https://files.pythonhosted.org/packages/72/87/87ea665e92f3298d1b26d78814721dc39ed8d2c74b86e83348d6b48a6f31/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ac98b175585ecf4c0348fd7b29c3864bda53b805c773cbf7bfdaffc8070c976f", size = 394841, upload-time = "2025-11-30T20:23:32.209Z" },
+ { url = "https://files.pythonhosted.org/packages/77/ad/7783a89ca0587c15dcbf139b4a8364a872a25f861bdb88ed99f9b0dec985/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3e62880792319dbeb7eb866547f2e35973289e7d5696c6e295476448f5b63c87", size = 516670, upload-time = "2025-11-30T20:23:33.742Z" },
+ { url = "https://files.pythonhosted.org/packages/5b/3c/2882bdac942bd2172f3da574eab16f309ae10a3925644e969536553cb4ee/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4e7fc54e0900ab35d041b0601431b0a0eb495f0851a0639b6ef90f7741b39a18", size = 408005, upload-time = "2025-11-30T20:23:35.253Z" },
+ { url = "https://files.pythonhosted.org/packages/ce/81/9a91c0111ce1758c92516a3e44776920b579d9a7c09b2b06b642d4de3f0f/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47e77dc9822d3ad616c3d5759ea5631a75e5809d5a28707744ef79d7a1bcfcad", size = 382112, upload-time = "2025-11-30T20:23:36.842Z" },
+ { url = "https://files.pythonhosted.org/packages/cf/8e/1da49d4a107027e5fbc64daeab96a0706361a2918da10cb41769244b805d/rpds_py-0.30.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:b4dc1a6ff022ff85ecafef7979a2c6eb423430e05f1165d6688234e62ba99a07", size = 399049, upload-time = "2025-11-30T20:23:38.343Z" },
+ { url = "https://files.pythonhosted.org/packages/df/5a/7ee239b1aa48a127570ec03becbb29c9d5a9eb092febbd1699d567cae859/rpds_py-0.30.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4559c972db3a360808309e06a74628b95eaccbf961c335c8fe0d590cf587456f", size = 415661, upload-time = "2025-11-30T20:23:40.263Z" },
+ { url = "https://files.pythonhosted.org/packages/70/ea/caa143cf6b772f823bc7929a45da1fa83569ee49b11d18d0ada7f5ee6fd6/rpds_py-0.30.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:0ed177ed9bded28f8deb6ab40c183cd1192aa0de40c12f38be4d59cd33cb5c65", size = 565606, upload-time = "2025-11-30T20:23:42.186Z" },
+ { url = "https://files.pythonhosted.org/packages/64/91/ac20ba2d69303f961ad8cf55bf7dbdb4763f627291ba3d0d7d67333cced9/rpds_py-0.30.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ad1fa8db769b76ea911cb4e10f049d80bf518c104f15b3edb2371cc65375c46f", size = 591126, upload-time = "2025-11-30T20:23:44.086Z" },
+ { url = "https://files.pythonhosted.org/packages/21/20/7ff5f3c8b00c8a95f75985128c26ba44503fb35b8e0259d812766ea966c7/rpds_py-0.30.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:46e83c697b1f1c72b50e5ee5adb4353eef7406fb3f2043d64c33f20ad1c2fc53", size = 553371, upload-time = "2025-11-30T20:23:46.004Z" },
+ { url = "https://files.pythonhosted.org/packages/72/c7/81dadd7b27c8ee391c132a6b192111ca58d866577ce2d9b0ca157552cce0/rpds_py-0.30.0-cp314-cp314-win32.whl", hash = "sha256:ee454b2a007d57363c2dfd5b6ca4a5d7e2c518938f8ed3b706e37e5d470801ed", size = 215298, upload-time = "2025-11-30T20:23:47.696Z" },
+ { url = "https://files.pythonhosted.org/packages/3e/d2/1aaac33287e8cfb07aab2e6b8ac1deca62f6f65411344f1433c55e6f3eb8/rpds_py-0.30.0-cp314-cp314-win_amd64.whl", hash = "sha256:95f0802447ac2d10bcc69f6dc28fe95fdf17940367b21d34e34c737870758950", size = 228604, upload-time = "2025-11-30T20:23:49.501Z" },
+ { url = "https://files.pythonhosted.org/packages/e8/95/ab005315818cc519ad074cb7784dae60d939163108bd2b394e60dc7b5461/rpds_py-0.30.0-cp314-cp314-win_arm64.whl", hash = "sha256:613aa4771c99f03346e54c3f038e4cc574ac09a3ddfb0e8878487335e96dead6", size = 222391, upload-time = "2025-11-30T20:23:50.96Z" },
+ { url = "https://files.pythonhosted.org/packages/9e/68/154fe0194d83b973cdedcdcc88947a2752411165930182ae41d983dcefa6/rpds_py-0.30.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:7e6ecfcb62edfd632e56983964e6884851786443739dbfe3582947e87274f7cb", size = 364868, upload-time = "2025-11-30T20:23:52.494Z" },
+ { url = "https://files.pythonhosted.org/packages/83/69/8bbc8b07ec854d92a8b75668c24d2abcb1719ebf890f5604c61c9369a16f/rpds_py-0.30.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:a1d0bc22a7cdc173fedebb73ef81e07faef93692b8c1ad3733b67e31e1b6e1b8", size = 353747, upload-time = "2025-11-30T20:23:54.036Z" },
+ { url = "https://files.pythonhosted.org/packages/ab/00/ba2e50183dbd9abcce9497fa5149c62b4ff3e22d338a30d690f9af970561/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d08f00679177226c4cb8c5265012eea897c8ca3b93f429e546600c971bcbae7", size = 383795, upload-time = "2025-11-30T20:23:55.556Z" },
+ { url = "https://files.pythonhosted.org/packages/05/6f/86f0272b84926bcb0e4c972262f54223e8ecc556b3224d281e6598fc9268/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5965af57d5848192c13534f90f9dd16464f3c37aaf166cc1da1cae1fd5a34898", size = 393330, upload-time = "2025-11-30T20:23:57.033Z" },
+ { url = "https://files.pythonhosted.org/packages/cb/e9/0e02bb2e6dc63d212641da45df2b0bf29699d01715913e0d0f017ee29438/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9a4e86e34e9ab6b667c27f3211ca48f73dba7cd3d90f8d5b11be56e5dbc3fb4e", size = 518194, upload-time = "2025-11-30T20:23:58.637Z" },
+ { url = "https://files.pythonhosted.org/packages/ee/ca/be7bca14cf21513bdf9c0606aba17d1f389ea2b6987035eb4f62bd923f25/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e5d3e6b26f2c785d65cc25ef1e5267ccbe1b069c5c21b8cc724efee290554419", size = 408340, upload-time = "2025-11-30T20:24:00.2Z" },
+ { url = "https://files.pythonhosted.org/packages/c2/c7/736e00ebf39ed81d75544c0da6ef7b0998f8201b369acf842f9a90dc8fce/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:626a7433c34566535b6e56a1b39a7b17ba961e97ce3b80ec62e6f1312c025551", size = 383765, upload-time = "2025-11-30T20:24:01.759Z" },
+ { url = "https://files.pythonhosted.org/packages/4a/3f/da50dfde9956aaf365c4adc9533b100008ed31aea635f2b8d7b627e25b49/rpds_py-0.30.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:acd7eb3f4471577b9b5a41baf02a978e8bdeb08b4b355273994f8b87032000a8", size = 396834, upload-time = "2025-11-30T20:24:03.687Z" },
+ { url = "https://files.pythonhosted.org/packages/4e/00/34bcc2565b6020eab2623349efbdec810676ad571995911f1abdae62a3a0/rpds_py-0.30.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fe5fa731a1fa8a0a56b0977413f8cacac1768dad38d16b3a296712709476fbd5", size = 415470, upload-time = "2025-11-30T20:24:05.232Z" },
+ { url = "https://files.pythonhosted.org/packages/8c/28/882e72b5b3e6f718d5453bd4d0d9cf8df36fddeb4ddbbab17869d5868616/rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:74a3243a411126362712ee1524dfc90c650a503502f135d54d1b352bd01f2404", size = 565630, upload-time = "2025-11-30T20:24:06.878Z" },
+ { url = "https://files.pythonhosted.org/packages/3b/97/04a65539c17692de5b85c6e293520fd01317fd878ea1995f0367d4532fb1/rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:3e8eeb0544f2eb0d2581774be4c3410356eba189529a6b3e36bbbf9696175856", size = 591148, upload-time = "2025-11-30T20:24:08.445Z" },
+ { url = "https://files.pythonhosted.org/packages/85/70/92482ccffb96f5441aab93e26c4d66489eb599efdcf96fad90c14bbfb976/rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:dbd936cde57abfee19ab3213cf9c26be06d60750e60a8e4dd85d1ab12c8b1f40", size = 556030, upload-time = "2025-11-30T20:24:10.956Z" },
+ { url = "https://files.pythonhosted.org/packages/20/53/7c7e784abfa500a2b6b583b147ee4bb5a2b3747a9166bab52fec4b5b5e7d/rpds_py-0.30.0-cp314-cp314t-win32.whl", hash = "sha256:dc824125c72246d924f7f796b4f63c1e9dc810c7d9e2355864b3c3a73d59ade0", size = 211570, upload-time = "2025-11-30T20:24:12.735Z" },
+ { url = "https://files.pythonhosted.org/packages/d0/02/fa464cdfbe6b26e0600b62c528b72d8608f5cc49f96b8d6e38c95d60c676/rpds_py-0.30.0-cp314-cp314t-win_amd64.whl", hash = "sha256:27f4b0e92de5bfbc6f86e43959e6edd1425c33b5e69aab0984a72047f2bcf1e3", size = 226532, upload-time = "2025-11-30T20:24:14.634Z" },
{ url = "https://files.pythonhosted.org/packages/69/71/3f34339ee70521864411f8b6992e7ab13ac30d8e4e3309e07c7361767d91/rpds_py-0.30.0-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:c2262bdba0ad4fc6fb5545660673925c2d2a5d9e2e0fb603aad545427be0fc58", size = 372292, upload-time = "2025-11-30T20:24:16.537Z" },
{ url = "https://files.pythonhosted.org/packages/57/09/f183df9b8f2d66720d2ef71075c59f7e1b336bec7ee4c48f0a2b06857653/rpds_py-0.30.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:ee6af14263f25eedc3bb918a3c04245106a42dfd4f5c2285ea6f997b1fc3f89a", size = 362128, upload-time = "2025-11-30T20:24:18.086Z" },
{ url = "https://files.pythonhosted.org/packages/7a/68/5c2594e937253457342e078f0cc1ded3dd7b2ad59afdbf2d354869110a02/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3adbb8179ce342d235c31ab8ec511e66c73faa27a47e076ccc92421add53e2bb", size = 391542, upload-time = "2025-11-30T20:24:20.092Z" },
@@ -3715,28 +4327,28 @@ wheels = [
[[package]]
name = "ruff"
-version = "0.14.5"
-source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/82/fa/fbb67a5780ae0f704876cb8ac92d6d76da41da4dc72b7ed3565ab18f2f52/ruff-0.14.5.tar.gz", hash = "sha256:8d3b48d7d8aad423d3137af7ab6c8b1e38e4de104800f0d596990f6ada1a9fc1", size = 5615944, upload-time = "2025-11-13T19:58:51.155Z" }
-wheels = [
- { url = "https://files.pythonhosted.org/packages/68/31/c07e9c535248d10836a94e4f4e8c5a31a1beed6f169b31405b227872d4f4/ruff-0.14.5-py3-none-linux_armv6l.whl", hash = "sha256:f3b8248123b586de44a8018bcc9fefe31d23dda57a34e6f0e1e53bd51fd63594", size = 13171630, upload-time = "2025-11-13T19:57:54.894Z" },
- { url = "https://files.pythonhosted.org/packages/8e/5c/283c62516dca697cd604c2796d1487396b7a436b2f0ecc3fd412aca470e0/ruff-0.14.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:f7a75236570318c7a30edd7f5491945f0169de738d945ca8784500b517163a72", size = 13413925, upload-time = "2025-11-13T19:57:59.181Z" },
- { url = "https://files.pythonhosted.org/packages/b6/f3/aa319f4afc22cb6fcba2b9cdfc0f03bbf747e59ab7a8c5e90173857a1361/ruff-0.14.5-py3-none-macosx_11_0_arm64.whl", hash = "sha256:6d146132d1ee115f8802356a2dc9a634dbf58184c51bff21f313e8cd1c74899a", size = 12574040, upload-time = "2025-11-13T19:58:02.056Z" },
- { url = "https://files.pythonhosted.org/packages/f9/7f/cb5845fcc7c7e88ed57f58670189fc2ff517fe2134c3821e77e29fd3b0c8/ruff-0.14.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e2380596653dcd20b057794d55681571a257a42327da8894b93bbd6111aa801f", size = 13009755, upload-time = "2025-11-13T19:58:05.172Z" },
- { url = "https://files.pythonhosted.org/packages/21/d2/bcbedbb6bcb9253085981730687ddc0cc7b2e18e8dc13cf4453de905d7a0/ruff-0.14.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2d1fa985a42b1f075a098fa1ab9d472b712bdb17ad87a8ec86e45e7fa6273e68", size = 12937641, upload-time = "2025-11-13T19:58:08.345Z" },
- { url = "https://files.pythonhosted.org/packages/a4/58/e25de28a572bdd60ffc6bb71fc7fd25a94ec6a076942e372437649cbb02a/ruff-0.14.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:88f0770d42b7fa02bbefddde15d235ca3aa24e2f0137388cc15b2dcbb1f7c7a7", size = 13610854, upload-time = "2025-11-13T19:58:11.419Z" },
- { url = "https://files.pythonhosted.org/packages/7d/24/43bb3fd23ecee9861970978ea1a7a63e12a204d319248a7e8af539984280/ruff-0.14.5-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:3676cb02b9061fee7294661071c4709fa21419ea9176087cb77e64410926eb78", size = 15061088, upload-time = "2025-11-13T19:58:14.551Z" },
- { url = "https://files.pythonhosted.org/packages/23/44/a022f288d61c2f8c8645b24c364b719aee293ffc7d633a2ca4d116b9c716/ruff-0.14.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b595bedf6bc9cab647c4a173a61acf4f1ac5f2b545203ba82f30fcb10b0318fb", size = 14734717, upload-time = "2025-11-13T19:58:17.518Z" },
- { url = "https://files.pythonhosted.org/packages/58/81/5c6ba44de7e44c91f68073e0658109d8373b0590940efe5bd7753a2585a3/ruff-0.14.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f55382725ad0bdb2e8ee2babcbbfb16f124f5a59496a2f6a46f1d9d99d93e6e2", size = 14028812, upload-time = "2025-11-13T19:58:20.533Z" },
- { url = "https://files.pythonhosted.org/packages/ad/ef/41a8b60f8462cb320f68615b00299ebb12660097c952c600c762078420f8/ruff-0.14.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7497d19dce23976bdaca24345ae131a1d38dcfe1b0850ad8e9e6e4fa321a6e19", size = 13825656, upload-time = "2025-11-13T19:58:23.345Z" },
- { url = "https://files.pythonhosted.org/packages/7c/00/207e5de737fdb59b39eb1fac806904fe05681981b46d6a6db9468501062e/ruff-0.14.5-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:410e781f1122d6be4f446981dd479470af86537fb0b8857f27a6e872f65a38e4", size = 13959922, upload-time = "2025-11-13T19:58:26.537Z" },
- { url = "https://files.pythonhosted.org/packages/bc/7e/fa1f5c2776db4be405040293618846a2dece5c70b050874c2d1f10f24776/ruff-0.14.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:c01be527ef4c91a6d55e53b337bfe2c0f82af024cc1a33c44792d6844e2331e1", size = 12932501, upload-time = "2025-11-13T19:58:29.822Z" },
- { url = "https://files.pythonhosted.org/packages/67/d8/d86bf784d693a764b59479a6bbdc9515ae42c340a5dc5ab1dabef847bfaa/ruff-0.14.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:f66e9bb762e68d66e48550b59c74314168ebb46199886c5c5aa0b0fbcc81b151", size = 12927319, upload-time = "2025-11-13T19:58:32.923Z" },
- { url = "https://files.pythonhosted.org/packages/ac/de/ee0b304d450ae007ce0cb3e455fe24fbcaaedae4ebaad6c23831c6663651/ruff-0.14.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:d93be8f1fa01022337f1f8f3bcaa7ffee2d0b03f00922c45c2207954f351f465", size = 13206209, upload-time = "2025-11-13T19:58:35.952Z" },
- { url = "https://files.pythonhosted.org/packages/33/aa/193ca7e3a92d74f17d9d5771a765965d2cf42c86e6f0fd95b13969115723/ruff-0.14.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:c135d4b681f7401fe0e7312017e41aba9b3160861105726b76cfa14bc25aa367", size = 13953709, upload-time = "2025-11-13T19:58:39.002Z" },
- { url = "https://files.pythonhosted.org/packages/cc/f1/7119e42aa1d3bf036ffc9478885c2e248812b7de9abea4eae89163d2929d/ruff-0.14.5-py3-none-win32.whl", hash = "sha256:c83642e6fccfb6dea8b785eb9f456800dcd6a63f362238af5fc0c83d027dd08b", size = 12925808, upload-time = "2025-11-13T19:58:42.779Z" },
- { url = "https://files.pythonhosted.org/packages/3b/9d/7c0a255d21e0912114784e4a96bf62af0618e2190cae468cd82b13625ad2/ruff-0.14.5-py3-none-win_amd64.whl", hash = "sha256:9d55d7af7166f143c94eae1db3312f9ea8f95a4defef1979ed516dbb38c27621", size = 14331546, upload-time = "2025-11-13T19:58:45.691Z" },
- { url = "https://files.pythonhosted.org/packages/e5/80/69756670caedcf3b9be597a6e12276a6cf6197076eb62aad0c608f8efce0/ruff-0.14.5-py3-none-win_arm64.whl", hash = "sha256:4b700459d4649e2594b31f20a9de33bc7c19976d4746d8d0798ad959621d64a4", size = 13433331, upload-time = "2025-11-13T19:58:48.434Z" },
+version = "0.14.10"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/57/08/52232a877978dd8f9cf2aeddce3e611b40a63287dfca29b6b8da791f5e8d/ruff-0.14.10.tar.gz", hash = "sha256:9a2e830f075d1a42cd28420d7809ace390832a490ed0966fe373ba288e77aaf4", size = 5859763, upload-time = "2025-12-18T19:28:57.98Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/60/01/933704d69f3f05ee16ef11406b78881733c186fe14b6a46b05cfcaf6d3b2/ruff-0.14.10-py3-none-linux_armv6l.whl", hash = "sha256:7a3ce585f2ade3e1f29ec1b92df13e3da262178df8c8bdf876f48fa0e8316c49", size = 13527080, upload-time = "2025-12-18T19:29:25.642Z" },
+ { url = "https://files.pythonhosted.org/packages/df/58/a0349197a7dfa603ffb7f5b0470391efa79ddc327c1e29c4851e85b09cc5/ruff-0.14.10-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:674f9be9372907f7257c51f1d4fc902cb7cf014b9980152b802794317941f08f", size = 13797320, upload-time = "2025-12-18T19:29:02.571Z" },
+ { url = "https://files.pythonhosted.org/packages/7b/82/36be59f00a6082e38c23536df4e71cdbc6af8d7c707eade97fcad5c98235/ruff-0.14.10-py3-none-macosx_11_0_arm64.whl", hash = "sha256:d85713d522348837ef9df8efca33ccb8bd6fcfc86a2cde3ccb4bc9d28a18003d", size = 12918434, upload-time = "2025-12-18T19:28:51.202Z" },
+ { url = "https://files.pythonhosted.org/packages/a6/00/45c62a7f7e34da92a25804f813ebe05c88aa9e0c25e5cb5a7d23dd7450e3/ruff-0.14.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6987ebe0501ae4f4308d7d24e2d0fe3d7a98430f5adfd0f1fead050a740a3a77", size = 13371961, upload-time = "2025-12-18T19:29:04.991Z" },
+ { url = "https://files.pythonhosted.org/packages/40/31/a5906d60f0405f7e57045a70f2d57084a93ca7425f22e1d66904769d1628/ruff-0.14.10-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:16a01dfb7b9e4eee556fbfd5392806b1b8550c9b4a9f6acd3dbe6812b193c70a", size = 13275629, upload-time = "2025-12-18T19:29:21.381Z" },
+ { url = "https://files.pythonhosted.org/packages/3e/60/61c0087df21894cf9d928dc04bcd4fb10e8b2e8dca7b1a276ba2155b2002/ruff-0.14.10-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7165d31a925b7a294465fa81be8c12a0e9b60fb02bf177e79067c867e71f8b1f", size = 14029234, upload-time = "2025-12-18T19:29:00.132Z" },
+ { url = "https://files.pythonhosted.org/packages/44/84/77d911bee3b92348b6e5dab5a0c898d87084ea03ac5dc708f46d88407def/ruff-0.14.10-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:c561695675b972effb0c0a45db233f2c816ff3da8dcfbe7dfc7eed625f218935", size = 15449890, upload-time = "2025-12-18T19:28:53.573Z" },
+ { url = "https://files.pythonhosted.org/packages/e9/36/480206eaefa24a7ec321582dda580443a8f0671fdbf6b1c80e9c3e93a16a/ruff-0.14.10-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4bb98fcbbc61725968893682fd4df8966a34611239c9fd07a1f6a07e7103d08e", size = 15123172, upload-time = "2025-12-18T19:29:23.453Z" },
+ { url = "https://files.pythonhosted.org/packages/5c/38/68e414156015ba80cef5473d57919d27dfb62ec804b96180bafdeaf0e090/ruff-0.14.10-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f24b47993a9d8cb858429e97bdf8544c78029f09b520af615c1d261bf827001d", size = 14460260, upload-time = "2025-12-18T19:29:27.808Z" },
+ { url = "https://files.pythonhosted.org/packages/b3/19/9e050c0dca8aba824d67cc0db69fb459c28d8cd3f6855b1405b3f29cc91d/ruff-0.14.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:59aabd2e2c4fd614d2862e7939c34a532c04f1084476d6833dddef4afab87e9f", size = 14229978, upload-time = "2025-12-18T19:29:11.32Z" },
+ { url = "https://files.pythonhosted.org/packages/51/eb/e8dd1dd6e05b9e695aa9dd420f4577debdd0f87a5ff2fedda33c09e9be8c/ruff-0.14.10-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:213db2b2e44be8625002dbea33bb9c60c66ea2c07c084a00d55732689d697a7f", size = 14338036, upload-time = "2025-12-18T19:29:09.184Z" },
+ { url = "https://files.pythonhosted.org/packages/6a/12/f3e3a505db7c19303b70af370d137795fcfec136d670d5de5391e295c134/ruff-0.14.10-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:b914c40ab64865a17a9a5b67911d14df72346a634527240039eb3bd650e5979d", size = 13264051, upload-time = "2025-12-18T19:29:13.431Z" },
+ { url = "https://files.pythonhosted.org/packages/08/64/8c3a47eaccfef8ac20e0484e68e0772013eb85802f8a9f7603ca751eb166/ruff-0.14.10-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:1484983559f026788e3a5c07c81ef7d1e97c1c78ed03041a18f75df104c45405", size = 13283998, upload-time = "2025-12-18T19:29:06.994Z" },
+ { url = "https://files.pythonhosted.org/packages/12/84/534a5506f4074e5cc0529e5cd96cfc01bb480e460c7edf5af70d2bcae55e/ruff-0.14.10-py3-none-musllinux_1_2_i686.whl", hash = "sha256:c70427132db492d25f982fffc8d6c7535cc2fd2c83fc8888f05caaa248521e60", size = 13601891, upload-time = "2025-12-18T19:28:55.811Z" },
+ { url = "https://files.pythonhosted.org/packages/0d/1e/14c916087d8598917dbad9b2921d340f7884824ad6e9c55de948a93b106d/ruff-0.14.10-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:5bcf45b681e9f1ee6445d317ce1fa9d6cba9a6049542d1c3d5b5958986be8830", size = 14336660, upload-time = "2025-12-18T19:29:16.531Z" },
+ { url = "https://files.pythonhosted.org/packages/f2/1c/d7b67ab43f30013b47c12b42d1acd354c195351a3f7a1d67f59e54227ede/ruff-0.14.10-py3-none-win32.whl", hash = "sha256:104c49fc7ab73f3f3a758039adea978869a918f31b73280db175b43a2d9b51d6", size = 13196187, upload-time = "2025-12-18T19:29:19.006Z" },
+ { url = "https://files.pythonhosted.org/packages/fb/9c/896c862e13886fae2af961bef3e6312db9ebc6adc2b156fe95e615dee8c1/ruff-0.14.10-py3-none-win_amd64.whl", hash = "sha256:466297bd73638c6bdf06485683e812db1c00c7ac96d4ddd0294a338c62fdc154", size = 14661283, upload-time = "2025-12-18T19:29:30.16Z" },
+ { url = "https://files.pythonhosted.org/packages/74/31/b0e29d572670dca3674eeee78e418f20bdf97fa8aa9ea71380885e175ca0/ruff-0.14.10-py3-none-win_arm64.whl", hash = "sha256:e51d046cf6dda98a4633b8a8a771451107413b0f07183b2bef03f075599e44e6", size = 13729839, upload-time = "2025-12-18T19:28:48.636Z" },
]
[[package]]
@@ -3780,7 +4392,7 @@ wheels = [
[package.optional-dependencies]
torch = [
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
- { name = "numpy", version = "2.3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "numpy", version = "2.4.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
{ name = "packaging" },
{ name = "torch" },
]
@@ -3859,7 +4471,7 @@ resolution-markers = [
"(python_full_version == '3.11.*' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version == '3.11.*' and sys_platform != 'darwin' and sys_platform != 'linux')",
]
dependencies = [
- { name = "numpy", version = "2.3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "numpy", version = "2.4.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/0a/ca/d8ace4f98322d01abcd52d381134344bf7b431eba7ed8b42bdea5a3c2ac9/scipy-1.16.3.tar.gz", hash = "sha256:01e87659402762f43bd2fee13370553a17ada367d42e7487800bf2916535aecb", size = 30597883, upload-time = "2025-10-28T17:38:54.068Z" }
wheels = [
@@ -3903,6 +4515,26 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/ab/f2/b31d75cb9b5fa4dd39a0a931ee9b33e7f6f36f23be5ef560bf72e0f92f32/scipy-1.16.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:e7efa2681ea410b10dde31a52b18b0154d66f2485328830e45fdf183af5aefc6", size = 38796678, upload-time = "2025-10-28T17:35:26.354Z" },
{ url = "https://files.pythonhosted.org/packages/b4/1e/b3723d8ff64ab548c38d87055483714fefe6ee20e0189b62352b5e015bb1/scipy-1.16.3-cp313-cp313t-win_amd64.whl", hash = "sha256:2d1ae2cf0c350e7705168ff2429962a89ad90c2d49d1dd300686d8b2a5af22fc", size = 38640178, upload-time = "2025-10-28T17:35:35.304Z" },
{ url = "https://files.pythonhosted.org/packages/8e/f3/d854ff38789aca9b0cc23008d607ced9de4f7ab14fa1ca4329f86b3758ca/scipy-1.16.3-cp313-cp313t-win_arm64.whl", hash = "sha256:0c623a54f7b79dd88ef56da19bc2873afec9673a48f3b85b18e4d402bdd29a5a", size = 25803246, upload-time = "2025-10-28T17:35:42.155Z" },
+ { url = "https://files.pythonhosted.org/packages/99/f6/99b10fd70f2d864c1e29a28bbcaa0c6340f9d8518396542d9ea3b4aaae15/scipy-1.16.3-cp314-cp314-macosx_10_14_x86_64.whl", hash = "sha256:875555ce62743e1d54f06cdf22c1e0bc47b91130ac40fe5d783b6dfa114beeb6", size = 36606469, upload-time = "2025-10-28T17:36:08.741Z" },
+ { url = "https://files.pythonhosted.org/packages/4d/74/043b54f2319f48ea940dd025779fa28ee360e6b95acb7cd188fad4391c6b/scipy-1.16.3-cp314-cp314-macosx_12_0_arm64.whl", hash = "sha256:bb61878c18a470021fb515a843dc7a76961a8daceaaaa8bad1332f1bf4b54657", size = 28872043, upload-time = "2025-10-28T17:36:16.599Z" },
+ { url = "https://files.pythonhosted.org/packages/4d/e1/24b7e50cc1c4ee6ffbcb1f27fe9f4c8b40e7911675f6d2d20955f41c6348/scipy-1.16.3-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:f2622206f5559784fa5c4b53a950c3c7c1cf3e84ca1b9c4b6c03f062f289ca26", size = 20862952, upload-time = "2025-10-28T17:36:22.966Z" },
+ { url = "https://files.pythonhosted.org/packages/dd/3a/3e8c01a4d742b730df368e063787c6808597ccb38636ed821d10b39ca51b/scipy-1.16.3-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:7f68154688c515cdb541a31ef8eb66d8cd1050605be9dcd74199cbd22ac739bc", size = 23508512, upload-time = "2025-10-28T17:36:29.731Z" },
+ { url = "https://files.pythonhosted.org/packages/1f/60/c45a12b98ad591536bfe5330cb3cfe1850d7570259303563b1721564d458/scipy-1.16.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8b3c820ddb80029fe9f43d61b81d8b488d3ef8ca010d15122b152db77dc94c22", size = 33413639, upload-time = "2025-10-28T17:36:37.982Z" },
+ { url = "https://files.pythonhosted.org/packages/71/bc/35957d88645476307e4839712642896689df442f3e53b0fa016ecf8a3357/scipy-1.16.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:d3837938ae715fc0fe3c39c0202de3a8853aff22ca66781ddc2ade7554b7e2cc", size = 35704729, upload-time = "2025-10-28T17:36:46.547Z" },
+ { url = "https://files.pythonhosted.org/packages/3b/15/89105e659041b1ca11c386e9995aefacd513a78493656e57789f9d9eab61/scipy-1.16.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:aadd23f98f9cb069b3bd64ddc900c4d277778242e961751f77a8cb5c4b946fb0", size = 36086251, upload-time = "2025-10-28T17:36:55.161Z" },
+ { url = "https://files.pythonhosted.org/packages/1a/87/c0ea673ac9c6cc50b3da2196d860273bc7389aa69b64efa8493bdd25b093/scipy-1.16.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:b7c5f1bda1354d6a19bc6af73a649f8285ca63ac6b52e64e658a5a11d4d69800", size = 38716681, upload-time = "2025-10-28T17:37:04.1Z" },
+ { url = "https://files.pythonhosted.org/packages/91/06/837893227b043fb9b0d13e4bd7586982d8136cb249ffb3492930dab905b8/scipy-1.16.3-cp314-cp314-win_amd64.whl", hash = "sha256:e5d42a9472e7579e473879a1990327830493a7047506d58d73fc429b84c1d49d", size = 39358423, upload-time = "2025-10-28T17:38:20.005Z" },
+ { url = "https://files.pythonhosted.org/packages/95/03/28bce0355e4d34a7c034727505a02d19548549e190bedd13a721e35380b7/scipy-1.16.3-cp314-cp314-win_arm64.whl", hash = "sha256:6020470b9d00245926f2d5bb93b119ca0340f0d564eb6fbaad843eaebf9d690f", size = 26135027, upload-time = "2025-10-28T17:38:24.966Z" },
+ { url = "https://files.pythonhosted.org/packages/b2/6f/69f1e2b682efe9de8fe9f91040f0cd32f13cfccba690512ba4c582b0bc29/scipy-1.16.3-cp314-cp314t-macosx_10_14_x86_64.whl", hash = "sha256:e1d27cbcb4602680a49d787d90664fa4974063ac9d4134813332a8c53dbe667c", size = 37028379, upload-time = "2025-10-28T17:37:14.061Z" },
+ { url = "https://files.pythonhosted.org/packages/7c/2d/e826f31624a5ebbab1cd93d30fd74349914753076ed0593e1d56a98c4fb4/scipy-1.16.3-cp314-cp314t-macosx_12_0_arm64.whl", hash = "sha256:9b9c9c07b6d56a35777a1b4cc8966118fb16cfd8daf6743867d17d36cfad2d40", size = 29400052, upload-time = "2025-10-28T17:37:21.709Z" },
+ { url = "https://files.pythonhosted.org/packages/69/27/d24feb80155f41fd1f156bf144e7e049b4e2b9dd06261a242905e3bc7a03/scipy-1.16.3-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:3a4c460301fb2cffb7f88528f30b3127742cff583603aa7dc964a52c463b385d", size = 21391183, upload-time = "2025-10-28T17:37:29.559Z" },
+ { url = "https://files.pythonhosted.org/packages/f8/d3/1b229e433074c5738a24277eca520a2319aac7465eea7310ea6ae0e98ae2/scipy-1.16.3-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:f667a4542cc8917af1db06366d3f78a5c8e83badd56409f94d1eac8d8d9133fa", size = 23930174, upload-time = "2025-10-28T17:37:36.306Z" },
+ { url = "https://files.pythonhosted.org/packages/16/9d/d9e148b0ec680c0f042581a2be79a28a7ab66c0c4946697f9e7553ead337/scipy-1.16.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f379b54b77a597aa7ee5e697df0d66903e41b9c85a6dd7946159e356319158e8", size = 33497852, upload-time = "2025-10-28T17:37:42.228Z" },
+ { url = "https://files.pythonhosted.org/packages/2f/22/4e5f7561e4f98b7bea63cf3fd7934bff1e3182e9f1626b089a679914d5c8/scipy-1.16.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4aff59800a3b7f786b70bfd6ab551001cb553244988d7d6b8299cb1ea653b353", size = 35798595, upload-time = "2025-10-28T17:37:48.102Z" },
+ { url = "https://files.pythonhosted.org/packages/83/42/6644d714c179429fc7196857866f219fef25238319b650bb32dde7bf7a48/scipy-1.16.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:da7763f55885045036fabcebd80144b757d3db06ab0861415d1c3b7c69042146", size = 36186269, upload-time = "2025-10-28T17:37:53.72Z" },
+ { url = "https://files.pythonhosted.org/packages/ac/70/64b4d7ca92f9cf2e6fc6aaa2eecf80bb9b6b985043a9583f32f8177ea122/scipy-1.16.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:ffa6eea95283b2b8079b821dc11f50a17d0571c92b43e2b5b12764dc5f9b285d", size = 38802779, upload-time = "2025-10-28T17:37:59.393Z" },
+ { url = "https://files.pythonhosted.org/packages/61/82/8d0e39f62764cce5ffd5284131e109f07cf8955aef9ab8ed4e3aa5e30539/scipy-1.16.3-cp314-cp314t-win_amd64.whl", hash = "sha256:d9f48cafc7ce94cf9b15c6bffdc443a81a27bf7075cf2dcd5c8b40f85d10c4e7", size = 39471128, upload-time = "2025-10-28T17:38:05.259Z" },
+ { url = "https://files.pythonhosted.org/packages/64/47/a494741db7280eae6dc033510c319e34d42dd41b7ac0c7ead39354d1a2b5/scipy-1.16.3-cp314-cp314t-win_arm64.whl", hash = "sha256:21d9d6b197227a12dcbf9633320a4e34c6b0e51c57268df255a0942983bac562", size = 26464127, upload-time = "2025-10-28T17:38:11.34Z" },
]
[[package]]
@@ -3933,7 +4565,7 @@ version = "2.1.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
- { name = "numpy", version = "2.3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "numpy", version = "2.4.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
]
sdist = { url = "https://files.pythonhosted.org/packages/4d/bc/0989043118a27cccb4e906a46b7565ce36ca7b57f5a18b78f4f1b0f72d9d/shapely-2.1.2.tar.gz", hash = "sha256:2ed4ecb28320a433db18a5bf029986aa8afcfd740745e78847e330d5d94922a9", size = 315489, upload-time = "2025-09-24T13:51:41.432Z" }
wheels = [
@@ -3977,6 +4609,22 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/96/b3/c6655ee7232b417562bae192ae0d3ceaadb1cc0ffc2088a2ddf415456cc2/shapely-2.1.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:6305993a35989391bd3476ee538a5c9a845861462327efe00dd11a5c8c709a99", size = 4170078, upload-time = "2025-09-24T13:51:08.584Z" },
{ url = "https://files.pythonhosted.org/packages/a0/8e/605c76808d73503c9333af8f6cbe7e1354d2d238bda5f88eea36bfe0f42a/shapely-2.1.2-cp313-cp313t-win32.whl", hash = "sha256:c8876673449f3401f278c86eb33224c5764582f72b653a415d0e6672fde887bf", size = 1559178, upload-time = "2025-09-24T13:51:10.73Z" },
{ url = "https://files.pythonhosted.org/packages/36/f7/d317eb232352a1f1444d11002d477e54514a4a6045536d49d0c59783c0da/shapely-2.1.2-cp313-cp313t-win_amd64.whl", hash = "sha256:4a44bc62a10d84c11a7a3d7c1c4fe857f7477c3506e24c9062da0db0ae0c449c", size = 1739756, upload-time = "2025-09-24T13:51:12.105Z" },
+ { url = "https://files.pythonhosted.org/packages/fc/c4/3ce4c2d9b6aabd27d26ec988f08cb877ba9e6e96086eff81bfea93e688c7/shapely-2.1.2-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:9a522f460d28e2bf4e12396240a5fc1518788b2fcd73535166d748399ef0c223", size = 1831290, upload-time = "2025-09-24T13:51:13.56Z" },
+ { url = "https://files.pythonhosted.org/packages/17/b9/f6ab8918fc15429f79cb04afa9f9913546212d7fb5e5196132a2af46676b/shapely-2.1.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1ff629e00818033b8d71139565527ced7d776c269a49bd78c9df84e8f852190c", size = 1641463, upload-time = "2025-09-24T13:51:14.972Z" },
+ { url = "https://files.pythonhosted.org/packages/a5/57/91d59ae525ca641e7ac5551c04c9503aee6f29b92b392f31790fcb1a4358/shapely-2.1.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f67b34271dedc3c653eba4e3d7111aa421d5be9b4c4c7d38d30907f796cb30df", size = 2970145, upload-time = "2025-09-24T13:51:16.961Z" },
+ { url = "https://files.pythonhosted.org/packages/8a/cb/4948be52ee1da6927831ab59e10d4c29baa2a714f599f1f0d1bc747f5777/shapely-2.1.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:21952dc00df38a2c28375659b07a3979d22641aeb104751e769c3ee825aadecf", size = 3073806, upload-time = "2025-09-24T13:51:18.712Z" },
+ { url = "https://files.pythonhosted.org/packages/03/83/f768a54af775eb41ef2e7bec8a0a0dbe7d2431c3e78c0a8bdba7ab17e446/shapely-2.1.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:1f2f33f486777456586948e333a56ae21f35ae273be99255a191f5c1fa302eb4", size = 3980803, upload-time = "2025-09-24T13:51:20.37Z" },
+ { url = "https://files.pythonhosted.org/packages/9f/cb/559c7c195807c91c79d38a1f6901384a2878a76fbdf3f1048893a9b7534d/shapely-2.1.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:cf831a13e0d5a7eb519e96f58ec26e049b1fad411fc6fc23b162a7ce04d9cffc", size = 4133301, upload-time = "2025-09-24T13:51:21.887Z" },
+ { url = "https://files.pythonhosted.org/packages/80/cd/60d5ae203241c53ef3abd2ef27c6800e21afd6c94e39db5315ea0cbafb4a/shapely-2.1.2-cp314-cp314-win32.whl", hash = "sha256:61edcd8d0d17dd99075d320a1dd39c0cb9616f7572f10ef91b4b5b00c4aeb566", size = 1583247, upload-time = "2025-09-24T13:51:23.401Z" },
+ { url = "https://files.pythonhosted.org/packages/74/d4/135684f342e909330e50d31d441ace06bf83c7dc0777e11043f99167b123/shapely-2.1.2-cp314-cp314-win_amd64.whl", hash = "sha256:a444e7afccdb0999e203b976adb37ea633725333e5b119ad40b1ca291ecf311c", size = 1773019, upload-time = "2025-09-24T13:51:24.873Z" },
+ { url = "https://files.pythonhosted.org/packages/a3/05/a44f3f9f695fa3ada22786dc9da33c933da1cbc4bfe876fe3a100bafe263/shapely-2.1.2-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:5ebe3f84c6112ad3d4632b1fd2290665aa75d4cef5f6c5d77c4c95b324527c6a", size = 1834137, upload-time = "2025-09-24T13:51:26.665Z" },
+ { url = "https://files.pythonhosted.org/packages/52/7e/4d57db45bf314573427b0a70dfca15d912d108e6023f623947fa69f39b72/shapely-2.1.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:5860eb9f00a1d49ebb14e881f5caf6c2cf472c7fd38bd7f253bbd34f934eb076", size = 1642884, upload-time = "2025-09-24T13:51:28.029Z" },
+ { url = "https://files.pythonhosted.org/packages/5a/27/4e29c0a55d6d14ad7422bf86995d7ff3f54af0eba59617eb95caf84b9680/shapely-2.1.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b705c99c76695702656327b819c9660768ec33f5ce01fa32b2af62b56ba400a1", size = 3018320, upload-time = "2025-09-24T13:51:29.903Z" },
+ { url = "https://files.pythonhosted.org/packages/9f/bb/992e6a3c463f4d29d4cd6ab8963b75b1b1040199edbd72beada4af46bde5/shapely-2.1.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:a1fd0ea855b2cf7c9cddaf25543e914dd75af9de08785f20ca3085f2c9ca60b0", size = 3094931, upload-time = "2025-09-24T13:51:32.699Z" },
+ { url = "https://files.pythonhosted.org/packages/9c/16/82e65e21070e473f0ed6451224ed9fa0be85033d17e0c6e7213a12f59d12/shapely-2.1.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:df90e2db118c3671a0754f38e36802db75fe0920d211a27481daf50a711fdf26", size = 4030406, upload-time = "2025-09-24T13:51:34.189Z" },
+ { url = "https://files.pythonhosted.org/packages/7c/75/c24ed871c576d7e2b64b04b1fe3d075157f6eb54e59670d3f5ffb36e25c7/shapely-2.1.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:361b6d45030b4ac64ddd0a26046906c8202eb60d0f9f53085f5179f1d23021a0", size = 4169511, upload-time = "2025-09-24T13:51:36.297Z" },
+ { url = "https://files.pythonhosted.org/packages/b1/f7/b3d1d6d18ebf55236eec1c681ce5e665742aab3c0b7b232720a7d43df7b6/shapely-2.1.2-cp314-cp314t-win32.whl", hash = "sha256:b54df60f1fbdecc8ebc2c5b11870461a6417b3d617f555e5033f1505d36e5735", size = 1602607, upload-time = "2025-09-24T13:51:37.757Z" },
+ { url = "https://files.pythonhosted.org/packages/9a/f6/f09272a71976dfc138129b8faf435d064a811ae2f708cb147dccdf7aacdb/shapely-2.1.2-cp314-cp314t-win_amd64.whl", hash = "sha256:0036ac886e0923417932c2e6369b6c52e38e0ff5d9120b90eef5cd9a5fc5cae9", size = 1796682, upload-time = "2025-09-24T13:51:39.233Z" },
]
[[package]]
@@ -4017,11 +4665,11 @@ wheels = [
[[package]]
name = "soupsieve"
-version = "2.8"
+version = "2.8.1"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/6d/e6/21ccce3262dd4889aa3332e5a119a3491a95e8f60939870a3a035aabac0d/soupsieve-2.8.tar.gz", hash = "sha256:e2dd4a40a628cb5f28f6d4b0db8800b8f581b65bb380b97de22ba5ca8d72572f", size = 103472, upload-time = "2025-08-27T15:39:51.78Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/89/23/adf3796d740536d63a6fbda113d07e60c734b6ed5d3058d1e47fc0495e47/soupsieve-2.8.1.tar.gz", hash = "sha256:4cf733bc50fa805f5df4b8ef4740fc0e0fa6218cf3006269afd3f9d6d80fd350", size = 117856, upload-time = "2025-12-18T13:50:34.655Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/14/a0/bb38d3b76b8cae341dad93a2dd83ab7462e6dbcdd84d43f54ee60a8dc167/soupsieve-2.8-py3-none-any.whl", hash = "sha256:0cc76456a30e20f5d7f2e14a98a4ae2ee4e5abdc7c5ea0aafe795f344bc7984c", size = 36679, upload-time = "2025-08-27T15:39:50.179Z" },
+ { url = "https://files.pythonhosted.org/packages/48/f3/b67d6ea49ca9154453b6d70b34ea22f3996b9fa55da105a79d8732227adc/soupsieve-2.8.1-py3-none-any.whl", hash = "sha256:a11fe2a6f3d76ab3cf2de04eb339c1be5b506a8a47f2ceb6d139803177f85434", size = 36710, upload-time = "2025-12-18T13:50:33.267Z" },
]
[[package]]
@@ -4118,6 +4766,22 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/55/92/afed3d497f7c186dc71e6ee6d4fcb0acfa5f7d0a1a2878f8beae379ae0cc/tomli-2.3.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ad805ea85eda330dbad64c7ea7a4556259665bdf9d2672f5dccc740eb9d3ca05", size = 248909, upload-time = "2025-10-08T22:01:23.859Z" },
{ url = "https://files.pythonhosted.org/packages/f8/84/ef50c51b5a9472e7265ce1ffc7f24cd4023d289e109f669bdb1553f6a7c2/tomli-2.3.0-cp313-cp313-win32.whl", hash = "sha256:97d5eec30149fd3294270e889b4234023f2c69747e555a27bd708828353ab606", size = 96946, upload-time = "2025-10-08T22:01:24.893Z" },
{ url = "https://files.pythonhosted.org/packages/b2/b7/718cd1da0884f281f95ccfa3a6cc572d30053cba64603f79d431d3c9b61b/tomli-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:0c95ca56fbe89e065c6ead5b593ee64b84a26fca063b5d71a1122bf26e533999", size = 107705, upload-time = "2025-10-08T22:01:26.153Z" },
+ { url = "https://files.pythonhosted.org/packages/19/94/aeafa14a52e16163008060506fcb6aa1949d13548d13752171a755c65611/tomli-2.3.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:cebc6fe843e0733ee827a282aca4999b596241195f43b4cc371d64fc6639da9e", size = 154244, upload-time = "2025-10-08T22:01:27.06Z" },
+ { url = "https://files.pythonhosted.org/packages/db/e4/1e58409aa78eefa47ccd19779fc6f36787edbe7d4cd330eeeedb33a4515b/tomli-2.3.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4c2ef0244c75aba9355561272009d934953817c49f47d768070c3c94355c2aa3", size = 148637, upload-time = "2025-10-08T22:01:28.059Z" },
+ { url = "https://files.pythonhosted.org/packages/26/b6/d1eccb62f665e44359226811064596dd6a366ea1f985839c566cd61525ae/tomli-2.3.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c22a8bf253bacc0cf11f35ad9808b6cb75ada2631c2d97c971122583b129afbc", size = 241925, upload-time = "2025-10-08T22:01:29.066Z" },
+ { url = "https://files.pythonhosted.org/packages/70/91/7cdab9a03e6d3d2bb11beae108da5bdc1c34bdeb06e21163482544ddcc90/tomli-2.3.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0eea8cc5c5e9f89c9b90c4896a8deefc74f518db5927d0e0e8d4a80953d774d0", size = 249045, upload-time = "2025-10-08T22:01:31.98Z" },
+ { url = "https://files.pythonhosted.org/packages/15/1b/8c26874ed1f6e4f1fcfeb868db8a794cbe9f227299402db58cfcc858766c/tomli-2.3.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:b74a0e59ec5d15127acdabd75ea17726ac4c5178ae51b85bfe39c4f8a278e879", size = 245835, upload-time = "2025-10-08T22:01:32.989Z" },
+ { url = "https://files.pythonhosted.org/packages/fd/42/8e3c6a9a4b1a1360c1a2a39f0b972cef2cc9ebd56025168c4137192a9321/tomli-2.3.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:b5870b50c9db823c595983571d1296a6ff3e1b88f734a4c8f6fc6188397de005", size = 253109, upload-time = "2025-10-08T22:01:34.052Z" },
+ { url = "https://files.pythonhosted.org/packages/22/0c/b4da635000a71b5f80130937eeac12e686eefb376b8dee113b4a582bba42/tomli-2.3.0-cp314-cp314-win32.whl", hash = "sha256:feb0dacc61170ed7ab602d3d972a58f14ee3ee60494292d384649a3dc38ef463", size = 97930, upload-time = "2025-10-08T22:01:35.082Z" },
+ { url = "https://files.pythonhosted.org/packages/b9/74/cb1abc870a418ae99cd5c9547d6bce30701a954e0e721821df483ef7223c/tomli-2.3.0-cp314-cp314-win_amd64.whl", hash = "sha256:b273fcbd7fc64dc3600c098e39136522650c49bca95df2d11cf3b626422392c8", size = 107964, upload-time = "2025-10-08T22:01:36.057Z" },
+ { url = "https://files.pythonhosted.org/packages/54/78/5c46fff6432a712af9f792944f4fcd7067d8823157949f4e40c56b8b3c83/tomli-2.3.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:940d56ee0410fa17ee1f12b817b37a4d4e4dc4d27340863cc67236c74f582e77", size = 163065, upload-time = "2025-10-08T22:01:37.27Z" },
+ { url = "https://files.pythonhosted.org/packages/39/67/f85d9bd23182f45eca8939cd2bc7050e1f90c41f4a2ecbbd5963a1d1c486/tomli-2.3.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f85209946d1fe94416debbb88d00eb92ce9cd5266775424ff81bc959e001acaf", size = 159088, upload-time = "2025-10-08T22:01:38.235Z" },
+ { url = "https://files.pythonhosted.org/packages/26/5a/4b546a0405b9cc0659b399f12b6adb750757baf04250b148d3c5059fc4eb/tomli-2.3.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a56212bdcce682e56b0aaf79e869ba5d15a6163f88d5451cbde388d48b13f530", size = 268193, upload-time = "2025-10-08T22:01:39.712Z" },
+ { url = "https://files.pythonhosted.org/packages/42/4f/2c12a72ae22cf7b59a7fe75b3465b7aba40ea9145d026ba41cb382075b0e/tomli-2.3.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c5f3ffd1e098dfc032d4d3af5c0ac64f6d286d98bc148698356847b80fa4de1b", size = 275488, upload-time = "2025-10-08T22:01:40.773Z" },
+ { url = "https://files.pythonhosted.org/packages/92/04/a038d65dbe160c3aa5a624e93ad98111090f6804027d474ba9c37c8ae186/tomli-2.3.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5e01decd096b1530d97d5d85cb4dff4af2d8347bd35686654a004f8dea20fc67", size = 272669, upload-time = "2025-10-08T22:01:41.824Z" },
+ { url = "https://files.pythonhosted.org/packages/be/2f/8b7c60a9d1612a7cbc39ffcca4f21a73bf368a80fc25bccf8253e2563267/tomli-2.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8a35dd0e643bb2610f156cca8db95d213a90015c11fee76c946aa62b7ae7e02f", size = 279709, upload-time = "2025-10-08T22:01:43.177Z" },
+ { url = "https://files.pythonhosted.org/packages/7e/46/cc36c679f09f27ded940281c38607716c86cf8ba4a518d524e349c8b4874/tomli-2.3.0-cp314-cp314t-win32.whl", hash = "sha256:a1f7f282fe248311650081faafa5f4732bdbfef5d45fe3f2e702fbc6f2d496e0", size = 107563, upload-time = "2025-10-08T22:01:44.233Z" },
+ { url = "https://files.pythonhosted.org/packages/84/ff/426ca8683cf7b753614480484f6437f568fd2fda2edbdf57a2d3d8b27a0b/tomli-2.3.0-cp314-cp314t-win_amd64.whl", hash = "sha256:70a251f8d4ba2d9ac2542eecf008b3c8a9fc5c3f9f02c56a9d7952612be2fdba", size = 119756, upload-time = "2025-10-08T22:01:45.234Z" },
{ url = "https://files.pythonhosted.org/packages/77/b8/0135fadc89e73be292b473cb820b4f5a08197779206b33191e801feeae40/tomli-2.3.0-py3-none-any.whl", hash = "sha256:e95b1af3c5b07d9e643909b5abbec77cd9f1217e6d0bca72b0234736b9fb1f1b", size = 14408, upload-time = "2025-10-08T22:01:46.04Z" },
]
@@ -4139,7 +4803,7 @@ dependencies = [
{ name = "fsspec" },
{ name = "jinja2" },
{ name = "networkx", version = "3.4.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
- { name = "networkx", version = "3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "networkx", version = "3.6.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
{ name = "nvidia-cublas-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" },
{ name = "nvidia-cuda-cupti-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" },
{ name = "nvidia-cuda-nvrtc-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" },
@@ -4181,6 +4845,14 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/f4/dd/f1c0d879f2863ef209e18823a988dc7a1bf40470750e3ebe927efdb9407f/torch-2.9.1-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:8301a7b431e51764629208d0edaa4f9e4c33e6df0f2f90b90e261d623df6a4e2", size = 899748978, upload-time = "2025-11-12T15:23:04.568Z" },
{ url = "https://files.pythonhosted.org/packages/1f/9f/6986b83a53b4d043e36f3f898b798ab51f7f20fdf1a9b01a2720f445043d/torch-2.9.1-cp313-cp313t-win_amd64.whl", hash = "sha256:2e1c42c0ae92bf803a4b2409fdfed85e30f9027a66887f5e7dcdbc014c7531db", size = 111176995, upload-time = "2025-11-12T15:22:01.618Z" },
{ url = "https://files.pythonhosted.org/packages/40/60/71c698b466dd01e65d0e9514b5405faae200c52a76901baf6906856f17e4/torch-2.9.1-cp313-none-macosx_11_0_arm64.whl", hash = "sha256:2c14b3da5df416cf9cb5efab83aa3056f5b8cd8620b8fde81b4987ecab730587", size = 74480347, upload-time = "2025-11-12T15:21:57.648Z" },
+ { url = "https://files.pythonhosted.org/packages/48/50/c4b5112546d0d13cc9eaa1c732b823d676a9f49ae8b6f97772f795874a03/torch-2.9.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1edee27a7c9897f4e0b7c14cfc2f3008c571921134522d5b9b5ec4ebbc69041a", size = 74433245, upload-time = "2025-11-12T15:22:39.027Z" },
+ { url = "https://files.pythonhosted.org/packages/81/c9/2628f408f0518b3bae49c95f5af3728b6ab498c8624ab1e03a43dd53d650/torch-2.9.1-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:19d144d6b3e29921f1fc70503e9f2fc572cde6a5115c0c0de2f7ca8b1483e8b6", size = 104134804, upload-time = "2025-11-12T15:22:35.222Z" },
+ { url = "https://files.pythonhosted.org/packages/28/fc/5bc91d6d831ae41bf6e9e6da6468f25330522e92347c9156eb3f1cb95956/torch-2.9.1-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:c432d04376f6d9767a9852ea0def7b47a7bbc8e7af3b16ac9cf9ce02b12851c9", size = 899747132, upload-time = "2025-11-12T15:23:36.068Z" },
+ { url = "https://files.pythonhosted.org/packages/63/5d/e8d4e009e52b6b2cf1684bde2a6be157b96fb873732542fb2a9a99e85a83/torch-2.9.1-cp314-cp314-win_amd64.whl", hash = "sha256:d187566a2cdc726fc80138c3cdb260970fab1c27e99f85452721f7759bbd554d", size = 110934845, upload-time = "2025-11-12T15:22:48.367Z" },
+ { url = "https://files.pythonhosted.org/packages/bd/b2/2d15a52516b2ea3f414643b8de68fa4cb220d3877ac8b1028c83dc8ca1c4/torch-2.9.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:cb10896a1f7fedaddbccc2017ce6ca9ecaaf990f0973bdfcf405439750118d2c", size = 74823558, upload-time = "2025-11-12T15:22:43.392Z" },
+ { url = "https://files.pythonhosted.org/packages/86/5c/5b2e5d84f5b9850cd1e71af07524d8cbb74cba19379800f1f9f7c997fc70/torch-2.9.1-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:0a2bd769944991c74acf0c4ef23603b9c777fdf7637f115605a4b2d8023110c7", size = 104145788, upload-time = "2025-11-12T15:23:52.109Z" },
+ { url = "https://files.pythonhosted.org/packages/a9/8c/3da60787bcf70add986c4ad485993026ac0ca74f2fc21410bc4eb1bb7695/torch-2.9.1-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:07c8a9660bc9414c39cac530ac83b1fb1b679d7155824144a40a54f4a47bfa73", size = 899735500, upload-time = "2025-11-12T15:24:08.788Z" },
+ { url = "https://files.pythonhosted.org/packages/db/2b/f7818f6ec88758dfd21da46b6cd46af9d1b3433e53ddbb19ad1e0da17f9b/torch-2.9.1-cp314-cp314t-win_amd64.whl", hash = "sha256:c88d3299ddeb2b35dcc31753305612db485ab6f1823e37fb29451c8b2732b87e", size = 111163659, upload-time = "2025-11-12T15:23:20.009Z" },
]
[[package]]
@@ -4189,7 +4861,7 @@ version = "0.24.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
- { name = "numpy", version = "2.3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "numpy", version = "2.4.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
{ name = "pillow" },
{ name = "torch" },
]
@@ -4214,6 +4886,14 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/a9/fe/ff27d2ed1b524078164bea1062f23d2618a5fc3208e247d6153c18c91a76/torchvision-0.24.1-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:f231f6a4f2aa6522713326d0d2563538fa72d613741ae364f9913027fa52ea35", size = 2341708, upload-time = "2025-11-12T15:25:25.08Z" },
{ url = "https://files.pythonhosted.org/packages/b1/b9/d6c903495cbdfd2533b3ef6f7b5643ff589ea062f8feb5c206ee79b9d9e5/torchvision-0.24.1-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:1540a9e7f8cf55fe17554482f5a125a7e426347b71de07327d5de6bfd8d17caa", size = 8177239, upload-time = "2025-11-12T15:25:18.554Z" },
{ url = "https://files.pythonhosted.org/packages/4f/2b/ba02e4261369c3798310483028495cf507e6cb3f394f42e4796981ecf3a7/torchvision-0.24.1-cp313-cp313t-win_amd64.whl", hash = "sha256:d83e16d70ea85d2f196d678bfb702c36be7a655b003abed84e465988b6128938", size = 4251604, upload-time = "2025-11-12T15:25:34.069Z" },
+ { url = "https://files.pythonhosted.org/packages/42/84/577b2cef8f32094add5f52887867da4c2a3e6b4261538447e9b48eb25812/torchvision-0.24.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:cccf4b4fec7fdfcd3431b9ea75d1588c0a8596d0333245dafebee0462abe3388", size = 2005319, upload-time = "2025-11-12T15:25:23.827Z" },
+ { url = "https://files.pythonhosted.org/packages/5f/34/ecb786bffe0159a3b49941a61caaae089853132f3cd1e8f555e3621f7e6f/torchvision-0.24.1-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:1b495edd3a8f9911292424117544f0b4ab780452e998649425d1f4b2bed6695f", size = 2338844, upload-time = "2025-11-12T15:25:32.625Z" },
+ { url = "https://files.pythonhosted.org/packages/51/99/a84623786a6969504c87f2dc3892200f586ee13503f519d282faab0bb4f0/torchvision-0.24.1-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:ab211e1807dc3e53acf8f6638df9a7444c80c0ad050466e8d652b3e83776987b", size = 8175144, upload-time = "2025-11-12T15:25:31.355Z" },
+ { url = "https://files.pythonhosted.org/packages/6d/ba/8fae3525b233e109317ce6a9c1de922ab2881737b029a7e88021f81e068f/torchvision-0.24.1-cp314-cp314-win_amd64.whl", hash = "sha256:18f9cb60e64b37b551cd605a3d62c15730c086362b40682d23e24b616a697d41", size = 4234459, upload-time = "2025-11-12T15:25:19.859Z" },
+ { url = "https://files.pythonhosted.org/packages/50/33/481602c1c72d0485d4b3a6b48c9534b71c2957c9d83bf860eb837bf5a620/torchvision-0.24.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ec9d7379c519428395e4ffda4dbb99ec56be64b0a75b95989e00f9ec7ae0b2d7", size = 2005336, upload-time = "2025-11-12T15:25:27.225Z" },
+ { url = "https://files.pythonhosted.org/packages/d0/7f/372de60bf3dd8f5593bd0d03f4aecf0d1fd58f5bc6943618d9d913f5e6d5/torchvision-0.24.1-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:af9201184c2712d808bd4eb656899011afdfce1e83721c7cb08000034df353fe", size = 2341704, upload-time = "2025-11-12T15:25:29.857Z" },
+ { url = "https://files.pythonhosted.org/packages/36/9b/0f3b9ff3d0225ee2324ec663de0e7fb3eb855615ca958ac1875f22f1f8e5/torchvision-0.24.1-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:9ef95d819fd6df81bc7cc97b8f21a15d2c0d3ac5dbfaab5cbc2d2ce57114b19e", size = 8177422, upload-time = "2025-11-12T15:25:37.357Z" },
+ { url = "https://files.pythonhosted.org/packages/d6/ab/e2bcc7c2f13d882a58f8b30ff86f794210b075736587ea50f8c545834f8a/torchvision-0.24.1-cp314-cp314t-win_amd64.whl", hash = "sha256:480b271d6edff83ac2e8d69bbb4cf2073f93366516a50d48f140ccfceedb002e", size = 4335190, upload-time = "2025-11-12T15:25:35.745Z" },
]
[[package]]
@@ -4236,7 +4916,7 @@ dependencies = [
{ name = "filelock" },
{ name = "huggingface-hub" },
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
- { name = "numpy", version = "2.3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "numpy", version = "2.4.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
{ name = "packaging" },
{ name = "pyyaml" },
{ name = "regex" },
@@ -4284,6 +4964,13 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/9d/27/5f97098dbba807331d666a0997662e82d066e84b17d92efab575d283822f/tree_sitter-0.25.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:d77605e0d353ba3fe5627e5490f0fbfe44141bafa4478d88ef7954a61a848dae", size = 631370, upload-time = "2025-09-25T17:37:47.993Z" },
{ url = "https://files.pythonhosted.org/packages/d4/3c/87caaed663fabc35e18dc704cd0e9800a0ee2f22bd18b9cbe7c10799895d/tree_sitter-0.25.2-cp313-cp313-win_amd64.whl", hash = "sha256:463c032bd02052d934daa5f45d183e0521ceb783c2548501cf034b0beba92c9b", size = 127157, upload-time = "2025-09-25T17:37:48.967Z" },
{ url = "https://files.pythonhosted.org/packages/d5/23/f8467b408b7988aff4ea40946a4bd1a2c1a73d17156a9d039bbaff1e2ceb/tree_sitter-0.25.2-cp313-cp313-win_arm64.whl", hash = "sha256:b3f63a1796886249bd22c559a5944d64d05d43f2be72961624278eff0dcc5cb8", size = 113975, upload-time = "2025-09-25T17:37:49.922Z" },
+ { url = "https://files.pythonhosted.org/packages/07/e3/d9526ba71dfbbe4eba5e51d89432b4b333a49a1e70712aa5590cd22fc74f/tree_sitter-0.25.2-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:65d3c931013ea798b502782acab986bbf47ba2c452610ab0776cf4a8ef150fc0", size = 146776, upload-time = "2025-09-25T17:37:50.898Z" },
+ { url = "https://files.pythonhosted.org/packages/42/97/4bd4ad97f85a23011dd8a535534bb1035c4e0bac1234d58f438e15cff51f/tree_sitter-0.25.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:bda059af9d621918efb813b22fb06b3fe00c3e94079c6143fcb2c565eb44cb87", size = 137732, upload-time = "2025-09-25T17:37:51.877Z" },
+ { url = "https://files.pythonhosted.org/packages/b6/19/1e968aa0b1b567988ed522f836498a6a9529a74aab15f09dd9ac1e41f505/tree_sitter-0.25.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eac4e8e4c7060c75f395feec46421eb61212cb73998dbe004b7384724f3682ab", size = 609456, upload-time = "2025-09-25T17:37:52.925Z" },
+ { url = "https://files.pythonhosted.org/packages/48/b6/cf08f4f20f4c9094006ef8828555484e842fc468827ad6e56011ab668dbd/tree_sitter-0.25.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:260586381b23be33b6191a07cea3d44ecbd6c01aa4c6b027a0439145fcbc3358", size = 636772, upload-time = "2025-09-25T17:37:54.647Z" },
+ { url = "https://files.pythonhosted.org/packages/57/e2/d42d55bf56360987c32bc7b16adb06744e425670b823fb8a5786a1cea991/tree_sitter-0.25.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:7d2ee1acbacebe50ba0f85fff1bc05e65d877958f00880f49f9b2af38dce1af0", size = 631522, upload-time = "2025-09-25T17:37:55.833Z" },
+ { url = "https://files.pythonhosted.org/packages/03/87/af9604ebe275a9345d88c3ace0cf2a1341aa3f8ef49dd9fc11662132df8a/tree_sitter-0.25.2-cp314-cp314-win_amd64.whl", hash = "sha256:4973b718fcadfb04e59e746abfbb0288694159c6aeecd2add59320c03368c721", size = 130864, upload-time = "2025-09-25T17:37:57.453Z" },
+ { url = "https://files.pythonhosted.org/packages/a6/6e/e64621037357acb83d912276ffd30a859ef117f9c680f2e3cb955f47c680/tree_sitter-0.25.2-cp314-cp314-win_arm64.whl", hash = "sha256:b8d4429954a3beb3e844e2872610d2a4800ba4eb42bb1990c6a4b1949b18459f", size = 117470, upload-time = "2025-09-25T17:37:58.431Z" },
]
[[package]]
@@ -4373,31 +5060,33 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/f2/50/9a8358d3ef58162c0a415d173cfb45b67de60176e1024f71fbc4d24c0b6d/triton-3.5.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d2c6b915a03888ab931a9fd3e55ba36785e1fe70cbea0b40c6ef93b20fc85232", size = 170470207, upload-time = "2025-11-11T17:41:00.253Z" },
{ url = "https://files.pythonhosted.org/packages/27/46/8c3bbb5b0a19313f50edcaa363b599e5a1a5ac9683ead82b9b80fe497c8d/triton-3.5.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f3f4346b6ebbd4fad18773f5ba839114f4826037c9f2f34e0148894cd5dd3dba", size = 170470410, upload-time = "2025-11-11T17:41:06.319Z" },
{ url = "https://files.pythonhosted.org/packages/37/92/e97fcc6b2c27cdb87ce5ee063d77f8f26f19f06916aa680464c8104ef0f6/triton-3.5.1-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0b4d2c70127fca6a23e247f9348b8adde979d2e7a20391bfbabaac6aebc7e6a8", size = 170579924, upload-time = "2025-11-11T17:41:12.455Z" },
+ { url = "https://files.pythonhosted.org/packages/a4/e6/c595c35e5c50c4bc56a7bac96493dad321e9e29b953b526bbbe20f9911d0/triton-3.5.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d0637b1efb1db599a8e9dc960d53ab6e4637db7d4ab6630a0974705d77b14b60", size = 170480488, upload-time = "2025-11-11T17:41:18.222Z" },
+ { url = "https://files.pythonhosted.org/packages/16/b5/b0d3d8b901b6a04ca38df5e24c27e53afb15b93624d7fd7d658c7cd9352a/triton-3.5.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bac7f7d959ad0f48c0e97d6643a1cc0fd5786fe61cb1f83b537c6b2d54776478", size = 170582192, upload-time = "2025-11-11T17:41:23.963Z" },
]
[[package]]
name = "ty"
-version = "0.0.1a27"
-source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/8f/65/3592d7c73d80664378fc90d0a00c33449a99cbf13b984433c883815245f3/ty-0.0.1a27.tar.gz", hash = "sha256:d34fe04979f2c912700cbf0919e8f9b4eeaa10c4a2aff7450e5e4c90f998bc28", size = 4516059, upload-time = "2025-11-18T21:55:18.381Z" }
-wheels = [
- { url = "https://files.pythonhosted.org/packages/e6/05/7945aa97356446fd53ed3ddc7ee02a88d8ad394217acd9428f472d6b109d/ty-0.0.1a27-py3-none-linux_armv6l.whl", hash = "sha256:3cbb735f5ecb3a7a5f5b82fb24da17912788c109086df4e97d454c8fb236fbc5", size = 9375047, upload-time = "2025-11-18T21:54:31.577Z" },
- { url = "https://files.pythonhosted.org/packages/69/4e/89b167a03de0e9ec329dc89bc02e8694768e4576337ef6c0699987681342/ty-0.0.1a27-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:4a6367236dc456ba2416563301d498aef8c6f8959be88777ef7ba5ac1bf15f0b", size = 9169540, upload-time = "2025-11-18T21:54:34.036Z" },
- { url = "https://files.pythonhosted.org/packages/38/07/e62009ab9cc242e1becb2bd992097c80a133fce0d4f055fba6576150d08a/ty-0.0.1a27-py3-none-macosx_11_0_arm64.whl", hash = "sha256:8e93e231a1bcde964cdb062d2d5e549c24493fb1638eecae8fcc42b81e9463a4", size = 8711942, upload-time = "2025-11-18T21:54:36.3Z" },
- { url = "https://files.pythonhosted.org/packages/b5/43/f35716ec15406f13085db52e762a3cc663c651531a8124481d0ba602eca0/ty-0.0.1a27-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c5b6a8166b60117da1179851a3d719cc798bf7e61f91b35d76242f0059e9ae1d", size = 8984208, upload-time = "2025-11-18T21:54:39.453Z" },
- { url = "https://files.pythonhosted.org/packages/2d/79/486a3374809523172379768de882c7a369861165802990177fe81489b85f/ty-0.0.1a27-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bfbe8b0e831c072b79a078d6c126d7f4d48ca17f64a103de1b93aeda32265dc5", size = 9157209, upload-time = "2025-11-18T21:54:42.664Z" },
- { url = "https://files.pythonhosted.org/packages/ff/08/9a7c8efcb327197d7d347c548850ef4b54de1c254981b65e8cd0672dc327/ty-0.0.1a27-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:90e09678331552e7c25d7eb47868b0910dc5b9b212ae22c8ce71a52d6576ddbb", size = 9519207, upload-time = "2025-11-18T21:54:45.311Z" },
- { url = "https://files.pythonhosted.org/packages/e0/9d/7b4680683e83204b9edec551bb91c21c789ebc586b949c5218157ee474b7/ty-0.0.1a27-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:88c03e4beeca79d85a5618921e44b3a6ea957e0453e08b1cdd418b51da645939", size = 10148794, upload-time = "2025-11-18T21:54:48.329Z" },
- { url = "https://files.pythonhosted.org/packages/89/21/8b961b0ab00c28223f06b33222427a8e31aa04f39d1b236acc93021c626c/ty-0.0.1a27-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3ece5811322789fefe22fc088ed36c5879489cd39e913f9c1ff2a7678f089c61", size = 9900563, upload-time = "2025-11-18T21:54:51.214Z" },
- { url = "https://files.pythonhosted.org/packages/85/eb/95e1f0b426c2ea8d443aa923fcab509059c467bbe64a15baaf573fea1203/ty-0.0.1a27-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2f2ccb4f0fddcd6e2017c268dfce2489e9a36cb82a5900afe6425835248b1086", size = 9926355, upload-time = "2025-11-18T21:54:53.927Z" },
- { url = "https://files.pythonhosted.org/packages/f5/78/40e7f072049e63c414f2845df780be3a494d92198c87c2ffa65e63aecf3f/ty-0.0.1a27-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:33450528312e41d003e96a1647780b2783ab7569bbc29c04fc76f2d1908061e3", size = 9480580, upload-time = "2025-11-18T21:54:56.617Z" },
- { url = "https://files.pythonhosted.org/packages/18/da/f4a2dfedab39096808ddf7475f35ceb750d9a9da840bee4afd47b871742f/ty-0.0.1a27-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:a0a9ac635deaa2b15947701197ede40cdecd13f89f19351872d16f9ccd773fa1", size = 8957524, upload-time = "2025-11-18T21:54:59.085Z" },
- { url = "https://files.pythonhosted.org/packages/21/ea/26fee9a20cf77a157316fd3ab9c6db8ad5a0b20b2d38a43f3452622587ac/ty-0.0.1a27-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:797fb2cd49b6b9b3ac9f2f0e401fb02d3aa155badc05a8591d048d38d28f1e0c", size = 9201098, upload-time = "2025-11-18T21:55:01.845Z" },
- { url = "https://files.pythonhosted.org/packages/b0/53/e14591d1275108c9ae28f97ac5d4b93adcc2c8a4b1b9a880dfa9d07c15f8/ty-0.0.1a27-py3-none-musllinux_1_2_i686.whl", hash = "sha256:7fe81679a0941f85e98187d444604e24b15bde0a85874957c945751756314d03", size = 9275470, upload-time = "2025-11-18T21:55:04.23Z" },
- { url = "https://files.pythonhosted.org/packages/37/44/e2c9acecac70bf06fb41de285e7be2433c2c9828f71e3bf0e886fc85c4fd/ty-0.0.1a27-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:355f651d0cdb85535a82bd9f0583f77b28e3fd7bba7b7da33dcee5a576eff28b", size = 9592394, upload-time = "2025-11-18T21:55:06.542Z" },
- { url = "https://files.pythonhosted.org/packages/ee/a7/4636369731b24ed07c2b4c7805b8d990283d677180662c532d82e4ef1a36/ty-0.0.1a27-py3-none-win32.whl", hash = "sha256:61782e5f40e6df622093847b34c366634b75d53f839986f1bf4481672ad6cb55", size = 8783816, upload-time = "2025-11-18T21:55:09.648Z" },
- { url = "https://files.pythonhosted.org/packages/a7/1d/b76487725628d9e81d9047dc0033a5e167e0d10f27893d04de67fe1a9763/ty-0.0.1a27-py3-none-win_amd64.whl", hash = "sha256:c682b238085d3191acddcf66ef22641562946b1bba2a7f316012d5b2a2f4de11", size = 9616833, upload-time = "2025-11-18T21:55:12.457Z" },
- { url = "https://files.pythonhosted.org/packages/3a/db/c7cd5276c8f336a3cf87992b75ba9d486a7cf54e753fcd42495b3bc56fb7/ty-0.0.1a27-py3-none-win_arm64.whl", hash = "sha256:e146dfa32cbb0ac6afb0cb65659e87e4e313715e68d76fe5ae0a4b3d5b912ce8", size = 9137796, upload-time = "2025-11-18T21:55:15.897Z" },
+version = "0.0.5"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/9e/db/6299d478000f4f1c6f9bf2af749359381610ffc4cbe6713b66e436ecf6e7/ty-0.0.5.tar.gz", hash = "sha256:983da6330773ff71e2b249810a19c689f9a0372f6e21bbf7cde37839d05b4346", size = 4806218, upload-time = "2025-12-20T21:19:17.24Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/7c/98/c1f61ba378b4191e641bb36c07b7fcc70ff844d61be7a4bf2fea7472b4a9/ty-0.0.5-py3-none-linux_armv6l.whl", hash = "sha256:1594cd9bb68015eb2f5a3c68a040860f3c9306dc6667d7a0e5f4df9967b460e2", size = 9785554, upload-time = "2025-12-20T21:19:05.024Z" },
+ { url = "https://files.pythonhosted.org/packages/ab/f9/b37b77c03396bd779c1397dae4279b7ad79315e005b3412feed8812a4256/ty-0.0.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:7c0140ba980233d28699d9ddfe8f43d0b3535d6a3bbff9935df625a78332a3cf", size = 9603995, upload-time = "2025-12-20T21:19:15.256Z" },
+ { url = "https://files.pythonhosted.org/packages/7d/70/4e75c11903b0e986c0203040472627cb61d6a709e1797fb08cdf9d565743/ty-0.0.5-py3-none-macosx_11_0_arm64.whl", hash = "sha256:15de414712cde92048ae4b1a77c4dc22920bd23653fe42acaf73028bad88f6b9", size = 9145815, upload-time = "2025-12-20T21:19:36.481Z" },
+ { url = "https://files.pythonhosted.org/packages/89/05/93983dfcf871a41dfe58e5511d28e6aa332a1f826cc67333f77ae41a2f8a/ty-0.0.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:438aa51ad6c5fae64191f8d58876266e26f9250cf09f6624b6af47a22fa88618", size = 9619849, upload-time = "2025-12-20T21:19:19.084Z" },
+ { url = "https://files.pythonhosted.org/packages/82/b6/896ab3aad59f846823f202e94be6016fb3f72434d999d2ae9bd0f28b3af9/ty-0.0.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1b3d373fd96af1564380caf153600481c676f5002ee76ba8a7c3508cdff82ee0", size = 9606611, upload-time = "2025-12-20T21:19:24.583Z" },
+ { url = "https://files.pythonhosted.org/packages/ca/ae/098e33fc92330285ed843e2750127e896140c4ebd2d73df7732ea496f588/ty-0.0.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8453692503212ad316cf8b99efbe85a91e5f63769c43be5345e435a1b16cba5a", size = 10029523, upload-time = "2025-12-20T21:19:07.055Z" },
+ { url = "https://files.pythonhosted.org/packages/04/5a/f4b4c33758b9295e9aca0de9645deca0f4addd21d38847228723a6e780fc/ty-0.0.5-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:2e4c454139473abbd529767b0df7a795ed828f780aef8d0d4b144558c0dc4446", size = 10870892, upload-time = "2025-12-20T21:19:34.495Z" },
+ { url = "https://files.pythonhosted.org/packages/c3/c5/4e3e7e88389365aa1e631c99378711cf0c9d35a67478cb4720584314cf44/ty-0.0.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:426d4f3b82475b1ec75f3cc9ee5a667c8a4ae8441a09fcd8e823a53b706d00c7", size = 10599291, upload-time = "2025-12-20T21:19:26.557Z" },
+ { url = "https://files.pythonhosted.org/packages/c1/5d/138f859ea87bd95e17b9818e386ae25a910e46521c41d516bf230ed83ffc/ty-0.0.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5710817b67c6b2e4c0224e4f319b7decdff550886e9020f6d46aa1ce8f89a609", size = 10413515, upload-time = "2025-12-20T21:19:11.094Z" },
+ { url = "https://files.pythonhosted.org/packages/27/21/1cbcd0d3b1182172f099e88218137943e0970603492fb10c7c9342369d9a/ty-0.0.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e23c55ef08882c7c5ced1ccb90b4eeefa97f690aea254f58ac0987896c590f76", size = 10144992, upload-time = "2025-12-20T21:19:13.225Z" },
+ { url = "https://files.pythonhosted.org/packages/ad/30/fdac06a5470c09ad2659a0806497b71f338b395d59e92611f71b623d05a0/ty-0.0.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:b9e4c1a28a23b14cf8f4f793f4da396939f16c30bfa7323477c8cc234e352ac4", size = 9606408, upload-time = "2025-12-20T21:19:09.212Z" },
+ { url = "https://files.pythonhosted.org/packages/09/93/e99dcd7f53295192d03efd9cbcec089a916f49cad4935c0160ea9adbd53d/ty-0.0.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:4e9ebb61529b9745af662e37c37a01ad743cdd2c95f0d1421705672874d806cd", size = 9630040, upload-time = "2025-12-20T21:19:38.165Z" },
+ { url = "https://files.pythonhosted.org/packages/d7/f8/6d1e87186e4c35eb64f28000c1df8fd5f73167ce126c5e3dd21fd1204a23/ty-0.0.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:5eb191a8e332f50f56dfe45391bdd7d43dd4ef6e60884710fd7ce84c5d8c1eb5", size = 9754016, upload-time = "2025-12-20T21:19:32.79Z" },
+ { url = "https://files.pythonhosted.org/packages/28/e6/20f989342cb3115852dda404f1d89a10a3ce93f14f42b23f095a3d1a00c9/ty-0.0.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:92ed7451a1e82ee134a2c24ca43b74dd31e946dff2b08e5c34473e6b051de542", size = 10252877, upload-time = "2025-12-20T21:19:20.787Z" },
+ { url = "https://files.pythonhosted.org/packages/57/9d/fc66fa557443233dfad9ae197ff3deb70ae0efcfb71d11b30ef62f5cdcc3/ty-0.0.5-py3-none-win32.whl", hash = "sha256:71f6707e4c1c010c158029a688a498220f28bb22fdb6707e5c20e09f11a5e4f2", size = 9212640, upload-time = "2025-12-20T21:19:30.817Z" },
+ { url = "https://files.pythonhosted.org/packages/68/b6/05c35f6dea29122e54af0e9f8dfedd0a100c721affc8cc801ebe2bc2ed13/ty-0.0.5-py3-none-win_amd64.whl", hash = "sha256:2b8b754a0d7191e94acdf0c322747fec34371a4d0669f5b4e89549aef28814ae", size = 10034701, upload-time = "2025-12-20T21:19:28.311Z" },
+ { url = "https://files.pythonhosted.org/packages/df/ca/4201ed5cb2af73912663d0c6ded927c28c28b3c921c9348aa8d2cfef4853/ty-0.0.5-py3-none-win_arm64.whl", hash = "sha256:83bea5a5296caac20d52b790ded2b830a7ff91c4ed9f36730fe1f393ceed6654", size = 9566474, upload-time = "2025-12-20T21:19:22.518Z" },
]
[[package]]
@@ -4440,15 +5129,15 @@ bedrock-runtime = [
[[package]]
name = "types-aiobotocore"
-version = "2.25.2"
+version = "3.0.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "botocore-stubs" },
{ name = "typing-extensions", marker = "python_full_version < '3.12'" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/77/b3/15e487a2a84ca827cbd80af1de4485d25dc3014f3122d8069665bee725bc/types_aiobotocore-2.25.2.tar.gz", hash = "sha256:6b2458ac1c0999de0ba4a1dcfbf3bc0d5c7ca2ea0c72f6732abe67d08ebf0240", size = 85272, upload-time = "2025-11-12T01:58:58.83Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/e2/a2/b648f4fa15ba3555a61a6fbbecfa1f642492d6c6f43fe391d3e65149e02e/types_aiobotocore-3.0.0.tar.gz", hash = "sha256:8b998ca1ff76b6767bda180a93b0b50fc8f6e15e47cdc99867a5ef44c9d73354", size = 86432, upload-time = "2025-12-11T02:12:04.371Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/fe/1f/0115f843090b969ef4902eb8ef128c613fdc91787c34a4b9e4140cf763fa/types_aiobotocore-2.25.2-py3-none-any.whl", hash = "sha256:b6027aa2dc020a9e2eeaa0ab9178f5c2cb6bb5e07613b7ea26174cc491d33b39", size = 53655, upload-time = "2025-11-12T01:58:55.575Z" },
+ { url = "https://files.pythonhosted.org/packages/74/a3/8eaef3dd748e0b2db5515cd9d01fd058dedf401ed9cf183cf9611e0883c0/types_aiobotocore-3.0.0-py3-none-any.whl", hash = "sha256:52c4f5c92b275ab54bd32fdbde8db8a2e561621bd742f0b0256b652f232e4bdb", size = 54214, upload-time = "2025-12-11T02:12:00.252Z" },
]
[[package]]
@@ -4486,11 +5175,11 @@ wheels = [
[[package]]
name = "types-awscrt"
-version = "0.28.4"
+version = "0.30.0"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/f7/6f/d4f2adb086e8f5cd2ae83cf8dbb192057d8b5025120e5b372468292db67f/types_awscrt-0.28.4.tar.gz", hash = "sha256:15929da84802f27019ee8e4484fb1c102e1f6d4cf22eb48688c34a5a86d02eb6", size = 17692, upload-time = "2025-11-11T02:56:53.516Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/30/1f/febd2df22e24f77b759db0dd9ecdd7f07f055e6a4dbbb699c5eb34b617ef/types_awscrt-0.30.0.tar.gz", hash = "sha256:362fd8f5eaebcfcd922cb9fd8274fb375df550319f78031ee3779eac0b9ecc79", size = 17761, upload-time = "2025-12-12T01:55:59.626Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/5e/ae/9acc4adf1d5d7bb7d09b6f9ff5d4d04a72eb64700d104106dd517665cd57/types_awscrt-0.28.4-py3-none-any.whl", hash = "sha256:2d453f9e27583fcc333771b69a5255a5a4e2c52f86e70f65f3c5a6789d3443d0", size = 42307, upload-time = "2025-11-11T02:56:52.231Z" },
+ { url = "https://files.pythonhosted.org/packages/5b/5f/15999051fca2949a67562c3f80fae2dd5d3404a3f97b326b614533843281/types_awscrt-0.30.0-py3-none-any.whl", hash = "sha256:8204126e01a00eaa4a746e7a0076538ca0e4e3f52408adec0ab9b471bb0bb64b", size = 42392, upload-time = "2025-12-12T01:55:58.194Z" },
]
[[package]]
@@ -4504,15 +5193,15 @@ wheels = [
[[package]]
name = "types-networkx"
-version = "3.5.0.20251106"
+version = "3.6.1.20251220"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
- { name = "numpy", version = "2.3.5", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
+ { name = "numpy", version = "2.4.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/da/0d/0657390fb7e4fffb9e0a20d51b9b63451771c238ad7ca2eb31de12827a87/types_networkx-3.5.0.20251106.tar.gz", hash = "sha256:2f17a53a35cf6dbbb031039c19bf0f127ec1b37f3530c57a517a0dd67a42e343", size = 72307, upload-time = "2025-11-06T03:06:52.263Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/07/e3/dcc20d645dc0631b0df263959b8dde49dc47ad3c0537d8958bfefe692380/types_networkx-3.6.1.20251220.tar.gz", hash = "sha256:caf95e0d7777b969e50ceeb2c430d9d4dfe6b7bdee43c42dc9879a2d4408a790", size = 73500, upload-time = "2025-12-20T03:07:47.933Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/43/01/f768e7d3662841a5163f261510148a89564ffc4320568dfb98b79f8f6e68/types_networkx-3.5.0.20251106-py3-none-any.whl", hash = "sha256:674c53111d5ca6cf96eb6ccd3152d0d52c2720b8ddea8082c7b0116a21347a30", size = 160776, upload-time = "2025-11-06T03:06:50.89Z" },
+ { url = "https://files.pythonhosted.org/packages/65/e7/fe40cfe7ba384d1f46fee835eb7727a4ee2fd80021a69add9553197b69a1/types_networkx-3.6.1.20251220-py3-none-any.whl", hash = "sha256:417ccbe7841f335a4c2b8e7515c3bc97a00fb5f686f399a763ef64392b209eac", size = 162715, upload-time = "2025-12-20T03:07:46.882Z" },
]
[[package]]
@@ -4538,11 +5227,11 @@ wheels = [
[[package]]
name = "types-s3transfer"
-version = "0.14.0"
+version = "0.16.0"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/8e/9b/8913198b7fc700acc1dcb84827137bb2922052e43dde0f4fb0ed2dc6f118/types_s3transfer-0.14.0.tar.gz", hash = "sha256:17f800a87c7eafab0434e9d87452c809c290ae906c2024c24261c564479e9c95", size = 14218, upload-time = "2025-10-11T21:11:27.892Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/fe/64/42689150509eb3e6e82b33ee3d89045de1592488842ddf23c56957786d05/types_s3transfer-0.16.0.tar.gz", hash = "sha256:b4636472024c5e2b62278c5b759661efeb52a81851cde5f092f24100b1ecb443", size = 13557, upload-time = "2025-12-08T08:13:09.928Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/92/c3/4dfb2e87c15ca582b7d956dfb7e549de1d005c758eb9a305e934e1b83fda/types_s3transfer-0.14.0-py3-none-any.whl", hash = "sha256:108134854069a38b048e9b710b9b35904d22a9d0f37e4e1889c2e6b58e5b3253", size = 19697, upload-time = "2025-10-11T21:11:26.749Z" },
+ { url = "https://files.pythonhosted.org/packages/98/27/e88220fe6274eccd3bdf95d9382918716d312f6f6cef6a46332d1ee2feff/types_s3transfer-0.16.0-py3-none-any.whl", hash = "sha256:1c0cd111ecf6e21437cb410f5cddb631bfb2263b77ad973e79b9c6d0cb24e0ef", size = 19247, upload-time = "2025-12-08T08:13:08.426Z" },
]
[[package]]
@@ -4581,20 +5270,20 @@ wheels = [
[[package]]
name = "tzdata"
-version = "2025.2"
+version = "2025.3"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/95/32/1a225d6164441be760d75c2c42e2780dc0873fe382da3e98a2e1e48361e5/tzdata-2025.2.tar.gz", hash = "sha256:b60a638fcc0daffadf82fe0f57e53d06bdec2f36c4df66280ae79bce6bd6f2b9", size = 196380, upload-time = "2025-03-23T13:54:43.652Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/5e/a7/c202b344c5ca7daf398f3b8a477eeb205cf3b6f32e7ec3a6bac0629ca975/tzdata-2025.3.tar.gz", hash = "sha256:de39c2ca5dc7b0344f2eba86f49d614019d29f060fc4ebc8a417896a620b56a7", size = 196772, upload-time = "2025-12-13T17:45:35.667Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/5c/23/c7abc0ca0a1526a0774eca151daeb8de62ec457e77262b66b359c3c7679e/tzdata-2025.2-py2.py3-none-any.whl", hash = "sha256:1a403fada01ff9221ca8044d701868fa132215d84beb92242d9acd2147f667a8", size = 347839, upload-time = "2025-03-23T13:54:41.845Z" },
+ { url = "https://files.pythonhosted.org/packages/c7/b0/003792df09decd6849a5e39c28b513c06e84436a54440380862b5aeff25d/tzdata-2025.3-py2.py3-none-any.whl", hash = "sha256:06a47e5700f3081aab02b2e513160914ff0694bce9947d6b76ebd6bf57cfc5d1", size = 348521, upload-time = "2025-12-13T17:45:33.889Z" },
]
[[package]]
name = "urllib3"
-version = "2.5.0"
+version = "2.6.2"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/15/22/9ee70a2574a4f4599c47dd506532914ce044817c7752a79b6a51286319bc/urllib3-2.5.0.tar.gz", hash = "sha256:3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760", size = 393185, upload-time = "2025-06-18T14:07:41.644Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/1e/24/a2a2ed9addd907787d7aa0355ba36a6cadf1768b934c652ea78acbd59dcd/urllib3-2.6.2.tar.gz", hash = "sha256:016f9c98bb7e98085cb2b4b17b87d2c702975664e4f060c6532e64d1c1a5e797", size = 432930, upload-time = "2025-12-11T15:56:40.252Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/a7/c2/fe1e52489ae3122415c51f387e221dd0773709bad6c6cdaa599e8a2c5185/urllib3-2.5.0-py3-none-any.whl", hash = "sha256:e6b01673c0fa6a13e374b50871808eb3bf7046c4b125b216f6bf1cc604cff0dc", size = 129795, upload-time = "2025-06-18T14:07:40.39Z" },
+ { url = "https://files.pythonhosted.org/packages/6d/b9/4095b668ea3678bf6a0af005527f39de12fb026516fb3df17495a733b7f8/urllib3-2.6.2-py3-none-any.whl", hash = "sha256:ec21cddfe7724fc7cb4ba4bea7aa8e2ef36f607a4bab81aa6ce42a13dc3f03dd", size = 131182, upload-time = "2025-12-11T15:56:38.584Z" },
]
[[package]]
@@ -4749,6 +5438,26 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/e8/cf/7d848740203c7b4b27eb55dbfede11aca974a51c3d894f6cc4b865f42f58/wrapt-1.17.3-cp313-cp313-win32.whl", hash = "sha256:53e5e39ff71b3fc484df8a522c933ea2b7cdd0d5d15ae82e5b23fde87d44cbd8", size = 36711, upload-time = "2025-08-12T05:53:10.074Z" },
{ url = "https://files.pythonhosted.org/packages/57/54/35a84d0a4d23ea675994104e667ceff49227ce473ba6a59ba2c84f250b74/wrapt-1.17.3-cp313-cp313-win_amd64.whl", hash = "sha256:1f0b2f40cf341ee8cc1a97d51ff50dddb9fcc73241b9143ec74b30fc4f44f6cb", size = 38885, upload-time = "2025-08-12T05:53:08.695Z" },
{ url = "https://files.pythonhosted.org/packages/01/77/66e54407c59d7b02a3c4e0af3783168fff8e5d61def52cda8728439d86bc/wrapt-1.17.3-cp313-cp313-win_arm64.whl", hash = "sha256:7425ac3c54430f5fc5e7b6f41d41e704db073309acfc09305816bc6a0b26bb16", size = 36896, upload-time = "2025-08-12T05:52:55.34Z" },
+ { url = "https://files.pythonhosted.org/packages/02/a2/cd864b2a14f20d14f4c496fab97802001560f9f41554eef6df201cd7f76c/wrapt-1.17.3-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:cf30f6e3c077c8e6a9a7809c94551203c8843e74ba0c960f4a98cd80d4665d39", size = 54132, upload-time = "2025-08-12T05:51:49.864Z" },
+ { url = "https://files.pythonhosted.org/packages/d5/46/d011725b0c89e853dc44cceb738a307cde5d240d023d6d40a82d1b4e1182/wrapt-1.17.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:e228514a06843cae89621384cfe3a80418f3c04aadf8a3b14e46a7be704e4235", size = 39091, upload-time = "2025-08-12T05:51:38.935Z" },
+ { url = "https://files.pythonhosted.org/packages/2e/9e/3ad852d77c35aae7ddebdbc3b6d35ec8013af7d7dddad0ad911f3d891dae/wrapt-1.17.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:5ea5eb3c0c071862997d6f3e02af1d055f381b1d25b286b9d6644b79db77657c", size = 39172, upload-time = "2025-08-12T05:51:59.365Z" },
+ { url = "https://files.pythonhosted.org/packages/c3/f7/c983d2762bcce2326c317c26a6a1e7016f7eb039c27cdf5c4e30f4160f31/wrapt-1.17.3-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:281262213373b6d5e4bb4353bc36d1ba4084e6d6b5d242863721ef2bf2c2930b", size = 87163, upload-time = "2025-08-12T05:52:40.965Z" },
+ { url = "https://files.pythonhosted.org/packages/e4/0f/f673f75d489c7f22d17fe0193e84b41540d962f75fce579cf6873167c29b/wrapt-1.17.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:dc4a8d2b25efb6681ecacad42fca8859f88092d8732b170de6a5dddd80a1c8fa", size = 87963, upload-time = "2025-08-12T05:52:20.326Z" },
+ { url = "https://files.pythonhosted.org/packages/df/61/515ad6caca68995da2fac7a6af97faab8f78ebe3bf4f761e1b77efbc47b5/wrapt-1.17.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:373342dd05b1d07d752cecbec0c41817231f29f3a89aa8b8843f7b95992ed0c7", size = 86945, upload-time = "2025-08-12T05:52:21.581Z" },
+ { url = "https://files.pythonhosted.org/packages/d3/bd/4e70162ce398462a467bc09e768bee112f1412e563620adc353de9055d33/wrapt-1.17.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:d40770d7c0fd5cbed9d84b2c3f2e156431a12c9a37dc6284060fb4bec0b7ffd4", size = 86857, upload-time = "2025-08-12T05:52:43.043Z" },
+ { url = "https://files.pythonhosted.org/packages/2b/b8/da8560695e9284810b8d3df8a19396a6e40e7518059584a1a394a2b35e0a/wrapt-1.17.3-cp314-cp314-win32.whl", hash = "sha256:fbd3c8319de8e1dc79d346929cd71d523622da527cca14e0c1d257e31c2b8b10", size = 37178, upload-time = "2025-08-12T05:53:12.605Z" },
+ { url = "https://files.pythonhosted.org/packages/db/c8/b71eeb192c440d67a5a0449aaee2310a1a1e8eca41676046f99ed2487e9f/wrapt-1.17.3-cp314-cp314-win_amd64.whl", hash = "sha256:e1a4120ae5705f673727d3253de3ed0e016f7cd78dc463db1b31e2463e1f3cf6", size = 39310, upload-time = "2025-08-12T05:53:11.106Z" },
+ { url = "https://files.pythonhosted.org/packages/45/20/2cda20fd4865fa40f86f6c46ed37a2a8356a7a2fde0773269311f2af56c7/wrapt-1.17.3-cp314-cp314-win_arm64.whl", hash = "sha256:507553480670cab08a800b9463bdb881b2edeed77dc677b0a5915e6106e91a58", size = 37266, upload-time = "2025-08-12T05:52:56.531Z" },
+ { url = "https://files.pythonhosted.org/packages/77/ed/dd5cf21aec36c80443c6f900449260b80e2a65cf963668eaef3b9accce36/wrapt-1.17.3-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:ed7c635ae45cfbc1a7371f708727bf74690daedc49b4dba310590ca0bd28aa8a", size = 56544, upload-time = "2025-08-12T05:51:51.109Z" },
+ { url = "https://files.pythonhosted.org/packages/8d/96/450c651cc753877ad100c7949ab4d2e2ecc4d97157e00fa8f45df682456a/wrapt-1.17.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:249f88ed15503f6492a71f01442abddd73856a0032ae860de6d75ca62eed8067", size = 40283, upload-time = "2025-08-12T05:51:39.912Z" },
+ { url = "https://files.pythonhosted.org/packages/d1/86/2fcad95994d9b572db57632acb6f900695a648c3e063f2cd344b3f5c5a37/wrapt-1.17.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:5a03a38adec8066d5a37bea22f2ba6bbf39fcdefbe2d91419ab864c3fb515454", size = 40366, upload-time = "2025-08-12T05:52:00.693Z" },
+ { url = "https://files.pythonhosted.org/packages/64/0e/f4472f2fdde2d4617975144311f8800ef73677a159be7fe61fa50997d6c0/wrapt-1.17.3-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:5d4478d72eb61c36e5b446e375bbc49ed002430d17cdec3cecb36993398e1a9e", size = 108571, upload-time = "2025-08-12T05:52:44.521Z" },
+ { url = "https://files.pythonhosted.org/packages/cc/01/9b85a99996b0a97c8a17484684f206cbb6ba73c1ce6890ac668bcf3838fb/wrapt-1.17.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:223db574bb38637e8230eb14b185565023ab624474df94d2af18f1cdb625216f", size = 113094, upload-time = "2025-08-12T05:52:22.618Z" },
+ { url = "https://files.pythonhosted.org/packages/25/02/78926c1efddcc7b3aa0bc3d6b33a822f7d898059f7cd9ace8c8318e559ef/wrapt-1.17.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e405adefb53a435f01efa7ccdec012c016b5a1d3f35459990afc39b6be4d5056", size = 110659, upload-time = "2025-08-12T05:52:24.057Z" },
+ { url = "https://files.pythonhosted.org/packages/dc/ee/c414501ad518ac3e6fe184753632fe5e5ecacdcf0effc23f31c1e4f7bfcf/wrapt-1.17.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:88547535b787a6c9ce4086917b6e1d291aa8ed914fdd3a838b3539dc95c12804", size = 106946, upload-time = "2025-08-12T05:52:45.976Z" },
+ { url = "https://files.pythonhosted.org/packages/be/44/a1bd64b723d13bb151d6cc91b986146a1952385e0392a78567e12149c7b4/wrapt-1.17.3-cp314-cp314t-win32.whl", hash = "sha256:41b1d2bc74c2cac6f9074df52b2efbef2b30bdfe5f40cb78f8ca22963bc62977", size = 38717, upload-time = "2025-08-12T05:53:15.214Z" },
+ { url = "https://files.pythonhosted.org/packages/79/d9/7cfd5a312760ac4dd8bf0184a6ee9e43c33e47f3dadc303032ce012b8fa3/wrapt-1.17.3-cp314-cp314t-win_amd64.whl", hash = "sha256:73d496de46cd2cdbdbcce4ae4bcdb4afb6a11234a1df9c085249d55166b95116", size = 41334, upload-time = "2025-08-12T05:53:14.178Z" },
+ { url = "https://files.pythonhosted.org/packages/46/78/10ad9781128ed2f99dbc474f43283b13fea8ba58723e98844367531c18e9/wrapt-1.17.3-cp314-cp314t-win_arm64.whl", hash = "sha256:f38e60678850c42461d4202739f9bf1e3a737c7ad283638251e79cc49effb6b6", size = 38471, upload-time = "2025-08-12T05:52:57.784Z" },
{ url = "https://files.pythonhosted.org/packages/1f/f6/a933bd70f98e9cf3e08167fc5cd7aaaca49147e48411c0bd5ae701bb2194/wrapt-1.17.3-py3-none-any.whl", hash = "sha256:7171ae35d2c33d326ac19dd8facb1e82e5fd04ef8c6c0e394d7af55a55051c22", size = 23591, upload-time = "2025-08-12T05:53:20.674Z" },
]
@@ -4852,6 +5561,38 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/e0/e5/11f140a58bf4c6ad7aca69a892bff0ee638c31bea4206748fc0df4ebcb3a/yarl-1.22.0-cp313-cp313t-win32.whl", hash = "sha256:1834bb90991cc2999f10f97f5f01317f99b143284766d197e43cd5b45eb18d03", size = 86943, upload-time = "2025-10-06T14:11:10.284Z" },
{ url = "https://files.pythonhosted.org/packages/31/74/8b74bae38ed7fe6793d0c15a0c8207bbb819cf287788459e5ed230996cdd/yarl-1.22.0-cp313-cp313t-win_amd64.whl", hash = "sha256:ff86011bd159a9d2dfc89c34cfd8aff12875980e3bd6a39ff097887520e60249", size = 93715, upload-time = "2025-10-06T14:11:11.739Z" },
{ url = "https://files.pythonhosted.org/packages/69/66/991858aa4b5892d57aef7ee1ba6b4d01ec3b7eb3060795d34090a3ca3278/yarl-1.22.0-cp313-cp313t-win_arm64.whl", hash = "sha256:7861058d0582b847bc4e3a4a4c46828a410bca738673f35a29ba3ca5db0b473b", size = 83857, upload-time = "2025-10-06T14:11:13.586Z" },
+ { url = "https://files.pythonhosted.org/packages/46/b3/e20ef504049f1a1c54a814b4b9bed96d1ac0e0610c3b4da178f87209db05/yarl-1.22.0-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:34b36c2c57124530884d89d50ed2c1478697ad7473efd59cfd479945c95650e4", size = 140520, upload-time = "2025-10-06T14:11:15.465Z" },
+ { url = "https://files.pythonhosted.org/packages/e4/04/3532d990fdbab02e5ede063676b5c4260e7f3abea2151099c2aa745acc4c/yarl-1.22.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:0dd9a702591ca2e543631c2a017e4a547e38a5c0f29eece37d9097e04a7ac683", size = 93504, upload-time = "2025-10-06T14:11:17.106Z" },
+ { url = "https://files.pythonhosted.org/packages/11/63/ff458113c5c2dac9a9719ac68ee7c947cb621432bcf28c9972b1c0e83938/yarl-1.22.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:594fcab1032e2d2cc3321bb2e51271e7cd2b516c7d9aee780ece81b07ff8244b", size = 94282, upload-time = "2025-10-06T14:11:19.064Z" },
+ { url = "https://files.pythonhosted.org/packages/a7/bc/315a56aca762d44a6aaaf7ad253f04d996cb6b27bad34410f82d76ea8038/yarl-1.22.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f3d7a87a78d46a2e3d5b72587ac14b4c16952dd0887dbb051451eceac774411e", size = 372080, upload-time = "2025-10-06T14:11:20.996Z" },
+ { url = "https://files.pythonhosted.org/packages/3f/3f/08e9b826ec2e099ea6e7c69a61272f4f6da62cb5b1b63590bb80ca2e4a40/yarl-1.22.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:852863707010316c973162e703bddabec35e8757e67fcb8ad58829de1ebc8590", size = 338696, upload-time = "2025-10-06T14:11:22.847Z" },
+ { url = "https://files.pythonhosted.org/packages/e3/9f/90360108e3b32bd76789088e99538febfea24a102380ae73827f62073543/yarl-1.22.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:131a085a53bfe839a477c0845acf21efc77457ba2bcf5899618136d64f3303a2", size = 387121, upload-time = "2025-10-06T14:11:24.889Z" },
+ { url = "https://files.pythonhosted.org/packages/98/92/ab8d4657bd5b46a38094cfaea498f18bb70ce6b63508fd7e909bd1f93066/yarl-1.22.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:078a8aefd263f4d4f923a9677b942b445a2be970ca24548a8102689a3a8ab8da", size = 394080, upload-time = "2025-10-06T14:11:27.307Z" },
+ { url = "https://files.pythonhosted.org/packages/f5/e7/d8c5a7752fef68205296201f8ec2bf718f5c805a7a7e9880576c67600658/yarl-1.22.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bca03b91c323036913993ff5c738d0842fc9c60c4648e5c8d98331526df89784", size = 372661, upload-time = "2025-10-06T14:11:29.387Z" },
+ { url = "https://files.pythonhosted.org/packages/b6/2e/f4d26183c8db0bb82d491b072f3127fb8c381a6206a3a56332714b79b751/yarl-1.22.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:68986a61557d37bb90d3051a45b91fa3d5c516d177dfc6dd6f2f436a07ff2b6b", size = 364645, upload-time = "2025-10-06T14:11:31.423Z" },
+ { url = "https://files.pythonhosted.org/packages/80/7c/428e5812e6b87cd00ee8e898328a62c95825bf37c7fa87f0b6bb2ad31304/yarl-1.22.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:4792b262d585ff0dff6bcb787f8492e40698443ec982a3568c2096433660c694", size = 355361, upload-time = "2025-10-06T14:11:33.055Z" },
+ { url = "https://files.pythonhosted.org/packages/ec/2a/249405fd26776f8b13c067378ef4d7dd49c9098d1b6457cdd152a99e96a9/yarl-1.22.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:ebd4549b108d732dba1d4ace67614b9545b21ece30937a63a65dd34efa19732d", size = 381451, upload-time = "2025-10-06T14:11:35.136Z" },
+ { url = "https://files.pythonhosted.org/packages/67/a8/fb6b1adbe98cf1e2dd9fad71003d3a63a1bc22459c6e15f5714eb9323b93/yarl-1.22.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:f87ac53513d22240c7d59203f25cc3beac1e574c6cd681bbfd321987b69f95fd", size = 383814, upload-time = "2025-10-06T14:11:37.094Z" },
+ { url = "https://files.pythonhosted.org/packages/d9/f9/3aa2c0e480fb73e872ae2814c43bc1e734740bb0d54e8cb2a95925f98131/yarl-1.22.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:22b029f2881599e2f1b06f8f1db2ee63bd309e2293ba2d566e008ba12778b8da", size = 370799, upload-time = "2025-10-06T14:11:38.83Z" },
+ { url = "https://files.pythonhosted.org/packages/50/3c/af9dba3b8b5eeb302f36f16f92791f3ea62e3f47763406abf6d5a4a3333b/yarl-1.22.0-cp314-cp314-win32.whl", hash = "sha256:6a635ea45ba4ea8238463b4f7d0e721bad669f80878b7bfd1f89266e2ae63da2", size = 82990, upload-time = "2025-10-06T14:11:40.624Z" },
+ { url = "https://files.pythonhosted.org/packages/ac/30/ac3a0c5bdc1d6efd1b41fa24d4897a4329b3b1e98de9449679dd327af4f0/yarl-1.22.0-cp314-cp314-win_amd64.whl", hash = "sha256:0d6e6885777af0f110b0e5d7e5dda8b704efed3894da26220b7f3d887b839a79", size = 88292, upload-time = "2025-10-06T14:11:42.578Z" },
+ { url = "https://files.pythonhosted.org/packages/df/0a/227ab4ff5b998a1b7410abc7b46c9b7a26b0ca9e86c34ba4b8d8bc7c63d5/yarl-1.22.0-cp314-cp314-win_arm64.whl", hash = "sha256:8218f4e98d3c10d683584cb40f0424f4b9fd6e95610232dd75e13743b070ee33", size = 82888, upload-time = "2025-10-06T14:11:44.863Z" },
+ { url = "https://files.pythonhosted.org/packages/06/5e/a15eb13db90abd87dfbefb9760c0f3f257ac42a5cac7e75dbc23bed97a9f/yarl-1.22.0-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:45c2842ff0e0d1b35a6bf1cd6c690939dacb617a70827f715232b2e0494d55d1", size = 146223, upload-time = "2025-10-06T14:11:46.796Z" },
+ { url = "https://files.pythonhosted.org/packages/18/82/9665c61910d4d84f41a5bf6837597c89e665fa88aa4941080704645932a9/yarl-1.22.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:d947071e6ebcf2e2bee8fce76e10faca8f7a14808ca36a910263acaacef08eca", size = 95981, upload-time = "2025-10-06T14:11:48.845Z" },
+ { url = "https://files.pythonhosted.org/packages/5d/9a/2f65743589809af4d0a6d3aa749343c4b5f4c380cc24a8e94a3c6625a808/yarl-1.22.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:334b8721303e61b00019474cc103bdac3d7b1f65e91f0bfedeec2d56dfe74b53", size = 97303, upload-time = "2025-10-06T14:11:50.897Z" },
+ { url = "https://files.pythonhosted.org/packages/b0/ab/5b13d3e157505c43c3b43b5a776cbf7b24a02bc4cccc40314771197e3508/yarl-1.22.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1e7ce67c34138a058fd092f67d07a72b8e31ff0c9236e751957465a24b28910c", size = 361820, upload-time = "2025-10-06T14:11:52.549Z" },
+ { url = "https://files.pythonhosted.org/packages/fb/76/242a5ef4677615cf95330cfc1b4610e78184400699bdda0acb897ef5e49a/yarl-1.22.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:d77e1b2c6d04711478cb1c4ab90db07f1609ccf06a287d5607fcd90dc9863acf", size = 323203, upload-time = "2025-10-06T14:11:54.225Z" },
+ { url = "https://files.pythonhosted.org/packages/8c/96/475509110d3f0153b43d06164cf4195c64d16999e0c7e2d8a099adcd6907/yarl-1.22.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c4647674b6150d2cae088fc07de2738a84b8bcedebef29802cf0b0a82ab6face", size = 363173, upload-time = "2025-10-06T14:11:56.069Z" },
+ { url = "https://files.pythonhosted.org/packages/c9/66/59db471aecfbd559a1fd48aedd954435558cd98c7d0da8b03cc6c140a32c/yarl-1.22.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:efb07073be061c8f79d03d04139a80ba33cbd390ca8f0297aae9cce6411e4c6b", size = 373562, upload-time = "2025-10-06T14:11:58.783Z" },
+ { url = "https://files.pythonhosted.org/packages/03/1f/c5d94abc91557384719da10ff166b916107c1b45e4d0423a88457071dd88/yarl-1.22.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e51ac5435758ba97ad69617e13233da53908beccc6cfcd6c34bbed8dcbede486", size = 339828, upload-time = "2025-10-06T14:12:00.686Z" },
+ { url = "https://files.pythonhosted.org/packages/5f/97/aa6a143d3afba17b6465733681c70cf175af89f76ec8d9286e08437a7454/yarl-1.22.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:33e32a0dd0c8205efa8e83d04fc9f19313772b78522d1bdc7d9aed706bfd6138", size = 347551, upload-time = "2025-10-06T14:12:02.628Z" },
+ { url = "https://files.pythonhosted.org/packages/43/3c/45a2b6d80195959239a7b2a8810506d4eea5487dce61c2a3393e7fc3c52e/yarl-1.22.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:bf4a21e58b9cde0e401e683ebd00f6ed30a06d14e93f7c8fd059f8b6e8f87b6a", size = 334512, upload-time = "2025-10-06T14:12:04.871Z" },
+ { url = "https://files.pythonhosted.org/packages/86/a0/c2ab48d74599c7c84cb104ebd799c5813de252bea0f360ffc29d270c2caa/yarl-1.22.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:e4b582bab49ac33c8deb97e058cd67c2c50dac0dd134874106d9c774fd272529", size = 352400, upload-time = "2025-10-06T14:12:06.624Z" },
+ { url = "https://files.pythonhosted.org/packages/32/75/f8919b2eafc929567d3d8411f72bdb1a2109c01caaab4ebfa5f8ffadc15b/yarl-1.22.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:0b5bcc1a9c4839e7e30b7b30dd47fe5e7e44fb7054ec29b5bb8d526aa1041093", size = 357140, upload-time = "2025-10-06T14:12:08.362Z" },
+ { url = "https://files.pythonhosted.org/packages/cf/72/6a85bba382f22cf78add705d8c3731748397d986e197e53ecc7835e76de7/yarl-1.22.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:c0232bce2170103ec23c454e54a57008a9a72b5d1c3105dc2496750da8cfa47c", size = 341473, upload-time = "2025-10-06T14:12:10.994Z" },
+ { url = "https://files.pythonhosted.org/packages/35/18/55e6011f7c044dc80b98893060773cefcfdbf60dfefb8cb2f58b9bacbd83/yarl-1.22.0-cp314-cp314t-win32.whl", hash = "sha256:8009b3173bcd637be650922ac455946197d858b3630b6d8787aa9e5c4564533e", size = 89056, upload-time = "2025-10-06T14:12:13.317Z" },
+ { url = "https://files.pythonhosted.org/packages/f9/86/0f0dccb6e59a9e7f122c5afd43568b1d31b8ab7dda5f1b01fb5c7025c9a9/yarl-1.22.0-cp314-cp314t-win_amd64.whl", hash = "sha256:9fb17ea16e972c63d25d4a97f016d235c78dd2344820eb35bc034bc32012ee27", size = 96292, upload-time = "2025-10-06T14:12:15.398Z" },
+ { url = "https://files.pythonhosted.org/packages/48/b7/503c98092fb3b344a179579f55814b613c1fbb1c23b3ec14a7b008a66a6e/yarl-1.22.0-cp314-cp314t-win_arm64.whl", hash = "sha256:9f6d73c1436b934e3f01df1e1b21ff765cd1d28c77dfb9ace207f746d4610ee1", size = 85171, upload-time = "2025-10-06T14:12:16.935Z" },
{ url = "https://files.pythonhosted.org/packages/73/ae/b48f95715333080afb75a4504487cbe142cae1268afc482d06692d605ae6/yarl-1.22.0-py3-none-any.whl", hash = "sha256:1380560bdba02b6b6c90de54133c81c9f2a453dee9912fe58c1dcced1edb7cff", size = 46814, upload-time = "2025-10-06T14:12:53.872Z" },
]