From 1fc3102f4d02c150bd21e55b2ce9b479f4c19540 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 12 Jun 2026 16:33:19 -0400 Subject: [PATCH 01/33] fix(deps): move httpx to main dependencies (required by app/auth.py) httpx was only in the dev group but is imported at runtime in auth.py for async JWKS fetching from Keycloak. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- pyproject.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index dcbd967..1b9f25a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,13 +34,18 @@ dependencies = [ # Observability (optional but useful) "prometheus-fastapi-instrumentator>=7.0.0", + + # Annotation API — JWT validation + async SQLite + "python-jose[cryptography]>=3.3.0", + "aiosqlite>=0.20.0", + # HTTP client for JWKS fetch in auth.py + "httpx>=0.27", ] [dependency-groups] dev = [ "pytest>=8.0", "pytest-asyncio>=0.23", - "httpx>=0.27", "pip-audit>=2.7", # Offline association export and release loading tools only. "databricks-sdk>=0.20.0", From 7c501bdd4f4ed9528249279fc6467e1f5336817d Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 12 Jun 2026 16:36:41 -0400 Subject: [PATCH 02/33] feat(annotation): Dockerfile volume, config settings, CORS, router wiring - Dockerfile: mkdir -p /data && chown appuser /data for SQLite volume - config.py: annotation_db_path, keycloak_jwks_url, annotation_auth_enabled - main.py: register annotation router, init_annotation_db in lifespan, expand CORS - docker-compose.yml: annotation_data volume + annotation env vars - uv.lock: updated for new deps Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Dockerfile | 5 +++-- app/config.py | 21 +++++++++++++++++++++ app/main.py | 15 ++++++++++++--- docker-compose.yml | 13 ++++++++++++- 4 files changed, 48 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe9e092..b23ff24 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,8 +27,9 @@ ENV PATH="/app/.venv/bin:$PATH" RUN groupadd --gid 1000 appuser \ && useradd --uid 1000 --gid 1000 --no-create-home --shell /bin/false appuser -# A fresh named volume mounted at this path inherits this ownership. -RUN mkdir -p /cache/slide-blocks /cache/prometheus && chown -R appuser:appuser /cache +# Fresh named volumes mounted at these paths inherit this ownership. +RUN mkdir -p /cache/slide-blocks /cache/prometheus /data \ + && chown -R appuser:appuser /cache /data ENV PROMETHEUS_MULTIPROC_DIR=/cache/prometheus USER appuser diff --git a/app/config.py b/app/config.py index a63601b..f6b935c 100644 --- a/app/config.py +++ b/app/config.py @@ -63,6 +63,7 @@ class Settings: wsi_allowed_source_schemes: list[str] = field( default_factory=lambda: _env_csv("WSI_ALLOWED_SOURCE_SCHEMES", "s3") ) + wsi_study_mapping_table: str = field(default_factory=lambda: _env_str("WSI_STUDY_MAPPING_TABLE")) # S3 / Dell ECS connection aws_endpoint_url: str = field(default_factory=lambda: _env_str("AWS_ENDPOINT_URL", _aws_profile("endpoint_url", ""))) @@ -178,6 +179,15 @@ class Settings: databricks_warehouse_id: str = field( default_factory=lambda: _env_str("DATABRICKS_WAREHOUSE_ID", _DEFAULT_WAREHOUSE_ID) ) + use_canonical_association_table: bool = field( + default_factory=lambda: _env_bool("USE_CANONICAL_ASSOCIATION_TABLE", True) + ) + allow_legacy_association_fallback: bool = field( + default_factory=lambda: _env_bool("ALLOW_LEGACY_ASSOCIATION_FALLBACK", True) + ) + + # Metadata cache + patient_cache_ttl: int = field(default_factory=lambda: _env_int("PATIENT_CACHE_TTL", 86_400)) # Block cache blockcache_path: str = field(default_factory=lambda: _env_str("BLOCKCACHE_PATH", "")) @@ -191,6 +201,17 @@ class Settings: test_slide_map_file: str = field(default_factory=lambda: _env_str("WSI_TEST_SLIDE_MAP_FILE", "")) test_slide_map: dict[str, str] = field(default_factory=lambda: _env_json_file_map("WSI_TEST_SLIDE_MAP_FILE")) + # Annotation API + annotation_database_url: str = field(default_factory=lambda: _env_str("ANNOTATION_DATABASE_URL")) + annotation_db_path: str = field( + default_factory=lambda: _env_str("ANNOTATION_DB_PATH", "/data/annotations.db") + ) + keycloak_jwks_url: str = field(default_factory=lambda: _env_str("KEYCLOAK_JWKS_URL")) + annotation_auth_enabled: bool = field( + default_factory=lambda: _env_bool("ANNOTATION_AUTH_ENABLED", True) + ) + oncokb_api_token: str = field(default_factory=lambda: _env_str("ONCOKB_API_TOKEN")) + # CORS cors_origins: list[str] = field( default_factory=lambda: _env_csv( diff --git a/app/main.py b/app/main.py index 79db54c..0a580ef 100644 --- a/app/main.py +++ b/app/main.py @@ -57,6 +57,9 @@ track_image_operation, track_thumbnail_fetch, ) +from .annotations import init_db as init_annotation_db +from .annotations import router as annotation_router +from .oncokb import router as oncokb_router from .slides import SlideCache from .thumbnail_store import ( ThumbnailRecord, @@ -300,6 +303,8 @@ async def _prune_loop(): settings.max_open_slides, settings.aws_endpoint_url or "AWS default", ) + await init_annotation_db() + logger.info("Annotation DB ready: %s", settings.annotation_db_path) try: yield finally: @@ -321,7 +326,10 @@ async def _prune_loop(): @app.middleware("http") async def require_wsi_capability(request: Request, call_next): - if request.scope["path"] in ("/health", "/ready", "/metrics"): + path = request.scope["path"] + if path in ("/health", "/wsi/health", "/ready", "/metrics"): + return await call_next(request) + if path.startswith("/annotations") or path.startswith("/api/oncokb"): return await call_next(request) # Browser clients send an unauthenticated OPTIONS request before any # cross-origin request that includes the Authorization header. CORS @@ -358,16 +366,17 @@ async def wsi_namespace(request, call_next): app.add_middleware( CORSMiddleware, allow_origins=settings.cors_origins, - allow_methods=["GET"], + allow_methods=["GET", "POST", "PUT", "DELETE"], allow_headers=["*"], allow_private_network=True, expose_headers=["X-Thumbnail-Status", "X-Thumbnail-Reason", "Retry-After"], ) - TILE_CACHE_HEADERS = {"Cache-Control": "private, max-age=3600", "Vary": "Authorization"} THUMB_CACHE_HEADERS = {"Cache-Control": "private, max-age=300", "Vary": "Authorization"} PHI_CACHE_HEADERS = {"Cache-Control": "private, no-store", "Vary": "Authorization"} +app.include_router(annotation_router) +app.include_router(oncokb_router) async def _in_thread(fn, *args): diff --git a/docker-compose.yml b/docker-compose.yml index bc553fb..96104e2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -51,6 +51,11 @@ services: # ── CORS — add the viewer origin so the browser can reach tile APIs ─── CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:8080,http://localhost:3000,https://cbioportal.mskcc.org,https://triage.cbioportal.mskcc.org} + # ── Annotation API ──────────────────────────────────────────────────── + ANNOTATION_DB_PATH: /data/annotations.db + KEYCLOAK_JWKS_URL: ${KEYCLOAK_JWKS_URL:-} + ANNOTATION_AUTH_ENABLED: ${ANNOTATION_AUTH_ENABLED:-true} + # ── Capacity (tune to host RAM; each open SVS ≈ 50–200 MB) ─────────── MAX_OPEN_SLIDES: ${MAX_OPEN_SLIDES:-1} N_WORKERS: ${N_WORKERS:-2} @@ -64,8 +69,13 @@ services: BLOCKCACHE_MAX_BYTES: ${BLOCKCACHE_MAX_BYTES:-19327352832} # 18 GiB of 20 GiB volume BLOCKCACHE_PRUNE_INTERVAL_SECONDS: ${BLOCKCACHE_PRUNE_INTERVAL_SECONDS:-60} PROMETHEUS_MULTIPROC_DIR: ${PROMETHEUS_MULTIPROC_DIR:-/cache/prometheus} + # ── Annotation API ──────────────────────────────────────────────────── + ANNOTATION_DB_PATH: /data/annotations.db + KEYCLOAK_JWKS_URL: ${KEYCLOAK_JWKS_URL:-} + ANNOTATION_AUTH_ENABLED: ${ANNOTATION_AUTH_ENABLED:-true} volumes: - slide_blocks:/cache/slide-blocks + - annotation_data:/data - ./tests/testdata:/app/testdata:ro depends_on: redis: @@ -102,4 +112,5 @@ services: volumes: redis_data: - slide_blocks: # default named volume for BlockCache (override with host mount for NVMe) + slide_blocks: # default named volume for BlockCache (override with host mount for NVMe) + annotation_data: # persistent SQLite annotation database From 067d98869c0b2d74823fa0e002c728827af6e1b8 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 12 Jun 2026 16:38:54 -0400 Subject: [PATCH 03/33] feat(annotation): add annotation CRUD router and Keycloak JWT auth app/auth.py: - Keycloak JWKS validation with in-memory cache + TTL - require_user() FastAPI Depends; ANNOTATION_AUTH_ENABLED=false dev escape hatch app/annotations.py: - Full W3C-format annotation CRUD (GET/POST/PUT/DELETE) - SQLite WAL mode, optimistic concurrency via version field - Creator-only delete, visible_to group filtering Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- app/annotations.py | 290 +++++++++++++++++++++++++++++++++++++++++++++ app/auth.py | 93 +++++++++++++-- 2 files changed, 372 insertions(+), 11 deletions(-) create mode 100644 app/annotations.py diff --git a/app/annotations.py b/app/annotations.py new file mode 100644 index 0000000..5441766 --- /dev/null +++ b/app/annotations.py @@ -0,0 +1,290 @@ +""" +Annotation CRUD — FastAPI router backed by SQLite (WAL mode). + +Routes: + GET /annotations list annotations for a slide/study + POST /annotations create a new annotation + PUT /annotations/{id} update (optimistic concurrency via version) + DELETE /annotations/{id} delete (creator only) + +Auth: all routes require a valid Keycloak JWT via ``require_user()``. +Study-level ACL: annotations inherit study access from cBioPortal — +if a user can see the study they can read/write its annotations. +""" + +import json +import logging +import uuid +from typing import Any + +import aiosqlite +from fastapi import APIRouter, Depends, HTTPException, Query, status +from pydantic import BaseModel, Field + +from .auth import require_user +from .config import settings + +logger = logging.getLogger(__name__) + +router = APIRouter(prefix="/annotations", tags=["annotations"]) + +# --------------------------------------------------------------------------- +# DB helpers +# --------------------------------------------------------------------------- + +_db_path: str = "" + + +def _get_db_path() -> str: + return _db_path or settings.annotation_db_path + + +async def init_db(db_path: str | None = None) -> None: + """Create the annotations table (idempotent). Call once at startup.""" + global _db_path + path = db_path or settings.annotation_db_path + _db_path = path + async with aiosqlite.connect(path) as db: + await db.execute("PRAGMA journal_mode=WAL") + await db.execute( + """ + CREATE TABLE IF NOT EXISTS annotations ( + id TEXT PRIMARY KEY, + slide_id TEXT NOT NULL, + study_id TEXT NOT NULL, + body TEXT NOT NULL, + target TEXT NOT NULL, + created_by TEXT NOT NULL, + visible_to TEXT, + version INTEGER DEFAULT 1, + created_at TEXT DEFAULT (datetime('now')), + updated_at TEXT DEFAULT (datetime('now')) + ) + """ + ) + await db.execute( + "CREATE INDEX IF NOT EXISTS idx_ann_slide ON annotations(slide_id)" + ) + await db.commit() + logger.info("Annotation DB ready: %s", path) + + +# --------------------------------------------------------------------------- +# Pydantic models +# --------------------------------------------------------------------------- + + +class AnnotationBody(BaseModel): + label: str = "" + comment: str = "" + type: str = "" + + +class AnnotationTarget(BaseModel): + """W3C selector — store verbatim as JSON.""" + + selector: dict[str, Any] + + +class AnnotationIn(BaseModel): + slide_id: str + study_id: str + body: AnnotationBody + target: AnnotationTarget + visible_to: list[str] | None = Field( + default=None, + description="Keycloak group names that may view this annotation; null = creator only", + ) + + +class AnnotationOut(BaseModel): + id: str + slide_id: str + study_id: str + body: AnnotationBody + target: AnnotationTarget + created_by: str + visible_to: list[str] | None + version: int + created_at: str + updated_at: str + + +class AnnotationUpdate(BaseModel): + body: AnnotationBody | None = None + target: AnnotationTarget | None = None + visible_to: list[str] | None = None + version: int = Field(..., description="Must match current version (optimistic lock)") + + +# --------------------------------------------------------------------------- +# Visibility helpers +# --------------------------------------------------------------------------- + + +def _is_visible(row: dict, user_sub: str, user_groups: list[str]) -> bool: + """Return True if this annotation is visible to the given user.""" + if row["created_by"] == user_sub: + return True + visible_to = row["visible_to"] + if visible_to is None: + return False + groups = json.loads(visible_to) + # Empty list means world-readable within study + if not groups: + return True + return any(g in user_groups for g in groups) + + +def _row_to_out(row: dict) -> AnnotationOut: + return AnnotationOut( + id=row["id"], + slide_id=row["slide_id"], + study_id=row["study_id"], + body=AnnotationBody(**json.loads(row["body"])), + target=AnnotationTarget(**json.loads(row["target"])), + created_by=row["created_by"], + visible_to=json.loads(row["visible_to"]) if row["visible_to"] is not None else None, + version=row["version"], + created_at=row["created_at"], + updated_at=row["updated_at"], + ) + + +# --------------------------------------------------------------------------- +# Routes +# --------------------------------------------------------------------------- + + +@router.get("", response_model=list[AnnotationOut]) +async def list_annotations( + slide_id: str = Query(..., description="Slide image_id"), + study_id: str = Query(..., description="cBioPortal study ID"), + user: dict = Depends(require_user), +) -> list[AnnotationOut]: + """Return all annotations for a slide that are visible to the calling user.""" + async with aiosqlite.connect(_get_db_path()) as db: + db.row_factory = aiosqlite.Row + cursor = await db.execute( + "SELECT * FROM annotations WHERE slide_id = ? AND study_id = ?", + (slide_id, study_id), + ) + rows = await cursor.fetchall() + + result = [] + for row in rows: + row_dict = dict(row) + if _is_visible(row_dict, user["sub"], user["groups"]): + result.append(_row_to_out(row_dict)) + return result + + +@router.post("", response_model=AnnotationOut, status_code=status.HTTP_201_CREATED) +async def create_annotation( + data: AnnotationIn, + user: dict = Depends(require_user), +) -> AnnotationOut: + """Create a new annotation owned by the calling user.""" + ann_id = str(uuid.uuid4()) + visible_to_json = json.dumps(data.visible_to) if data.visible_to is not None else None + + async with aiosqlite.connect(_get_db_path()) as db: + db.row_factory = aiosqlite.Row + await db.execute( + """ + INSERT INTO annotations (id, slide_id, study_id, body, target, created_by, visible_to) + VALUES (?, ?, ?, ?, ?, ?, ?) + """, + ( + ann_id, + data.slide_id, + data.study_id, + data.body.model_dump_json(), + json.dumps({"selector": data.target.selector}), + user["sub"], + visible_to_json, + ), + ) + await db.commit() + cursor = await db.execute("SELECT * FROM annotations WHERE id = ?", (ann_id,)) + row = await cursor.fetchone() + + return _row_to_out(dict(row)) + + +@router.put("/{annotation_id}", response_model=AnnotationOut) +async def update_annotation( + annotation_id: str, + data: AnnotationUpdate, + user: dict = Depends(require_user), +) -> AnnotationOut: + """ + Update an annotation. ``data.version`` must match the stored version + (optimistic concurrency control). Only the creator may update. + """ + async with aiosqlite.connect(_get_db_path()) as db: + db.row_factory = aiosqlite.Row + cursor = await db.execute( + "SELECT * FROM annotations WHERE id = ?", (annotation_id,) + ) + existing = await cursor.fetchone() + if not existing: + raise HTTPException(status_code=404, detail="Annotation not found") + + existing = dict(existing) + if existing["created_by"] != user["sub"]: + raise HTTPException(status_code=403, detail="Only the creator may update this annotation") + if existing["version"] != data.version: + raise HTTPException( + status_code=409, + detail=f"Version conflict: expected {existing['version']}, got {data.version}", + ) + + new_body = data.body.model_dump_json() if data.body is not None else existing["body"] + new_target = ( + json.dumps({"selector": data.target.selector}) + if data.target is not None + else existing["target"] + ) + new_visible = ( + json.dumps(data.visible_to) + if data.visible_to is not None + else existing["visible_to"] + ) + new_version = existing["version"] + 1 + + await db.execute( + """ + UPDATE annotations + SET body = ?, target = ?, visible_to = ?, version = ?, + updated_at = datetime('now') + WHERE id = ? + """, + (new_body, new_target, new_visible, new_version, annotation_id), + ) + await db.commit() + cursor = await db.execute("SELECT * FROM annotations WHERE id = ?", (annotation_id,)) + row = await cursor.fetchone() + + return _row_to_out(dict(row)) + + +@router.delete("/{annotation_id}", status_code=status.HTTP_204_NO_CONTENT) +async def delete_annotation( + annotation_id: str, + user: dict = Depends(require_user), +) -> None: + """Delete an annotation. Only the creator may delete.""" + async with aiosqlite.connect(_get_db_path()) as db: + db.row_factory = aiosqlite.Row + cursor = await db.execute( + "SELECT created_by FROM annotations WHERE id = ?", (annotation_id,) + ) + row = await cursor.fetchone() + if not row: + raise HTTPException(status_code=404, detail="Annotation not found") + if dict(row)["created_by"] != user["sub"]: + raise HTTPException(status_code=403, detail="Only the creator may delete this annotation") + + await db.execute("DELETE FROM annotations WHERE id = ?", (annotation_id,)) + await db.commit() diff --git a/app/auth.py b/app/auth.py index bedef3a..fa10782 100644 --- a/app/auth.py +++ b/app/auth.py @@ -1,10 +1,21 @@ -"""Validation for short-lived cBioPortal WSI access capabilities.""" +"""Authentication helpers for WSI capability and annotation API requests.""" import base64 import hashlib import hmac import json +import logging import time +from typing import Any + +import httpx +from fastapi import Depends, HTTPException, status +from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer +from jose import JWTError, jwt + +from .config import settings + +logger = logging.getLogger(__name__) class InvalidWsiToken(ValueError): @@ -31,14 +42,16 @@ def validate_wsi_auth_configuration(secret: str, audience: str, max_ttl: int) -> def validate_wsi_token( - token: str, secret: str, audience: str, max_ttl: int = 300 + token: str, + secret: str, + audience: str, + max_ttl: int = 300, + expected_study_id: str | None = None, ) -> dict: validate_wsi_auth_configuration(secret, audience, max_ttl) - parts = token.split(".") if len(parts) != 3: raise InvalidWsiToken("invalid token") - encoded_header, encoded_payload, encoded_signature = parts try: header = json.loads(_b64decode(encoded_header)) @@ -47,18 +60,13 @@ def validate_wsi_token( raise InvalidWsiToken("invalid token payload") from exc if not isinstance(header, dict) or not isinstance(payload, dict): raise InvalidWsiToken("invalid token structure") - if header.get("alg") != "HS256" or header.get("typ") != "JWT": raise InvalidWsiToken("unsupported token algorithm") - expected = hmac.new( - secret.encode(), - f"{encoded_header}.{encoded_payload}".encode(), - hashlib.sha256, + secret.encode(), f"{encoded_header}.{encoded_payload}".encode(), hashlib.sha256 ).digest() if not hmac.compare_digest(expected, _b64decode(encoded_signature)): raise InvalidWsiToken("invalid token signature") - now = int(time.time()) if payload.get("aud") != audience or payload.get("scope") != "wsi:read": raise InvalidWsiToken("invalid token audience or scope") @@ -66,6 +74,8 @@ def validate_wsi_token( raise InvalidWsiToken("invalid token subject") if not isinstance(payload.get("study_id"), str) or not payload["study_id"].strip(): raise InvalidWsiToken("invalid token study") + if expected_study_id is not None and payload["study_id"] != expected_study_id: + raise InvalidWsiToken("token study scope does not match request") if payload.get("wsi_auth_version") != 2: raise InvalidWsiToken("unsupported WSI authorization contract") if not isinstance(payload.get("image_id"), str) or not payload["image_id"].strip(): @@ -78,11 +88,72 @@ def validate_wsi_token( value = payload.get(claim) if type(value) is not int or value <= 0 or value > 8192: raise InvalidWsiToken("invalid token thumbnail dimensions") + if type(payload.get("exp")) is not int or payload["exp"] <= now: if type(payload.get("exp")) is not int or payload["exp"] <= now: raise InvalidWsiToken("expired token") if type(payload.get("iat")) is not int or payload["iat"] > now + 60: raise InvalidWsiToken("invalid token issued-at") if payload["exp"] <= payload["iat"] or payload["exp"] - payload["iat"] > max_ttl: raise InvalidWsiToken("token lifetime exceeds configured maximum") - return payload + + +_bearer = HTTPBearer(auto_error=False) +_jwks_cache: dict[str, Any] = {} +_jwks_fetched_at: float = 0.0 +_JWKS_TTL = 3600 + + +async def _get_jwks() -> dict[str, Any]: + global _jwks_cache, _jwks_fetched_at + if time.monotonic() - _jwks_fetched_at < _JWKS_TTL and _jwks_cache: + return _jwks_cache + if not settings.keycloak_jwks_url: + raise HTTPException( + status_code=status.HTTP_503_SERVICE_UNAVAILABLE, + detail="KEYCLOAK_JWKS_URL is not configured", + ) + try: + async with httpx.AsyncClient(timeout=10) as client: + resp = await client.get(settings.keycloak_jwks_url) + resp.raise_for_status() + _jwks_cache = resp.json() + _jwks_fetched_at = time.monotonic() + return _jwks_cache + except Exception as exc: + logger.error("Failed to fetch JWKS from %s: %s", settings.keycloak_jwks_url, exc) + raise HTTPException( + status_code=status.HTTP_503_SERVICE_UNAVAILABLE, + detail="Unable to reach Keycloak JWKS endpoint", + ) + + +async def require_user( + creds: HTTPAuthorizationCredentials | None = Depends(_bearer), +) -> dict[str, Any]: + """Return the authenticated Keycloak subject and groups for annotations.""" + if not settings.annotation_auth_enabled: + return {"sub": "dev-user", "groups": []} + if creds is None: + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail="Missing Authorization header", + headers={"WWW-Authenticate": "Bearer"}, + ) + try: + payload = jwt.decode( + creds.credentials, + await _get_jwks(), + algorithms=["RS256"], + options={"verify_aud": False}, + ) + except JWTError as exc: + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail=f"Invalid token: {exc}", + headers={"WWW-Authenticate": "Bearer"}, + ) + sub: str = payload.get("sub", "") + if not sub: + raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="Token missing 'sub' claim") + return {"sub": sub, "groups": payload.get("groups", [])} From 5c7c51869238d69792edec7a4cb1e0334316ddc9 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Sat, 13 Jun 2026 22:41:06 -0400 Subject: [PATCH 04/33] fix: add aiosqlite, python-jose, rsa, ecdsa to uv.lock These packages were added to pyproject.toml for the annotation API but uv.lock was not regenerated, causing ModuleNotFoundError on container start. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- uv.lock | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 58 insertions(+), 2 deletions(-) diff --git a/uv.lock b/uv.lock index b597c06..495e991 100644 --- a/uv.lock +++ b/uv.lock @@ -173,6 +173,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/fb/76/641ae371508676492379f16e2fa48f4e2c11741bd63c48be4b12a6b09cba/aiosignal-1.4.0-py3-none-any.whl", hash = "sha256:053243f8b92b990551949e63930a839ff0cf0b0ebbe0597b0f3fb19e1a0fe82e", size = 7490, upload-time = "2025-07-03T22:54:42.156Z" }, ] +[[package]] +name = "aiosqlite" +version = "0.22.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/4e/8a/64761f4005f17809769d23e518d915db74e6310474e733e3593cfc854ef1/aiosqlite-0.22.1.tar.gz", hash = "sha256:043e0bd78d32888c0a9ca90fc788b38796843360c855a7262a532813133a0650", size = 14821, upload-time = "2025-12-23T19:25:43.997Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/00/b7/e3bf5133d697a08128598c8d0abc5e16377b51465a33756de24fa7dee953/aiosqlite-0.22.1-py3-none-any.whl", hash = "sha256:21c002eb13823fad740196c5a2e9d8e62f6243bd9e7e4a1f87fb5e44ecb4fceb", size = 17405, upload-time = "2025-12-23T19:25:42.139Z" }, +] + [[package]] name = "annotated-doc" version = "0.0.4" @@ -288,12 +297,15 @@ name = "cbioportal-tile-server" version = "0.1.0" source = { editable = "." } dependencies = [ + { name = "aiosqlite" }, { name = "boto3" }, { name = "fastapi" }, { name = "fsspec" }, { name = "gunicorn" }, + { name = "httpx" }, { name = "pillow" }, { name = "prometheus-fastapi-instrumentator" }, + { name = "python-jose", extra = ["cryptography"] }, { name = "redis" }, { name = "s3fs" }, { name = "tifffile" }, @@ -305,7 +317,6 @@ dependencies = [ [package.dev-dependencies] dev = [ { name = "databricks-sdk" }, - { name = "httpx" }, { name = "pip-audit" }, { name = "pytest" }, { name = "pytest-asyncio" }, @@ -313,12 +324,15 @@ dev = [ [package.metadata] requires-dist = [ + { name = "aiosqlite", specifier = ">=0.20.0" }, { name = "boto3", specifier = ">=1.34.0" }, { name = "fastapi", specifier = ">=0.111.0" }, { name = "fsspec", specifier = ">=2024.3.0" }, { name = "gunicorn", specifier = ">=22.0.0" }, + { name = "httpx", specifier = ">=0.27" }, { name = "pillow", specifier = ">=12.3.0" }, { name = "prometheus-fastapi-instrumentator", specifier = ">=7.0.0" }, + { name = "python-jose", extras = ["cryptography"], specifier = ">=3.3.0" }, { name = "redis", specifier = ">=5.0.0" }, { name = "s3fs", specifier = ">=2024.3.0" }, { name = "tifffile", specifier = ">=2024.1.1,<2025.5.21" }, @@ -330,7 +344,6 @@ requires-dist = [ [package.metadata.requires-dev] dev = [ { name = "databricks-sdk", specifier = ">=0.20.0" }, - { name = "httpx", specifier = ">=0.27" }, { name = "pip-audit", specifier = ">=2.7" }, { name = "pytest", specifier = ">=8.0" }, { name = "pytest-asyncio", specifier = ">=0.23" }, @@ -632,6 +645,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/84/d0/205d54408c08b13550c733c4b85429e7ead111c7f0014309637425520a9a/deprecated-1.3.1-py2.py3-none-any.whl", hash = "sha256:597bfef186b6f60181535a29fbe44865ce137a5079f295b479886c82729d5f3f", size = 11298, upload-time = "2025-10-30T08:19:00.758Z" }, ] +[[package]] +name = "ecdsa" +version = "0.19.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/25/ca/8de7744cb3bc966c85430ca2d0fcaeea872507c6a4cf6e007f7fe269ed9d/ecdsa-0.19.2.tar.gz", hash = "sha256:62635b0ac1ca2e027f82122b5b81cb706edc38cd91c63dda28e4f3455a2bf930", size = 202432, upload-time = "2026-03-26T09:58:17.675Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/51/79/119091c98e2bf49e24ed9f3ae69f816d715d2904aefa6a2baa039a2ba0b0/ecdsa-0.19.2-py2.py3-none-any.whl", hash = "sha256:840f5dc5e375c68f36c1a7a5b9caad28f95daa65185c9253c0c08dd952bb7399", size = 150818, upload-time = "2026-03-26T09:58:15.808Z" }, +] + [[package]] name = "fastapi" version = "0.136.3" @@ -1821,6 +1846,25 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/0b/d7/1959b9648791274998a9c3526f6d0ec8fd2233e4d4acce81bbae76b44b2a/python_dotenv-1.2.2-py3-none-any.whl", hash = "sha256:1d8214789a24de455a8b8bd8ae6fe3c6b69a5e3d64aa8a8e5d68e694bbcb285a", size = 22101, upload-time = "2026-03-01T16:00:25.09Z" }, ] +[[package]] +name = "python-jose" +version = "3.5.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "ecdsa" }, + { name = "pyasn1" }, + { name = "rsa" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c6/77/3a1c9039db7124eb039772b935f2244fbb73fc8ee65b9acf2375da1c07bf/python_jose-3.5.0.tar.gz", hash = "sha256:fb4eaa44dbeb1c26dcc69e4bd7ec54a1cb8dd64d3b4d81ef08d90ff453f2b01b", size = 92726, upload-time = "2025-05-28T17:31:54.288Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d9/c3/0bd11992072e6a1c513b16500a5d07f91a24017c5909b02c72c62d7ad024/python_jose-3.5.0-py2.py3-none-any.whl", hash = "sha256:abd1202f23d34dfad2c3d28cb8617b90acf34132c7afd60abd0b0b7d3cb55771", size = 34624, upload-time = "2025-05-28T17:31:52.802Z" }, +] + +[package.optional-dependencies] +cryptography = [ + { name = "cryptography" }, +] + [[package]] name = "pyyaml" version = "6.0.3" @@ -1916,6 +1960,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", hash = "sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", size = 310654, upload-time = "2026-04-12T08:24:02.83Z" }, ] +[[package]] +name = "rsa" +version = "4.9.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pyasn1" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/da/8a/22b7beea3ee0d44b1916c0c1cb0ee3af23b700b6da9f04991899d0c555d4/rsa-4.9.1.tar.gz", hash = "sha256:e7bdbfdb5497da4c07dfd35530e1a902659db6ff241e39d9953cad06ebd0ae75", size = 29034, upload-time = "2025-04-16T09:51:18.218Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/64/8d/0133e4eb4beed9e425d9a98ed6e081a55d195481b7632472be1af08d2f6b/rsa-4.9.1-py3-none-any.whl", hash = "sha256:68635866661c6836b8d39430f97a996acbd61bfa49406748ea243539fe239762", size = 34696, upload-time = "2025-04-16T09:51:17.142Z" }, +] + [[package]] name = "s3fs" version = "2026.4.0" From d8248053affd2afd6bfa5e073c93a68296943db9 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 26 Jun 2026 14:10:07 -0400 Subject: [PATCH 05/33] Wire annotations to Lakebase --- app/annotations.py | 456 ++++++++++++++------- databricks/lakebase/databricks.yml | 30 ++ databricks/lakebase/resources/lakebase.yml | 28 ++ pyproject.toml | 1 + uv.lock | 50 +++ 5 files changed, 428 insertions(+), 137 deletions(-) create mode 100644 databricks/lakebase/databricks.yml create mode 100644 databricks/lakebase/resources/lakebase.yml diff --git a/app/annotations.py b/app/annotations.py index 5441766..b6811d6 100644 --- a/app/annotations.py +++ b/app/annotations.py @@ -1,5 +1,5 @@ """ -Annotation CRUD — FastAPI router backed by SQLite (WAL mode). +Annotation CRUD with pluggable SQLite or Postgres storage. Routes: GET /annotations list annotations for a slide/study @@ -18,6 +18,7 @@ from typing import Any import aiosqlite +import asyncpg from fastapi import APIRouter, Depends, HTTPException, Query, status from pydantic import BaseModel, Field @@ -28,50 +29,53 @@ router = APIRouter(prefix="/annotations", tags=["annotations"]) -# --------------------------------------------------------------------------- -# DB helpers -# --------------------------------------------------------------------------- - _db_path: str = "" +_db_url: str = "" + + +def _settings_db_url() -> str: + return getattr(settings, "annotation_database_url", "") + + +def _storage_kind() -> str: + return "postgres" if (_db_url or _settings_db_url()) else "sqlite" def _get_db_path() -> str: return _db_path or settings.annotation_db_path -async def init_db(db_path: str | None = None) -> None: - """Create the annotations table (idempotent). Call once at startup.""" - global _db_path - path = db_path or settings.annotation_db_path - _db_path = path - async with aiosqlite.connect(path) as db: - await db.execute("PRAGMA journal_mode=WAL") - await db.execute( - """ - CREATE TABLE IF NOT EXISTS annotations ( - id TEXT PRIMARY KEY, - slide_id TEXT NOT NULL, - study_id TEXT NOT NULL, - body TEXT NOT NULL, - target TEXT NOT NULL, - created_by TEXT NOT NULL, - visible_to TEXT, - version INTEGER DEFAULT 1, - created_at TEXT DEFAULT (datetime('now')), - updated_at TEXT DEFAULT (datetime('now')) - ) - """ - ) - await db.execute( - "CREATE INDEX IF NOT EXISTS idx_ann_slide ON annotations(slide_id)" - ) - await db.commit() - logger.info("Annotation DB ready: %s", path) +def _get_db_url() -> str: + return _db_url or _settings_db_url() + + +async def _apply_sqlite_pragmas(db: aiosqlite.Connection) -> None: + """Performance PRAGMAs applied to every SQLite connection.""" + await db.execute("PRAGMA synchronous = NORMAL") + await db.execute("PRAGMA cache_size = -64000") + await db.execute("PRAGMA temp_store = MEMORY") + await db.execute("PRAGMA mmap_size = 268435456") + await db.execute("PRAGMA busy_timeout = 5000") + +def _sqlite_target_json(selector: dict[str, Any]) -> str: + return json.dumps({"selector": selector}) -# --------------------------------------------------------------------------- -# Pydantic models -# --------------------------------------------------------------------------- + +def _decode_visible_to(value: str | None) -> list[str] | None: + return json.loads(value) if value is not None else None + + +def _is_visible(row: dict, user_sub: str, user_groups: set[str]) -> bool: + if row["created_by"] == user_sub: + return True + visible_to = row["visible_to"] + if visible_to is None: + return False + groups = json.loads(visible_to) if isinstance(visible_to, str) else visible_to + if not groups: + return True + return bool(user_groups.intersection(groups)) class AnnotationBody(BaseModel): @@ -81,8 +85,6 @@ class AnnotationBody(BaseModel): class AnnotationTarget(BaseModel): - """W3C selector — store verbatim as JSON.""" - selector: dict[str, Any] @@ -117,25 +119,6 @@ class AnnotationUpdate(BaseModel): version: int = Field(..., description="Must match current version (optimistic lock)") -# --------------------------------------------------------------------------- -# Visibility helpers -# --------------------------------------------------------------------------- - - -def _is_visible(row: dict, user_sub: str, user_groups: list[str]) -> bool: - """Return True if this annotation is visible to the given user.""" - if row["created_by"] == user_sub: - return True - visible_to = row["visible_to"] - if visible_to is None: - return False - groups = json.loads(visible_to) - # Empty list means world-readable within study - if not groups: - return True - return any(g in user_groups for g in groups) - - def _row_to_out(row: dict) -> AnnotationOut: return AnnotationOut( id=row["id"], @@ -144,51 +127,123 @@ def _row_to_out(row: dict) -> AnnotationOut: body=AnnotationBody(**json.loads(row["body"])), target=AnnotationTarget(**json.loads(row["target"])), created_by=row["created_by"], - visible_to=json.loads(row["visible_to"]) if row["visible_to"] is not None else None, + visible_to=_decode_visible_to(row["visible_to"]), version=row["version"], created_at=row["created_at"], updated_at=row["updated_at"], ) -# --------------------------------------------------------------------------- -# Routes -# --------------------------------------------------------------------------- +async def _init_sqlite(path: str) -> None: + async with aiosqlite.connect(path) as db: + await db.execute("PRAGMA journal_mode=WAL") + await _apply_sqlite_pragmas(db) + await db.execute( + """ + CREATE TABLE IF NOT EXISTS annotations ( + id TEXT PRIMARY KEY, + slide_id TEXT NOT NULL, + study_id TEXT NOT NULL, + body TEXT NOT NULL, + target TEXT NOT NULL, + created_by TEXT NOT NULL, + visible_to TEXT, + version INTEGER DEFAULT 1, + created_at TEXT DEFAULT (datetime('now')), + updated_at TEXT DEFAULT (datetime('now')) + ) + """ + ) + await db.execute( + "CREATE INDEX IF NOT EXISTS idx_ann_slide_study ON annotations(slide_id, study_id)" + ) + await db.execute("CREATE INDEX IF NOT EXISTS idx_ann_slide ON annotations(slide_id)") + await db.commit() -@router.get("", response_model=list[AnnotationOut]) -async def list_annotations( - slide_id: str = Query(..., description="Slide image_id"), - study_id: str = Query(..., description="cBioPortal study ID"), - user: dict = Depends(require_user), -) -> list[AnnotationOut]: - """Return all annotations for a slide that are visible to the calling user.""" +async def _init_postgres(dsn: str) -> None: + conn = await asyncpg.connect(dsn) + try: + await conn.execute( + """ + CREATE TABLE IF NOT EXISTS annotations ( + id TEXT PRIMARY KEY, + slide_id TEXT NOT NULL, + study_id TEXT NOT NULL, + body TEXT NOT NULL, + target TEXT NOT NULL, + created_by TEXT NOT NULL, + visible_to TEXT, + version INTEGER NOT NULL DEFAULT 1, + created_at TIMESTAMPTZ NOT NULL DEFAULT timezone('utc', now()), + updated_at TIMESTAMPTZ NOT NULL DEFAULT timezone('utc', now()) + ) + """ + ) + await conn.execute( + "CREATE INDEX IF NOT EXISTS idx_ann_slide_study ON annotations(slide_id, study_id)" + ) + await conn.execute("CREATE INDEX IF NOT EXISTS idx_ann_slide ON annotations(slide_id)") + finally: + await conn.close() + + +async def init_db(db_path: str | None = None, db_url: str | None = None) -> None: + global _db_path, _db_url + _db_path = db_path or settings.annotation_db_path + _db_url = db_url or _settings_db_url() + if _get_db_url(): + await _init_postgres(_get_db_url()) + logger.info("Annotation DB ready (postgres)") + else: + await _init_sqlite(_get_db_path()) + logger.info("Annotation DB ready (sqlite): %s", _get_db_path()) + + +async def _list_sqlite(slide_id: str, study_id: str, user_sub: str) -> list[dict]: async with aiosqlite.connect(_get_db_path()) as db: + await _apply_sqlite_pragmas(db) db.row_factory = aiosqlite.Row cursor = await db.execute( - "SELECT * FROM annotations WHERE slide_id = ? AND study_id = ?", - (slide_id, study_id), + """ + SELECT * FROM annotations + WHERE slide_id = ? AND study_id = ? + AND (created_by = ? OR visible_to IS NOT NULL) + """, + (slide_id, study_id, user_sub), ) rows = await cursor.fetchall() + return [dict(row) for row in rows] - result = [] - for row in rows: - row_dict = dict(row) - if _is_visible(row_dict, user["sub"], user["groups"]): - result.append(_row_to_out(row_dict)) - return result +async def _list_postgres(slide_id: str, study_id: str, user_sub: str) -> list[dict]: + conn = await asyncpg.connect(_get_db_url()) + try: + rows = await conn.fetch( + """ + SELECT + id, slide_id, study_id, body, target, created_by, visible_to, + version, + to_char(created_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS\"Z\"') AS created_at, + to_char(updated_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS\"Z\"') AS updated_at + FROM annotations + WHERE slide_id = $1 AND study_id = $2 + AND (created_by = $3 OR visible_to IS NOT NULL) + """, + slide_id, + study_id, + user_sub, + ) + return [dict(row) for row in rows] + finally: + await conn.close() -@router.post("", response_model=AnnotationOut, status_code=status.HTTP_201_CREATED) -async def create_annotation( - data: AnnotationIn, - user: dict = Depends(require_user), -) -> AnnotationOut: - """Create a new annotation owned by the calling user.""" + +async def _create_sqlite(data: AnnotationIn, user_sub: str) -> dict: ann_id = str(uuid.uuid4()) visible_to_json = json.dumps(data.visible_to) if data.visible_to is not None else None - async with aiosqlite.connect(_get_db_path()) as db: + await _apply_sqlite_pragmas(db) db.row_factory = aiosqlite.Row await db.execute( """ @@ -200,59 +255,77 @@ async def create_annotation( data.slide_id, data.study_id, data.body.model_dump_json(), - json.dumps({"selector": data.target.selector}), - user["sub"], + _sqlite_target_json(data.target.selector), + user_sub, visible_to_json, ), ) await db.commit() cursor = await db.execute("SELECT * FROM annotations WHERE id = ?", (ann_id,)) row = await cursor.fetchone() + return dict(row) - return _row_to_out(dict(row)) +async def _create_postgres(data: AnnotationIn, user_sub: str) -> dict: + ann_id = str(uuid.uuid4()) + visible_to_json = json.dumps(data.visible_to) if data.visible_to is not None else None + conn = await asyncpg.connect(_get_db_url()) + try: + row = await conn.fetchrow( + """ + INSERT INTO annotations (id, slide_id, study_id, body, target, created_by, visible_to) + VALUES ($1, $2, $3, $4, $5, $6, $7) + RETURNING + id, slide_id, study_id, body, target, created_by, visible_to, version, + to_char(created_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS\"Z\"') AS created_at, + to_char(updated_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS\"Z\"') AS updated_at + """, + ann_id, + data.slide_id, + data.study_id, + data.body.model_dump_json(), + _sqlite_target_json(data.target.selector), + user_sub, + visible_to_json, + ) + return dict(row) + finally: + await conn.close() -@router.put("/{annotation_id}", response_model=AnnotationOut) -async def update_annotation( - annotation_id: str, - data: AnnotationUpdate, - user: dict = Depends(require_user), -) -> AnnotationOut: - """ - Update an annotation. ``data.version`` must match the stored version - (optimistic concurrency control). Only the creator may update. - """ + +async def _get_existing_sqlite(annotation_id: str) -> dict | None: async with aiosqlite.connect(_get_db_path()) as db: + await _apply_sqlite_pragmas(db) db.row_factory = aiosqlite.Row cursor = await db.execute( - "SELECT * FROM annotations WHERE id = ?", (annotation_id,) + "SELECT id, slide_id, study_id, body, target, created_by, visible_to, version, created_at" + " FROM annotations WHERE id = ?", + (annotation_id,), ) - existing = await cursor.fetchone() - if not existing: - raise HTTPException(status_code=404, detail="Annotation not found") - - existing = dict(existing) - if existing["created_by"] != user["sub"]: - raise HTTPException(status_code=403, detail="Only the creator may update this annotation") - if existing["version"] != data.version: - raise HTTPException( - status_code=409, - detail=f"Version conflict: expected {existing['version']}, got {data.version}", - ) + row = await cursor.fetchone() + return dict(row) if row else None - new_body = data.body.model_dump_json() if data.body is not None else existing["body"] - new_target = ( - json.dumps({"selector": data.target.selector}) - if data.target is not None - else existing["target"] - ) - new_visible = ( - json.dumps(data.visible_to) - if data.visible_to is not None - else existing["visible_to"] + +async def _get_existing_postgres(annotation_id: str) -> dict | None: + conn = await asyncpg.connect(_get_db_url()) + try: + row = await conn.fetchrow( + """ + SELECT + id, slide_id, study_id, body, target, created_by, visible_to, version, + to_char(created_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS\"Z\"') AS created_at + FROM annotations WHERE id = $1 + """, + annotation_id, ) - new_version = existing["version"] + 1 + return dict(row) if row else None + finally: + await conn.close() + +async def _update_sqlite(annotation_id: str, new_body: str, new_target: str, new_visible: str | None, new_version: int) -> None: + async with aiosqlite.connect(_get_db_path()) as db: + await _apply_sqlite_pragmas(db) await db.execute( """ UPDATE annotations @@ -263,10 +336,119 @@ async def update_annotation( (new_body, new_target, new_visible, new_version, annotation_id), ) await db.commit() - cursor = await db.execute("SELECT * FROM annotations WHERE id = ?", (annotation_id,)) - row = await cursor.fetchone() - return _row_to_out(dict(row)) + +async def _update_postgres(annotation_id: str, new_body: str, new_target: str, new_visible: str | None, new_version: int) -> str: + conn = await asyncpg.connect(_get_db_url()) + try: + row = await conn.fetchrow( + """ + UPDATE annotations + SET body = $1, target = $2, visible_to = $3, version = $4, + updated_at = timezone('utc', now()) + WHERE id = $5 + RETURNING to_char(updated_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS\"Z\"') + """, + new_body, + new_target, + new_visible, + new_version, + annotation_id, + ) + return row["to_char"] + finally: + await conn.close() + + +async def _delete_sqlite(annotation_id: str) -> None: + async with aiosqlite.connect(_get_db_path()) as db: + await _apply_sqlite_pragmas(db) + await db.execute("DELETE FROM annotations WHERE id = ?", (annotation_id,)) + await db.commit() + + +async def _delete_postgres(annotation_id: str) -> None: + conn = await asyncpg.connect(_get_db_url()) + try: + await conn.execute("DELETE FROM annotations WHERE id = $1", annotation_id) + finally: + await conn.close() + + +@router.get("", response_model=list[AnnotationOut]) +async def list_annotations( + slide_id: str = Query(..., description="Slide image_id"), + study_id: str = Query(..., description="cBioPortal study ID"), + user: dict = Depends(require_user), +) -> list[AnnotationOut]: + user_sub: str = user["sub"] + user_groups: set[str] = set(user["groups"]) + if _storage_kind() == "postgres": + rows = await _list_postgres(slide_id, study_id, user_sub) + else: + rows = await _list_sqlite(slide_id, study_id, user_sub) + return [_row_to_out(row) for row in rows if _is_visible(row, user_sub, user_groups)] + + +@router.post("", response_model=AnnotationOut, status_code=status.HTTP_201_CREATED) +async def create_annotation( + data: AnnotationIn, + user: dict = Depends(require_user), +) -> AnnotationOut: + if _storage_kind() == "postgres": + row = await _create_postgres(data, user["sub"]) + else: + row = await _create_sqlite(data, user["sub"]) + return _row_to_out(row) + + +@router.put("/{annotation_id}", response_model=AnnotationOut) +async def update_annotation( + annotation_id: str, + data: AnnotationUpdate, + user: dict = Depends(require_user), +) -> AnnotationOut: + existing = ( + await _get_existing_postgres(annotation_id) + if _storage_kind() == "postgres" + else await _get_existing_sqlite(annotation_id) + ) + if not existing: + raise HTTPException(status_code=404, detail="Annotation not found") + if existing["created_by"] != user["sub"]: + raise HTTPException(status_code=403, detail="Only the creator may update this annotation") + if existing["version"] != data.version: + raise HTTPException( + status_code=409, + detail=f"Version conflict: expected {existing['version']}, got {data.version}", + ) + + new_body = data.body.model_dump_json() if data.body is not None else existing["body"] + new_target = ( + _sqlite_target_json(data.target.selector) if data.target is not None else existing["target"] + ) + new_visible = json.dumps(data.visible_to) if data.visible_to is not None else existing["visible_to"] + new_version = existing["version"] + 1 + if _storage_kind() == "postgres": + updated_at = await _update_postgres( + annotation_id, new_body, new_target, new_visible, new_version + ) + else: + await _update_sqlite(annotation_id, new_body, new_target, new_visible, new_version) + updated_at = "" + + return AnnotationOut( + id=existing["id"], + slide_id=existing["slide_id"], + study_id=existing["study_id"], + body=AnnotationBody(**json.loads(new_body)), + target=AnnotationTarget(**json.loads(new_target)), + created_by=existing["created_by"], + visible_to=_decode_visible_to(new_visible), + version=new_version, + created_at=existing["created_at"], + updated_at=updated_at, + ) @router.delete("/{annotation_id}", status_code=status.HTTP_204_NO_CONTENT) @@ -274,17 +456,17 @@ async def delete_annotation( annotation_id: str, user: dict = Depends(require_user), ) -> None: - """Delete an annotation. Only the creator may delete.""" - async with aiosqlite.connect(_get_db_path()) as db: - db.row_factory = aiosqlite.Row - cursor = await db.execute( - "SELECT created_by FROM annotations WHERE id = ?", (annotation_id,) - ) - row = await cursor.fetchone() - if not row: - raise HTTPException(status_code=404, detail="Annotation not found") - if dict(row)["created_by"] != user["sub"]: - raise HTTPException(status_code=403, detail="Only the creator may delete this annotation") - - await db.execute("DELETE FROM annotations WHERE id = ?", (annotation_id,)) - await db.commit() + existing = ( + await _get_existing_postgres(annotation_id) + if _storage_kind() == "postgres" + else await _get_existing_sqlite(annotation_id) + ) + if not existing: + raise HTTPException(status_code=404, detail="Annotation not found") + if existing["created_by"] != user["sub"]: + raise HTTPException(status_code=403, detail="Only the creator may delete this annotation") + + if _storage_kind() == "postgres": + await _delete_postgres(annotation_id) + else: + await _delete_sqlite(annotation_id) diff --git a/databricks/lakebase/databricks.yml b/databricks/lakebase/databricks.yml new file mode 100644 index 0000000..8783d87 --- /dev/null +++ b/databricks/lakebase/databricks.yml @@ -0,0 +1,30 @@ +bundle: + name: cbioportal-annotations-lakebase + +include: + - resources/*.yml + +variables: + project_id: + description: Lakebase project ID for cBioPortal annotations. + default: cbioportal-annotations-dev + project_display_name: + description: Human-readable Lakebase project name. + default: cBioPortal Annotations Dev + branch_id: + description: Lakebase branch to deploy for this environment. + default: dev + endpoint_id: + description: Read-write endpoint name for the deployed branch. + default: primary + service_principal_name: + description: Databricks service principal that should manage the project. + default: "" + +targets: + dev: + default: true + mode: development + workspace: + host: https://msk-mode-dev.cloud.databricks.com + root_path: ~/.bundle/${bundle.name}/${bundle.target} diff --git a/databricks/lakebase/resources/lakebase.yml b/databricks/lakebase/resources/lakebase.yml new file mode 100644 index 0000000..4b95523 --- /dev/null +++ b/databricks/lakebase/resources/lakebase.yml @@ -0,0 +1,28 @@ +resources: + postgres_projects: + annotations: + project_id: ${var.project_id} + display_name: ${var.project_display_name} + enable_pg_native_login: false + pg_version: 16 + custom_tags: + - key: application + value: cbioportal-tile-server + - key: component + value: annotations + - key: environment + value: ${bundle.target} + + postgres_branches: + annotations_branch: + branch_id: ${var.branch_id} + parent: projects/${var.project_id} + no_expiry: true + + postgres_endpoints: + annotations_rw: + endpoint_id: ${var.endpoint_id} + parent: projects/${var.project_id}/branches/${var.branch_id} + endpoint_type: ENDPOINT_TYPE_READ_WRITE + autoscaling_limit_min_cu: 0.5 + autoscaling_limit_max_cu: 2.0 diff --git a/pyproject.toml b/pyproject.toml index 1b9f25a..70eaf1e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,6 +38,7 @@ dependencies = [ # Annotation API — JWT validation + async SQLite "python-jose[cryptography]>=3.3.0", "aiosqlite>=0.20.0", + "asyncpg>=0.30.0", # HTTP client for JWKS fetch in auth.py "httpx>=0.27", ] diff --git a/uv.lock b/uv.lock index 495e991..acf92f8 100644 --- a/uv.lock +++ b/uv.lock @@ -228,6 +228,54 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/fe/ba/e2081de779ca30d473f21f5b30e0e737c438205440784c7dfc81efc2b029/async_timeout-5.0.1-py3-none-any.whl", hash = "sha256:39e3809566ff85354557ec2398b55e096c8364bacac9405a7a1fa429e77fe76c", size = 6233, upload-time = "2024-11-06T16:41:37.9Z" }, ] +[[package]] +name = "asyncpg" +version = "0.31.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fe/cc/d18065ce2380d80b1bcce927c24a2642efd38918e33fd724bc4bca904877/asyncpg-0.31.0.tar.gz", hash = "sha256:c989386c83940bfbd787180f2b1519415e2d3d6277a70d9d0f0145ac73500735", size = 993667, upload-time = "2025-11-24T23:27:00.812Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/08/17/cc02bc49bc350623d050fa139e34ea512cd6e020562f2a7312a7bcae4bc9/asyncpg-0.31.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:eee690960e8ab85063ba93af2ce128c0f52fd655fdff9fdb1a28df01329f031d", size = 643159, upload-time = "2025-11-24T23:25:36.443Z" }, + { url = "https://files.pythonhosted.org/packages/a4/62/4ded7d400a7b651adf06f49ea8f73100cca07c6df012119594d1e3447aa6/asyncpg-0.31.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2657204552b75f8288de08ca60faf4a99a65deef3a71d1467454123205a88fab", size = 638157, upload-time = "2025-11-24T23:25:37.89Z" }, + { url = "https://files.pythonhosted.org/packages/d6/5b/4179538a9a72166a0bf60ad783b1ef16efb7960e4d7b9afe9f77a5551680/asyncpg-0.31.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a429e842a3a4b4ea240ea52d7fe3f82d5149853249306f7ff166cb9948faa46c", size = 2918051, upload-time = "2025-11-24T23:25:39.461Z" }, + { url = "https://files.pythonhosted.org/packages/e6/35/c27719ae0536c5b6e61e4701391ffe435ef59539e9360959240d6e47c8c8/asyncpg-0.31.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c0807be46c32c963ae40d329b3a686356e417f674c976c07fa49f1b30303f109", size = 2972640, upload-time = "2025-11-24T23:25:41.512Z" }, + { url = "https://files.pythonhosted.org/packages/43/f4/01ebb9207f29e645a64699b9ce0eefeff8e7a33494e1d29bb53736f7766b/asyncpg-0.31.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:e5d5098f63beeae93512ee513d4c0c53dc12e9aa2b7a1af5a81cddf93fe4e4da", size = 2851050, upload-time = "2025-11-24T23:25:43.153Z" }, + { url = "https://files.pythonhosted.org/packages/3e/f4/03ff1426acc87be0f4e8d40fa2bff5c3952bef0080062af9efc2212e3be8/asyncpg-0.31.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:37fc6c00a814e18eef51833545d1891cac9aa69140598bb076b4cd29b3e010b9", size = 2962574, upload-time = "2025-11-24T23:25:44.942Z" }, + { url = "https://files.pythonhosted.org/packages/c7/39/cc788dfca3d4060f9d93e67be396ceec458dfc429e26139059e58c2c244d/asyncpg-0.31.0-cp311-cp311-win32.whl", hash = "sha256:5a4af56edf82a701aece93190cc4e094d2df7d33f6e915c222fb09efbb5afc24", size = 521076, upload-time = "2025-11-24T23:25:46.486Z" }, + { url = "https://files.pythonhosted.org/packages/28/fc/735af5384c029eb7f1ca60ccb8fa95521dbdaeef788edf4cecfc604c3cab/asyncpg-0.31.0-cp311-cp311-win_amd64.whl", hash = "sha256:480c4befbdf079c14c9ca43c8c5e1fe8b6296c96f1f927158d4f1e750aacc047", size = 584980, upload-time = "2025-11-24T23:25:47.938Z" }, + { url = "https://files.pythonhosted.org/packages/2a/a6/59d0a146e61d20e18db7396583242e32e0f120693b67a8de43f1557033e2/asyncpg-0.31.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b44c31e1efc1c15188ef183f287c728e2046abb1d26af4d20858215d50d91fad", size = 662042, upload-time = "2025-11-24T23:25:49.578Z" }, + { url = "https://files.pythonhosted.org/packages/36/01/ffaa189dcb63a2471720615e60185c3f6327716fdc0fc04334436fbb7c65/asyncpg-0.31.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0c89ccf741c067614c9b5fc7f1fc6f3b61ab05ae4aaa966e6fd6b93097c7d20d", size = 638504, upload-time = "2025-11-24T23:25:51.501Z" }, + { url = "https://files.pythonhosted.org/packages/9f/62/3f699ba45d8bd24c5d65392190d19656d74ff0185f42e19d0bbd973bb371/asyncpg-0.31.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:12b3b2e39dc5470abd5e98c8d3373e4b1d1234d9fbdedf538798b2c13c64460a", size = 3426241, upload-time = "2025-11-24T23:25:53.278Z" }, + { url = "https://files.pythonhosted.org/packages/8c/d1/a867c2150f9c6e7af6462637f613ba67f78a314b00db220cd26ff559d532/asyncpg-0.31.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:aad7a33913fb8bcb5454313377cc330fbb19a0cd5faa7272407d8a0c4257b671", size = 3520321, upload-time = "2025-11-24T23:25:54.982Z" }, + { url = "https://files.pythonhosted.org/packages/7a/1a/cce4c3f246805ecd285a3591222a2611141f1669d002163abef999b60f98/asyncpg-0.31.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3df118d94f46d85b2e434fd62c84cb66d5834d5a890725fe625f498e72e4d5ec", size = 3316685, upload-time = "2025-11-24T23:25:57.43Z" }, + { url = "https://files.pythonhosted.org/packages/40/ae/0fc961179e78cc579e138fad6eb580448ecae64908f95b8cb8ee2f241f67/asyncpg-0.31.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:bd5b6efff3c17c3202d4b37189969acf8927438a238c6257f66be3c426beba20", size = 3471858, upload-time = "2025-11-24T23:25:59.636Z" }, + { url = "https://files.pythonhosted.org/packages/52/b2/b20e09670be031afa4cbfabd645caece7f85ec62d69c312239de568e058e/asyncpg-0.31.0-cp312-cp312-win32.whl", hash = "sha256:027eaa61361ec735926566f995d959ade4796f6a49d3bde17e5134b9964f9ba8", size = 527852, upload-time = "2025-11-24T23:26:01.084Z" }, + { url = "https://files.pythonhosted.org/packages/b5/f0/f2ed1de154e15b107dc692262395b3c17fc34eafe2a78fc2115931561730/asyncpg-0.31.0-cp312-cp312-win_amd64.whl", hash = "sha256:72d6bdcbc93d608a1158f17932de2321f68b1a967a13e014998db87a72ed3186", size = 597175, upload-time = "2025-11-24T23:26:02.564Z" }, + { url = "https://files.pythonhosted.org/packages/95/11/97b5c2af72a5d0b9bc3fa30cd4b9ce22284a9a943a150fdc768763caf035/asyncpg-0.31.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:c204fab1b91e08b0f47e90a75d1b3c62174dab21f670ad6c5d0f243a228f015b", size = 661111, upload-time = "2025-11-24T23:26:04.467Z" }, + { url = "https://files.pythonhosted.org/packages/1b/71/157d611c791a5e2d0423f09f027bd499935f0906e0c2a416ce712ba51ef3/asyncpg-0.31.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:54a64f91839ba59008eccf7aad2e93d6e3de688d796f35803235ea1c4898ae1e", size = 636928, upload-time = "2025-11-24T23:26:05.944Z" }, + { url = "https://files.pythonhosted.org/packages/2e/fc/9e3486fb2bbe69d4a867c0b76d68542650a7ff1574ca40e84c3111bb0c6e/asyncpg-0.31.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c0e0822b1038dc7253b337b0f3f676cadc4ac31b126c5d42691c39691962e403", size = 3424067, upload-time = "2025-11-24T23:26:07.957Z" }, + { url = "https://files.pythonhosted.org/packages/12/c6/8c9d076f73f07f995013c791e018a1cd5f31823c2a3187fc8581706aa00f/asyncpg-0.31.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bef056aa502ee34204c161c72ca1f3c274917596877f825968368b2c33f585f4", size = 3518156, upload-time = "2025-11-24T23:26:09.591Z" }, + { url = "https://files.pythonhosted.org/packages/ae/3b/60683a0baf50fbc546499cfb53132cb6835b92b529a05f6a81471ab60d0c/asyncpg-0.31.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0bfbcc5b7ffcd9b75ab1558f00db2ae07db9c80637ad1b2469c43df79d7a5ae2", size = 3319636, upload-time = "2025-11-24T23:26:11.168Z" }, + { url = "https://files.pythonhosted.org/packages/50/dc/8487df0f69bd398a61e1792b3cba0e47477f214eff085ba0efa7eac9ce87/asyncpg-0.31.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:22bc525ebbdc24d1261ecbf6f504998244d4e3be1721784b5f64664d61fbe602", size = 3472079, upload-time = "2025-11-24T23:26:13.164Z" }, + { url = "https://files.pythonhosted.org/packages/13/a1/c5bbeeb8531c05c89135cb8b28575ac2fac618bcb60119ee9696c3faf71c/asyncpg-0.31.0-cp313-cp313-win32.whl", hash = "sha256:f890de5e1e4f7e14023619399a471ce4b71f5418cd67a51853b9910fdfa73696", size = 527606, upload-time = "2025-11-24T23:26:14.78Z" }, + { url = "https://files.pythonhosted.org/packages/91/66/b25ccb84a246b470eb943b0107c07edcae51804912b824054b3413995a10/asyncpg-0.31.0-cp313-cp313-win_amd64.whl", hash = "sha256:dc5f2fa9916f292e5c5c8b2ac2813763bcd7f58e130055b4ad8a0531314201ab", size = 596569, upload-time = "2025-11-24T23:26:16.189Z" }, + { url = "https://files.pythonhosted.org/packages/3c/36/e9450d62e84a13aea6580c83a47a437f26c7ca6fa0f0fd40b6670793ea30/asyncpg-0.31.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:f6b56b91bb0ffc328c4e3ed113136cddd9deefdf5f79ab448598b9772831df44", size = 660867, upload-time = "2025-11-24T23:26:17.631Z" }, + { url = "https://files.pythonhosted.org/packages/82/4b/1d0a2b33b3102d210439338e1beea616a6122267c0df459ff0265cd5807a/asyncpg-0.31.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:334dec28cf20d7f5bb9e45b39546ddf247f8042a690bff9b9573d00086e69cb5", size = 638349, upload-time = "2025-11-24T23:26:19.689Z" }, + { url = "https://files.pythonhosted.org/packages/41/aa/e7f7ac9a7974f08eff9183e392b2d62516f90412686532d27e196c0f0eeb/asyncpg-0.31.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:98cc158c53f46de7bb677fd20c417e264fc02b36d901cc2a43bd6cb0dc6dbfd2", size = 3410428, upload-time = "2025-11-24T23:26:21.275Z" }, + { url = "https://files.pythonhosted.org/packages/6f/de/bf1b60de3dede5c2731e6788617a512bc0ebd9693eac297ee74086f101d7/asyncpg-0.31.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9322b563e2661a52e3cdbc93eed3be7748b289f792e0011cb2720d278b366ce2", size = 3471678, upload-time = "2025-11-24T23:26:23.627Z" }, + { url = "https://files.pythonhosted.org/packages/46/78/fc3ade003e22d8bd53aaf8f75f4be48f0b460fa73738f0391b9c856a9147/asyncpg-0.31.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:19857a358fc811d82227449b7ca40afb46e75b33eb8897240c3839dd8b744218", size = 3313505, upload-time = "2025-11-24T23:26:25.235Z" }, + { url = "https://files.pythonhosted.org/packages/bf/e9/73eb8a6789e927816f4705291be21f2225687bfa97321e40cd23055e903a/asyncpg-0.31.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ba5f8886e850882ff2c2ace5732300e99193823e8107e2c53ef01c1ebfa1e85d", size = 3434744, upload-time = "2025-11-24T23:26:26.944Z" }, + { url = "https://files.pythonhosted.org/packages/08/4b/f10b880534413c65c5b5862f79b8e81553a8f364e5238832ad4c0af71b7f/asyncpg-0.31.0-cp314-cp314-win32.whl", hash = "sha256:cea3a0b2a14f95834cee29432e4ddc399b95700eb1d51bbc5bfee8f31fa07b2b", size = 532251, upload-time = "2025-11-24T23:26:28.404Z" }, + { url = "https://files.pythonhosted.org/packages/d3/2d/7aa40750b7a19efa5d66e67fc06008ca0f27ba1bd082e457ad82f59aba49/asyncpg-0.31.0-cp314-cp314-win_amd64.whl", hash = "sha256:04d19392716af6b029411a0264d92093b6e5e8285ae97a39957b9a9c14ea72be", size = 604901, upload-time = "2025-11-24T23:26:30.34Z" }, + { url = "https://files.pythonhosted.org/packages/ce/fe/b9dfe349b83b9dee28cc42360d2c86b2cdce4cb551a2c2d27e156bcac84d/asyncpg-0.31.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:bdb957706da132e982cc6856bb2f7b740603472b54c3ebc77fe60ea3e57e1bd2", size = 702280, upload-time = "2025-11-24T23:26:32Z" }, + { url = "https://files.pythonhosted.org/packages/6a/81/e6be6e37e560bd91e6c23ea8a6138a04fd057b08cf63d3c5055c98e81c1d/asyncpg-0.31.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:6d11b198111a72f47154fa03b85799f9be63701e068b43f84ac25da0bda9cb31", size = 682931, upload-time = "2025-11-24T23:26:33.572Z" }, + { url = "https://files.pythonhosted.org/packages/a6/45/6009040da85a1648dd5bc75b3b0a062081c483e75a1a29041ae63a0bf0dc/asyncpg-0.31.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:18c83b03bc0d1b23e6230f5bf8d4f217dc9bc08644ce0502a9d91dc9e634a9c7", size = 3581608, upload-time = "2025-11-24T23:26:35.638Z" }, + { url = "https://files.pythonhosted.org/packages/7e/06/2e3d4d7608b0b2b3adbee0d0bd6a2d29ca0fc4d8a78f8277df04e2d1fd7b/asyncpg-0.31.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e009abc333464ff18b8f6fd146addffd9aaf63e79aa3bb40ab7a4c332d0c5e9e", size = 3498738, upload-time = "2025-11-24T23:26:37.275Z" }, + { url = "https://files.pythonhosted.org/packages/7d/aa/7d75ede780033141c51d83577ea23236ba7d3a23593929b32b49db8ed36e/asyncpg-0.31.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:3b1fbcb0e396a5ca435a8826a87e5c2c2cc0c8c68eb6fadf82168056b0e53a8c", size = 3401026, upload-time = "2025-11-24T23:26:39.423Z" }, + { url = "https://files.pythonhosted.org/packages/ba/7a/15e37d45e7f7c94facc1e9148c0e455e8f33c08f0b8a0b1deb2c5171771b/asyncpg-0.31.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8df714dba348efcc162d2adf02d213e5fab1bd9f557e1305633e851a61814a7a", size = 3429426, upload-time = "2025-11-24T23:26:41.032Z" }, + { url = "https://files.pythonhosted.org/packages/13/d5/71437c5f6ae5f307828710efbe62163974e71237d5d46ebd2869ea052d10/asyncpg-0.31.0-cp314-cp314t-win32.whl", hash = "sha256:1b41f1afb1033f2b44f3234993b15096ddc9cd71b21a42dbd87fc6a57b43d65d", size = 614495, upload-time = "2025-11-24T23:26:42.659Z" }, + { url = "https://files.pythonhosted.org/packages/3c/d7/8fb3044eaef08a310acfe23dae9a8e2e07d305edc29a53497e52bc76eca7/asyncpg-0.31.0-cp314-cp314t-win_amd64.whl", hash = "sha256:bd4107bb7cdd0e9e65fae66a62afd3a249663b844fa34d479f6d5b3bef9c04c3", size = 706062, upload-time = "2025-11-24T23:26:44.086Z" }, +] + [[package]] name = "attrs" version = "26.1.0" @@ -298,6 +346,7 @@ version = "0.1.0" source = { editable = "." } dependencies = [ { name = "aiosqlite" }, + { name = "asyncpg" }, { name = "boto3" }, { name = "fastapi" }, { name = "fsspec" }, @@ -325,6 +374,7 @@ dev = [ [package.metadata] requires-dist = [ { name = "aiosqlite", specifier = ">=0.20.0" }, + { name = "asyncpg", specifier = ">=0.30.0" }, { name = "boto3", specifier = ">=1.34.0" }, { name = "fastapi", specifier = ">=0.111.0" }, { name = "fsspec", specifier = ">=2024.3.0" }, From a84278b463540ae6df8b700e67d48b46600ead2f Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 26 Jun 2026 14:19:26 -0400 Subject: [PATCH 06/33] Configure Lakebase annotation DSN --- README.md | 5 +++++ app/config.py | 19 +++---------------- docker-compose.yml | 4 ++++ tests/test_config.py | 27 ++++++++++++++++++++++++++- tools/write_dev_env.py | 9 +++++++++ 5 files changed, 47 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index df6c7af..064ca2d 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,11 @@ optional Redis cache: | `GUNICORN_TIMEOUT` | `180` | Worker request timeout for long cold-slide reads | | `BLOCKCACHE_PATH` | — | Optional local range-read cache | | `CORS_ORIGINS` | internal cBioPortal origins | Allowed browser origins | +| `ANNOTATION_DATABASE_URL` | — | Optional Postgres/Lakebase DSN for annotation storage | +| `ANNOTATION_DB_PATH` | `/data/annotations.db` | SQLite path used when `ANNOTATION_DATABASE_URL` is unset | +| `KEYCLOAK_JWKS_URL` | — | Keycloak JWKS endpoint for annotation authentication | +| `ANNOTATION_AUTH_ENABLED` | `true` | Enable Keycloak authentication for annotation requests | +| `ONCOKB_API_TOKEN` | — | Optional OncoKB token for annotation enrichment | | `WSI_THUMBNAIL_REGISTRY_TABLE` | `cdsi_prod.pathology_data_mining.slide_thumbnail_registry` | Three-part Unity Catalog table used by the offline thumbnail publisher | | `WSI_CANONICAL_ASSOCIATION_TABLE` | `cdsi_prod.pathology_data_mining.canonical_slide_associations` | Three-part table read by metadata and export tooling | | `WSI_SUMMARY_TABLE` | `cdsi_prod.pathology_data_mining.sample_wsi_summary` | Three-part summary table used by clinical-file tooling | diff --git a/app/config.py b/app/config.py index f6b935c..0786545 100644 --- a/app/config.py +++ b/app/config.py @@ -53,7 +53,6 @@ def _env_json_file_map(name: str) -> dict[str, str]: @dataclass class Settings: - # WSI request authentication wsi_auth_secret: str = field(default_factory=lambda: _env_str("WSI_AUTH_SECRET")) wsi_auth_audience: str = field(default_factory=lambda: _env_str("WSI_AUTH_AUDIENCE", "cbioportal-wsi")) # Deprecated compatibility setting. Pixel routes always require a v2 @@ -65,12 +64,10 @@ class Settings: ) wsi_study_mapping_table: str = field(default_factory=lambda: _env_str("WSI_STUDY_MAPPING_TABLE")) - # S3 / Dell ECS connection aws_endpoint_url: str = field(default_factory=lambda: _env_str("AWS_ENDPOINT_URL", _aws_profile("endpoint_url", ""))) aws_access_key_id: str = field(default_factory=lambda: _env_str("AWS_ACCESS_KEY_ID", _aws_profile("aws_access_key_id"))) aws_secret_access_key: str = field(default_factory=lambda: _env_str("AWS_SECRET_ACCESS_KEY", _aws_profile("aws_secret_access_key"))) - # Tile settings tile_size: int = field(default_factory=lambda: _env_int("TILE_SIZE", 256)) jpeg_quality: int = field(default_factory=lambda: _env_int("JPEG_QUALITY", 85)) max_decode_pixels: int = field(default_factory=lambda: _env_int("MAX_DECODE_PIXELS", 16_777_216)) @@ -183,13 +180,9 @@ class Settings: default_factory=lambda: _env_bool("USE_CANONICAL_ASSOCIATION_TABLE", True) ) allow_legacy_association_fallback: bool = field( - default_factory=lambda: _env_bool("ALLOW_LEGACY_ASSOCIATION_FALLBACK", True) + default_factory=lambda: _env_bool("ALLOW_LEGACY_ASSOCIATION_FALLBACK", False) ) - - # Metadata cache patient_cache_ttl: int = field(default_factory=lambda: _env_int("PATIENT_CACHE_TTL", 86_400)) - - # Block cache blockcache_path: str = field(default_factory=lambda: _env_str("BLOCKCACHE_PATH", "")) blockcache_block_size: int = field(default_factory=lambda: _env_int("BLOCKCACHE_BLOCK_SIZE", 8 * 1024 * 1024)) blockcache_max_bytes: int = field(default_factory=lambda: _env_int("BLOCKCACHE_MAX_BYTES", 0)) @@ -201,18 +194,12 @@ class Settings: test_slide_map_file: str = field(default_factory=lambda: _env_str("WSI_TEST_SLIDE_MAP_FILE", "")) test_slide_map: dict[str, str] = field(default_factory=lambda: _env_json_file_map("WSI_TEST_SLIDE_MAP_FILE")) - # Annotation API annotation_database_url: str = field(default_factory=lambda: _env_str("ANNOTATION_DATABASE_URL")) - annotation_db_path: str = field( - default_factory=lambda: _env_str("ANNOTATION_DB_PATH", "/data/annotations.db") - ) + annotation_db_path: str = field(default_factory=lambda: _env_str("ANNOTATION_DB_PATH", "/data/annotations.db")) keycloak_jwks_url: str = field(default_factory=lambda: _env_str("KEYCLOAK_JWKS_URL")) - annotation_auth_enabled: bool = field( - default_factory=lambda: _env_bool("ANNOTATION_AUTH_ENABLED", True) - ) + annotation_auth_enabled: bool = field(default_factory=lambda: _env_bool("ANNOTATION_AUTH_ENABLED", True)) oncokb_api_token: str = field(default_factory=lambda: _env_str("ONCOKB_API_TOKEN")) - # CORS cors_origins: list[str] = field( default_factory=lambda: _env_csv( "CORS_ORIGINS", diff --git a/docker-compose.yml b/docker-compose.yml index 96104e2..b0b06a7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -51,7 +51,11 @@ services: # ── CORS — add the viewer origin so the browser can reach tile APIs ─── CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:8080,http://localhost:3000,https://cbioportal.mskcc.org,https://triage.cbioportal.mskcc.org} + # ── OncoKB — register at oncokb.org/account/settings to get a token ── + ONCOKB_API_TOKEN: ${ONCOKB_API_TOKEN:-} + # ── Annotation API ──────────────────────────────────────────────────── + ANNOTATION_DATABASE_URL: ${ANNOTATION_DATABASE_URL:-} ANNOTATION_DB_PATH: /data/annotations.db KEYCLOAK_JWKS_URL: ${KEYCLOAK_JWKS_URL:-} ANNOTATION_AUTH_ENABLED: ${ANNOTATION_AUTH_ENABLED:-true} diff --git a/tests/test_config.py b/tests/test_config.py index 990b04a..c70cabb 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -20,7 +20,8 @@ def make_settings(**env): "JPEG_", "MAX_", "N_WORKERS", "BLOCKCACHE", "THUMBNAIL_", "METADATA_", "PATH_", "CORS_", "CACHE_", "PATIENT_", "WSI_", - "IMAGE_", "SLIDE_S3_"))} + "IMAGE_", "SLIDE_S3_", "ANNOTATION_", + "KEYCLOAK_"))} clean.update(env) with patch.dict(os.environ, clean, clear=True): with patch("app.config._aws_profile", return_value=""): @@ -127,6 +128,30 @@ def test_databricks_warehouse_id_from_env(self): s = make_settings(DATABRICKS_WAREHOUSE_ID="wh-test-123") assert s.databricks_warehouse_id == "wh-test-123" + def test_use_canonical_association_table_defaults_true(self): + s = make_settings() + assert s.use_canonical_association_table is True + + def test_use_canonical_association_table_can_be_disabled(self): + s = make_settings(USE_CANONICAL_ASSOCIATION_TABLE="false") + assert s.use_canonical_association_table is False + + def test_allow_legacy_association_fallback_defaults_false(self): + s = make_settings() + assert s.allow_legacy_association_fallback is False + + def test_allow_legacy_association_fallback_can_be_disabled(self): + s = make_settings(ALLOW_LEGACY_ASSOCIATION_FALLBACK="false") + assert s.allow_legacy_association_fallback is False + + def test_allow_legacy_association_fallback_can_be_enabled(self): + s = make_settings(ALLOW_LEGACY_ASSOCIATION_FALLBACK="true") + assert s.allow_legacy_association_fallback is True + + def test_annotation_database_url_from_env(self): + s = make_settings(ANNOTATION_DATABASE_URL="postgresql://user:pass@host/db") + assert s.annotation_database_url == "postgresql://user:pass@host/db" + def test_cors_origins_parsed(self): s = make_settings(CORS_ORIGINS="https://a.example.com,https://b.example.com") assert s.cors_origins == ["https://a.example.com", "https://b.example.com"] diff --git a/tools/write_dev_env.py b/tools/write_dev_env.py index f9327ef..725ecd3 100644 --- a/tools/write_dev_env.py +++ b/tools/write_dev_env.py @@ -84,6 +84,15 @@ def main(argv: list[str] | None = None) -> None: "WSI_STAIN_CLASSIFICATION_TABLE=cdsi_dev.wsi_test.slide_stain_classification", "THUMBNAIL_ARTIFACT_ROOT_URI=s3://mskmind-bkt/wsi-thumbnails-dev/masters", "THUMBNAIL_MANIFEST_URI=s3://mskmind-bkt/wsi-thumbnails-dev/manifest.json", + "ANNOTATION_DB_PATH=/data/annotations.db", + "# Optional: point annotations at Lakebase/Postgres instead of local SQLite.", + "# ANNOTATION_DATABASE_URL=postgresql://:@:5432/?sslmode=require", + "ANNOTATION_AUTH_ENABLED=true", + "KEYCLOAK_JWKS_URL=", + "", + "# ── OncoKB ────────────────────────────────────────────────────────", + "# Register at https://www.oncokb.org/account/settings to obtain a token.", + "ONCOKB_API_TOKEN=", ] output = args.output.expanduser().resolve() _write_secure(output, "\n".join(lines) + "\n") From 4ba68667d04847b0d481d6944999a807067825b7 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 26 Jun 2026 13:40:05 -0400 Subject: [PATCH 07/33] Add Lakebase annotation bundle --- README.md | 6 ++ databricks/lakebase/README.md | 95 ++++++++++++++++++++++ databricks/lakebase/databricks.yml | 1 - databricks/lakebase/resources/lakebase.yml | 3 + docs/runbook.md | 6 ++ 5 files changed, 110 insertions(+), 1 deletion(-) create mode 100644 databricks/lakebase/README.md diff --git a/README.md b/README.md index 064ca2d..c94372e 100644 --- a/README.md +++ b/README.md @@ -306,3 +306,9 @@ The repository must provide the `DOCKER_HUB_USERNAME` and digest printed by the workflow (`@sha256:...`), not a mutable tag. The workflow does not publish from pull requests or expose registry credentials to fork builds. + +## Databricks bundles + +- Root [databricks.yml](databricks.yml) manages the nightly WSI summary pipeline job. +- [databricks/lakebase/README.md](databricks/lakebase/README.md) documents the + separate Lakebase bundle used to provision annotation storage. diff --git a/databricks/lakebase/README.md b/databricks/lakebase/README.md new file mode 100644 index 0000000..c0651ec --- /dev/null +++ b/databricks/lakebase/README.md @@ -0,0 +1,95 @@ +# Lakebase provisioning for annotation storage + +This bundle provisions the shared Lakebase resources that should back +annotation CRUD for the tile server: + +- one Lakebase Autoscaling project +- one long-lived development branch +- one read-write endpoint for that branch + +It is intentionally separate from the root `databricks.yml` bundle, which +manages the nightly WSI summary job. Annotation OLTP infrastructure should stay +isolated from the batch SQL job definition. + +## Why this shape + +For this feature, a shared development project is the right default: + +- it avoids adding another stateful service to the Kubernetes stack +- it keeps annotation storage on standard Postgres semantics +- it matches Lakebase's project/branch/endpoint model +- it leaves room for short-lived feature branches later without provisioning a + new server per PR + +## What this bundle creates + +The bundle declares: + +- `postgres_projects.annotations` +- `postgres_branches.annotations_branch` +- `postgres_endpoints.annotations_rw` + +It does **not** create a Postgres role, because the current bundle schema does +not expose a `postgres_roles` resource. Create the application role as a +follow-up CLI step after the project exists. + +## Prerequisites + +- Databricks CLI installed and authenticated +- a workspace profile with Lakebase permissions, for example `dev` +- a Databricks service principal that the backend will use + +## Validate + +From this directory: + +```bash +databricks bundle validate \ + --profile dev \ + --target dev \ + --var="service_principal_name=" +``` + +## Deploy + +```bash +databricks bundle deploy \ + --profile dev \ + --target dev \ + --var="service_principal_name=" +``` + +If you need a different project or branch name: + +```bash +databricks bundle deploy \ + --profile dev \ + --target dev \ + --var="service_principal_name=" \ + --var="project_id=cbioportal-annotations-dev" \ + --var="project_display_name=cBioPortal Annotations Dev" \ + --var="branch_id=dev" \ + --var="endpoint_id=primary" +``` + +## Post-deploy role creation + +Create a database role for the backend identity on the deployed branch: + +```bash +databricks postgres create-role \ + "projects//branches/" \ + --profile dev \ + --role-id cbioportal-api +``` + +Then connect to the branch database and grant only the schema/table privileges +the annotation service needs. + +## Operational notes + +- Keep `enable_pg_native_login: false` unless you explicitly need password + authentication. +- Treat this as shared dev infrastructure. Do not provision one project per PR. +- If a PR needs isolated data, create a short-lived branch from the shared + project instead of another standalone server. diff --git a/databricks/lakebase/databricks.yml b/databricks/lakebase/databricks.yml index 8783d87..619cac4 100644 --- a/databricks/lakebase/databricks.yml +++ b/databricks/lakebase/databricks.yml @@ -19,7 +19,6 @@ variables: default: primary service_principal_name: description: Databricks service principal that should manage the project. - default: "" targets: dev: diff --git a/databricks/lakebase/resources/lakebase.yml b/databricks/lakebase/resources/lakebase.yml index 4b95523..fbed526 100644 --- a/databricks/lakebase/resources/lakebase.yml +++ b/databricks/lakebase/resources/lakebase.yml @@ -12,6 +12,9 @@ resources: value: annotations - key: environment value: ${bundle.target} + permissions: + - level: CAN_MANAGE + service_principal_name: ${var.service_principal_name} postgres_branches: annotations_branch: diff --git a/docs/runbook.md b/docs/runbook.md index 3055d77..7eea069 100644 --- a/docs/runbook.md +++ b/docs/runbook.md @@ -156,3 +156,9 @@ outside the API process and on a schedule. It writes immutable artifacts and registry rows; a successful batch must be followed by the Databricks canonical refresh, study-file export, and cBioPortal core study import before a slide becomes servable. + +## Databricks bundles + +The root `databricks.yml` manages the nightly WSI summary pipeline. The +`databricks/lakebase/` bundle provisions the separate Lakebase/Postgres +annotation store and must remain isolated from the batch SQL job bundle. From 654635b3203477267a08aa958152652d06785669 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Tue, 7 Jul 2026 13:27:08 -0400 Subject: [PATCH 08/33] Add OncoKB proxy endpoints for WSI viewer --- app/oncokb.py | 117 +++++++++++++++++++++++++++++++++ tests/test_oncokb.py | 149 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 266 insertions(+) create mode 100644 app/oncokb.py create mode 100644 tests/test_oncokb.py diff --git a/app/oncokb.py b/app/oncokb.py new file mode 100644 index 0000000..1abcb21 --- /dev/null +++ b/app/oncokb.py @@ -0,0 +1,117 @@ +""" +OncoKB annotation proxy - forwards mutation annotation requests to OncoKB. + +Uses the public API (public.api.oncokb.org) when no token is configured, +which returns oncogenicity, mutation effect, hotspot, geneSummary, and +variantSummary for free. Set ONCOKB_API_TOKEN for the licensed API +(adds treatment/therapy data). + +This endpoint exists so the WSI viewer (different origin from cBioPortal) +can obtain OncoKB annotations without CORS issues. +""" + +from __future__ import annotations + +import logging +from typing import Any, Optional + +import httpx +from fastapi import APIRouter, HTTPException +from pydantic import BaseModel + +from .config import settings + +log = logging.getLogger(__name__) + +router = APIRouter() + +ONCOKB_PUBLIC_URL = ( + "https://public.api.oncokb.org/api/v1/annotate/mutations/byProteinChange" +) +ONCOKB_LICENSED_URL = ( + "https://www.oncokb.org/api/v1/annotate/mutations/byProteinChange" +) +ONCOKB_PUBLIC_CNA_URL = ( + "https://public.api.oncokb.org/api/v1/annotate/copyNumberAlterations" +) +ONCOKB_LICENSED_CNA_URL = ( + "https://www.oncokb.org/api/v1/annotate/copyNumberAlterations" +) + + +class _Gene(BaseModel): + entrezGeneId: int + + +class OncoKbMutationItem(BaseModel): + id: str + alteration: str + consequence: Optional[str] = None + gene: _Gene + proteinStart: Optional[int] = None + proteinEnd: Optional[int] = None + tumorType: Optional[str] = None + + +class OncoKbCopyNumberItem(BaseModel): + id: str + copyNameAlterationType: str + gene: _Gene + referenceGenome: str = "GRCh37" + tumorType: Optional[str] = None + + +async def _post_oncokb( + items: list[dict[str, Any]], + *, + public_url: str, + licensed_url: str, +) -> Any: + token = settings.oncokb_api_token + url = licensed_url if token else public_url + headers: dict[str, str] = { + "Content-Type": "application/json", + "Accept": "application/json", + } + if token: + headers["Authorization"] = f"Bearer {token}" + + try: + async with httpx.AsyncClient(timeout=15) as client: + resp = await client.post(url, headers=headers, json=items) + except httpx.TimeoutException: + raise HTTPException(status_code=504, detail="OncoKB request timed out.") + except httpx.RequestError as exc: + log.warning("OncoKB request failed: %s", exc) + raise HTTPException(status_code=502, detail="Could not reach OncoKB API.") + + if not resp.is_success: + log.warning("OncoKB returned %s: %s", resp.status_code, resp.text[:200]) + raise HTTPException( + status_code=resp.status_code, + detail=f"OncoKB API error ({resp.status_code}).", + ) + + return resp.json() + + +@router.post("/api/oncokb/annotate") +async def oncokb_annotate(items: list[OncoKbMutationItem]) -> Any: + if not items: + return [] + return await _post_oncokb( + [item.model_dump() for item in items], + public_url=ONCOKB_PUBLIC_URL, + licensed_url=ONCOKB_LICENSED_URL, + ) + + +@router.post("/api/oncokb/annotate-copy-number") +async def oncokb_annotate_copy_number(items: list[OncoKbCopyNumberItem]) -> Any: + if not items: + return [] + return await _post_oncokb( + [item.model_dump() for item in items], + public_url=ONCOKB_PUBLIC_CNA_URL, + licensed_url=ONCOKB_LICENSED_CNA_URL, + ) diff --git a/tests/test_oncokb.py b/tests/test_oncokb.py new file mode 100644 index 0000000..bc8f352 --- /dev/null +++ b/tests/test_oncokb.py @@ -0,0 +1,149 @@ +from unittest.mock import patch + +import httpx + +from app.oncokb import ( + ONCOKB_LICENSED_CNA_URL, + ONCOKB_LICENSED_URL, + ONCOKB_PUBLIC_CNA_URL, + ONCOKB_PUBLIC_URL, + OncoKbCopyNumberItem, + OncoKbMutationItem, + oncokb_annotate, + oncokb_annotate_copy_number, +) + + +class _MockResponse: + def __init__(self, payload, status_code=200, text="ok"): + self._payload = payload + self.status_code = status_code + self.text = text + + @property + def is_success(self): + return 200 <= self.status_code < 300 + + def json(self): + return self._payload + + +class _MockAsyncClient: + def __init__(self, recorder): + self._recorder = recorder + + async def __aenter__(self): + return self + + async def __aexit__(self, exc_type, exc, tb): + return None + + async def post(self, url, headers=None, json=None): + self._recorder.append({"url": url, "headers": headers, "json": json}) + return _MockResponse([{"ok": True}]) + + +class TestOncoKbRoutes: + async def test_mutation_route_uses_public_api_without_token(self): + calls = [] + + with ( + patch("app.oncokb.settings.oncokb_api_token", ""), + patch( + "app.oncokb.httpx.AsyncClient", + side_effect=lambda timeout: _MockAsyncClient(calls), + ), + ): + response = await oncokb_annotate( + [OncoKbMutationItem(id="m1", alteration="V600E", gene={"entrezGeneId": 673})] + ) + + assert response == [{"ok": True}] + assert calls[0]["url"] == ONCOKB_PUBLIC_URL + assert "Authorization" not in calls[0]["headers"] + + async def test_copy_number_route_uses_licensed_api_with_token(self): + calls = [] + + with ( + patch("app.oncokb.settings.oncokb_api_token", "secret-token"), + patch( + "app.oncokb.httpx.AsyncClient", + side_effect=lambda timeout: _MockAsyncClient(calls), + ), + ): + response = await oncokb_annotate_copy_number( + [ + OncoKbCopyNumberItem( + id="c1", + copyNameAlterationType="AMPLIFICATION", + gene={"entrezGeneId": 673}, + ) + ] + ) + + assert response == [{"ok": True}] + assert calls[0]["url"] == ONCOKB_LICENSED_CNA_URL + assert calls[0]["headers"]["Authorization"] == "Bearer secret-token" + + async def test_mutation_route_uses_licensed_api_with_token(self): + calls = [] + + with ( + patch("app.oncokb.settings.oncokb_api_token", "secret-token"), + patch( + "app.oncokb.httpx.AsyncClient", + side_effect=lambda timeout: _MockAsyncClient(calls), + ), + ): + await oncokb_annotate( + [OncoKbMutationItem(id="m1", alteration="V600E", gene={"entrezGeneId": 673})] + ) + + assert calls[0]["url"] == ONCOKB_LICENSED_URL + + async def test_copy_number_route_uses_public_api_without_token(self): + calls = [] + + with ( + patch("app.oncokb.settings.oncokb_api_token", ""), + patch( + "app.oncokb.httpx.AsyncClient", + side_effect=lambda timeout: _MockAsyncClient(calls), + ), + ): + await oncokb_annotate_copy_number( + [ + OncoKbCopyNumberItem( + id="c1", + copyNameAlterationType="AMPLIFICATION", + gene={"entrezGeneId": 673}, + ) + ] + ) + + assert calls[0]["url"] == ONCOKB_PUBLIC_CNA_URL + + async def test_oncokb_timeout_maps_to_504(self): + class _TimeoutClient: + async def __aenter__(self): + return self + + async def __aexit__(self, exc_type, exc, tb): + return None + + async def post(self, url, headers=None, json=None): + raise httpx.TimeoutException("timed out") + + with patch( + "app.oncokb.httpx.AsyncClient", + side_effect=lambda timeout: _TimeoutClient(), + ): + try: + await oncokb_annotate( + [OncoKbMutationItem(id="m1", alteration="V600E", gene={"entrezGeneId": 673})] + ) + except Exception as exc: + assert exc.status_code == 504 + else: + raise AssertionError("Expected timeout exception") From 25db43eb9361a628426d09f8db372e151025fae1 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Thu, 23 Jul 2026 16:21:02 -0400 Subject: [PATCH 09/33] feat(annotations): accept scoped WSI capabilities --- app/annotations.py | 8 +++++++ app/auth.py | 53 ++++++++++++++++++++++++++++++++-------------- tests/test_auth.py | 27 +++++++++++++++++++++++ 3 files changed, 72 insertions(+), 16 deletions(-) diff --git a/app/annotations.py b/app/annotations.py index b6811d6..c7f091e 100644 --- a/app/annotations.py +++ b/app/annotations.py @@ -381,6 +381,8 @@ async def list_annotations( study_id: str = Query(..., description="cBioPortal study ID"), user: dict = Depends(require_user), ) -> list[AnnotationOut]: + if user.get("study_id") and user["study_id"] != study_id: + raise HTTPException(status_code=403, detail="Token study scope does not match request") user_sub: str = user["sub"] user_groups: set[str] = set(user["groups"]) if _storage_kind() == "postgres": @@ -395,6 +397,8 @@ async def create_annotation( data: AnnotationIn, user: dict = Depends(require_user), ) -> AnnotationOut: + if user.get("study_id") and user["study_id"] != data.study_id: + raise HTTPException(status_code=403, detail="Token study scope does not match request") if _storage_kind() == "postgres": row = await _create_postgres(data, user["sub"]) else: @@ -415,6 +419,8 @@ async def update_annotation( ) if not existing: raise HTTPException(status_code=404, detail="Annotation not found") + if user.get("study_id") and user["study_id"] != existing["study_id"]: + raise HTTPException(status_code=403, detail="Token study scope does not match annotation") if existing["created_by"] != user["sub"]: raise HTTPException(status_code=403, detail="Only the creator may update this annotation") if existing["version"] != data.version: @@ -463,6 +469,8 @@ async def delete_annotation( ) if not existing: raise HTTPException(status_code=404, detail="Annotation not found") + if user.get("study_id") and user["study_id"] != existing["study_id"]: + raise HTTPException(status_code=403, detail="Token study scope does not match annotation") if existing["created_by"] != user["sub"]: raise HTTPException(status_code=403, detail="Only the creator may delete this annotation") diff --git a/app/auth.py b/app/auth.py index fa10782..dd741ae 100644 --- a/app/auth.py +++ b/app/auth.py @@ -9,7 +9,7 @@ from typing import Any import httpx -from fastapi import Depends, HTTPException, status +from fastapi import Depends, HTTPException, Request, status from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer from jose import JWTError, jwt @@ -47,6 +47,7 @@ def validate_wsi_token( audience: str, max_ttl: int = 300, expected_study_id: str | None = None, + required_scopes: set[str] | None = None, ) -> dict: validate_wsi_auth_configuration(secret, audience, max_ttl) parts = token.split(".") @@ -68,7 +69,9 @@ def validate_wsi_token( if not hmac.compare_digest(expected, _b64decode(encoded_signature)): raise InvalidWsiToken("invalid token signature") now = int(time.time()) - if payload.get("aud") != audience or payload.get("scope") != "wsi:read": + scopes = set(str(payload.get("scope", "")).split()) + required = required_scopes or {"wsi:read"} + if payload.get("aud") != audience or not required.issubset(scopes): raise InvalidWsiToken("invalid token audience or scope") if not isinstance(payload.get("sub"), str) or not payload["sub"]: raise InvalidWsiToken("invalid token subject") @@ -76,19 +79,19 @@ def validate_wsi_token( raise InvalidWsiToken("invalid token study") if expected_study_id is not None and payload["study_id"] != expected_study_id: raise InvalidWsiToken("token study scope does not match request") - if payload.get("wsi_auth_version") != 2: - raise InvalidWsiToken("unsupported WSI authorization contract") - if not isinstance(payload.get("image_id"), str) or not payload["image_id"].strip(): - raise InvalidWsiToken("invalid token image") - for claim in ("tile_source_sha256", "thumbnail_source_sha256"): - value = payload.get(claim) - if not isinstance(value, str) or len(value) != 64 or any(char not in "0123456789abcdef" for char in value): - raise InvalidWsiToken("invalid token source binding") - for claim in ("thumbnail_width", "thumbnail_height"): - value = payload.get(claim) - if type(value) is not int or value <= 0 or value > 8192: - raise InvalidWsiToken("invalid token thumbnail dimensions") - if type(payload.get("exp")) is not int or payload["exp"] <= now: + if "wsi:read" in required: + if payload.get("wsi_auth_version") != 2: + raise InvalidWsiToken("unsupported WSI authorization contract") + if not isinstance(payload.get("image_id"), str) or not payload["image_id"].strip(): + raise InvalidWsiToken("invalid token image") + for claim in ("tile_source_sha256", "thumbnail_source_sha256"): + value = payload.get(claim) + if not isinstance(value, str) or len(value) != 64 or any(char not in "0123456789abcdef" for char in value): + raise InvalidWsiToken("invalid token source binding") + for claim in ("thumbnail_width", "thumbnail_height"): + value = payload.get(claim) + if type(value) is not int or value <= 0 or value > 8192: + raise InvalidWsiToken("invalid token thumbnail dimensions") if type(payload.get("exp")) is not int or payload["exp"] <= now: raise InvalidWsiToken("expired token") if type(payload.get("iat")) is not int or payload["iat"] > now + 60: @@ -129,6 +132,7 @@ async def _get_jwks() -> dict[str, Any]: async def require_user( + request: Request, creds: HTTPAuthorizationCredentials | None = Depends(_bearer), ) -> dict[str, Any]: """Return the authenticated Keycloak subject and groups for annotations.""" @@ -140,6 +144,23 @@ async def require_user( detail="Missing Authorization header", headers={"WWW-Authenticate": "Bearer"}, ) + required_scopes = {"annotations:read"} + if request.method in {"POST", "PUT", "DELETE"}: + required_scopes.add("annotations:write") + try: + capability = validate_wsi_token( + creds.credentials, + settings.wsi_auth_secret, + settings.wsi_auth_audience, + required_scopes=required_scopes, + ) + return { + "sub": capability["sub"], + "groups": [], + "study_id": capability["study_id"], + } + except InvalidWsiToken: + pass try: payload = jwt.decode( creds.credentials, @@ -156,4 +177,4 @@ async def require_user( sub: str = payload.get("sub", "") if not sub: raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="Token missing 'sub' claim") - return {"sub": sub, "groups": payload.get("groups", [])} + return {"sub": sub, "groups": payload.get("groups", []), "study_id": None} diff --git a/tests/test_auth.py b/tests/test_auth.py index 2d9e435..cbb9e21 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -142,3 +142,30 @@ def test_token_lifetime_cannot_exceed_configured_limit(): "cbioportal-wsi", max_ttl=10, ) + + +def test_annotation_capability_requires_both_annotation_scopes(): + secret = "s" * 32 + claims = { + "sub": "u", + "study_id": "coad_msk_2025", + "aud": "cbioportal-wsi", + "scope": "annotations:read annotations:write", + "iat": int(time.time()), + "exp": int(time.time()) + 300, + } + value = validate_wsi_token( + make_token(secret, **claims), + secret, + "cbioportal-wsi", + required_scopes={"annotations:read", "annotations:write"}, + ) + assert value["study_id"] == "coad_msk_2025" + + with pytest.raises(InvalidWsiToken): + validate_wsi_token( + make_token(secret, **{**claims, "scope": "annotations:read"}), + secret, + "cbioportal-wsi", + required_scopes={"annotations:read", "annotations:write"}, + ) From cda00d4bb816f45915066a137c4c790544d7071e Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 28 Aug 2026 17:54:13 -0400 Subject: [PATCH 10/33] test(annotations): cover CRUD and concurrency --- app/annotations.py | 124 +++++++++++++++++++++------ tests/test_annotations.py | 174 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 274 insertions(+), 24 deletions(-) create mode 100644 tests/test_annotations.py diff --git a/app/annotations.py b/app/annotations.py index c7f091e..4bf944b 100644 --- a/app/annotations.py +++ b/app/annotations.py @@ -116,7 +116,9 @@ class AnnotationUpdate(BaseModel): body: AnnotationBody | None = None target: AnnotationTarget | None = None visible_to: list[str] | None = None - version: int = Field(..., description="Must match current version (optimistic lock)") + version: int = Field( + ..., description="Must match current version (optimistic lock)" + ) def _row_to_out(row: dict) -> AnnotationOut: @@ -157,7 +159,9 @@ async def _init_sqlite(path: str) -> None: await db.execute( "CREATE INDEX IF NOT EXISTS idx_ann_slide_study ON annotations(slide_id, study_id)" ) - await db.execute("CREATE INDEX IF NOT EXISTS idx_ann_slide ON annotations(slide_id)") + await db.execute( + "CREATE INDEX IF NOT EXISTS idx_ann_slide ON annotations(slide_id)" + ) await db.commit() @@ -183,7 +187,9 @@ async def _init_postgres(dsn: str) -> None: await conn.execute( "CREATE INDEX IF NOT EXISTS idx_ann_slide_study ON annotations(slide_id, study_id)" ) - await conn.execute("CREATE INDEX IF NOT EXISTS idx_ann_slide ON annotations(slide_id)") + await conn.execute( + "CREATE INDEX IF NOT EXISTS idx_ann_slide ON annotations(slide_id)" + ) finally: await conn.close() @@ -241,7 +247,9 @@ async def _list_postgres(slide_id: str, study_id: str, user_sub: str) -> list[di async def _create_sqlite(data: AnnotationIn, user_sub: str) -> dict: ann_id = str(uuid.uuid4()) - visible_to_json = json.dumps(data.visible_to) if data.visible_to is not None else None + visible_to_json = ( + json.dumps(data.visible_to) if data.visible_to is not None else None + ) async with aiosqlite.connect(_get_db_path()) as db: await _apply_sqlite_pragmas(db) db.row_factory = aiosqlite.Row @@ -268,7 +276,9 @@ async def _create_sqlite(data: AnnotationIn, user_sub: str) -> dict: async def _create_postgres(data: AnnotationIn, user_sub: str) -> dict: ann_id = str(uuid.uuid4()) - visible_to_json = json.dumps(data.visible_to) if data.visible_to is not None else None + visible_to_json = ( + json.dumps(data.visible_to) if data.visible_to is not None else None + ) conn = await asyncpg.connect(_get_db_url()) try: row = await conn.fetchrow( @@ -323,22 +333,50 @@ async def _get_existing_postgres(annotation_id: str) -> dict | None: await conn.close() -async def _update_sqlite(annotation_id: str, new_body: str, new_target: str, new_visible: str | None, new_version: int) -> None: +async def _update_sqlite( + annotation_id: str, + new_body: str, + new_target: str, + new_visible: str | None, + expected_version: int, + new_version: int, +) -> str | None: async with aiosqlite.connect(_get_db_path()) as db: await _apply_sqlite_pragmas(db) - await db.execute( + cursor = await db.execute( """ UPDATE annotations SET body = ?, target = ?, visible_to = ?, version = ?, updated_at = datetime('now') - WHERE id = ? + WHERE id = ? AND version = ? """, - (new_body, new_target, new_visible, new_version, annotation_id), + ( + new_body, + new_target, + new_visible, + new_version, + annotation_id, + expected_version, + ), ) await db.commit() + if cursor.rowcount != 1: + return None + cursor = await db.execute( + "SELECT updated_at FROM annotations WHERE id = ?", (annotation_id,) + ) + row = await cursor.fetchone() + return row[0] if row else None -async def _update_postgres(annotation_id: str, new_body: str, new_target: str, new_visible: str | None, new_version: int) -> str: +async def _update_postgres( + annotation_id: str, + new_body: str, + new_target: str, + new_visible: str | None, + expected_version: int, + new_version: int, +) -> str | None: conn = await asyncpg.connect(_get_db_url()) try: row = await conn.fetchrow( @@ -346,7 +384,7 @@ async def _update_postgres(annotation_id: str, new_body: str, new_target: str, n UPDATE annotations SET body = $1, target = $2, visible_to = $3, version = $4, updated_at = timezone('utc', now()) - WHERE id = $5 + WHERE id = $5 AND version = $6 RETURNING to_char(updated_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS\"Z\"') """, new_body, @@ -354,8 +392,9 @@ async def _update_postgres(annotation_id: str, new_body: str, new_target: str, n new_visible, new_version, annotation_id, + expected_version, ) - return row["to_char"] + return row["to_char"] if row else None finally: await conn.close() @@ -382,7 +421,9 @@ async def list_annotations( user: dict = Depends(require_user), ) -> list[AnnotationOut]: if user.get("study_id") and user["study_id"] != study_id: - raise HTTPException(status_code=403, detail="Token study scope does not match request") + raise HTTPException( + status_code=403, detail="Token study scope does not match request" + ) user_sub: str = user["sub"] user_groups: set[str] = set(user["groups"]) if _storage_kind() == "postgres": @@ -398,7 +439,9 @@ async def create_annotation( user: dict = Depends(require_user), ) -> AnnotationOut: if user.get("study_id") and user["study_id"] != data.study_id: - raise HTTPException(status_code=403, detail="Token study scope does not match request") + raise HTTPException( + status_code=403, detail="Token study scope does not match request" + ) if _storage_kind() == "postgres": row = await _create_postgres(data, user["sub"]) else: @@ -420,28 +463,57 @@ async def update_annotation( if not existing: raise HTTPException(status_code=404, detail="Annotation not found") if user.get("study_id") and user["study_id"] != existing["study_id"]: - raise HTTPException(status_code=403, detail="Token study scope does not match annotation") + raise HTTPException( + status_code=403, detail="Token study scope does not match annotation" + ) if existing["created_by"] != user["sub"]: - raise HTTPException(status_code=403, detail="Only the creator may update this annotation") + raise HTTPException( + status_code=403, detail="Only the creator may update this annotation" + ) if existing["version"] != data.version: raise HTTPException( status_code=409, detail=f"Version conflict: expected {existing['version']}, got {data.version}", ) - new_body = data.body.model_dump_json() if data.body is not None else existing["body"] + new_body = ( + data.body.model_dump_json() if data.body is not None else existing["body"] + ) new_target = ( - _sqlite_target_json(data.target.selector) if data.target is not None else existing["target"] + _sqlite_target_json(data.target.selector) + if data.target is not None + else existing["target"] ) - new_visible = json.dumps(data.visible_to) if data.visible_to is not None else existing["visible_to"] + if "visible_to" in data.model_fields_set: + new_visible = ( + json.dumps(data.visible_to) if data.visible_to is not None else None + ) + else: + new_visible = existing["visible_to"] new_version = existing["version"] + 1 if _storage_kind() == "postgres": updated_at = await _update_postgres( - annotation_id, new_body, new_target, new_visible, new_version + annotation_id, + new_body, + new_target, + new_visible, + existing["version"], + new_version, ) else: - await _update_sqlite(annotation_id, new_body, new_target, new_visible, new_version) - updated_at = "" + updated_at = await _update_sqlite( + annotation_id, + new_body, + new_target, + new_visible, + existing["version"], + new_version, + ) + if updated_at is None: + raise HTTPException( + status_code=409, + detail="Annotation was modified concurrently", + ) return AnnotationOut( id=existing["id"], @@ -470,9 +542,13 @@ async def delete_annotation( if not existing: raise HTTPException(status_code=404, detail="Annotation not found") if user.get("study_id") and user["study_id"] != existing["study_id"]: - raise HTTPException(status_code=403, detail="Token study scope does not match annotation") + raise HTTPException( + status_code=403, detail="Token study scope does not match annotation" + ) if existing["created_by"] != user["sub"]: - raise HTTPException(status_code=403, detail="Only the creator may delete this annotation") + raise HTTPException( + status_code=403, detail="Only the creator may delete this annotation" + ) if _storage_kind() == "postgres": await _delete_postgres(annotation_id) diff --git a/tests/test_annotations.py b/tests/test_annotations.py new file mode 100644 index 0000000..aa030fe --- /dev/null +++ b/tests/test_annotations.py @@ -0,0 +1,174 @@ +import asyncio + +import pytest +from fastapi import HTTPException + +from app import annotations +from app.annotations import ( + AnnotationBody, + AnnotationIn, + AnnotationOut, + AnnotationTarget, + AnnotationUpdate, +) + + +def user( + subject: str, + *, + groups: list[str] | None = None, + study_id: str | None = "study-1", +) -> dict: + return { + "sub": subject, + "groups": groups or [], + "study_id": study_id, + } + + +def annotation_input( + *, + slide_id: str = "slide-1", + study_id: str = "study-1", + visible_to: list[str] | None = None, +) -> AnnotationIn: + return AnnotationIn( + slide_id=slide_id, + study_id=study_id, + body=AnnotationBody(label="Tumor", comment="Initial", type="Polygon"), + target=AnnotationTarget( + selector={ + "type": "SvgSelector", + "value": "", + } + ), + visible_to=visible_to, + ) + + +@pytest.fixture(autouse=True) +async def sqlite_annotation_db(tmp_path, monkeypatch): + monkeypatch.setattr(annotations.settings, "annotation_database_url", "") + await annotations.init_db(str(tmp_path / "annotations.db"), db_url="") + yield + annotations._db_path = "" + annotations._db_url = "" + + +@pytest.mark.asyncio +async def test_annotation_crud_round_trip_and_privacy_reset(): + owner = user("owner") + created = await annotations.create_annotation( + annotation_input(visible_to=["pathology"]), owner + ) + + assert created.version == 1 + assert created.created_by == "owner" + assert created.visible_to == ["pathology"] + assert created.created_at + assert created.updated_at + + listed = await annotations.list_annotations("slide-1", "study-1", owner) + assert [item.id for item in listed] == [created.id] + + updated = await annotations.update_annotation( + created.id, + AnnotationUpdate( + body=AnnotationBody(label="Tumor", comment="Reviewed", type="Polygon"), + visible_to=None, + version=1, + ), + owner, + ) + assert updated.version == 2 + assert updated.body.comment == "Reviewed" + assert updated.visible_to is None + assert updated.updated_at + + await annotations.delete_annotation(created.id, owner) + assert await annotations.list_annotations("slide-1", "study-1", owner) == [] + + +@pytest.mark.asyncio +async def test_annotation_visibility_honors_creator_groups_and_public_rows(): + owner = user("owner") + private = await annotations.create_annotation(annotation_input(), owner) + group = await annotations.create_annotation( + annotation_input(visible_to=["pathology"]), owner + ) + public = await annotations.create_annotation(annotation_input(visible_to=[]), owner) + + outsider_rows = await annotations.list_annotations( + "slide-1", "study-1", user("outsider") + ) + assert [item.id for item in outsider_rows] == [public.id] + + group_rows = await annotations.list_annotations( + "slide-1", "study-1", user("reviewer", groups=["pathology"]) + ) + assert {item.id for item in group_rows} == {group.id, public.id} + + owner_rows = await annotations.list_annotations("slide-1", "study-1", owner) + assert {item.id for item in owner_rows} == {private.id, group.id, public.id} + + +@pytest.mark.asyncio +async def test_annotation_writes_require_creator_and_matching_study_scope(): + owner = user("owner") + created = await annotations.create_annotation(annotation_input(), owner) + + with pytest.raises(HTTPException) as wrong_study_create: + await annotations.create_annotation( + annotation_input(), user("owner", study_id="study-2") + ) + assert wrong_study_create.value.status_code == 403 + + with pytest.raises(HTTPException) as wrong_study_list: + await annotations.list_annotations( + "slide-1", "study-1", user("owner", study_id="study-2") + ) + assert wrong_study_list.value.status_code == 403 + + with pytest.raises(HTTPException) as non_creator_update: + await annotations.update_annotation( + created.id, + AnnotationUpdate(version=1), + user("other"), + ) + assert non_creator_update.value.status_code == 403 + + with pytest.raises(HTTPException) as non_creator_delete: + await annotations.delete_annotation(created.id, user("other")) + assert non_creator_delete.value.status_code == 403 + + +@pytest.mark.asyncio +async def test_annotation_update_uses_atomic_optimistic_locking(): + owner = user("owner") + created = await annotations.create_annotation(annotation_input(), owner) + + updates = await asyncio.gather( + annotations.update_annotation( + created.id, + AnnotationUpdate( + body=AnnotationBody(label="A", comment="First", type="Polygon"), + version=1, + ), + owner, + ), + annotations.update_annotation( + created.id, + AnnotationUpdate( + body=AnnotationBody(label="B", comment="Second", type="Polygon"), + version=1, + ), + owner, + ), + return_exceptions=True, + ) + + successes = [result for result in updates if isinstance(result, AnnotationOut)] + conflicts = [result for result in updates if isinstance(result, HTTPException)] + assert len(successes) == 1 + assert len(conflicts) == 1 + assert conflicts[0].status_code == 409 From b76751f22d2ee56a712e9d45a92a9983c2cbdafe Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 28 Aug 2026 17:56:43 -0400 Subject: [PATCH 11/33] security(annotations): require scoped capabilities --- app/auth.py | 67 ++++++++-------------------------- tests/test_auth.py | 90 ++++++++++++++++++++++++++++++++++------------ 2 files changed, 81 insertions(+), 76 deletions(-) diff --git a/app/auth.py b/app/auth.py index dd741ae..f08c570 100644 --- a/app/auth.py +++ b/app/auth.py @@ -4,19 +4,13 @@ import hashlib import hmac import json -import logging import time -from typing import Any -import httpx from fastapi import Depends, HTTPException, Request, status from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer -from jose import JWTError, jwt from .config import settings -logger = logging.getLogger(__name__) - class InvalidWsiToken(ValueError): """Raised when a WSI capability cannot be trusted.""" @@ -82,11 +76,18 @@ def validate_wsi_token( if "wsi:read" in required: if payload.get("wsi_auth_version") != 2: raise InvalidWsiToken("unsupported WSI authorization contract") - if not isinstance(payload.get("image_id"), str) or not payload["image_id"].strip(): + if ( + not isinstance(payload.get("image_id"), str) + or not payload["image_id"].strip() + ): raise InvalidWsiToken("invalid token image") for claim in ("tile_source_sha256", "thumbnail_source_sha256"): value = payload.get(claim) - if not isinstance(value, str) or len(value) != 64 or any(char not in "0123456789abcdef" for char in value): + if ( + not isinstance(value, str) + or len(value) != 64 + or any(char not in "0123456789abcdef" for char in value) + ): raise InvalidWsiToken("invalid token source binding") for claim in ("thumbnail_width", "thumbnail_height"): value = payload.get(claim) @@ -102,40 +103,13 @@ def validate_wsi_token( _bearer = HTTPBearer(auto_error=False) -_jwks_cache: dict[str, Any] = {} -_jwks_fetched_at: float = 0.0 -_JWKS_TTL = 3600 - - -async def _get_jwks() -> dict[str, Any]: - global _jwks_cache, _jwks_fetched_at - if time.monotonic() - _jwks_fetched_at < _JWKS_TTL and _jwks_cache: - return _jwks_cache - if not settings.keycloak_jwks_url: - raise HTTPException( - status_code=status.HTTP_503_SERVICE_UNAVAILABLE, - detail="KEYCLOAK_JWKS_URL is not configured", - ) - try: - async with httpx.AsyncClient(timeout=10) as client: - resp = await client.get(settings.keycloak_jwks_url) - resp.raise_for_status() - _jwks_cache = resp.json() - _jwks_fetched_at = time.monotonic() - return _jwks_cache - except Exception as exc: - logger.error("Failed to fetch JWKS from %s: %s", settings.keycloak_jwks_url, exc) - raise HTTPException( - status_code=status.HTTP_503_SERVICE_UNAVAILABLE, - detail="Unable to reach Keycloak JWKS endpoint", - ) async def require_user( request: Request, creds: HTTPAuthorizationCredentials | None = Depends(_bearer), -) -> dict[str, Any]: - """Return the authenticated Keycloak subject and groups for annotations.""" +) -> dict: + """Return the subject and study scope from a cBioPortal capability.""" if not settings.annotation_auth_enabled: return {"sub": "dev-user", "groups": []} if creds is None: @@ -159,22 +133,9 @@ async def require_user( "groups": [], "study_id": capability["study_id"], } - except InvalidWsiToken: - pass - try: - payload = jwt.decode( - creds.credentials, - await _get_jwks(), - algorithms=["RS256"], - options={"verify_aud": False}, - ) - except JWTError as exc: + except InvalidWsiToken as exc: raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, - detail=f"Invalid token: {exc}", + detail="Invalid annotation capability", headers={"WWW-Authenticate": "Bearer"}, - ) - sub: str = payload.get("sub", "") - if not sub: - raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="Token missing 'sub' claim") - return {"sub": sub, "groups": payload.get("groups", []), "study_id": None} + ) from exc diff --git a/tests/test_auth.py b/tests/test_auth.py index cbb9e21..df32ce1 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -5,9 +5,12 @@ import time import pytest +from fastapi import HTTPException, Request +from fastapi.security import HTTPAuthorizationCredentials from app.auth import ( InvalidWsiToken, + require_user, source_digest, validate_wsi_auth_configuration, validate_wsi_token, @@ -16,27 +19,39 @@ def make_token(secret: str, **claims) -> str: def encode(value): - return base64.urlsafe_b64encode(json.dumps(value).encode()).rstrip(b"=").decode() + return ( + base64.urlsafe_b64encode(json.dumps(value).encode()).rstrip(b"=").decode() + ) header = encode({"alg": "HS256", "typ": "JWT"}) payload = encode(claims) signing_input = f"{header}.{payload}".encode() - signature = base64.urlsafe_b64encode( - hmac.new(secret.encode(), signing_input, hashlib.sha256).digest() - ).rstrip(b"=").decode() + signature = ( + base64.urlsafe_b64encode( + hmac.new(secret.encode(), signing_input, hashlib.sha256).digest() + ) + .rstrip(b"=") + .decode() + ) return f"{header}.{payload}.{signature}" def make_raw_token(secret: str, header, payload) -> str: def encode(value): - return base64.urlsafe_b64encode(json.dumps(value).encode()).rstrip(b"=").decode() + return ( + base64.urlsafe_b64encode(json.dumps(value).encode()).rstrip(b"=").decode() + ) encoded_header = encode(header) encoded_payload = encode(payload) signing_input = f"{encoded_header}.{encoded_payload}".encode() - signature = base64.urlsafe_b64encode( - hmac.new(secret.encode(), signing_input, hashlib.sha256).digest() - ).rstrip(b"=").decode() + signature = ( + base64.urlsafe_b64encode( + hmac.new(secret.encode(), signing_input, hashlib.sha256).digest() + ) + .rstrip(b"=") + .decode() + ) return f"{encoded_header}.{encoded_payload}.{signature}" @@ -62,9 +77,12 @@ def valid_claims(**overrides): def test_valid_wsi_token(): secret = "s" * 32 - assert validate_wsi_token( - make_token(secret, **valid_claims()), secret, "cbioportal-wsi" - )["sub"] == "user@example.org" + assert ( + validate_wsi_token( + make_token(secret, **valid_claims()), secret, "cbioportal-wsi" + )["sub"] + == "user@example.org" + ) @pytest.mark.parametrize( @@ -82,11 +100,14 @@ def test_invalid_wsi_auth_configuration_is_rejected(secret, audience, max_ttl): validate_wsi_auth_configuration(secret, audience, max_ttl) -@pytest.mark.parametrize("change", [ - {"scope": "wsi:write"}, - {"aud": "other-service"}, - {"exp": int(time.time()) - 1}, -]) +@pytest.mark.parametrize( + "change", + [ + {"scope": "wsi:write"}, + {"aud": "other-service"}, + {"exp": int(time.time()) - 1}, + ], +) def test_invalid_claims_are_rejected(change): secret = "s" * 32 claims = valid_claims(**change) @@ -114,13 +135,16 @@ def test_non_object_header_and_payload_are_rejected(): ) -@pytest.mark.parametrize("change", [ - {"study_id": ""}, - {"image_id": ""}, - {"tile_source_sha256": ""}, - {"thumbnail_width": 0}, - {"exp": int(time.time()) + 1000}, -]) +@pytest.mark.parametrize( + "change", + [ + {"study_id": ""}, + {"image_id": ""}, + {"tile_source_sha256": ""}, + {"thumbnail_width": 0}, + {"exp": int(time.time()) + 1000}, + ], +) def test_source_bound_claims_and_max_ttl_are_required(change): secret = "s" * 32 with pytest.raises(InvalidWsiToken): @@ -169,3 +193,23 @@ def test_annotation_capability_requires_both_annotation_scopes(): "cbioportal-wsi", required_scopes={"annotations:read", "annotations:write"}, ) + + +@pytest.mark.asyncio +async def test_annotation_auth_rejects_non_capability_tokens(): + request = Request( + { + "type": "http", + "method": "GET", + "path": "/annotations", + "headers": [], + } + ) + credentials = HTTPAuthorizationCredentials( + scheme="Bearer", credentials="generic-keycloak-token" + ) + + with pytest.raises(HTTPException) as error: + await require_user(request, credentials) + + assert error.value.status_code == 401 From db39b8239204b7075be492704fe4b79a15a7bb3e Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 28 Aug 2026 18:05:26 -0400 Subject: [PATCH 12/33] security(deps): remove vulnerable unused JWT client --- README.md | 3 +-- app/annotations.py | 5 ++--- pyproject.toml | 5 ++--- uv.lock | 45 --------------------------------------------- 4 files changed, 5 insertions(+), 53 deletions(-) diff --git a/README.md b/README.md index c94372e..fb413e9 100644 --- a/README.md +++ b/README.md @@ -115,8 +115,7 @@ optional Redis cache: | `CORS_ORIGINS` | internal cBioPortal origins | Allowed browser origins | | `ANNOTATION_DATABASE_URL` | — | Optional Postgres/Lakebase DSN for annotation storage | | `ANNOTATION_DB_PATH` | `/data/annotations.db` | SQLite path used when `ANNOTATION_DATABASE_URL` is unset | -| `KEYCLOAK_JWKS_URL` | — | Keycloak JWKS endpoint for annotation authentication | -| `ANNOTATION_AUTH_ENABLED` | `true` | Enable Keycloak authentication for annotation requests | +| `ANNOTATION_AUTH_ENABLED` | `true` | Require cBioPortal-issued annotation capabilities | | `ONCOKB_API_TOKEN` | — | Optional OncoKB token for annotation enrichment | | `WSI_THUMBNAIL_REGISTRY_TABLE` | `cdsi_prod.pathology_data_mining.slide_thumbnail_registry` | Three-part Unity Catalog table used by the offline thumbnail publisher | | `WSI_CANONICAL_ASSOCIATION_TABLE` | `cdsi_prod.pathology_data_mining.canonical_slide_associations` | Three-part table read by metadata and export tooling | diff --git a/app/annotations.py b/app/annotations.py index 4bf944b..3113a23 100644 --- a/app/annotations.py +++ b/app/annotations.py @@ -7,9 +7,8 @@ PUT /annotations/{id} update (optimistic concurrency via version) DELETE /annotations/{id} delete (creator only) -Auth: all routes require a valid Keycloak JWT via ``require_user()``. -Study-level ACL: annotations inherit study access from cBioPortal — -if a user can see the study they can read/write its annotations. +Auth: all routes require a short-lived, study-scoped capability issued by +cBioPortal via ``require_user()``. """ import json diff --git a/pyproject.toml b/pyproject.toml index 70eaf1e..2dd772a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,11 +35,10 @@ dependencies = [ # Observability (optional but useful) "prometheus-fastapi-instrumentator>=7.0.0", - # Annotation API — JWT validation + async SQLite - "python-jose[cryptography]>=3.3.0", + # Annotation API storage "aiosqlite>=0.20.0", "asyncpg>=0.30.0", - # HTTP client for JWKS fetch in auth.py + # HTTP client for the OncoKB proxy "httpx>=0.27", ] diff --git a/uv.lock b/uv.lock index acf92f8..4e2ace1 100644 --- a/uv.lock +++ b/uv.lock @@ -354,7 +354,6 @@ dependencies = [ { name = "httpx" }, { name = "pillow" }, { name = "prometheus-fastapi-instrumentator" }, - { name = "python-jose", extra = ["cryptography"] }, { name = "redis" }, { name = "s3fs" }, { name = "tifffile" }, @@ -382,7 +381,6 @@ requires-dist = [ { name = "httpx", specifier = ">=0.27" }, { name = "pillow", specifier = ">=12.3.0" }, { name = "prometheus-fastapi-instrumentator", specifier = ">=7.0.0" }, - { name = "python-jose", extras = ["cryptography"], specifier = ">=3.3.0" }, { name = "redis", specifier = ">=5.0.0" }, { name = "s3fs", specifier = ">=2024.3.0" }, { name = "tifffile", specifier = ">=2024.1.1,<2025.5.21" }, @@ -695,18 +693,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/84/d0/205d54408c08b13550c733c4b85429e7ead111c7f0014309637425520a9a/deprecated-1.3.1-py2.py3-none-any.whl", hash = "sha256:597bfef186b6f60181535a29fbe44865ce137a5079f295b479886c82729d5f3f", size = 11298, upload-time = "2025-10-30T08:19:00.758Z" }, ] -[[package]] -name = "ecdsa" -version = "0.19.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "six" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/25/ca/8de7744cb3bc966c85430ca2d0fcaeea872507c6a4cf6e007f7fe269ed9d/ecdsa-0.19.2.tar.gz", hash = "sha256:62635b0ac1ca2e027f82122b5b81cb706edc38cd91c63dda28e4f3455a2bf930", size = 202432, upload-time = "2026-03-26T09:58:17.675Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/51/79/119091c98e2bf49e24ed9f3ae69f816d715d2904aefa6a2baa039a2ba0b0/ecdsa-0.19.2-py2.py3-none-any.whl", hash = "sha256:840f5dc5e375c68f36c1a7a5b9caad28f95daa65185c9253c0c08dd952bb7399", size = 150818, upload-time = "2026-03-26T09:58:15.808Z" }, -] - [[package]] name = "fastapi" version = "0.136.3" @@ -1896,25 +1882,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/0b/d7/1959b9648791274998a9c3526f6d0ec8fd2233e4d4acce81bbae76b44b2a/python_dotenv-1.2.2-py3-none-any.whl", hash = "sha256:1d8214789a24de455a8b8bd8ae6fe3c6b69a5e3d64aa8a8e5d68e694bbcb285a", size = 22101, upload-time = "2026-03-01T16:00:25.09Z" }, ] -[[package]] -name = "python-jose" -version = "3.5.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "ecdsa" }, - { name = "pyasn1" }, - { name = "rsa" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/c6/77/3a1c9039db7124eb039772b935f2244fbb73fc8ee65b9acf2375da1c07bf/python_jose-3.5.0.tar.gz", hash = "sha256:fb4eaa44dbeb1c26dcc69e4bd7ec54a1cb8dd64d3b4d81ef08d90ff453f2b01b", size = 92726, upload-time = "2025-05-28T17:31:54.288Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/d9/c3/0bd11992072e6a1c513b16500a5d07f91a24017c5909b02c72c62d7ad024/python_jose-3.5.0-py2.py3-none-any.whl", hash = "sha256:abd1202f23d34dfad2c3d28cb8617b90acf34132c7afd60abd0b0b7d3cb55771", size = 34624, upload-time = "2025-05-28T17:31:52.802Z" }, -] - -[package.optional-dependencies] -cryptography = [ - { name = "cryptography" }, -] - [[package]] name = "pyyaml" version = "6.0.3" @@ -2010,18 +1977,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", hash = "sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", size = 310654, upload-time = "2026-04-12T08:24:02.83Z" }, ] -[[package]] -name = "rsa" -version = "4.9.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pyasn1" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/da/8a/22b7beea3ee0d44b1916c0c1cb0ee3af23b700b6da9f04991899d0c555d4/rsa-4.9.1.tar.gz", hash = "sha256:e7bdbfdb5497da4c07dfd35530e1a902659db6ff241e39d9953cad06ebd0ae75", size = 29034, upload-time = "2025-04-16T09:51:18.218Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/64/8d/0133e4eb4beed9e425d9a98ed6e081a55d195481b7632472be1af08d2f6b/rsa-4.9.1-py3-none-any.whl", hash = "sha256:68635866661c6836b8d39430f97a996acbd61bfa49406748ea243539fe239762", size = 34696, upload-time = "2025-04-16T09:51:17.142Z" }, -] - [[package]] name = "s3fs" version = "2026.4.0" From 4ea15c77e3e17c873ee216d612a6b149bb0b7780 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Mon, 21 Sep 2026 12:44:19 -0400 Subject: [PATCH 13/33] feat(annotations): pool Lakebase connections and migrate schema --- app/annotation_db.py | 99 +++++++++++++++++++++++++++++++++++++ app/annotations.py | 61 ++++++----------------- app/main.py | 2 + tests/test_annotation_db.py | 38 ++++++++++++++ 4 files changed, 153 insertions(+), 47 deletions(-) create mode 100644 app/annotation_db.py create mode 100644 tests/test_annotation_db.py diff --git a/app/annotation_db.py b/app/annotation_db.py new file mode 100644 index 0000000..2e16d2a --- /dev/null +++ b/app/annotation_db.py @@ -0,0 +1,99 @@ +"""Shared annotation database lifecycle and versioned schema migrations.""" + +from __future__ import annotations + +import os +from contextlib import asynccontextmanager +from typing import AsyncIterator + +import asyncpg + +_pool: asyncpg.Pool | None = None +_pool_dsn = "" + + +def _pool_size(name: str, default: int) -> int: + try: + return max(1, int(os.environ.get(name, str(default)))) + except ValueError: + return default + + +async def open_pool(dsn: str) -> asyncpg.Pool: + """Open one process-local pool for the shared Postgres/Lakebase database.""" + global _pool, _pool_dsn + if _pool is not None and _pool_dsn == dsn: + return _pool + await close_pool() + _pool = await asyncpg.create_pool( + dsn, + min_size=_pool_size("ANNOTATION_DB_POOL_MIN_SIZE", 1), + max_size=_pool_size("ANNOTATION_DB_POOL_MAX_SIZE", 8), + command_timeout=float( + os.environ.get("ANNOTATION_DB_COMMAND_TIMEOUT", "30") + ), + ) + _pool_dsn = dsn + return _pool + + +async def close_pool() -> None: + global _pool, _pool_dsn + if _pool is not None: + await _pool.close() + _pool = None + _pool_dsn = "" + + +@asynccontextmanager +async def connection(dsn: str) -> AsyncIterator[asyncpg.Connection]: + pool = await open_pool(dsn) + async with pool.acquire() as conn: + yield conn + + +async def migrate(conn: asyncpg.Connection) -> None: + """Apply idempotent schema version 1 without destructive table rewrites.""" + await conn.execute( + """ + CREATE TABLE IF NOT EXISTS annotation_schema_migrations ( + component TEXT PRIMARY KEY, + version INTEGER NOT NULL, + applied_at TIMESTAMPTZ NOT NULL DEFAULT timezone('utc', now()) + ) + """ + ) + current = await conn.fetchval( + "SELECT version FROM annotation_schema_migrations WHERE component = 'annotations'" + ) + if current is not None and int(current) >= 1: + return + + await conn.execute( + """ + CREATE TABLE IF NOT EXISTS annotations ( + id TEXT PRIMARY KEY, + slide_id TEXT NOT NULL, + study_id TEXT NOT NULL, + body TEXT NOT NULL, + target TEXT NOT NULL, + created_by TEXT NOT NULL, + visible_to TEXT, + version INTEGER NOT NULL DEFAULT 1, + created_at TIMESTAMPTZ NOT NULL DEFAULT timezone('utc', now()), + updated_at TIMESTAMPTZ NOT NULL DEFAULT timezone('utc', now()) + ) + """ + ) + await conn.execute( + "CREATE INDEX IF NOT EXISTS idx_ann_slide_study ON annotations(slide_id, study_id)" + ) + await conn.execute("CREATE INDEX IF NOT EXISTS idx_ann_slide ON annotations(slide_id)") + await conn.execute( + """ + INSERT INTO annotation_schema_migrations(component, version) + VALUES ('annotations', 1) + ON CONFLICT (component) DO UPDATE SET version = EXCLUDED.version, + applied_at = timezone('utc', now()) + """ + ) diff --git a/app/annotations.py b/app/annotations.py index 3113a23..0fbfc18 100644 --- a/app/annotations.py +++ b/app/annotations.py @@ -17,12 +17,12 @@ from typing import Any import aiosqlite -import asyncpg from fastapi import APIRouter, Depends, HTTPException, Query, status from pydantic import BaseModel, Field from .auth import require_user from .config import settings +from .annotation_db import close_pool, connection, migrate, open_pool logger = logging.getLogger(__name__) @@ -165,32 +165,9 @@ async def _init_sqlite(path: str) -> None: async def _init_postgres(dsn: str) -> None: - conn = await asyncpg.connect(dsn) - try: - await conn.execute( - """ - CREATE TABLE IF NOT EXISTS annotations ( - id TEXT PRIMARY KEY, - slide_id TEXT NOT NULL, - study_id TEXT NOT NULL, - body TEXT NOT NULL, - target TEXT NOT NULL, - created_by TEXT NOT NULL, - visible_to TEXT, - version INTEGER NOT NULL DEFAULT 1, - created_at TIMESTAMPTZ NOT NULL DEFAULT timezone('utc', now()), - updated_at TIMESTAMPTZ NOT NULL DEFAULT timezone('utc', now()) - ) - """ - ) - await conn.execute( - "CREATE INDEX IF NOT EXISTS idx_ann_slide_study ON annotations(slide_id, study_id)" - ) - await conn.execute( - "CREATE INDEX IF NOT EXISTS idx_ann_slide ON annotations(slide_id)" - ) - finally: - await conn.close() + await open_pool(dsn) + async with connection(dsn) as conn: + await migrate(conn) async def init_db(db_path: str | None = None, db_url: str | None = None) -> None: @@ -201,10 +178,15 @@ async def init_db(db_path: str | None = None, db_url: str | None = None) -> None await _init_postgres(_get_db_url()) logger.info("Annotation DB ready (postgres)") else: + await close_pool() await _init_sqlite(_get_db_path()) logger.info("Annotation DB ready (sqlite): %s", _get_db_path()) +async def close_db() -> None: + await close_pool() + + async def _list_sqlite(slide_id: str, study_id: str, user_sub: str) -> list[dict]: async with aiosqlite.connect(_get_db_path()) as db: await _apply_sqlite_pragmas(db) @@ -222,8 +204,7 @@ async def _list_sqlite(slide_id: str, study_id: str, user_sub: str) -> list[dict async def _list_postgres(slide_id: str, study_id: str, user_sub: str) -> list[dict]: - conn = await asyncpg.connect(_get_db_url()) - try: + async with connection(_get_db_url()) as conn: rows = await conn.fetch( """ SELECT @@ -240,8 +221,6 @@ async def _list_postgres(slide_id: str, study_id: str, user_sub: str) -> list[di user_sub, ) return [dict(row) for row in rows] - finally: - await conn.close() async def _create_sqlite(data: AnnotationIn, user_sub: str) -> dict: @@ -278,8 +257,7 @@ async def _create_postgres(data: AnnotationIn, user_sub: str) -> dict: visible_to_json = ( json.dumps(data.visible_to) if data.visible_to is not None else None ) - conn = await asyncpg.connect(_get_db_url()) - try: + async with connection(_get_db_url()) as conn: row = await conn.fetchrow( """ INSERT INTO annotations (id, slide_id, study_id, body, target, created_by, visible_to) @@ -298,8 +276,6 @@ async def _create_postgres(data: AnnotationIn, user_sub: str) -> dict: visible_to_json, ) return dict(row) - finally: - await conn.close() async def _get_existing_sqlite(annotation_id: str) -> dict | None: @@ -316,8 +292,7 @@ async def _get_existing_sqlite(annotation_id: str) -> dict | None: async def _get_existing_postgres(annotation_id: str) -> dict | None: - conn = await asyncpg.connect(_get_db_url()) - try: + async with connection(_get_db_url()) as conn: row = await conn.fetchrow( """ SELECT @@ -328,8 +303,6 @@ async def _get_existing_postgres(annotation_id: str) -> dict | None: annotation_id, ) return dict(row) if row else None - finally: - await conn.close() async def _update_sqlite( @@ -376,8 +349,7 @@ async def _update_postgres( expected_version: int, new_version: int, ) -> str | None: - conn = await asyncpg.connect(_get_db_url()) - try: + async with connection(_get_db_url()) as conn: row = await conn.fetchrow( """ UPDATE annotations @@ -394,8 +366,6 @@ async def _update_postgres( expected_version, ) return row["to_char"] if row else None - finally: - await conn.close() async def _delete_sqlite(annotation_id: str) -> None: @@ -406,11 +376,8 @@ async def _delete_sqlite(annotation_id: str) -> None: async def _delete_postgres(annotation_id: str) -> None: - conn = await asyncpg.connect(_get_db_url()) - try: + async with connection(_get_db_url()) as conn: await conn.execute("DELETE FROM annotations WHERE id = $1", annotation_id) - finally: - await conn.close() @router.get("", response_model=list[AnnotationOut]) diff --git a/app/main.py b/app/main.py index 0a580ef..5bac2e6 100644 --- a/app/main.py +++ b/app/main.py @@ -58,6 +58,7 @@ track_thumbnail_fetch, ) from .annotations import init_db as init_annotation_db +from .annotations import close_db as close_annotation_db from .annotations import router as annotation_router from .oncokb import router as oncokb_router from .slides import SlideCache @@ -313,6 +314,7 @@ async def _prune_loop(): with suppress(asyncio.CancelledError): await blockcache_task _slides.close_all() + await close_annotation_db() await _in_thread(close_runtime_store) await tile_cache.close_cache() diff --git a/tests/test_annotation_db.py b/tests/test_annotation_db.py new file mode 100644 index 0000000..7f479fc --- /dev/null +++ b/tests/test_annotation_db.py @@ -0,0 +1,38 @@ +from __future__ import annotations + +import pytest + +from app.annotation_db import migrate + + +class FakeConnection: + def __init__(self, version: int | None = None): + self.version = version + self.statements: list[str] = [] + + async def execute(self, statement: str, *args): + self.statements.append(statement) + + async def fetchval(self, statement: str, *args): + return self.version + + +@pytest.mark.asyncio +async def test_annotation_migration_creates_schema_once(): + connection = FakeConnection() + + await migrate(connection) + + assert any("annotation_schema_migrations" in item for item in connection.statements) + assert any("CREATE TABLE IF NOT EXISTS annotations" in item for item in connection.statements) + assert any("INSERT INTO annotation_schema_migrations" in item for item in connection.statements) + + +@pytest.mark.asyncio +async def test_annotation_migration_skips_completed_version(): + connection = FakeConnection(version=1) + + await migrate(connection) + + assert len(connection.statements) == 1 + assert "annotation_schema_migrations" in connection.statements[0] From 85bdd79e5e1528619e65ac9d9c3dc7bc38616ad2 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Mon, 31 Aug 2026 12:48:38 -0400 Subject: [PATCH 14/33] Fix duplicate annotation compose settings --- docker-compose.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b0b06a7..af01daa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -73,10 +73,6 @@ services: BLOCKCACHE_MAX_BYTES: ${BLOCKCACHE_MAX_BYTES:-19327352832} # 18 GiB of 20 GiB volume BLOCKCACHE_PRUNE_INTERVAL_SECONDS: ${BLOCKCACHE_PRUNE_INTERVAL_SECONDS:-60} PROMETHEUS_MULTIPROC_DIR: ${PROMETHEUS_MULTIPROC_DIR:-/cache/prometheus} - # ── Annotation API ──────────────────────────────────────────────────── - ANNOTATION_DB_PATH: /data/annotations.db - KEYCLOAK_JWKS_URL: ${KEYCLOAK_JWKS_URL:-} - ANNOTATION_AUTH_ENABLED: ${ANNOTATION_AUTH_ENABLED:-true} volumes: - slide_blocks:/cache/slide-blocks - annotation_data:/data From 1f71752660b78ae5aa4bc41b878d56543fe2ed90 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Mon, 21 Sep 2026 17:28:53 -0400 Subject: [PATCH 15/33] ci(tile-server): publish immutable manual build tags --- .github/workflows/publish-image.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 3e8974c..4f03373 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -66,7 +66,9 @@ jobs: # See: https://docs.docker.com/build/ci/github-actions/multi-platform/ build: needs: container-smoke - if: github.event_name == 'push' && github.repository == 'cBioPortal/cbioportal-tile-server' + if: >- + (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && + github.repository == 'cBioPortal/cbioportal-tile-server' runs-on: ${{ matrix.runner }} strategy: fail-fast: false @@ -125,7 +127,9 @@ jobs: # it. latest is generated automatically for a valid semver tag push. publish: needs: build - if: github.event_name == 'push' && github.repository == 'cBioPortal/cbioportal-tile-server' + if: >- + (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && + github.repository == 'cBioPortal/cbioportal-tile-server' runs-on: ubuntu-latest steps: - name: Download digests @@ -141,6 +145,7 @@ jobs: with: images: ${{ env.IMAGE_NAME }} tags: | + type=sha,format=long type=ref,event=branch type=ref,event=tag type=semver,pattern={{version}} From b77ba4d814fbb24379c6207fbd78f5b18aab4723 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Sat, 3 Oct 2026 01:08:37 -0400 Subject: [PATCH 16/33] feat(wsi): v3 slide capabilities with encrypted sources - Accept only wsi_auth_version 3. Decrypt the `enc` claim (AES-256-GCM, key HKDF-SHA256(secret, "wsi-claim-enc-v3"), AAD = slide_key) and serve the tile/thumbnail source from it; X-WSI-Source and ?source= are rejected (400). Plaintext image_id/source/source-digest claims are rejected. Decrypted claims are cached per token after signature/expiry checks; failures are not cached. Previous-secret rotation still works. - Rate-limit scope uses study_id + slide_key; error/log text never includes ids or URIs (FileNotFoundError messages no longer echo source URIs). - de-id: reject accession numbers in WSI/timeline text columns; opaque part/block/specimen keys, image_id and artifact URIs skip only the compact YYYYMMDD heuristic; hex source_fingerprint is validated as a digest; SLIDE_KEY required on WSI rows; IMAGE_ID(S) forbidden in timeline rows. - Health/readiness report auth contract 3; readiness expects wsi-serving-v5. - cryptography is a runtime dependency. Co-Authored-By: Claude Opus 5.5 (1M context) --- .env.example | 2 +- README.md | 31 +-- app/auth.py | 99 +++++++++- app/config.py | 2 +- app/deid.py | 81 ++++++-- app/main.py | 56 +++--- app/slide_store.py | 4 +- app/slides.py | 4 +- app/thumbnail_store.py | 2 +- bench/single_user_pan_bench.py | 15 +- docs/runbook.md | 29 +-- pyproject.toml | 3 + tests/smoke.py | 26 +-- tests/test_auth.py | 247 ++++++++++++++++++++--- tests/test_config.py | 4 +- tests/test_deid.py | 109 +++++++++-- tests/test_main.py | 259 ++++++++++++++++--------- tools/run_local_snapshot_wsi_server.py | 2 +- uv.lock | 178 +++++++++++++++++ 19 files changed, 915 insertions(+), 238 deletions(-) diff --git a/.env.example b/.env.example index 284f3e5..dae519d 100644 --- a/.env.example +++ b/.env.example @@ -10,7 +10,7 @@ WSI_AUTH_AUDIENCE=cbioportal-wsi WSI_AUTH_MAX_TTL=300 WSI_RELEASE_ID=local-dev IMAGE_GIT_SHA=development -WSI_SERVING_CONTRACT_VERSION=wsi-serving-v3 +WSI_SERVING_CONTRACT_VERSION=wsi-serving-v5 # ── CORS (add viewer and cBioPortal origins) ───────────────────────────────── CORS_ORIGINS=http://localhost:8080,http://localhost:3000,https://cbioportal.org,https://www.cbioportal.org diff --git a/README.md b/README.md index 0890790..d0c68a9 100644 --- a/README.md +++ b/README.md @@ -40,16 +40,18 @@ authorizes every request (see [Request flow](#request-flow)). ## Request flow 1. cBioPortal authenticates the user and checks study permissions. -2. `GET /api/wsi/v2/slides/{studyId}/{imageId}/access` reads the materialized - slide row from the cBioPortal database and returns the exact tile source URL, - thumbnail artifact URL, tile metadata, and a short-lived Bearer capability. -3. The browser sends that URL and capability to this service. -4. The service verifies the capability's SHA-256 binding to the exact URL and - reads pixels from object storage. +2. `GET /api/wsi/v2/slides/{studyId}/{slideKey}/access` reads the materialized + slide row from the cBioPortal database and returns tile metadata, thumbnail + dimensions, and a short-lived Bearer capability. The exact tile source URL + and thumbnail artifact URL are sealed inside the capability's encrypted + `enc` claim; the response carries no `imageId` or source URL. +3. The browser sends only that capability to this service. +4. The service verifies and decrypts the capability and reads pixels from the + sealed URLs in object storage. The tile server never resolves an image ID, queries cBioPortal metadata, or -loads portal data files. A URL without a matching capability is -rejected, even when the URL is otherwise reachable. +loads portal data files. Client-supplied source URLs (`?source=` or +`X-WSI-Source`) are rejected. ## Offline preparation @@ -99,8 +101,8 @@ or explicit remediation. | GET | `/health` | Public liveness probe | | GET | `/ready` | Public readiness probe (auth and artifact-policy configuration) | | GET | `/metrics` | Internal Prometheus/OpenMetrics scrape endpoint | -| GET | `/tiles/zxy/{z}/{x}/{y}?source=...` | Source-bound JPEG tile | -| GET | `/thumbnails?source=...&width=...&height=...` | Source-bound thumbnail resize | +| GET | `/tiles/zxy/{z}/{x}/{y}` | Capability-bound JPEG tile | +| GET | `/thumbnails?width=...&height=...` | Capability-bound thumbnail resize | The same routes are available under `/wsi`. Every pixel request requires: @@ -109,8 +111,13 @@ Authorization: Bearer ``` Capabilities are HMAC-SHA256 JWTs with `scope=wsi:read`, -`wsi_auth_version=2`, `study_id`, `image_id`, exact source URL digests, bounded -thumbnail dimensions, and an expiry no longer than `WSI_AUTH_MAX_TTL`. +`wsi_auth_version=3`, `study_id`, an opaque `slide_key`, bounded thumbnail +dimensions, an expiry no longer than `WSI_AUTH_MAX_TTL`, and an `enc` claim. +`enc` is AES-256-GCM (key = HKDF-SHA256 of `WSI_AUTH_SECRET`, info +`wsi-claim-enc-v3`, AAD = `slide_key`) over the real `image_id` and the exact +tile and thumbnail source URLs, so the browser never sees them. Requests that +supply a source themselves (`?source=` or `X-WSI-Source`) are rejected with +`400`. See `../docs/wsi-deid-slide-key-contract.md` (`wsi-serving-v5`). `/health` and `/ready` intentionally remain public for orchestration probes. ## Runtime configuration diff --git a/app/auth.py b/app/auth.py index 4beab0e..f161afe 100644 --- a/app/auth.py +++ b/app/auth.py @@ -1,10 +1,37 @@ """Validation for short-lived cBioPortal WSI access capabilities.""" import base64 +import binascii import hashlib import hmac import json +import re import time +from functools import lru_cache + +from cryptography.exceptions import InvalidTag +from cryptography.hazmat.primitives import hashes +from cryptography.hazmat.primitives.ciphers.aead import AESGCM +from cryptography.hazmat.primitives.kdf.hkdf import HKDF + +from app.deid import SLIDE_KEY_PATTERN + + +WSI_AUTH_VERSION = 3 +CLAIM_ENCRYPTION_INFO = b"wsi-claim-enc-v3" +_GCM_NONCE_BYTES = 12 +_GCM_TAG_BYTES = 16 +_BASE64URL = re.compile(r"[A-Za-z0-9_-]+") +# Claims that carry real slide identifiers or source bindings. A v3 JWT +# payload is readable by the browser, so these may only travel inside `enc`. +_PLAINTEXT_FORBIDDEN_CLAIMS = ( + "image_id", + "tile_source", + "thumbnail_source", + "tile_source_sha256", + "thumbnail_source_sha256", +) +_SEALED_CLAIMS = ("image_id", "tile_source", "thumbnail_source") class InvalidWsiToken(ValueError): @@ -12,7 +39,7 @@ class InvalidWsiToken(ValueError): def source_digest(source: str) -> str: - """Hash the exact source URL representation signed by cBioPortal.""" + """Hash a source URL for cache keys and log correlation without exposing it.""" return hashlib.sha256(source.encode("utf-8")).hexdigest() @@ -39,6 +66,57 @@ def _b64decode(value: str) -> bytes: raise InvalidWsiToken("invalid token encoding") from exc +@lru_cache(maxsize=4) +def _claim_encryption_key(secret: str) -> bytes: + """Derive the AES-256-GCM key for sealed claims (contract section 4).""" + return HKDF( + algorithm=hashes.SHA256(), + length=32, + salt=None, + info=CLAIM_ENCRYPTION_INFO, + ).derive(secret.encode("utf-8")) + + +def decrypt_sealed_claims(enc: object, secret: str, slide_key: str) -> dict: + """Decrypt the `enc` claim bound to `slide_key`. + + Failures never echo the ciphertext, plaintext, or slide key. + """ + if not isinstance(enc, str) or not _BASE64URL.fullmatch(enc): + raise InvalidWsiToken("invalid token source binding") + return dict(_decrypt_sealed_claims_cached(enc, secret, slide_key)) + + +# One token authorizes hundreds of tile requests; decrypt its `enc` once. The +# cache is consulted only after the signature/expiry checks pass on every +# request, ciphertexts are unique per token (random nonce), and failures raise +# and are therefore never cached. +@lru_cache(maxsize=4096) +def _decrypt_sealed_claims_cached(enc: str, secret: str, slide_key: str) -> tuple[tuple[str, str], ...]: + try: + sealed = base64.urlsafe_b64decode(enc + "=" * (-len(enc) % 4)) + except (binascii.Error, ValueError) as exc: + raise InvalidWsiToken("invalid token source binding") from exc + if len(sealed) <= _GCM_NONCE_BYTES + _GCM_TAG_BYTES: + raise InvalidWsiToken("invalid token source binding") + try: + plaintext = AESGCM(_claim_encryption_key(secret)).decrypt( + sealed[:_GCM_NONCE_BYTES], + sealed[_GCM_NONCE_BYTES:], + slide_key.encode("utf-8"), + ) + claims = json.loads(plaintext.decode("utf-8")) + except (InvalidTag, UnicodeDecodeError, json.JSONDecodeError) as exc: + raise InvalidWsiToken("invalid token source binding") from exc + if not isinstance(claims, dict): + raise InvalidWsiToken("invalid token source binding") + for claim in _SEALED_CLAIMS: + value = claims.get(claim) + if not isinstance(value, str) or not value.strip(): + raise InvalidWsiToken("invalid token source binding") + return tuple((claim, claims[claim]) for claim in _SEALED_CLAIMS) + + def validate_wsi_auth_configuration(secret: str, audience: str, max_ttl: int) -> None: if not secret or len(secret.encode()) < 32: raise InvalidWsiToken("WSI authentication is not configured") @@ -82,14 +160,13 @@ def validate_wsi_token( raise InvalidWsiToken("invalid token subject") if not isinstance(payload.get("study_id"), str) or not payload["study_id"].strip(): raise InvalidWsiToken("invalid token study") - if payload.get("wsi_auth_version") != 2: + if payload.get("wsi_auth_version") != WSI_AUTH_VERSION: raise InvalidWsiToken("unsupported WSI authorization contract") - if not isinstance(payload.get("image_id"), str) or not payload["image_id"].strip(): - raise InvalidWsiToken("invalid token image") - for claim in ("tile_source_sha256", "thumbnail_source_sha256"): - value = payload.get(claim) - if not isinstance(value, str) or len(value) != 64 or any(char not in "0123456789abcdef" for char in value): - raise InvalidWsiToken("invalid token source binding") + slide_key = payload.get("slide_key") + if not isinstance(slide_key, str) or not SLIDE_KEY_PATTERN.fullmatch(slide_key): + raise InvalidWsiToken("invalid token slide") + if any(claim in payload for claim in _PLAINTEXT_FORBIDDEN_CLAIMS): + raise InvalidWsiToken("token exposes sealed slide claims") for claim in ("tile_source_fingerprint", "thumbnail_source_fingerprint"): value = payload.get(claim) if value is not None and ( @@ -109,4 +186,8 @@ def validate_wsi_token( if payload["exp"] <= payload["iat"] or payload["exp"] - payload["iat"] > max_ttl: raise InvalidWsiToken("token lifetime exceeds configured maximum") - return payload + # Decrypt last so expired or mis-scoped tokens never reach the cipher. + sealed = decrypt_sealed_claims(payload.get("enc"), secret, slide_key) + claims = {key: value for key, value in payload.items() if key != "enc"} + claims.update(sealed) + return claims diff --git a/app/config.py b/app/config.py index 948023b..4309697 100644 --- a/app/config.py +++ b/app/config.py @@ -54,7 +54,7 @@ class Settings: release_id: str = field(default_factory=lambda: _env_str("WSI_RELEASE_ID")) image_git_sha: str = field(default_factory=lambda: _env_str("IMAGE_GIT_SHA")) serving_contract_version: str = field( - default_factory=lambda: _env_str("WSI_SERVING_CONTRACT_VERSION", "wsi-serving-v3") + default_factory=lambda: _env_str("WSI_SERVING_CONTRACT_VERSION", "wsi-serving-v5") ) # WSI request authentication wsi_auth_secret: str = field(default_factory=lambda: _env_str("WSI_AUTH_SECRET")) diff --git a/app/deid.py b/app/deid.py index d88fad0..e1a66d8 100644 --- a/app/deid.py +++ b/app/deid.py @@ -28,6 +28,9 @@ ) _COMPACT_DATE = re.compile(r"(? bool: + if field in _SERVER_ONLY_FIELDS: + return not _contains_absolute_date(_text(value)) + pattern = _OPAQUE_KEY_PATTERNS.get(field) + return bool(pattern and pattern.fullmatch(_text(value))) + + class DeidViolation(ValueError): """Raised when a public WSI/timeline row would violate the contract.""" @@ -104,6 +134,16 @@ def _contains_absolute_date(value: str) -> bool: ) +def contains_accession(value: object) -> bool: + """Return whether text contains a specimen accession number.""" + return bool(ACCESSION_PATTERN.search(_text(value))) + + +def _assert_no_accession(field: str, value: object) -> None: + if contains_accession(value): + raise DeidViolation(f"accession number in {field}") + + def _assert_safe_text(field: str, value: object) -> None: text = _text(value) normalized_field = re.sub(r"[^a-z0-9]+", "_", field.lower()).strip("_") @@ -118,6 +158,7 @@ def _assert_safe_text(field: str, value: object) -> None: return if _LABELLED_MRN.search(text): raise DeidViolation(f"labelled MRN in {field}") + _assert_no_accession(field, text) if _contains_absolute_date(text) or _COMPACT_DATE.search(text): raise DeidViolation(f"absolute date in {field}") @@ -128,6 +169,12 @@ def _assert_safe_metadata_text(value: object, field: str = "TILE_METADATA_JSON") _assert_safe_text(field, value) elif isinstance(value, Mapping): for key, child in value.items(): + if key == "source_fingerprint": + # A SHA-256 identity digest, not free text: its hex can + # contain an eight-digit run that looks like YYYYMMDD. + if not isinstance(child, str) or not _SHA256_HEX.fullmatch(child): + raise DeidViolation(f"invalid {field}.{key}") + continue _assert_safe_metadata_text(child, f"{field}.{key}") elif isinstance(value, list): for index, child in enumerate(value): @@ -229,10 +276,23 @@ def validate_wsi_public_row( image_id = _text(row.get("IMAGE_ID")) if not image_id: raise DeidViolation("IMAGE_ID is required") + slide_key = _text(row.get("SLIDE_KEY")) + if not SLIDE_KEY_PATTERN.fullmatch(slide_key): + raise DeidViolation("SLIDE_KEY must be 32 lowercase hex characters") for field, value in row.items(): normalized_field = field.lower() - if normalized_field not in _APPROVED_IDENTIFIER_FIELDS and normalized_field not in _WSI_NON_TEXT_FIELDS: + if normalized_field not in _WSI_NON_TEXT_FIELDS: + # Accessions are rejected in every text column, including + # approved identifiers and artifact URIs. + _assert_no_accession(field, value) + if ( + normalized_field not in _APPROVED_IDENTIFIER_FIELDS + and normalized_field not in _WSI_NON_TEXT_FIELDS + and not _skips_date_scan(normalized_field, value) + ): _assert_safe_text(field, value) + elif _LABELLED_MRN.search(_text(value)): + raise DeidViolation(f"labelled MRN in {field}") if field.upper() == "TILE_METADATA_JSON" and _text(value): try: metadata = json.loads(_text(value)) @@ -275,19 +335,10 @@ def validate_timeline_public_row(row: Mapping[str, object]) -> None: for field, value in row.items(): if field.upper() in forbidden or field.lower() in _FORBIDDEN_FIELDS: raise DeidViolation(f"forbidden timeline field: {field}") - if field.upper() == "IMAGE_IDS": - try: - image_ids = json.loads(_text(value)) - except (TypeError, ValueError) as error: - raise DeidViolation("IMAGE_IDS must be a JSON array") from error - if ( - not isinstance(image_ids, list) - or not image_ids - or any(not isinstance(image_id, str) or not image_id.strip() for image_id in image_ids) - or image_ids != sorted(set(image_ids)) - ): - raise DeidViolation("IMAGE_IDS must be a sorted, unique string array") - continue + if field.upper() in {"IMAGE_ID", "IMAGE_IDS"}: + # Real slide identifiers are server-side only (wsi-serving-v5). + raise DeidViolation(f"forbidden timeline field: {field}") + _assert_no_accession(field, value) if field.upper() not in {"PATIENT_ID", "SAMPLE_ID"}: _assert_safe_text(field, value) for field in ("START_DATE", "STOP_DATE"): diff --git a/app/main.py b/app/main.py index 98d7c49..c4c10a3 100644 --- a/app/main.py +++ b/app/main.py @@ -1,15 +1,16 @@ """URL-bound cBioPortal WSI pixel service. The service deliberately has no clinical metadata, hierarchy, search, or -image-id lookup. cBioPortal supplies an exact source URL and a short-lived -slide capability; this process validates the capability and serves pixels. +image-id lookup. cBioPortal issues a short-lived slide capability whose +encrypted claim carries the exact source URLs; this process validates and +decrypts the capability and serves pixels. Browsers never supply or see a +source URL. """ from __future__ import annotations import asyncio import errno -import hmac import json import logging import random @@ -33,6 +34,7 @@ from . import cache as tile_cache from .auth import ( + WSI_AUTH_VERSION, InvalidWsiToken, source_cache_identity, source_digest, @@ -390,7 +392,7 @@ async def require_wsi_capability(request: Request, call_next): status_code=401, headers={"WWW-Authenticate": "Bearer"}, ) - if claims.get("wsi_auth_version") != 2: + if claims.get("wsi_auth_version") != WSI_AUTH_VERSION: return Response(status_code=403, content="slide-scoped capability is required") request.state.wsi_claims = claims return await call_next(request) @@ -526,18 +528,17 @@ def _claims(request: Request) -> dict: return claims def _slide_rate_limit_scope(claims: dict) -> str: - return f"{claims['study_id']}\0{claims['image_id']}" + return f"{claims['study_id']}\0{claims['slide_key']}" - -def _authorize_source(request: Request, source: str, operation: str) -> tuple[str, dict]: - source = _allowed_source(source) +def _authorize_source(request: Request, operation: str) -> tuple[str, dict]: + """Return the capability-sealed source for `operation` and its claims.""" claims = _claims(request) - if claims.get("wsi_auth_version") != 2: + if claims.get("wsi_auth_version") != WSI_AUTH_VERSION: raise HTTPException(status_code=403, detail="slide-scoped capability is required") - claim_name = "tile_source_sha256" if operation == "tile" else "thumbnail_source_sha256" - if not hmac.compare_digest(source_digest(source), claims[claim_name]): - raise HTTPException(status_code=403, detail="source is outside capability") + source = _allowed_source( + claims.get("tile_source" if operation == "tile" else "thumbnail_source") + ) try: validate_artifact_uri( source, @@ -554,12 +555,13 @@ def _authorize_source(request: Request, source: str, operation: str) -> tuple[st return source, claims -def _source_from_request(request: Request, query_source: str | None) -> str: - header_source = request.headers.get("x-wsi-source", "").strip() - query_source = (query_source or "").strip() - if header_source and query_source and not hmac.compare_digest(header_source, query_source): - raise HTTPException(status_code=400, detail="conflicting source bindings") - return header_source or query_source +def _reject_client_source(request: Request, query_source: str | None) -> None: + """Refuse browser-supplied source bindings; the capability carries them.""" + if query_source is not None or "x-wsi-source" in request.headers: + raise HTTPException( + status_code=400, + detail="client-supplied source bindings are not accepted", + ) def _run_slide_operation( @@ -717,7 +719,7 @@ def _readiness_status() -> tuple[int, dict]: payload = { "status": "ok", "auth_required": True, - "auth_contract_version": 2, + "auth_contract_version": WSI_AUTH_VERSION, "n_workers": settings.n_workers, "release_id": settings.release_id, "image_git_sha": settings.image_git_sha, @@ -736,7 +738,7 @@ def _readiness_status() -> tuple[int, dict]: raise InvalidWsiToken("WSI release ID is not configured") if not re.fullmatch(r"[0-9a-fA-F]{40}", settings.image_git_sha): raise InvalidWsiToken("WSI image git SHA is not a full commit") - if settings.serving_contract_version != "wsi-serving-v3": + if settings.serving_contract_version != "wsi-serving-v5": raise InvalidWsiToken("unsupported WSI serving contract version") return 200, payload except InvalidWsiToken: @@ -747,7 +749,11 @@ def _readiness_status() -> tuple[int, dict]: @app.get("/health") def health(): - return {"status": "ok", "n_workers": settings.n_workers, "auth_contract_version": 2} + return { + "status": "ok", + "n_workers": settings.n_workers, + "auth_contract_version": WSI_AUTH_VERSION, + } @app.get("/ready") @@ -775,8 +781,8 @@ async def tile( y: int, source: str | None = Query(None), ): - source = _source_from_request(request, source) - source, claims = _authorize_source(request, source, "tile") + _reject_client_source(request, source) + source, claims = _authorize_source(request, "tile") source_fingerprint = claims.get("tile_source_fingerprint") cache_key = source_cache_identity(source, source_fingerprint) cached = await tile_cache.get_tile(cache_key, z, x, y) @@ -834,8 +840,8 @@ async def thumbnail( width: int = 256, height: int = 256, ): - source = _source_from_request(request, source) - source, claims = _authorize_source(request, source, "thumbnail") + _reject_client_source(request, source) + source, claims = _authorize_source(request, "thumbnail") width = max(1, min(width, 2048)) height = max(1, min(height, 2048)) source_fingerprint = claims.get("thumbnail_source_fingerprint") diff --git a/app/slide_store.py b/app/slide_store.py index 9388b81..38f0ea2 100644 --- a/app/slide_store.py +++ b/app/slide_store.py @@ -38,11 +38,11 @@ def resolve_s3_location(slide_id: str) -> tuple[str, str, dict]: The source URL must be a full s3:// URI supplied by cBioPortal. """ if not slide_id.startswith("s3://"): - raise FileNotFoundError(f"Slide not found: {slide_id!r} (expected s3:// URI)") + raise FileNotFoundError("Slide not found (expected s3:// URI)") without_scheme = slide_id[5:] bucket, _, key = without_scheme.partition("/") if not bucket or not key: - raise FileNotFoundError(f"Malformed slide URI: {slide_id!r}") + raise FileNotFoundError("Malformed slide URI") return bucket, key, s3_opts() diff --git a/app/slides.py b/app/slides.py index e743ed1..13faa70 100644 --- a/app/slides.py +++ b/app/slides.py @@ -40,11 +40,11 @@ def _resolve_s3_location(slide_id: str) -> tuple[str, str, dict]: "s3://mskmind-bkt/reef-slides/3735444.svs". """ if not slide_id.startswith("s3://"): - raise FileNotFoundError(f"Slide not found: {slide_id!r} (expected s3:// URI)") + raise FileNotFoundError("Slide not found (expected s3:// URI)") without_scheme = slide_id[5:] bucket, _, key = without_scheme.partition("/") if not bucket or not key: - raise FileNotFoundError(f"Malformed slide URI: {slide_id!r}") + raise FileNotFoundError("Malformed slide URI") opts: dict = {} if settings.aws_endpoint_url: diff --git a/app/thumbnail_store.py b/app/thumbnail_store.py index 5949108..ca21f1b 100644 --- a/app/thumbnail_store.py +++ b/app/thumbnail_store.py @@ -128,7 +128,7 @@ def _refresh_if_needed(self) -> None: def _s3_location(uri: str) -> tuple[str, str]: parsed = urlparse(uri) if parsed.scheme != "s3" or not parsed.netloc or not parsed.path.strip("/"): - raise FileNotFoundError(f"Malformed thumbnail URI: {uri!r}") + raise FileNotFoundError("Malformed thumbnail URI") return parsed.netloc, parsed.path.lstrip("/") diff --git a/bench/single_user_pan_bench.py b/bench/single_user_pan_bench.py index da276dc..090f87c 100644 --- a/bench/single_user_pan_bench.py +++ b/bench/single_user_pan_bench.py @@ -2,8 +2,9 @@ """Benchmark one authenticated WSI viewer session. The access JSON is the response from cBioPortal's slide access endpoint. It -must contain ``accessToken``, ``sourceUrl``, and ``tileMetadata``. The token is -read only in memory and is never included in the benchmark output. +must contain ``accessToken`` and ``tileMetadata``; the tile source travels +encrypted inside the v3 token. The token is read only in memory and is never +included in the benchmark output. Example:: @@ -53,18 +54,15 @@ def percentile(values: list[float], fraction: float) -> float | None: return ordered[index] -def read_access(path: Path) -> tuple[str, str, dict[str, Any]]: +def read_access(path: Path) -> tuple[str, dict[str, Any]]: payload = json.loads(path.read_text(encoding="utf-8")) token = payload.get("accessToken") - source = payload.get("sourceUrl") metadata = payload.get("tileMetadata") if not isinstance(token, str) or not token: raise ValueError("access JSON is missing accessToken") - if not isinstance(source, str) or not source: - raise ValueError("access JSON is missing sourceUrl") if not isinstance(metadata, dict): raise ValueError("access JSON is missing tileMetadata") - return token, source, metadata + return token, metadata def viewport_tiles( @@ -201,12 +199,11 @@ async def main() -> None: args.concurrency, ) < 1: raise SystemExit("viewport dimensions, tile counts, and concurrency must be positive") - token, source, metadata = read_access(args.access_json) + token, metadata = read_access(args.access_json) fit_zoom, fit_tiles, maximum_tiles, pan_bands = build_workload(args, metadata) base_url = args.base_url.rstrip("/") headers = { "Authorization": f"Bearer {token}", - "X-WSI-Source": source, "Origin": "https://beta.cbioportal.mskcc.org", } print( diff --git a/docs/runbook.md b/docs/runbook.md index 87e2897..f1937c7 100644 --- a/docs/runbook.md +++ b/docs/runbook.md @@ -1,6 +1,6 @@ # cBioPortal WSI tile-server runbook -This service is a source-bound pixel reader. cBioPortal owns authentication, +This service is a capability-bound pixel reader. cBioPortal owns authentication, study authorization, hierarchy, and the slide access bundle. The tile server does not resolve image IDs, query Databricks, read a resource index, search, or expose clinical metadata. @@ -8,15 +8,20 @@ or expose clinical metadata. ## Source of truth - `../cbioportal` serves `/api/wsi/v2/hierarchy/{studyId}/{patientId}` and - `/api/wsi/v2/slides/{studyId}/{imageId}/access` from ClickHouse. -- `../cbioportal-frontend` requests that access bundle and sends its exact - URLs plus the returned Bearer capability to this service. + `/api/wsi/v2/slides/{studyId}/{slideKey}/access` from ClickHouse. +- `../cbioportal-frontend` requests that access bundle and sends only the + returned Bearer capability to this service; it never sees or sends a + source URL. - The deployment repository owns ingress, probes, secrets, and rollout resources. The backend access response is the only online input needed beyond the shared -secret. It contains `sourceUrl`, `thumbnail.sourceUrl`, dimensions, intrinsic -tile metadata, and a v2 token. The token binds both URLs by SHA-256. +secret. It contains `slideKey`, thumbnail dimensions, intrinsic tile metadata, +and a `wsi_auth_version=3` token. The token's `enc` claim carries the real +`image_id` and both source URLs encrypted with AES-256-GCM (HKDF-SHA256 of the +shared secret, info `wsi-claim-enc-v3`, AAD = `slide_key`); the tile server +decrypts it and reads only those URLs. v2 tokens are rejected. Contract: +`wsi-serving-v5` (`../docs/wsi-deid-slide-key-contract.md`). ## Production topology @@ -51,21 +56,21 @@ only for an isolated non-publishing unit test. ```bash curl -fsS https://cbioportal.example.org/wsi/health curl -fsS https://cbioportal.example.org/wsi/ready -curl -i https://cbioportal.example.org/wsi/tiles/zxy/0/0/0?source=s3%3A%2F%2Fbucket%2Fslide.svs +curl -i https://cbioportal.example.org/wsi/tiles/zxy/0/0/0 ``` The final command must return `401` without `Authorization`. With a fresh -bundle from cBioPortal, use the returned source URL and token: +bundle from cBioPortal, use only the returned token: ```bash curl -fsS \ -H "Authorization: Bearer ${WSI_TOKEN}" \ - "https://cbioportal.example.org/wsi/tiles/zxy/0/0/0?source=$(python -c 'import urllib.parse,sys; print(urllib.parse.quote(sys.argv[1], safe=""))' "$WSI_SOURCE")" + "https://cbioportal.example.org/wsi/tiles/zxy/0/0/0" ``` -Also verify that changing one character of the source URL returns `403`, that -an expired token returns `401`, and that the thumbnail endpoint accepts only -the artifact URL bound in the same token. +Also verify that adding `?source=...` or an `X-WSI-Source` header returns +`400`, that changing one character of the token returns `401`, that an +expired token returns `401`, and that a v2 token returns `401`. ## Data preparation diff --git a/pyproject.toml b/pyproject.toml index c1909d2..781ffe5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,9 @@ dependencies = [ # Tile cache (asyncio support is built-in since redis 5) "redis>=5.0.0", + # Sealed WSI capability claims (AES-256-GCM + HKDF-SHA256) + "cryptography>=42.0.0", + # Observability (optional but useful) "prometheus-fastapi-instrumentator>=7.0.0", ] diff --git a/tests/smoke.py b/tests/smoke.py index f9f6b50..284737e 100644 --- a/tests/smoke.py +++ b/tests/smoke.py @@ -1,13 +1,14 @@ -"""Read-only smoke test for the source-bound WSI pixel service. +"""Read-only smoke test for the capability-bound WSI pixel service. + +The v3 Bearer capability carries the encrypted tile and thumbnail sources, so +no source URL is passed to the service. Example: - python tests/smoke.py --host http://localhost:8081 \ - --source-url s3://bucket/slide.svs --bearer-token "$WSI_TOKEN" + python tests/smoke.py --host http://localhost:8081 --bearer-token "$WSI_TOKEN" """ import argparse import sys -import urllib.parse import requests @@ -20,16 +21,14 @@ def check(label: str, response: requests.Response, expected_status: int = 200) - return ok -def run_smoke(host: str, source_url: str, bearer_token: str) -> bool: +def run_smoke(host: str, bearer_token: str) -> bool: host = host.rstrip("/") - source = urllib.parse.quote(source_url, safe="") headers = {"Authorization": f"Bearer {bearer_token}"} if bearer_token else {} session = requests.Session() session.headers.update(headers) passed = failed = 0 print(f"\nSmoke test: {host}") - print(" source : [redacted]") response = session.get(f"{host}/health", timeout=30) ok = check("/health", response) @@ -39,15 +38,19 @@ def run_smoke(host: str, source_url: str, bearer_token: str) -> bool: ok = check("/ready", response) passed += int(ok); failed += int(not ok) - response = session.get(f"{host}/tiles/zxy/0/0/0?source={source}", timeout=30) + response = session.get(f"{host}/tiles/zxy/0/0/0", timeout=30) ok = check("/tiles/zxy/0/0/0", response) and response.headers.get("content-type", "").startswith("image/") passed += int(ok); failed += int(not ok) - response = session.get(f"{host}/thumbnails?source={source}&width=256&height=256", timeout=30) + response = session.get(f"{host}/thumbnails?width=256&height=256", timeout=30) ok = check("/thumbnails", response) and response.headers.get("content-type", "").startswith("image/") passed += int(ok); failed += int(not ok) - unauthenticated = requests.get(f"{host}/tiles/zxy/0/0/0?source={source}", timeout=30) + response = session.get(f"{host}/tiles/zxy/0/0/0?source=s3%3A%2F%2Fbucket%2Fslide.svs", timeout=30) + ok = check("client-supplied source rejected", response, 400) + passed += int(ok); failed += int(not ok) + + unauthenticated = requests.get(f"{host}/tiles/zxy/0/0/0", timeout=30) ok = check("unauthenticated tile", unauthenticated, 401) passed += int(ok); failed += int(not ok) @@ -58,10 +61,9 @@ def run_smoke(host: str, source_url: str, bearer_token: str) -> bool: def main() -> None: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--host", default="http://localhost:8081") - parser.add_argument("--source-url", required=True) parser.add_argument("--bearer-token", default="") args = parser.parse_args() - sys.exit(0 if run_smoke(args.host, args.source_url, args.bearer_token) else 1) + sys.exit(0 if run_smoke(args.host, args.bearer_token) else 1) if __name__ == "__main__": diff --git a/tests/test_auth.py b/tests/test_auth.py index aadd725..716f206 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -5,15 +5,50 @@ import time import pytest +from cryptography.hazmat.primitives.ciphers.aead import AESGCM from app.auth import ( InvalidWsiToken, + _claim_encryption_key, + decrypt_sealed_claims, source_cache_identity, source_digest, validate_wsi_auth_configuration, validate_wsi_token, ) +SLIDE_KEY = "0123456789abcdef0123456789abcdef" +TILE_SOURCE = "s3://slides/slide-a.svs" +THUMBNAIL_SOURCE = "s3://thumbs/slide-a.jpg" + +# Contract test vector (docs/wsi-deid-slide-key-contract.md section 4). +VECTOR_SECRET = "local-development-wsi-secret-change-me-32chars" +VECTOR_SLIDE_KEY = "0123456789abcdef0123456789abcdef" +VECTOR_KEY_HEX = "f176a275656d945cd5ee1c32030b53363375dcc34baa77a7cf94b2ed8f9c6c0b" +VECTOR_PLAINTEXT = ( + '{"image_id":"1","tile_source":"file:///app/testdata/1.svs",' + '"thumbnail_source":"file:///app/testdata/1.jpg"}' +) +VECTOR_ENC = ( + "AAECAwQFBgcICQoLNpOTYnY8HVb-KcPzu1F5HPykr7D0YY_UhVbbyjOFRlxC63fxCt09YO1aYC-phb85" + "wDhN5PPPpC0X46RSD0K0bRRgSptRb9wDiqMLtftFQ6VpBGfGILaddEV_s-Zsmpp28fG5Z3XTNWnyoBRa" + "9qfr9t209wS7V-LhGl8i" +) + + +def seal_claims( + secret: str, + slide_key: str, + sealed: dict | str, + nonce: bytes = bytes(range(12)), +) -> str: + """Produce an `enc` claim exactly as the backend does (contract section 4).""" + plaintext = sealed if isinstance(sealed, str) else json.dumps(sealed, separators=(",", ":")) + ciphertext = AESGCM(_claim_encryption_key(secret)).encrypt( + nonce, plaintext.encode("utf-8"), slide_key.encode("utf-8") + ) + return base64.urlsafe_b64encode(nonce + ciphertext).rstrip(b"=").decode() + def make_token(secret: str, **claims) -> str: def encode(value): @@ -41,31 +76,199 @@ def encode(value): return f"{encoded_header}.{encoded_payload}.{signature}" -def valid_claims(**overrides): +def valid_claims(secret: str = "s" * 32, **overrides): now = int(time.time()) + slide_key = overrides.get("slide_key", SLIDE_KEY) claims = { "sub": "user@example.org", "aud": "cbioportal-wsi", "scope": "wsi:read", "study_id": "study-a", - "image_id": "slide-a", - "wsi_auth_version": 2, - "tile_source_sha256": source_digest("s3://slides/slide-a.svs"), - "thumbnail_source_sha256": source_digest("s3://thumbs/slide-a.jpg"), + "slide_key": slide_key, + "wsi_auth_version": 3, "thumbnail_width": 1024, "thumbnail_height": 768, "iat": now, "exp": now + 300, + "enc": seal_claims( + secret, + slide_key, + { + "image_id": "slide-a", + "tile_source": TILE_SOURCE, + "thumbnail_source": THUMBNAIL_SOURCE, + }, + ), } claims.update(overrides) return claims +def make_v3_token(secret: str = "s" * 32, **overrides) -> str: + return make_token(secret, **valid_claims(secret, **overrides)) + + def test_valid_wsi_token(): secret = "s" * 32 - assert validate_wsi_token( - make_token(secret, **valid_claims()), secret, "cbioportal-wsi" - )["sub"] == "user@example.org" + claims = validate_wsi_token(make_v3_token(secret), secret, "cbioportal-wsi") + assert claims["sub"] == "user@example.org" + assert claims["slide_key"] == SLIDE_KEY + assert claims["image_id"] == "slide-a" + assert claims["tile_source"] == TILE_SOURCE + assert claims["thumbnail_source"] == THUMBNAIL_SOURCE + assert "enc" not in claims + + +def test_sealed_claims_are_decrypted_once_per_token(monkeypatch): + from app import auth + + secret = "s" * 32 + token = make_v3_token(secret) + calls = [] + real_aesgcm = auth.AESGCM + + class CountingAESGCM: + def __init__(self, key): + self._inner = real_aesgcm(key) + + def decrypt(self, *args, **kwargs): + calls.append(1) + return self._inner.decrypt(*args, **kwargs) + + auth._decrypt_sealed_claims_cached.cache_clear() + monkeypatch.setattr(auth, "AESGCM", CountingAESGCM) + first = validate_wsi_token(token, secret, "cbioportal-wsi") + for _ in range(5): + assert validate_wsi_token(token, secret, "cbioportal-wsi") == first + assert len(calls) == 1 + # Callers get their own copy; mutating it does not poison the cache. + first["tile_source"] = "tampered" + assert validate_wsi_token(token, secret, "cbioportal-wsi")["tile_source"] == TILE_SOURCE + + +def test_rejected_sealed_claims_are_not_cached(): + from app import auth + + auth._decrypt_sealed_claims_cached.cache_clear() + with pytest.raises(InvalidWsiToken): + decrypt_sealed_claims("A" * 64, "s" * 32, SLIDE_KEY) + assert auth._decrypt_sealed_claims_cached.cache_info().currsize == 0 + + +def test_claim_encryption_key_matches_contract_vector(): + assert _claim_encryption_key(VECTOR_SECRET).hex() == VECTOR_KEY_HEX + + +def test_contract_enc_vector_decrypts_to_exact_plaintext(): + assert seal_claims(VECTOR_SECRET, VECTOR_SLIDE_KEY, VECTOR_PLAINTEXT) == VECTOR_ENC + sealed = base64.urlsafe_b64decode(VECTOR_ENC + "=" * (-len(VECTOR_ENC) % 4)) + assert sealed[:12].hex() == "000102030405060708090a0b" + plaintext = AESGCM(_claim_encryption_key(VECTOR_SECRET)).decrypt( + sealed[:12], sealed[12:], VECTOR_SLIDE_KEY.encode() + ) + assert plaintext.decode("utf-8") == VECTOR_PLAINTEXT + assert decrypt_sealed_claims(VECTOR_ENC, VECTOR_SECRET, VECTOR_SLIDE_KEY) == { + "image_id": "1", + "tile_source": "file:///app/testdata/1.svs", + "thumbnail_source": "file:///app/testdata/1.jpg", + } + + +@pytest.mark.parametrize( + ("enc", "secret", "slide_key"), + [ + (VECTOR_ENC, VECTOR_SECRET, "f" * 32), + (VECTOR_ENC, VECTOR_SECRET, VECTOR_SLIDE_KEY.upper()), + (VECTOR_ENC, "x" * 46, VECTOR_SLIDE_KEY), + (VECTOR_ENC[:-2] + ("AA" if VECTOR_ENC[-2:] != "AA" else "BB"), VECTOR_SECRET, VECTOR_SLIDE_KEY), + (VECTOR_ENC[:16] + ("A" if VECTOR_ENC[16] != "A" else "B") + VECTOR_ENC[17:], VECTOR_SECRET, VECTOR_SLIDE_KEY), + (VECTOR_ENC[:20], VECTOR_SECRET, VECTOR_SLIDE_KEY), + (VECTOR_ENC + "==", VECTOR_SECRET, VECTOR_SLIDE_KEY), + ("", VECTOR_SECRET, VECTOR_SLIDE_KEY), + (None, VECTOR_SECRET, VECTOR_SLIDE_KEY), + ], +) +def test_tampered_or_rebound_enc_is_rejected(enc, secret, slide_key): + with pytest.raises(InvalidWsiToken) as exc_info: + decrypt_sealed_claims(enc, secret, slide_key) + assert "testdata" not in str(exc_info.value) + assert VECTOR_SLIDE_KEY not in str(exc_info.value) + + +def test_token_with_enc_bound_to_another_slide_key_is_rejected(): + secret = "s" * 32 + claims = valid_claims(secret) + claims["slide_key"] = "f" * 32 + with pytest.raises(InvalidWsiToken, match="source binding"): + validate_wsi_token(make_token(secret, **claims), secret, "cbioportal-wsi") + + +@pytest.mark.parametrize( + "sealed", + [ + "[]", + "not json", + {"image_id": "slide-a", "tile_source": TILE_SOURCE}, + {"image_id": "", "tile_source": TILE_SOURCE, "thumbnail_source": THUMBNAIL_SOURCE}, + {"image_id": 1, "tile_source": TILE_SOURCE, "thumbnail_source": THUMBNAIL_SOURCE}, + ], +) +def test_malformed_sealed_plaintext_is_rejected(sealed): + secret = "s" * 32 + with pytest.raises(InvalidWsiToken, match="source binding"): + validate_wsi_token( + make_v3_token(secret, enc=seal_claims(secret, SLIDE_KEY, sealed)), + secret, + "cbioportal-wsi", + ) + + +def test_v2_tokens_are_rejected(): + secret = "s" * 32 + now = int(time.time()) + v2_claims = { + "sub": "user@example.org", + "aud": "cbioportal-wsi", + "scope": "wsi:read", + "study_id": "study-a", + "image_id": "slide-a", + "wsi_auth_version": 2, + "tile_source_sha256": source_digest(TILE_SOURCE), + "thumbnail_source_sha256": source_digest(THUMBNAIL_SOURCE), + "thumbnail_width": 1024, + "thumbnail_height": 768, + "iat": now, + "exp": now + 300, + } + with pytest.raises(InvalidWsiToken, match="unsupported WSI authorization contract"): + validate_wsi_token(make_token(secret, **v2_claims), secret, "cbioportal-wsi") + with pytest.raises(InvalidWsiToken, match="unsupported WSI authorization contract"): + validate_wsi_token(make_v3_token(secret, wsi_auth_version=2), secret, "cbioportal-wsi") + with pytest.raises(InvalidWsiToken, match="unsupported WSI authorization contract"): + validate_wsi_token(make_v3_token(secret, wsi_auth_version="3"), secret, "cbioportal-wsi") + + +@pytest.mark.parametrize( + "claim", + ["image_id", "tile_source", "thumbnail_source", "tile_source_sha256", "thumbnail_source_sha256"], +) +def test_v3_token_must_not_expose_sealed_claims_in_plaintext(claim): + secret = "s" * 32 + with pytest.raises(InvalidWsiToken, match="exposes sealed"): + validate_wsi_token( + make_v3_token(secret, **{claim: "a" * 64}), secret, "cbioportal-wsi" + ) + + +@pytest.mark.parametrize( + "slide_key", [None, "", "0123456789ABCDEF0123456789ABCDEF", "0" * 31, "0" * 33, 12345] +) +def test_malformed_slide_key_is_rejected(slide_key): + secret = "s" * 32 + claims = valid_claims(secret) + claims["slide_key"] = slide_key + with pytest.raises(InvalidWsiToken, match="invalid token slide"): + validate_wsi_token(make_token(secret, **claims), secret, "cbioportal-wsi") def test_source_cache_identity_changes_when_manifest_fingerprint_changes(): @@ -75,11 +278,9 @@ def test_source_cache_identity_changes_when_manifest_fingerprint_changes(): assert source_cache_identity(source, "a" * 64) == source_cache_identity(source, "a" * 64) -def test_source_fingerprint_is_optional_for_legacy_v2_tokens(): +def test_source_fingerprint_is_optional(): secret = "s" * 32 - claims = validate_wsi_token( - make_token(secret, **valid_claims()), secret, "cbioportal-wsi" - ) + claims = validate_wsi_token(make_v3_token(secret), secret, "cbioportal-wsi") assert "tile_source_fingerprint" not in claims @@ -88,7 +289,7 @@ def test_malformed_source_fingerprint_is_rejected(claim): secret = "s" * 32 with pytest.raises(InvalidWsiToken): validate_wsi_token( - make_token(secret, **valid_claims(**{claim: "not-a-fingerprint"})), + make_v3_token(secret, **{claim: "not-a-fingerprint"}), secret, "cbioportal-wsi", ) @@ -116,17 +317,14 @@ def test_invalid_wsi_auth_configuration_is_rejected(secret, audience, max_ttl): ]) def test_invalid_claims_are_rejected(change): secret = "s" * 32 - claims = valid_claims(**change) with pytest.raises(InvalidWsiToken): - validate_wsi_token(make_token(secret, **claims), secret, "cbioportal-wsi") + validate_wsi_token(make_v3_token(secret, **change), secret, "cbioportal-wsi") def test_wrong_secret_is_rejected(): secret = "s" * 32 with pytest.raises(InvalidWsiToken): - validate_wsi_token( - make_token(secret, **valid_claims()), "x" * 32, "cbioportal-wsi" - ) + validate_wsi_token(make_v3_token(secret), "x" * 32, "cbioportal-wsi") def test_non_object_header_and_payload_are_rejected(): @@ -143,17 +341,15 @@ def test_non_object_header_and_payload_are_rejected(): @pytest.mark.parametrize("change", [ {"study_id": ""}, - {"image_id": ""}, - {"tile_source_sha256": ""}, + {"slide_key": ""}, + {"enc": ""}, {"thumbnail_width": 0}, {"exp": int(time.time()) + 1000}, ]) def test_source_bound_claims_and_max_ttl_are_required(change): secret = "s" * 32 with pytest.raises(InvalidWsiToken): - validate_wsi_token( - make_token(secret, **valid_claims(**change)), secret, "cbioportal-wsi" - ) + validate_wsi_token(make_v3_token(secret, **change), secret, "cbioportal-wsi") def test_token_lifetime_cannot_exceed_configured_limit(): @@ -161,10 +357,7 @@ def test_token_lifetime_cannot_exceed_configured_limit(): now = int(time.time()) with pytest.raises(InvalidWsiToken): validate_wsi_token( - make_token( - secret, - **valid_claims(iat=now, exp=now + 11), - ), + make_v3_token(secret, iat=now, exp=now + 11), secret, "cbioportal-wsi", max_ttl=10, diff --git a/tests/test_config.py b/tests/test_config.py index ae6f443..b8092e8 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -93,11 +93,11 @@ def test_release_identity_reads_environment(self): s = make_settings( WSI_RELEASE_ID="candidate-1", IMAGE_GIT_SHA="a" * 40, - WSI_SERVING_CONTRACT_VERSION="wsi-serving-v3", + WSI_SERVING_CONTRACT_VERSION="wsi-serving-v5", ) assert s.release_id == "candidate-1" assert s.image_git_sha == "a" * 40 - assert s.serving_contract_version == "wsi-serving-v3" + assert s.serving_contract_version == "wsi-serving-v5" def test_wsi_artifact_prefixes_read_environment(self): s = make_settings( diff --git a/tests/test_deid.py b/tests/test_deid.py index 0f45f45..ec48520 100644 --- a/tests/test_deid.py +++ b/tests/test_deid.py @@ -1,7 +1,11 @@ +import json + import pytest from app.deid import DeidViolation, validate_artifact_uri, validate_timeline_public_row, validate_wsi_public_row +SLIDE_KEY = "0123456789abcdef0123456789abcdef" + @pytest.mark.parametrize( "value", @@ -9,7 +13,7 @@ ) def test_public_wsi_row_rejects_common_absolute_date_formats(value): with pytest.raises(DeidViolation): - validate_wsi_public_row({"IMAGE_ID": "slide-1", "PATH_DX_TITLE": value}) + validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "PATH_DX_TITLE": value}) def test_artifact_uri_requires_an_approved_prefix_and_rejects_traversal(): @@ -38,24 +42,20 @@ def test_artifact_uri_allows_pipeline_date_under_approved_prefix(): ) -def test_timeline_rows_require_sorted_unique_image_ids(): +@pytest.mark.parametrize("field", ["IMAGE_IDS", "IMAGE_ID"]) +def test_timeline_rows_reject_real_image_id_columns(field): validate_timeline_public_row( { "PATIENT_ID": "P-1", "IMAGE_COUNT": "1", "NON_SERVABLE_IMAGE_COUNT": "1", "TOTAL_IMAGE_COUNT": "2", - "IMAGE_IDS": '["slide-1","slide-2"]', "START_DATE": "-14", } ) - with pytest.raises(DeidViolation): + with pytest.raises(DeidViolation, match="forbidden timeline field"): validate_timeline_public_row( - { - "PATIENT_ID": "P-1", - "IMAGE_IDS": '["slide-2","slide-1"]', - "START_DATE": "-14", - } + {"PATIENT_ID": "P-1", field: '["slide-1"]', "START_DATE": "-14"} ) @@ -64,7 +64,7 @@ def test_public_wsi_row_rejects_mrn_and_absolute_date_but_keeps_pseudonyms(): "PATIENT_ID": "P-1", "REFERENCE_SAMPLE_ID": "S-REF", "SAMPLE_ID": "S-1", - "IMAGE_ID": "slide-1", + "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "BARCODE": "S-1", "PATH_DX_TITLE": "MRN: 123456", "SOURCE_URL": "s3://slides/slide-1.svs", @@ -102,7 +102,7 @@ def test_timeline_rows_only_allow_relative_start_dates(): def test_public_wsi_row_rejects_compact_absolute_dates_and_encoded_identifiers(): with pytest.raises(DeidViolation): - validate_wsi_public_row({"IMAGE_ID": "slide-1", "PATH_DX_TITLE": "20240131"}) + validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "PATH_DX_TITLE": "20240131"}) with pytest.raises(DeidViolation): validate_artifact_uri( "s3://slides/P-1%2FMRN%3A123456.svs", @@ -117,7 +117,7 @@ def test_public_wsi_row_rejects_unknown_tile_metadata_fields(): with pytest.raises(DeidViolation): validate_wsi_public_row( { - "IMAGE_ID": "slide-1", + "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "TILE_METADATA_JSON": '{"dimensions": {}, "patient_name": "Alice"}', } ) @@ -126,7 +126,7 @@ def test_public_wsi_row_rejects_unknown_tile_metadata_fields(): def test_public_wsi_row_allows_large_numeric_geometry_and_file_size_values(): validate_wsi_public_row( { - "IMAGE_ID": "slide-1", + "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "FILE_SIZE_BYTES": "2012345678", "TILE_METADATA_JSON": '{"dimensions":{"width":20240101,"height":256}}', } @@ -135,7 +135,7 @@ def test_public_wsi_row_allows_large_numeric_geometry_and_file_size_values(): def test_public_wsi_row_requires_thumbnail_mime_to_match_extension(): row = { - "IMAGE_ID": "slide-1", + "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "THUMBNAIL_URL": "s3://thumbs/slide-1.jpg", "THUMBNAIL_CONTENT_TYPE": "image/png", } @@ -148,14 +148,91 @@ def test_public_wsi_row_requires_thumbnail_mime_to_match_extension(): def test_public_wsi_row_allows_identity_metadata_from_thumbnail_registry(): validate_wsi_public_row( { - "IMAGE_ID": "slide-1", + "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "TILE_METADATA_JSON": '{"dimensions": {}, "identity_version": "v2"}', } ) +def test_public_wsi_row_allows_date_like_hex_source_fingerprint(): + # Eight-digit runs such as 20190412 occur naturally in SHA-256 hex. + fingerprint = "ab20190412" + "c" * 54 + validate_wsi_public_row( + { + "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, + "TILE_METADATA_JSON": json.dumps({"dimensions": {}, "source_fingerprint": fingerprint}), + } + ) + for bad in ("2019-04-12", "not-a-digest", 123): + with pytest.raises(DeidViolation): + validate_wsi_public_row( + { + "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, + "TILE_METADATA_JSON": json.dumps({"dimensions": {}, "source_fingerprint": bad}), + } + ) + + def test_public_rows_reject_identifier_field_names_even_without_labelled_values(): with pytest.raises(DeidViolation): - validate_wsi_public_row({"IMAGE_ID": "slide-1", "MRN_ID": "123456"}) + validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "MRN_ID": "123456"}) with pytest.raises(DeidViolation): validate_timeline_public_row({"PATIENT_MRN": "123456", "START_DATE": "-1"}) + + +@pytest.mark.parametrize( + "value", + ["S12-34567", "s99-123", "Part S20-1234 A1", "MSK:S1234", "msk:s9"], +) +def test_public_rows_reject_accession_numbers_in_every_text_column(value): + for field in ("PATH_DX_TITLE", "IMAGE_ID", "SAMPLE_ID", "PATIENT_ID", "BARCODE"): + row = {"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, field: value} + with pytest.raises(DeidViolation, match="accession") as exc_info: + validate_wsi_public_row(row) + assert value not in str(exc_info.value) + for field in ("SPECIMEN", "LINKOUT", "PATIENT_ID", "SAMPLE_ID"): + with pytest.raises(DeidViolation, match="accession"): + validate_timeline_public_row({"PATIENT_ID": "P-1", field: value, "START_DATE": "-1"}) + + +@pytest.mark.parametrize("value", ["S-1", "AS12-345", "S1-2345", "S12-34"]) +def test_accession_pattern_does_not_flag_pseudonyms(value): + validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "SAMPLE_ID": value}) + + +@pytest.mark.parametrize( + "slide_key", + ["", "0123456789ABCDEF0123456789ABCDEF", "0123456789abcdef", "g" * 32, SLIDE_KEY + "0"], +) +def test_public_wsi_row_requires_opaque_slide_key(slide_key): + with pytest.raises(DeidViolation, match="SLIDE_KEY"): + validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": slide_key}) + + +def test_slide_key_hex_is_not_mistaken_for_a_compact_date(): + validate_wsi_public_row( + {"IMAGE_ID": "slide-1", "SLIDE_KEY": "abc20210314def0123456789abcdef01"} + ) + + +def test_image_id_is_no_longer_an_unscanned_identifier(): + with pytest.raises(DeidViolation, match="absolute date"): + validate_wsi_public_row({"IMAGE_ID": "2021-03-14", "SLIDE_KEY": SLIDE_KEY}) + + +def test_public_wsi_row_allows_date_like_hex_in_opaque_keys_and_server_only_fields(): + key = "20190412" + "a" * 24 + validate_wsi_public_row( + { + "IMAGE_ID": "20190412", "SLIDE_KEY": SLIDE_KEY, + "PART_KEY": f"part:{key}", "BLOCK_KEY": f"block:{key}", + "SPECIMEN_KEY": f"block::part:{key}::block:{key}", + } + ) + # Non-canonical keys are still scanned as text. + with pytest.raises(DeidViolation): + validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "PART_KEY": "part:20190412"}) + # Server-only fields still reject accessions and labelled MRNs. + for bad in ("s3://bucket/S12-34567.svs", "s3://bucket/mrn 1234567.svs"): + with pytest.raises(DeidViolation): + validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "SOURCE_URL": bad}) diff --git a/tests/test_main.py b/tests/test_main.py index 1675fa1..0afbae2 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -8,6 +8,15 @@ from tifffile import TiffFileError import app.main as main_module +from tests.test_auth import ( + SLIDE_KEY, + THUMBNAIL_SOURCE, + TILE_SOURCE, + make_token, + make_v3_token, +) + +WSI_SECRET = "s" * 32 class TestReadinessIdentity: @@ -15,7 +24,7 @@ def test_release_identity_is_reported_when_complete(self, monkeypatch): monkeypatch.setattr(main_module.settings, "release_id", "candidate-1") monkeypatch.setattr(main_module.settings, "image_git_sha", "a" * 40) monkeypatch.setattr( - main_module.settings, "serving_contract_version", "wsi-serving-v3" + main_module.settings, "serving_contract_version", "wsi-serving-v5" ) monkeypatch.setattr( main_module.settings, "wsi_allowed_source_prefixes", ("s3://pathology/",) @@ -533,24 +542,53 @@ async def test_unauthenticated_tile_get_remains_protected(self): assert response.status_code == 401 +@pytest.fixture +def wsi_auth_settings(monkeypatch): + monkeypatch.setattr(main_module.settings, "wsi_auth_secret", WSI_SECRET) + monkeypatch.setattr(main_module.settings, "wsi_auth_previous_secret", "") + monkeypatch.setattr(main_module.settings, "wsi_auth_audience", "cbioportal-wsi") + monkeypatch.setattr(main_module.settings, "wsi_auth_max_ttl", 300) + monkeypatch.setattr(main_module.settings, "wsi_allowed_source_schemes", ["s3", "file"]) + monkeypatch.setattr(main_module.settings, "wsi_allowed_source_prefixes", ["s3://slides/"]) + monkeypatch.setattr(main_module.settings, "wsi_allowed_thumbnail_prefixes", ["s3://thumbs/"]) + + +def _bearer(token: str) -> dict: + return {"Authorization": f"Bearer {token}"} + + class TestSourceBinding: - def test_source_header_is_preferred_when_query_is_absent(self): + def test_client_source_header_is_rejected(self): request = httpx.Request( "GET", "http://test/thumbnails", headers={"X-WSI-Source": "s3://bucket/thumbnail.jpg"}, ) - assert main_module._source_from_request(request, None) == "s3://bucket/thumbnail.jpg" + with pytest.raises(main_module.HTTPException) as exc_info: + main_module._reject_client_source(request, None) + assert exc_info.value.status_code == 400 + assert "s3://" not in str(exc_info.value.detail) + + @pytest.mark.parametrize("query_source", ["s3://bucket/thumbnail.jpg", ""]) + def test_client_source_query_is_rejected(self, query_source): + request = httpx.Request("GET", "http://test/thumbnails") + with pytest.raises(main_module.HTTPException) as exc_info: + main_module._reject_client_source(request, query_source) + assert exc_info.value.status_code == 400 - def test_rate_limit_scope_is_shared_by_tile_and_thumbnail_sources(self): - claims = {"study_id": "study-a", "image_id": "slide-a"} + def test_requests_without_client_source_are_accepted(self): + main_module._reject_client_source(httpx.Request("GET", "http://test/thumbnails"), None) - assert main_module._slide_rate_limit_scope(claims) == "study-a\0slide-a" + def test_rate_limit_scope_uses_slide_key(self): + claims = {"study_id": "study-a", "slide_key": SLIDE_KEY, "image_id": "slide-a"} + + assert main_module._slide_rate_limit_scope(claims) == f"study-a\0{SLIDE_KEY}" + assert "slide-a" not in main_module._slide_rate_limit_scope(claims) @pytest.mark.asyncio async def test_tile_and_thumbnail_share_slide_rate_limit_scope(self): source = "s3://bucket/slide.svs" - claims = {"sub": "subject", "study_id": "study-a", "image_id": "slide-a"} + claims = {"sub": "subject", "study_id": "study-a", "slide_key": SLIDE_KEY} distributed_results = [ b"jpeg", (b"jpeg", {"status": "ok", "reason": "test"}), @@ -571,11 +609,11 @@ async def test_tile_and_thumbnail_share_slide_rate_limit_scope(self): 0, 0, 0, - source, + None, ) thumbnail_response = await main_module.thumbnail( httpx.Request("GET", "http://test/thumbnails"), - source, + None, 256, 256, ) @@ -583,20 +621,10 @@ async def test_tile_and_thumbnail_share_slide_rate_limit_scope(self): assert tile_response.status_code == 200 assert thumbnail_response.status_code == 200 assert [call.args[3] for call in distributed.await_args_list] == [ - "study-a\0slide-a", - "study-a\0slide-a", + f"study-a\0{SLIDE_KEY}", + f"study-a\0{SLIDE_KEY}", ] - def test_conflicting_source_bindings_are_rejected(self): - request = httpx.Request( - "GET", - "http://test/thumbnails", - headers={"X-WSI-Source": "s3://bucket/header.jpg"}, - ) - with pytest.raises(main_module.HTTPException) as exc_info: - main_module._source_from_request(request, "s3://bucket/query.jpg") - assert exc_info.value.status_code == 400 - @pytest.mark.asyncio async def test_metrics_bypasses_capability_guard(self): scope = { @@ -613,95 +641,144 @@ async def call_next(request): response = await main_module.require_wsi_capability(starlette_request, call_next) assert response.status_code == 204 - -class TestSourceBinding: - def test_source_header_is_used_when_query_is_absent(self): - request = httpx.Request( - "GET", - "http://test/thumbnails", - headers={"X-WSI-Source": "s3://bucket/thumbnail.jpg"}, + @pytest.mark.parametrize( + ("operation", "expected"), + [("tile", TILE_SOURCE), ("thumbnail", THUMBNAIL_SOURCE)], + ) + def test_authorize_source_uses_decrypted_capability_source( + self, wsi_auth_settings, operation, expected + ): + request = httpx.Request("GET", "http://test/tiles/zxy/0/0/0") + request.state = type("State", (), {})() + request.state.wsi_claims = main_module.validate_wsi_token( + make_v3_token(WSI_SECRET), WSI_SECRET, "cbioportal-wsi" ) - assert main_module._source_from_request(request, None) == "s3://bucket/thumbnail.jpg" + source, claims = main_module._authorize_source(request, operation) - def test_query_source_remains_supported(self): - request = httpx.Request("GET", "http://test/thumbnails") + assert source == expected + assert claims["slide_key"] == SLIDE_KEY - assert main_module._source_from_request(request, "s3://bucket/thumbnail.jpg") == ( - "s3://bucket/thumbnail.jpg" + def test_authorize_source_applies_deid_policy_to_decrypted_source( + self, wsi_auth_settings, monkeypatch + ): + monkeypatch.setattr(main_module.settings, "wsi_allowed_source_prefixes", ["s3://other/"]) + request = httpx.Request("GET", "http://test/tiles/zxy/0/0/0") + request.state = type("State", (), {})() + request.state.wsi_claims = main_module.validate_wsi_token( + make_v3_token(WSI_SECRET), WSI_SECRET, "cbioportal-wsi" ) - def test_matching_header_and_query_source_are_accepted(self): - request = httpx.Request( - "GET", - "http://test/thumbnails", - headers={"X-WSI-Source": "s3://bucket/thumbnail.jpg"}, - ) + with pytest.raises(main_module.HTTPException) as exc_info: + main_module._authorize_source(request, "tile") - assert main_module._source_from_request( - request, "s3://bucket/thumbnail.jpg" - ) == "s3://bucket/thumbnail.jpg" + assert exc_info.value.status_code == 403 + assert "s3://" not in str(exc_info.value.detail) - def test_conflicting_source_bindings_are_rejected(self): - request = httpx.Request( - "GET", - "http://test/thumbnails", - headers={"X-WSI-Source": "s3://bucket/header.jpg"}, - ) - with pytest.raises(main_module.HTTPException) as exc_info: - main_module._source_from_request(request, "s3://bucket/query.jpg") +class TestCapabilityRoutes: + @pytest.mark.asyncio + async def test_tile_route_serves_decrypted_source(self, wsi_auth_settings): + get_tile = AsyncMock(return_value=b"tile") + transport = httpx.ASGITransport(app=main_module.app) + with patch.object(main_module.tile_cache, "get_tile", new=get_tile): + async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: + response = await client.get( + "/tiles/zxy/0/0/0", headers=_bearer(make_v3_token(WSI_SECRET)) + ) - assert exc_info.value.status_code == 400 + assert response.status_code == 200 + assert response.content == b"tile" + assert get_tile.await_args.args[0] == main_module.source_cache_identity(TILE_SOURCE) @pytest.mark.asyncio - async def test_tile_route_accepts_header_only_source(self): - request = httpx.Request( - "GET", - "http://test/tiles/zxy/0/0/0", - headers={"X-WSI-Source": "s3://bucket/slide.svs"}, + async def test_thumbnail_route_serves_decrypted_source(self, wsi_auth_settings): + get_thumbnail = AsyncMock(return_value=b"thumbnail") + transport = httpx.ASGITransport(app=main_module.app) + with patch.object(main_module.tile_cache, "get_thumbnail", new=get_thumbnail): + async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: + response = await client.get( + "/wsi/thumbnails?width=128&height=96", + headers=_bearer(make_v3_token(WSI_SECRET)), + ) + + assert response.status_code == 200 + assert response.content == b"thumbnail" + assert get_thumbnail.await_args.args[0] == main_module.source_cache_identity( + THUMBNAIL_SOURCE ) - cached_tile = b"tile" + @pytest.mark.asyncio + @pytest.mark.parametrize("path", ["/tiles/zxy/0/0/0", "/thumbnails"]) + @pytest.mark.parametrize( + ("query", "headers"), + [ + ("?source=s3%3A%2F%2Fslides%2Fslide-a.svs", {}), + ("?source=", {}), + ("", {"X-WSI-Source": "s3://slides/slide-a.svs"}), + ("", {"x-wsi-source": ""}), + ], + ) + async def test_routes_reject_client_supplied_sources( + self, wsi_auth_settings, path, query, headers + ): + transport = httpx.ASGITransport(app=main_module.app) with ( - patch.object( - main_module, - "_authorize_source", - return_value=("s3://bucket/slide.svs", {"sub": "test-user"}), - ) as authorize, - patch.object( - main_module.tile_cache, - "get_tile", - new=AsyncMock(return_value=cached_tile), - ), + patch.object(main_module.tile_cache, "get_tile", new=AsyncMock(return_value=b"x")), + patch.object(main_module.tile_cache, "get_thumbnail", new=AsyncMock(return_value=b"x")), ): - response = await main_module.tile(request, 0, 0, 0, None) + async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: + response = await client.get( + path + query, + headers={**_bearer(make_v3_token(WSI_SECRET)), **headers}, + ) - authorize.assert_called_once_with(request, "s3://bucket/slide.svs", "tile") - assert response.body == cached_tile + assert response.status_code == 400 + assert "s3://" not in response.text @pytest.mark.asyncio - async def test_thumbnail_route_accepts_header_only_source(self): - request = httpx.Request( - "GET", - "http://test/thumbnails", - headers={"X-WSI-Source": "s3://bucket/thumbnail.jpg"}, + async def test_v2_capability_is_rejected(self, wsi_auth_settings): + now = int(main_module.time.time()) + v2_token = make_token( + WSI_SECRET, + sub="user@example.org", + aud="cbioportal-wsi", + scope="wsi:read", + study_id="study-a", + image_id="slide-a", + wsi_auth_version=2, + tile_source_sha256=main_module.source_digest(TILE_SOURCE), + thumbnail_source_sha256=main_module.source_digest(THUMBNAIL_SOURCE), + thumbnail_width=1024, + thumbnail_height=768, + iat=now, + exp=now + 300, ) - cached_thumbnail = b"thumbnail" + transport = httpx.ASGITransport(app=main_module.app) + async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: + response = await client.get( + "/tiles/zxy/0/0/0?source=s3%3A%2F%2Fslides%2Fslide-a.svs", + headers=_bearer(v2_token), + ) - with ( - patch.object( - main_module, - "_authorize_source", - return_value=("s3://bucket/thumbnail.jpg", {"sub": "test-user"}), - ) as authorize, - patch.object( - main_module.tile_cache, - "get_thumbnail", - new=AsyncMock(return_value=cached_thumbnail), - ), - ): - response = await main_module.thumbnail(request, None, 128, 96) + assert response.status_code == 401 + + @pytest.mark.asyncio + async def test_previous_secret_also_decrypts_sealed_claims( + self, wsi_auth_settings, monkeypatch + ): + previous = "p" * 32 + monkeypatch.setattr(main_module.settings, "wsi_auth_previous_secret", previous) + get_tile = AsyncMock(return_value=b"tile") + transport = httpx.ASGITransport(app=main_module.app) + with patch.object(main_module.tile_cache, "get_tile", new=get_tile): + async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: + response = await client.get( + "/tiles/zxy/0/0/0", headers=_bearer(make_v3_token(previous)) + ) + + assert response.status_code == 200 + assert get_tile.await_args.args[0] == main_module.source_cache_identity(TILE_SOURCE) - authorize.assert_called_once_with(request, "s3://bucket/thumbnail.jpg", "thumbnail") - assert response.body == cached_thumbnail + def test_readiness_reports_v3_auth_contract(self): + assert main_module.health()["auth_contract_version"] == 3 diff --git a/tools/run_local_snapshot_wsi_server.py b/tools/run_local_snapshot_wsi_server.py index c086066..f8004d5 100644 --- a/tools/run_local_snapshot_wsi_server.py +++ b/tools/run_local_snapshot_wsi_server.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Run the source-bound local WSI pixel service.""" +"""Run the capability-bound local WSI pixel service.""" from __future__ import annotations diff --git a/uv.lock b/uv.lock index acf9e5d..21bf4e8 100644 --- a/uv.lock +++ b/uv.lock @@ -289,6 +289,7 @@ version = "0.1.0" source = { editable = "." } dependencies = [ { name = "boto3" }, + { name = "cryptography" }, { name = "fastapi" }, { name = "fsspec" }, { name = "gunicorn" }, @@ -313,6 +314,7 @@ dev = [ [package.metadata] requires-dist = [ { name = "boto3", specifier = ">=1.34.0" }, + { name = "cryptography", specifier = ">=42.0.0" }, { name = "fastapi", specifier = ">=0.111.0" }, { name = "fsspec", specifier = ">=2024.3.0" }, { name = "gunicorn", specifier = ">=22.0.0" }, @@ -343,6 +345,104 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/59/8c/57e832b7af6d7c5abe66eb3fbe3a3a32f4d11ea23a1aa7131371035be991/certifi-2026.5.20-py3-none-any.whl", hash = "sha256:3c52e209ba0a4ad7aebe60436a4ab349c39e1e602e8c134221e546902ad25897", size = 134134, upload-time = "2026-05-20T11:46:48.578Z" }, ] +[[package]] +name = "cffi" +version = "2.1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pycparser", marker = "implementation_name != 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9e/ef/008a1939e372c06329a3fce4279c02f328488f3526744906eeec3da7ad5f/cffi-2.1.1.tar.gz", hash = "sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be", size = 530807, upload-time = "2026-08-03T21:21:18.939Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/70/d2/16d99a0c4948febc0ebd133a13b2f688ff7f8cb04da971e1128872ce0c03/cffi-2.1.1-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:c8d2c9fd1f2d16f780d15127abb050d13d1a76c03a4bd87d7e4980e45e511e12", size = 183838, upload-time = "2026-08-03T21:19:29.637Z" }, + { url = "https://files.pythonhosted.org/packages/cd/95/31b535a9f0220ae9f357de4a08d57ce89cb417653c2fd9f075f50822a388/cffi-2.1.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:398aff33cee2767e3e781d2554c54bd0dff386bb437581e0d8011fde1a942ec1", size = 184168, upload-time = "2026-08-03T21:19:30.764Z" }, + { url = "https://files.pythonhosted.org/packages/ad/5a/4707a0dc1f203f5dde5a907b0d4e3c25d71120241048bd5bc6f1bb9d4e71/cffi-2.1.1-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:154852545011f779917b11c78db2358d095da62a9a172b78ad0a583ee5adc0d0", size = 211805, upload-time = "2026-08-03T21:19:31.867Z" }, + { url = "https://files.pythonhosted.org/packages/ad/66/c19feabb28485b6e0bbaaafa90837a1ef5d302e90f2178bd33f17a49879b/cffi-2.1.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3311ed60d36f83378794e1009ac6258bafbf81f7888b4caa7b35a521e3f95813", size = 218716, upload-time = "2026-08-03T21:19:32.896Z" }, + { url = "https://files.pythonhosted.org/packages/a7/92/500760486c8baab49a7a8a58ba7fc3355ec3974b454b8a09e528efde9e1d/cffi-2.1.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:6e192623c49c94421616a5778fba35cf0d5a8d000650c1967ef4448ee5cdd990", size = 205569, upload-time = "2026-08-03T21:19:34.142Z" }, + { url = "https://files.pythonhosted.org/packages/a5/a7/a67c733254d6e7373f7822f8082d8d6beade791e0cf12a7611f376fa61c7/cffi-2.1.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a6e721d4b0e45d5b65e87534470e67b18dcd092c83f68fba09f152b9cbc061af", size = 204907, upload-time = "2026-08-03T21:19:35.174Z" }, + { url = "https://files.pythonhosted.org/packages/f7/a4/4399daaf8f7dfee9d7c3327fdb0426ee041cc63edc358b93911ceb2bfc7a/cffi-2.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:34e261f78cb6ceaaa36f42f2613f4380d94d9c759a9c73c769ee6e0247364632", size = 217807, upload-time = "2026-08-03T21:19:36.286Z" }, + { url = "https://files.pythonhosted.org/packages/28/f7/dabe6da2466ecbd82dc62e7342dc6b1065dad990c06f00f0ede9ebf2a0ed/cffi-2.1.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7225e4514edb64eb6740324353e0da0711954fd8d7da4576755b1c6e09b697cd", size = 221252, upload-time = "2026-08-03T21:19:37.416Z" }, + { url = "https://files.pythonhosted.org/packages/ce/87/616202d8e51342c07d2534c510111c4cc37201775ce8f60802c9335d1edd/cffi-2.1.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:df913725b79db7bcf03448f36b7bf8815363417d5b58deecf9305e3e30f0f21a", size = 214214, upload-time = "2026-08-03T21:19:38.507Z" }, + { url = "https://files.pythonhosted.org/packages/b4/c6/ab025d75d2c26c19b087c0124e75ee31cb65032f4fe345d356d8c507ab97/cffi-2.1.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f5cfbc5fe74540d335175b656c725d74d90e3730c626d92575eea35029d9afaa", size = 219408, upload-time = "2026-08-03T21:19:39.809Z" }, + { url = "https://files.pythonhosted.org/packages/db/e2/7e8109f65445bdc673a7b54f02c677de462db75674220fd1335efc8eb598/cffi-2.1.1-cp311-cp311-win32.whl", hash = "sha256:f8ec5e643a9a937f64e1999eb9f75d072263751912dc5cd06d3c85f8f44be7c3", size = 174470, upload-time = "2026-08-03T21:19:41.246Z" }, + { url = "https://files.pythonhosted.org/packages/73/c0/77ba02423c2f7d7091143c45cd49e0e6575c4c1967394bb542bd923a9b74/cffi-2.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:42f6930c31dc7f50732c9ae793c2786c7b6b044195967bbdde40bb9be81c4cc0", size = 185096, upload-time = "2026-08-03T21:19:42.615Z" }, + { url = "https://files.pythonhosted.org/packages/7c/47/9f1f85f9672ceda4984dc6c4f8824e8558992a2972c3d3c81fb8eb28d4ba/cffi-2.1.1-cp311-cp311-win_arm64.whl", hash = "sha256:c7659f22557c5a0bc4855cd635f55edec690cc008a40768527762cb9fb263455", size = 179941, upload-time = "2026-08-03T21:19:43.747Z" }, + { url = "https://files.pythonhosted.org/packages/10/69/43965eccfdead3b9220015fd1320e117be8c6ed01a62ffab76eeb752f5d5/cffi-2.1.1-cp312-cp312-macosx_10_15_x86_64.whl", hash = "sha256:c8c69575568085ba0b1b10c0249d779a214aea6f6522e949a0fc9fb0fcb449d0", size = 184821, upload-time = "2026-08-03T21:19:44.887Z" }, + { url = "https://files.pythonhosted.org/packages/54/7d/16e5a096677b5e313ca80cd5e5170efa3ea44624a82bb111925522da64b1/cffi-2.1.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f81b3b8f3d4e343550fa4baa0e479bba9f2d29ce9c2e9b51d1ce1718d7442fcf", size = 184719, upload-time = "2026-08-03T21:19:46.129Z" }, + { url = "https://files.pythonhosted.org/packages/56/e6/8941622732edec876dd17d0453dce07317ae96db34f2ec1436c9d3785986/cffi-2.1.1-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:811bd1e21d32de12efca32393a0ab3f5133b54fce9bd44b8bd77ab07da14bf6a", size = 214799, upload-time = "2026-08-03T21:19:47.218Z" }, + { url = "https://files.pythonhosted.org/packages/44/de/f98430906df1545ffde0d543dd124a7a439bc2cd32b36b9c53f805df7333/cffi-2.1.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:68e62fe11f30d5ca8289242866f0a5291402d8529ca2178ab8afc5c9694ae890", size = 222389, upload-time = "2026-08-03T21:19:48.331Z" }, + { url = "https://files.pythonhosted.org/packages/6a/5b/717f1526b9957b34456313c31645c5b82b8fb5c3fe9e4752999be7128bfc/cffi-2.1.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:4a7c934f7360e8cd64fe9efadcbd10c7c6364f531e432b9a4bf5ccbc9e0e8b50", size = 210249, upload-time = "2026-08-03T21:19:49.543Z" }, + { url = "https://files.pythonhosted.org/packages/64/b3/f8aa4f3e34986c7e4ec45072d1b1b9dd295b6b18007b45518d79726dd725/cffi-2.1.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:3143d81e29e1e20a9ce10901ec369012947876596f75a222235965f2b7ae832e", size = 208775, upload-time = "2026-08-03T21:19:50.918Z" }, + { url = "https://files.pythonhosted.org/packages/b1/db/dceb9dd5b231e1da801793f8acc9f3c52a7e1afe40bb1aae37e02b0faad5/cffi-2.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c1453022f490d2459a11819d83ad1d586e9ff65a12ac3e705ffebd46d3685dcf", size = 221822, upload-time = "2026-08-03T21:19:52.054Z" }, + { url = "https://files.pythonhosted.org/packages/a0/d2/6cd24ae3be000a634109c247d1475d62e5616d0dc78c82770942ec384248/cffi-2.1.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:208f941bb9d18e768138677f0a6d2ce01f590df56043dda1df1535ac57c88517", size = 225232, upload-time = "2026-08-03T21:19:53.109Z" }, + { url = "https://files.pythonhosted.org/packages/cb/52/3fa190537004dd7f0ab860a6dc7c0175b8667f68d1e618a46f5498d30250/cffi-2.1.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:210019b6c7cf07f081b4c54635c8cf744377001350e29cc0f81c4377b4797735", size = 223597, upload-time = "2026-08-03T21:19:54.515Z" }, + { url = "https://files.pythonhosted.org/packages/80/fb/0bb75b7039588c074b37ae99f40d9bfddf990ecb2fbc346ebccd2e56b9be/cffi-2.1.1-cp312-cp312-win32.whl", hash = "sha256:046bfc24911b37851ee1b51aab8bffe713d89c68c6a057b09484ce9fd5f69b4e", size = 175292, upload-time = "2026-08-03T21:19:55.566Z" }, + { url = "https://files.pythonhosted.org/packages/d9/79/615cc094e2fb508cade7de88d3b4f6c4ec2bab695c97bce9153dc65aadf5/cffi-2.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:f53e442b08449d42821fa4a4fba000095af9f62742a500f978a9f557ec44339a", size = 185919, upload-time = "2026-08-03T21:19:56.89Z" }, + { url = "https://files.pythonhosted.org/packages/70/c6/d0ea84713fe46b243a436a18fcd47d639732747e21635c8a27191b06dc30/cffi-2.1.1-cp312-cp312-win_arm64.whl", hash = "sha256:7bde5e4cc5c10140859842b9d383af292b22639a4dffb725314baf45968cef80", size = 180093, upload-time = "2026-08-03T21:19:58.155Z" }, + { url = "https://files.pythonhosted.org/packages/9d/f4/035513d4117049066b4779dc3b7c0c0fdad175fa13731c9f4003f1cd1478/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:b5bdfd1c873d4e093aabc0ca84c4ca6dbc4f752afb5c86f146d9742580c9da2e", size = 194248, upload-time = "2026-08-03T21:19:59.399Z" }, + { url = "https://files.pythonhosted.org/packages/76/af/2aeb4dbb5fc41a04161ae9ff1518de7cec08e164f44a8ce6a4cf7fd2cd1d/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:31348097ff5bbe827ccc41795d4dd099d9f0625e7def00ee653c137a490c2a6c", size = 196908, upload-time = "2026-08-03T21:20:00.746Z" }, + { url = "https://files.pythonhosted.org/packages/a7/46/2e5fdde8555706dd98139a910ca11be02809f3f605ce956f655d0214e100/cffi-2.1.1-cp313-cp313-macosx_10_15_x86_64.whl", hash = "sha256:9d2055050ea716bd38b7f7f1579c275386646b4894c155a3e2f3cd62ed41b7c6", size = 184805, upload-time = "2026-08-03T21:20:02.02Z" }, + { url = "https://files.pythonhosted.org/packages/55/41/4c7042f317b9217502988f0873af87e16ad606dc20f84e546e3e6ce9764c/cffi-2.1.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:19ee6127ee34de7d83ce3d371ebc5ed91addbdcc39f9ab15ce4eb35a4e534971", size = 184764, upload-time = "2026-08-03T21:20:03.141Z" }, + { url = "https://files.pythonhosted.org/packages/43/1f/1c3d90d91811c8f86ced9ed637956c54bfe5b79ca98fe976d7f8c8979f6b/cffi-2.1.1-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:6a8dddef476fab96d066d578fc88526767b836ab5ab21754e1d5bf3879c31c7c", size = 214722, upload-time = "2026-08-03T21:20:04.377Z" }, + { url = "https://files.pythonhosted.org/packages/37/6f/3b5ce4c3b2192d250f04908f2bfd91ef34552ec8f7716a5d4abdb8d67bb2/cffi-2.1.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f16c709686a78c727bbbf059f92b0bf41c6fc60deec706d2dc19f529175a6125", size = 222369, upload-time = "2026-08-03T21:20:05.544Z" }, + { url = "https://files.pythonhosted.org/packages/02/10/4b3c75dde3d9663c9e02ba05c2668b954f671d4bbe346413ca8c696b295a/cffi-2.1.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:fcd22650c908d7b7da162bbfaab594a1227a15d1643a98c68b122ac642fa2264", size = 210175, upload-time = "2026-08-03T21:20:06.75Z" }, + { url = "https://files.pythonhosted.org/packages/df/62/14f74b9543e605d17701dc797b815958b8bb70b7624ce1b832ddad48ed6c/cffi-2.1.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:aa9511c62d14da7aacc9b4bf51f3f697a621e83b2d6919008243c3aad168eea3", size = 208670, upload-time = "2026-08-03T21:20:08.04Z" }, + { url = "https://files.pythonhosted.org/packages/95/95/86342356ff5953b3fb06f7ef7c5bee212d45e770abc7218d451b9148313c/cffi-2.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:a931079504ecc49efed7744c476a5c343a92fabf66dec2db95edb1b2fdc770e2", size = 221824, upload-time = "2026-08-03T21:20:09.274Z" }, + { url = "https://files.pythonhosted.org/packages/eb/ff/7b3429ff53aafe931ed8a5fc69f481bbef7ba6de87ddcbb63d08f483f613/cffi-2.1.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a2d7755bef5a12ed488f4ef1f1b69ee9191d7396083b755a5d2295f6edb4768b", size = 225148, upload-time = "2026-08-03T21:20:10.7Z" }, + { url = "https://files.pythonhosted.org/packages/34/34/a95870b9221e09cf4f2ce3178b1a210abdfe63a1bd357da940418d7b8d15/cffi-2.1.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e0bcb7e0f677f543555d2adff3bf19c05f66cdb4796e5ff602442ab2fe3c4ef7", size = 223564, upload-time = "2026-08-03T21:20:12.165Z" }, + { url = "https://files.pythonhosted.org/packages/70/ea/839b50531021a647fb5e929f72cf97bc1ff702b5472166164b5b6e76b851/cffi-2.1.1-cp313-cp313-win32.whl", hash = "sha256:334644fbac4eff73d985a17a91226df55d0f394160c4cfb880e084c8f7161cac", size = 175263, upload-time = "2026-08-03T21:20:13.559Z" }, + { url = "https://files.pythonhosted.org/packages/60/a6/8b149b2c3f2e11aaa1618ef64500b45f50f22c57a977a4dff1aff1f91042/cffi-2.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:1aa5645c30469b09530c4ebca77ebf8f17618293c58f8549cb1a543a50236e7d", size = 185688, upload-time = "2026-08-03T21:20:14.69Z" }, + { url = "https://files.pythonhosted.org/packages/01/9a/11f687cb39d6a3504060d5242f04f48c735afb4d3d533958a20594890cb2/cffi-2.1.1-cp313-cp313-win_arm64.whl", hash = "sha256:63bbfd5ded17c4840ac07cd8f1c21ba9d9708141f840b324f422f41b207e3973", size = 180078, upload-time = "2026-08-03T21:20:15.917Z" }, + { url = "https://files.pythonhosted.org/packages/d3/7b/d6bbf82b8b96e7391438898c42f5bd96dd02030fd5b64937d248220003e2/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c", size = 194064, upload-time = "2026-08-03T21:20:17.148Z" }, + { url = "https://files.pythonhosted.org/packages/94/e6/bcc91b283be94735e268487a054004f0aa19947b6348fa367db53230abc8/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb", size = 196720, upload-time = "2026-08-03T21:20:18.268Z" }, + { url = "https://files.pythonhosted.org/packages/d9/99/c4b0c17cacdc9c3b8f280026286a9826d6a208c0f047591a3c3ce99b91fd/cffi-2.1.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d28630f5854ab07ab1fd4aba756de52326c82e6be15d414b12793f1975048b54", size = 184964, upload-time = "2026-08-03T21:20:19.708Z" }, + { url = "https://files.pythonhosted.org/packages/b3/a9/9db617d05d7367c1ad0ab00b3aa6e6f9281edd689b4ee9ea0e5a84e89c97/cffi-2.1.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:661c298b4821edebead0c91edd2b00374d67ad7c5a1f7a91d4442633b79d6a72", size = 184962, upload-time = "2026-08-03T21:20:20.833Z" }, + { url = "https://files.pythonhosted.org/packages/67/b8/b42132ca113dc567d37684437b46ca1dafc885902b02a110a02d5b511857/cffi-2.1.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:58acb8ab8e295e6c5ea12f888cbb13cf21511ef2a3303a23f4325c29d17fe5c1", size = 222328, upload-time = "2026-08-03T21:20:22.118Z" }, + { url = "https://files.pythonhosted.org/packages/80/10/c5c0cbf0a657aecf59ef511409734230bf556f05a0d6c9eed7aa5c0a0166/cffi-2.1.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:456a61fa52d579ebf9df2e9552ead5129855dbaff6c1e5a9b1bc408809bdc062", size = 209985, upload-time = "2026-08-03T21:20:23.401Z" }, + { url = "https://files.pythonhosted.org/packages/d5/6c/bfa0b87b03b9238148beca990292843c9396ba069b54496596594173de7b/cffi-2.1.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a4f00aa42f75d6e4595e8866e748cc1705adc0cddfeb2ca86d0d03993d63ba03", size = 208530, upload-time = "2026-08-03T21:20:24.628Z" }, + { url = "https://files.pythonhosted.org/packages/e9/02/4e7d553a7ac4b4238b38b3c1b80d486e9d4436f8d2acbf87a0997fe3f402/cffi-2.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b0431303acaea1089ad4b3e9ce4e6518193def1118d4073ca848635ee4ea2e96", size = 221525, upload-time = "2026-08-03T21:20:25.758Z" }, + { url = "https://files.pythonhosted.org/packages/82/1d/a4aaf9babd75acb4d5f223bff71533bee748dd770a382619a798960ee9ba/cffi-2.1.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:64faea20f4e2613363a1a9b9c7dd73058f3ecd00133a511e72ad7c511658f527", size = 225053, upload-time = "2026-08-03T21:20:26.985Z" }, + { url = "https://files.pythonhosted.org/packages/81/10/5dc0e7bdd18e22107054288283380fc97a06ae3f1656a106908d666a3c88/cffi-2.1.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5c58fe613dc5e5336357eff555824a314d8e43282600435c8d1cb6a7a2fedd13", size = 223213, upload-time = "2026-08-03T21:20:28.277Z" }, + { url = "https://files.pythonhosted.org/packages/0b/e9/d0061c364cde06ee43168a0d076ac1da512cbc380d44767b844ba34fe2b6/cffi-2.1.1-cp314-cp314-win32.whl", hash = "sha256:1a18a57b58cfb21fc28d72e876acf10eaed67a1ed96226f92af4df681d571c4c", size = 177682, upload-time = "2026-08-03T21:20:44.288Z" }, + { url = "https://files.pythonhosted.org/packages/a7/06/1c3e01e3ba14c39f6d10bfbac52753b7e22259e38088e5cfe1d704918690/cffi-2.1.1-cp314-cp314-win_amd64.whl", hash = "sha256:3222ba5d678f80a030e6afbcc33dc1ae5cb45facabb61cee2c7016b8432fde48", size = 187949, upload-time = "2026-08-03T21:20:45.623Z" }, + { url = "https://files.pythonhosted.org/packages/87/5b/da4e39efe18eeb89cf580ea9cfc66b6a7c3eadb808fc0cc1d3a295cb5a5d/cffi-2.1.1-cp314-cp314-win_arm64.whl", hash = "sha256:ab36d55f9ed2d067327667c2fea18dda018eb628dd6347aa01dda6cf1f5d3836", size = 182947, upload-time = "2026-08-03T21:20:46.955Z" }, + { url = "https://files.pythonhosted.org/packages/23/59/40338bf421c5accea1d45158170c87006ef1cd371b05c077e76476949728/cffi-2.1.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:7750c6449dff7864bb9bb27ddfb0267756189201a3afc911d82b3caacd70dfc3", size = 188504, upload-time = "2026-08-03T21:20:29.495Z" }, + { url = "https://files.pythonhosted.org/packages/7d/47/5ecf1023850036e674c77ec4de86182d309ae344e39e7cba984b7df5d647/cffi-2.1.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0beceaabe56af686895136a2de78db54ecd8e4046b236b8fd6d6cb61389e9bf2", size = 188259, upload-time = "2026-08-03T21:20:31.291Z" }, + { url = "https://files.pythonhosted.org/packages/2a/9c/92934c3bea9f785b23eba304538c0b4d37a2a96d2431eb3a1bc87a11aa19/cffi-2.1.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:49cbc70e6542d4ccccb936558d1064a8012541e78f821f955cff24e357776c94", size = 223864, upload-time = "2026-08-03T21:20:32.571Z" }, + { url = "https://files.pythonhosted.org/packages/4d/45/ba4c93527bc38616a8bd36488acb69a2212d60486794f0c1f318949bbb76/cffi-2.1.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:e2d65b31f36619cda3999b78b2aa9632e76b78448e7a56fc4240824200e7c4fc", size = 211538, upload-time = "2026-08-03T21:20:33.808Z" }, + { url = "https://files.pythonhosted.org/packages/80/e9/b6ef565e452acb932fb0cb5443f44a78efbd1233e566f02b5a83855e9115/cffi-2.1.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:28907ab9bfb6aa13184cfc17c6b8e1023c5ab6fd7076d8c20a35e59fe04f8f29", size = 210688, upload-time = "2026-08-03T21:20:34.974Z" }, + { url = "https://files.pythonhosted.org/packages/9a/95/eff5f0cee78d2eabc7eebffec40d3fc1876b5f3c95582e018bb4b99601f2/cffi-2.1.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:51b31d1c98274844cfd7838ce00bfc27c7423a4dc00fc0772fc3331c2cc90676", size = 223803, upload-time = "2026-08-03T21:20:36.564Z" }, + { url = "https://files.pythonhosted.org/packages/fa/01/579d39fb8bef00a335a23d83757b44feb24cd6345a2c451b64cb67b9c362/cffi-2.1.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5e7cecbaadb83884793e05828cee59b210b24583b9c7425d0ba6a754fe22eb4e", size = 226763, upload-time = "2026-08-03T21:20:37.816Z" }, + { url = "https://files.pythonhosted.org/packages/8d/b0/0b44f47c60b01b57b6e2bbd92343f13a85a1d93bc46ccf6e47e244acd99c/cffi-2.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:25792eac27877609e7bb06d42ff88278a6624fff2ba9bbb523c09616b117e80f", size = 225688, upload-time = "2026-08-03T21:20:38.959Z" }, + { url = "https://files.pythonhosted.org/packages/eb/d2/3b7176cb570a1d3e27faf67b72f591af508036e0d8b2be2ef9af9e8c84bb/cffi-2.1.1-cp314-cp314t-win32.whl", hash = "sha256:8ef53b2de9bcb9197d31854256575d59dbac0cba72ac627bb291ef5eceb74be4", size = 182868, upload-time = "2026-08-03T21:20:40.388Z" }, + { url = "https://files.pythonhosted.org/packages/56/78/31f00c1bcd97c9bbf55f1bfdf5bc809a5de8887473e90bb9960dca825e80/cffi-2.1.1-cp314-cp314t-win_amd64.whl", hash = "sha256:616f097f2fe415bc92a247f02e11f634e1f9e9a83d327e3c915c15089c87869e", size = 194104, upload-time = "2026-08-03T21:20:41.725Z" }, + { url = "https://files.pythonhosted.org/packages/7b/1b/58496f2ed0a35de575250c02a43ab3cc2c04d494a88fed31c1cabc0fd176/cffi-2.1.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ad2c86c495b899d862ea0f4b42891b8713a3bd45dd4105c7fd51c2a72f39f3a5", size = 186402, upload-time = "2026-08-03T21:20:43.042Z" }, + { url = "https://files.pythonhosted.org/packages/c1/8f/9ebe220eab48a093d1a5a5e339ab0dc7316eef3bb04d63c42f0251b61f50/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:dddad92b554513a31f272570678ba307fb9f618f05e3d4a5eacafff9eae03e1d", size = 194043, upload-time = "2026-08-03T21:20:48.179Z" }, + { url = "https://files.pythonhosted.org/packages/ff/69/844bad3ece306c4782c2ecb93597035b6690d48704b803914c199da1e8b3/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:da0e573f9f97159390c89d9f1a9e41908b66d408cc5b58d08cf3847d844c531b", size = 196737, upload-time = "2026-08-03T21:20:49.457Z" }, + { url = "https://files.pythonhosted.org/packages/1b/8a/af668013284634733f02d683458a0728739c7d6ddb5e14cb0c20832266fe/cffi-2.1.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:fb92203a88b3d3053034db775110081c49d28be6551923805e039924093761e4", size = 184933, upload-time = "2026-08-03T21:20:50.639Z" }, + { url = "https://files.pythonhosted.org/packages/0c/75/2f5207ff6d1a613133b23a5203cc0c2a628313b5eb3974d7956ae3c57950/cffi-2.1.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:2ae64be792b8966f2c69538199728b290e34726562896df1e5dc8ffd8d8188e8", size = 185002, upload-time = "2026-08-03T21:20:52.173Z" }, + { url = "https://files.pythonhosted.org/packages/e2/31/9e1313b0a6e30e91b3b3d3fff51ae99c857c07738e3afcce1f7334e1b7ab/cffi-2.1.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:507a24c282e0f42f8ed737cf048572cbf580468da5555764a8331735e9c736b6", size = 222271, upload-time = "2026-08-03T21:20:53.462Z" }, + { url = "https://files.pythonhosted.org/packages/50/e3/f6234a833e6e08c7007003074723c406559eecf9b48dfc97471e5a8eb7a0/cffi-2.1.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:246fa40ce8645a614ff682e0b70f37134e460eaf93a775e0cbe3cca585a67a80", size = 209919, upload-time = "2026-08-03T21:20:54.783Z" }, + { url = "https://files.pythonhosted.org/packages/0d/fc/5f74e293fced6edb51af3a46c4ccf6c23c9943774ecb375ddbd522c76add/cffi-2.1.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:471cee653ae88de62096552e6d24ccb4a5adb8c8c9f10b5054d0122c15bf2779", size = 208529, upload-time = "2026-08-03T21:20:56.066Z" }, + { url = "https://files.pythonhosted.org/packages/44/16/29e6d01b388bef055ecd6ca8244b3f4d336bd09e92d5d892187b9601084e/cffi-2.1.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:aeae0e330c9f6acd681f647d46cefd30c29f93e3392882e792e82080c9691399", size = 221630, upload-time = "2026-08-03T21:20:57.336Z" }, + { url = "https://files.pythonhosted.org/packages/a4/18/fa7f1f6857d5eb88a4ca99ffcbfb7c387a287ccc154c64a73e86314745d7/cffi-2.1.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:42a494cee34437f05546455144f2b5d9ac09b1face62bcfce597d2e521066688", size = 225134, upload-time = "2026-08-03T21:20:58.675Z" }, + { url = "https://files.pythonhosted.org/packages/e0/9f/e8e3dfa04a1b4c241f8c91faacad872b4d4efd051d49764ad4e2fd4b9fea/cffi-2.1.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:cc572dace3f60ef98d7b12ff411d20f5362feb31a0439eab0085bbfd349982d7", size = 223197, upload-time = "2026-08-03T21:20:59.968Z" }, + { url = "https://files.pythonhosted.org/packages/f8/7e/8debeb04f1ab9fe2a6963964cd6f1aaf7192627b83926586a6a4e089c9fa/cffi-2.1.1-cp315-cp315-win32.whl", hash = "sha256:4f42141fc14250de6dde5ee7ea4432be017252d91f19c5ad043c084cea629cac", size = 177683, upload-time = "2026-08-03T21:21:14.901Z" }, + { url = "https://files.pythonhosted.org/packages/e0/31/5158704cc474ab65c1647932e88be78dc0873f47130e253be38bcaf13d01/cffi-2.1.1-cp315-cp315-win_amd64.whl", hash = "sha256:e6e8cff14d6fb0be70a09c0bdc58096f501952d04624ebf867e0e56da2df8960", size = 187897, upload-time = "2026-08-03T21:21:16.108Z" }, + { url = "https://files.pythonhosted.org/packages/cc/4b/b3a2da8570c704ffc0f9762cdc3ec0f02c8573798e0b5cf7f11c82bbb70f/cffi-2.1.1-cp315-cp315-win_arm64.whl", hash = "sha256:27350daa11d4f10c540e6e89dada4c54feb7256ad03e9a4dc075ebad7ba360d1", size = 182935, upload-time = "2026-08-03T21:21:17.271Z" }, + { url = "https://files.pythonhosted.org/packages/d0/ef/5443574510a1207e6f6bc38ba6e1f1de36cb48fef07b2728bb896a21f430/cffi-2.1.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:c26608d2222fb1e94487e4a387d85f13eb55d5ed725cb25a0c589ac4ee60e7bc", size = 188464, upload-time = "2026-08-03T21:21:01.163Z" }, + { url = "https://files.pythonhosted.org/packages/7e/ae/a56fa8c4686ad50e148fcbc8d3ae0d03915ff5c30d795058988c24118cef/cffi-2.1.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:4be96343e422f2dfcd12ab5c9f5aebe03f82f737c6bffeca6830b3875cb44aab", size = 188262, upload-time = "2026-08-03T21:21:02.382Z" }, + { url = "https://files.pythonhosted.org/packages/53/b2/6187f46f2912276a3ae284076109cc5c8680482f11f766ccf26db4a86427/cffi-2.1.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:937c0052c05a31ca1daf18de3158eed4dbfcb9cc107adbea227728d647be701e", size = 223779, upload-time = "2026-08-03T21:21:03.553Z" }, + { url = "https://files.pythonhosted.org/packages/8a/f6/c3ad28bd19f77047a03084424fbd4cbe997303267c14423737324be0385d/cffi-2.1.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:df423d40ee8654634421812bc3b196da3f9bd7d32929da813f8394c4348a5358", size = 211520, upload-time = "2026-08-03T21:21:04.863Z" }, + { url = "https://files.pythonhosted.org/packages/a0/cd/ccac9013a5bd9fd764de118674ab9c805b5ca10c19270d90ee273f8b2240/cffi-2.1.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a730a083190634c65cca36ba5f489531576ebd79bcd5c8e172130f6453127231", size = 210673, upload-time = "2026-08-03T21:21:06.223Z" }, + { url = "https://files.pythonhosted.org/packages/52/86/2976131c639aead931c5bee5aba67e4b09fbeb8018b6f282f70803f923a7/cffi-2.1.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:363e05fa78e15116c3c32c210ee36884fd6b9afa6d440e47112c3bd511d64cb6", size = 223835, upload-time = "2026-08-03T21:21:07.539Z" }, + { url = "https://files.pythonhosted.org/packages/ac/0c/33a7aeab2f9c76918c52e084beb39c570db3588133412929e8ec06fab90b/cffi-2.1.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:770de9db11e84213beec501cfcaa013b019820ca881e03344dea5844f7876d94", size = 226705, upload-time = "2026-08-03T21:21:08.774Z" }, + { url = "https://files.pythonhosted.org/packages/e3/26/2cde30fdde421130bfc18f70395731a6e6b2053c6a1978a5258ff04e72fa/cffi-2.1.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:7da0c5eff80f0197f3b3d1232ec5a682a9325f4ae9016a78f5f5ca35f9ced1f5", size = 225539, upload-time = "2026-08-03T21:21:09.911Z" }, + { url = "https://files.pythonhosted.org/packages/6d/cd/a361394c94b2129d604bb846f624a8e88255a3ee33129c434a00d715e64f/cffi-2.1.1-cp315-cp315t-win32.whl", hash = "sha256:06c72bb76605a4b0cd0aad6930b69d4baf7dd5d806cfc409b824191099700e66", size = 182707, upload-time = "2026-08-03T21:21:11.226Z" }, + { url = "https://files.pythonhosted.org/packages/9b/b5/ba2b299993c26577d529b6ae29841f9e15b9fcf004d65f423f4fcf94ade9/cffi-2.1.1-cp315-cp315t-win_amd64.whl", hash = "sha256:d9c275eaacd24aa73f94ffd6de08fc3f932424d8b6c376f4bed7cde376fe7bc3", size = 193772, upload-time = "2026-08-03T21:21:12.39Z" }, + { url = "https://files.pythonhosted.org/packages/aa/29/35e016098c814cd93de9cd320c66b5bfba14dc6ecedd3cb518fa7c408c69/cffi-2.1.1-cp315-cp315t-win_arm64.whl", hash = "sha256:d18e5ac0f2f03f4f518d3e23db0f0cad7faa1da8620e9c09461d443bbf6e6692", size = 186360, upload-time = "2026-08-03T21:21:13.636Z" }, +] + [[package]] name = "charset-normalizer" version = "3.4.7" @@ -453,6 +553,75 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, ] +[[package]] +name = "cryptography" +version = "50.0.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cffi", marker = "platform_python_implementation != 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9d/af/182eb91b0df3fe75c4d9f26fe70684569566745f6ba7e5c9c73a862c5252/cryptography-50.0.2.tar.gz", hash = "sha256:7b46165bb56eb4704e2eaaf86f3c940d19154535d9b0ca7d6d590b04060e00d5", size = 880623, upload-time = "2026-09-30T15:30:04.884Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e5/56/d194340cc4a57535e82e1bee9e89667ac4b7c13b5d3f59686deae3094dd5/cryptography-50.0.2-cp311-abi3-macosx_11_0_arm64.whl", hash = "sha256:fa8f5efb344d6908a1ce62f4a24e2e5780f825d6f53f5f50ec5ffacac72936cb", size = 3914904, upload-time = "2026-09-30T14:43:44.339Z" }, + { url = "https://files.pythonhosted.org/packages/d9/69/c9bd862c3bf43d6399c433caf002df16e2dffd4be49bdf515cda38038711/cryptography-50.0.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:79def8d059362e7831389ed3be0ecdf58a89386e1271e35dd9f5af84e81bffd0", size = 4731146, upload-time = "2026-09-30T14:43:47.113Z" }, + { url = "https://files.pythonhosted.org/packages/21/69/64cef1f702bf6657e0cc186ed1a2891d50d29fb41586b254e1c07adea261/cryptography-50.0.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:630ebfea3bf689d075f82316324ff7433dc447fe6bc1bfc76524b74b4a9567d2", size = 4719841, upload-time = "2026-09-30T14:43:49.01Z" }, + { url = "https://files.pythonhosted.org/packages/38/6b/61a3f8d8c5e1e49a6cddccafc4015cc1c0021360ab0acb4080e7a423644a/cryptography-50.0.2-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:f9f6143a8c75945eb960d9eb98905a441394abfa24afaae239d514ffb2586480", size = 4738340, upload-time = "2026-09-30T14:43:50.932Z" }, + { url = "https://files.pythonhosted.org/packages/7b/2e/7212ca32fd43dc91f2f41db20160b268098874b4c9a0e7be94d6835f5b2e/cryptography-50.0.2-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:a582ab2ae1d34f67112cadc86702774c9ea4374df6bca6afe672817203c99134", size = 5367029, upload-time = "2026-09-30T14:43:52.911Z" }, + { url = "https://files.pythonhosted.org/packages/1a/f1/b474e930c4d910328780e3940da76f5aa5cbc48ce1fc14e44d239d9ea9db/cryptography-50.0.2-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:4061c0079120205fb760c58acab6443e217307dcf05e3702cf970e0689972856", size = 4753050, upload-time = "2026-09-30T14:43:55.272Z" }, + { url = "https://files.pythonhosted.org/packages/7c/52/9af10e80ac16b0fcc2123f9cbd5e7afbd0fd5075bb7a607c592258a39cda/cryptography-50.0.2-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:ac9ed99d81760c62fe89d5f0815cdfa1ba9a35141cf30f1c2d044f04b4803d2e", size = 4376724, upload-time = "2026-09-30T14:43:57.24Z" }, + { url = "https://files.pythonhosted.org/packages/71/37/6202e488cc1eb625ea110c292c6bda92823176e023f427d8d5660ce8d632/cryptography-50.0.2-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:87e9ce85beb6b328ba370cc6e6aea483c92617b4c95b1d33a49297eb662bfb04", size = 4737859, upload-time = "2026-09-30T14:43:59.541Z" }, + { url = "https://files.pythonhosted.org/packages/8f/30/e86d7d518489b0ae2497091a35287abcb1a2ce4037837a34afbe9b1d6964/cryptography-50.0.2-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:f265528741e048bce55c3463ed721fb0aa45a5888d8add8cfeccb3035451bbdc", size = 5324103, upload-time = "2026-09-30T14:44:01.901Z" }, + { url = "https://files.pythonhosted.org/packages/d3/69/2c833a049475e0a3444e94c7d0aca0aa51d166374a449b09e92ac98138de/cryptography-50.0.2-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:9dab55f57c74c3cad24c323bacbbd04be4705ba6eb0d92e920b1fc4837ed5079", size = 4752576, upload-time = "2026-09-30T14:44:04.545Z" }, + { url = "https://files.pythonhosted.org/packages/6c/5d/906970b83bbfc1f5bbfb677a143c181f2801f23b6a7204a3b47c42c97e65/cryptography-50.0.2-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:25784ce8b9621c90c643efb9e1e2162ab3b0224cae446ad5e70e7fcb1ce18b51", size = 4870819, upload-time = "2026-09-30T14:44:06.884Z" }, + { url = "https://files.pythonhosted.org/packages/68/e3/f2298d3bb55e0c4a91841ec4d01b3f020ba8c5fbf15ccdcc6dcf03f97025/cryptography-50.0.2-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:85d0d9a31b9098e98534226d5686b47264b95e62ce459dc2e62fdfc809f9fe93", size = 5030152, upload-time = "2026-09-30T14:44:09.443Z" }, + { url = "https://files.pythonhosted.org/packages/9a/4f/adfc442765721292fff86d314ce385d3249d22db42295c0dd057727b60f3/cryptography-50.0.2-cp311-abi3-win_amd64.whl", hash = "sha256:7afa5a6602a9f29af1f3a2965f831bae7c9d5d597b7cbb716d41ab3b7d89879c", size = 3824692, upload-time = "2026-09-30T14:44:11.671Z" }, + { url = "https://files.pythonhosted.org/packages/ce/cb/52eb3770c0d0be2702a98c6e96065ddc0a2877cf0845aa9c23397c142cd4/cryptography-50.0.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f785f6161f202ab04d8ca194158968798e480ca058943907972da5f12e2881e8", size = 3892731, upload-time = "2026-09-30T14:44:13.485Z" }, + { url = "https://files.pythonhosted.org/packages/19/8e/aa1fc533d4546b127b45de8aa024eb5933d23eff9debfe25931e56861095/cryptography-50.0.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0ecbc5652bdb6fc9eaf89a7d196e20941adfe812f43bc4ca05d9150496821047", size = 4710431, upload-time = "2026-09-30T14:44:15.427Z" }, + { url = "https://files.pythonhosted.org/packages/6a/64/72bc3f75176e7e406b748a3e3830432b8c51297b38368713df04dc04898a/cryptography-50.0.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ab50ee449bf968271e820086f10a33d101dd060370abc10bcd22279be2656539", size = 4694824, upload-time = "2026-09-30T14:44:17.69Z" }, + { url = "https://files.pythonhosted.org/packages/4e/c6/62c77550edfa5ca3f14bf44a1e6739b9fa09d6e998a11d97ed8213bccc98/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:a9f7355e6fab51f6c369b86fb7571cffa05edee2c2121e0380a37fb9ac1cd5c1", size = 4716967, upload-time = "2026-09-30T14:44:19.661Z" }, + { url = "https://files.pythonhosted.org/packages/f4/37/cce70f150c432914460157a6ecc161752e053aa5ec0ef3b3f7dc6e31039a/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:94e5e9f108ee10471288214d3d233fbfbb492840a8457eb85178d643ddeb32c7", size = 5328676, upload-time = "2026-09-30T14:44:21.744Z" }, + { url = "https://files.pythonhosted.org/packages/aa/9a/6f2f0304d634ceafdeaf23e84537336664ac419b5d07611675c2ad3f6b7a/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:241449bf940a5d27309bd317e6f9a2af6932113818bb2b8f5c59ddc7ef16da18", size = 4727698, upload-time = "2026-09-30T14:44:24.178Z" }, + { url = "https://files.pythonhosted.org/packages/1d/de/66bcf9244d118663b2e1aaded8990f4640e3d7b7411870a5765f252074d2/cryptography-50.0.2-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:d8947001be83df1394050758ce0e745dd74fb134eef0a4b5124208dfc3a68c37", size = 4354821, upload-time = "2026-09-30T14:44:26.263Z" }, + { url = "https://files.pythonhosted.org/packages/bd/e6/db28a28c7b6c676addce89136de3d8db49ea825a8c863472e36e42ead4ad/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:4a20ce1e5cb4284a86692fdcba7cb8754185c6b2e5c56fcef3751cf451d3cdc2", size = 4716748, upload-time = "2026-09-30T14:44:28.447Z" }, + { url = "https://files.pythonhosted.org/packages/30/96/01546c7f69ea0e2ab790a2e4f0934a4052fb9b388147fbf83c2fd72f1e57/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:84f964e537f916e2cc85199e5a88742e964939b575ac8598b3f9d6cc416cdaf1", size = 5285085, upload-time = "2026-09-30T14:44:30.704Z" }, + { url = "https://files.pythonhosted.org/packages/6c/01/03263395f74d50b071e9e66daace3f8bef80493e5d410726f2ba8554736b/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:828d49b0ff5a0e3975865571c5d91dbbdd0d38d8289b249a163e9425413a5e05", size = 4727268, upload-time = "2026-09-30T14:44:32.92Z" }, + { url = "https://files.pythonhosted.org/packages/eb/94/2bfe8f29ec0cc9c0d99359c4161adf32858e4934b72c6d100d2ac0bbe962/cryptography-50.0.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:deb9fde5c60e437ee4821bc9bc39ff31b42135c27e1dc61ef0a629389c1de62e", size = 4849503, upload-time = "2026-09-30T14:44:34.969Z" }, + { url = "https://files.pythonhosted.org/packages/54/44/e80651ecbf0e42b62e2bb5f5768916e07eea72e1297338956a61df361f88/cryptography-50.0.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8c71ba2cd31fc93748c38e1b613200ff1c2665cbfd5341fe3a61cfde35a1430e", size = 5004057, upload-time = "2026-09-30T14:44:37.064Z" }, + { url = "https://files.pythonhosted.org/packages/f8/cc/1d33befb3cd7ea7e77d2d73f43f2066471da1b21f24a6156efcaabf6d2e8/cryptography-50.0.2-cp314-cp314t-win_amd64.whl", hash = "sha256:78198641e5be9521beea5aa782bb551a58068d10e6eb04c9c680c1b69f2e7d45", size = 3795868, upload-time = "2026-09-30T14:44:39.71Z" }, + { url = "https://files.pythonhosted.org/packages/2d/49/93f6a6e7a87c9aa68d44d3e1cdb5fe8f60c90d5d2f46acae9a56892816b8/cryptography-50.0.2-cp315-abi3.abi3t-macosx_11_0_arm64.whl", hash = "sha256:edc3342adf8f697fc5f59c887a304356f147b397809440ed64e2fa6af2f50f37", size = 4133708, upload-time = "2026-09-30T14:44:41.807Z" }, + { url = "https://files.pythonhosted.org/packages/8c/75/32ac2a56243d778805c16ca6a32b8f74fb757df7e28d7ecb560afafb59cf/cryptography-50.0.2-cp315-abi3.abi3t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d370b8d1dfcdf7130178137f6fbee6140774a1acc6cacefc4b42643ec11d0a3a", size = 4956267, upload-time = "2026-09-30T14:44:43.693Z" }, + { url = "https://files.pythonhosted.org/packages/aa/a4/2c8d734e43d97f0842ee9f1b7b4bfb3d0cf5e19edebf43c2afe6675c2320/cryptography-50.0.2-cp315-abi3.abi3t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f2f9bd7f90c64fe89253f0a2c05e3c4856072660429ce8831b4235bf29403a67", size = 4966465, upload-time = "2026-09-30T14:44:45.769Z" }, + { url = "https://files.pythonhosted.org/packages/c2/58/ee288c829a6f41f6235ae9dd33d82fd19b45442b65b4c8a3da36963d9f7a/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl", hash = "sha256:e275096ea1e60cc595cda2836fd4a6c725d1125108b868be17f53684d164e2cc", size = 4959356, upload-time = "2026-09-30T14:44:48.211Z" }, + { url = "https://files.pythonhosted.org/packages/92/20/9ded6d51ddd9897f6b6e81fb9ebea7951d7cc5d6c890b0ed8abf77a51a80/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_ppc64le.whl", hash = "sha256:b13478603dcd0a2479ff8e87e2c19a7d525734686fe3c49542472293a204212d", size = 5548822, upload-time = "2026-09-30T14:44:50.86Z" }, + { url = "https://files.pythonhosted.org/packages/02/a8/8df951850d6b31d2a00218f19e2b3f999523437ed7a819df7fa427942fca/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl", hash = "sha256:58a0c478eeca76fe5e07993c5a0703def34a6dc6a0cda4f5564639b33112ffe7", size = 5001199, upload-time = "2026-09-30T14:44:53.379Z" }, + { url = "https://files.pythonhosted.org/packages/8b/f9/36b3022218ce75b7cdf068fb95f809f9bd0d820e4955ef43b90c255cc7ac/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_31_armv7l.whl", hash = "sha256:d38cdff612d06fa6a32840d5e1b1f7a27cee4a349aa9085d94a67789d6bfd408", size = 4629333, upload-time = "2026-09-30T14:44:55.635Z" }, + { url = "https://files.pythonhosted.org/packages/8c/72/20f99a219f6af47cdd1cbd978c243b92d71496e168a746138af44ded4f29/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_aarch64.whl", hash = "sha256:fdd28f912fccfec1846a94e2e1e8f9b0012f557f0c46fe4f3eb0d7a87afcf90b", size = 4958822, upload-time = "2026-09-30T14:44:59.639Z" }, + { url = "https://files.pythonhosted.org/packages/f2/20/196f112617fb08eb4d608a2a6c422373d46f9cc2857f38fc0667033c0899/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_ppc64le.whl", hash = "sha256:cbc8738fd8526d80f35cb3a40d41f41a2e7030bb3b18b09a6778ef63d291c2fd", size = 5506351, upload-time = "2026-09-30T14:45:02.267Z" }, + { url = "https://files.pythonhosted.org/packages/24/95/83378121ef3eaaaf71d4b781577ff794acb39b9e1b87a3f156898c8497ed/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_x86_64.whl", hash = "sha256:e105ab60406787da31fccc883fc0f733af1efd78f0136a4599692c4083a73d0c", size = 5000859, upload-time = "2026-09-30T14:45:05.009Z" }, + { url = "https://files.pythonhosted.org/packages/22/f7/70fd7ae4d1dbfa7ba29b02e1b9068771519a86027756510b700ce81086a8/cryptography-50.0.2-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl", hash = "sha256:6f8700550aa1474a91e5dc07049c46f98b423b5b1ddd0483e0b51362eeeaf5be", size = 5092151, upload-time = "2026-09-30T15:29:15.932Z" }, + { url = "https://files.pythonhosted.org/packages/d4/be/688367b74de86984bd58d8efacfc7c9e68b89a6a22ced0fb4f38db50254a/cryptography-50.0.2-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl", hash = "sha256:c71be1cbfa5cd9a41ee452acf1eccd82b2c05950358b106ec8ceb83411d1a020", size = 5286120, upload-time = "2026-09-30T15:29:18.309Z" }, + { url = "https://files.pythonhosted.org/packages/39/d1/55f8a3f2ef5d1529e16835ef10cf0fe3d559ce237b46dddc440c0bba3649/cryptography-50.0.2-cp315-abi3.abi3t-win_amd64.whl", hash = "sha256:c423ab384a46c4dff7217b2ea5ba2e11cffdeab6441acd04cf65a369caf0366c", size = 4111557, upload-time = "2026-09-30T15:29:20.155Z" }, + { url = "https://files.pythonhosted.org/packages/23/ad/ac987755d00e1e64273760228d2635ae38dae2be83e3c6e0d3289d91dec3/cryptography-50.0.2-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:0ec5f09541743261e66e291b4a0cbf0fb2997aeaab6d9e9c740b9dba1b58d1c2", size = 3943588, upload-time = "2026-09-30T15:29:22.265Z" }, + { url = "https://files.pythonhosted.org/packages/d5/8d/6d585339bedf85d45044c85d8412dac53f2bb6f918e8b7777efba1787844/cryptography-50.0.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c5e67125c7dca78d199ec4e116aa93dbb83494808ecbb8211a2cb09b1bf41dbd", size = 4756166, upload-time = "2026-09-30T15:29:24.58Z" }, + { url = "https://files.pythonhosted.org/packages/bf/f1/1c1f6874e8550cfddd4b688ceb38cefb6ed15ceed224d56f133f3d88c214/cryptography-50.0.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ee247f5c245c9a2fe7c8e2214e295918838e44e00a45a6718451e4004219e767", size = 4749145, upload-time = "2026-09-30T15:29:26.807Z" }, + { url = "https://files.pythonhosted.org/packages/c1/63/61b15dc1a8de03fe0adbe3fd7608b3ad5c73bf50993bbcb1faaa930afe33/cryptography-50.0.2-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:dfe9763530994147d9af1def057a5b9658b00e8f8fe8743d144d1e0911c2e454", size = 4763638, upload-time = "2026-09-30T15:29:28.588Z" }, + { url = "https://files.pythonhosted.org/packages/fc/35/b345bdfa40c9126df1a9d33236aa98418367931b8725f84fc3ae2b98dc59/cryptography-50.0.2-cp39-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:58ddb5a8e3179d12f19e4ea34d2d32e9d63a4baa142c875c1eb59f41b7243acd", size = 5382217, upload-time = "2026-09-30T15:29:30.589Z" }, + { url = "https://files.pythonhosted.org/packages/4f/87/ef344a9e616871f2519c22d6afcda79ddd5d35e9592d95eb6e677608d055/cryptography-50.0.2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:f21e8a22c8605750c7af886bab299a363721264061b4ac0a30efb73cfd58efc5", size = 4781387, upload-time = "2026-09-30T15:29:32.605Z" }, + { url = "https://files.pythonhosted.org/packages/90/5b/f2fdb13cd0b96f6f932c8627bb292a45f11c64d21620a8e120aee9a3b848/cryptography-50.0.2-cp39-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:9c8402a82ea0dc4ceeab793db05f0fafa8ca139ca34fcde5df0f596103c74107", size = 4403790, upload-time = "2026-09-30T15:29:34.374Z" }, + { url = "https://files.pythonhosted.org/packages/bc/ce/7e4f662b1e3c393513569e402cfc85ac7da0bd3d5435e122a3140219eb2d/cryptography-50.0.2-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:0ddc924c04591c2811ca024d62ecad4f7f6f08af8939c211438f48a16bd23602", size = 4764319, upload-time = "2026-09-30T15:29:36.149Z" }, + { url = "https://files.pythonhosted.org/packages/3c/3f/86ff33ce34cc0de6847fb96e035a1a760d81652e38643f617c02ad32ef7a/cryptography-50.0.2-cp39-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:a6557e5f38e065ca9fbdaf7cfc7435ecb1d113aa81a022d1b51921ee7432e227", size = 5338560, upload-time = "2026-09-30T15:29:39.053Z" }, + { url = "https://files.pythonhosted.org/packages/40/cf/6b5c8e2fd9202d98988ab7cb5cc5c991704c4ad55f492ff408e4969f83f1/cryptography-50.0.2-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:1981f1db4630889b9ef7803fadef12b056f428cb6b85c27ba57b774793b6093c", size = 4780973, upload-time = "2026-09-30T15:29:41.251Z" }, + { url = "https://files.pythonhosted.org/packages/10/bf/8d6ebc7dded797bd0f0160d52188021211f011a2b164ef0ae1dac4587465/cryptography-50.0.2-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:7a8701d6b584d76e909e3d305b7d126b41439876a5aaf76cddc67fc230eafa2e", size = 4897738, upload-time = "2026-09-30T15:29:43.106Z" }, + { url = "https://files.pythonhosted.org/packages/d4/aa/f3f6e0de7e6253b8baa8b2d8fb9d50924fa75cee3d4624bd4bc1208ee923/cryptography-50.0.2-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:ce47f66801c20ec6c6632453bb5960fe38939e9306970b48b3a5a26de7745d94", size = 5058280, upload-time = "2026-09-30T15:29:44.827Z" }, + { url = "https://files.pythonhosted.org/packages/f6/b6/a1faf3a27ae9405fb34b1713cc73b2d8a26b04d5c561578fa2e6ef3e5bb9/cryptography-50.0.2-cp39-abi3-win_amd64.whl", hash = "sha256:4e81d95e5bafc2d6e34e4bed780e53e4d5b9a2f928573428aa4d35fbec1eb0de", size = 3854095, upload-time = "2026-09-30T15:29:46.782Z" }, + { url = "https://files.pythonhosted.org/packages/1d/7a/f08d34ce09d60f89ebd391e2ebc6ba2b995e6dd7552f41820f8085f94e53/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:92e665960f25fcdc73725b9cec7a3824f279ba97a98653afe9ffac2e43668f67", size = 4716035, upload-time = "2026-09-30T15:29:48.681Z" }, + { url = "https://files.pythonhosted.org/packages/45/67/e18fb65592451a2acb76e9f2fbe14e0f47a8318b4c5430f1633851d03daa/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:eef4c2f3423810b3070ab391f85436d2f8bbfcb286ac15cbc73190b3563b1f1a", size = 4726917, upload-time = "2026-09-30T15:29:50.608Z" }, + { url = "https://files.pythonhosted.org/packages/83/28/38fdce17e60f6b825e69fc3b7f75e70a6612759980704697e1de4cbfaf6e/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:7c6d0330c472d96f6a6afe24d80dfdf15176c33096f0a4397ae4c60f3dd3be48", size = 4715341, upload-time = "2026-09-30T15:29:52.522Z" }, + { url = "https://files.pythonhosted.org/packages/b6/b1/d9121a717e0f893c64bd6ca7702614778d7df2a5c309128a002421788516/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:1ba34f04897fcdaa73f74145c25f3ec146fbd56593853e88adc2e811303c5f42", size = 4726322, upload-time = "2026-09-30T15:29:54.263Z" }, + { url = "https://files.pythonhosted.org/packages/36/8b/e6d153808bf353e152abd2fd4d8f09670d956ac78379ac46e60d7efbf04c/cryptography-50.0.2-pp311-pypy311_pp80-macosx_11_0_arm64.whl", hash = "sha256:3dc4fd8058cea1644971207d530e1a03a184a805ffc8ebdddf0599d78a331b81", size = 3873097, upload-time = "2026-09-30T15:29:56.097Z" }, + { url = "https://files.pythonhosted.org/packages/ca/1d/1271f287ff7170ddafc2aad36260c4eec20ccd2fea70f38455e9d56d427b/cryptography-50.0.2-pp311-pypy311_pp80-win_amd64.whl", hash = "sha256:7b75de3c8b3be1cdb1052747c929440c3eea46c1bc2cb8a6e3a48388e9b7b452", size = 3805376, upload-time = "2026-09-30T15:29:58.729Z" }, +] + [[package]] name = "cyclonedx-python-lib" version = "11.11.0" @@ -1436,6 +1605,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/9b/bf/7595e817906a29453ba4d99394e781b6fabe55d21f3c15d240f85dd06bb1/py_serializable-2.1.0-py3-none-any.whl", hash = "sha256:b56d5d686b5a03ba4f4db5e769dc32336e142fc3bd4d68a8c25579ebb0a67304", size = 23045, upload-time = "2025-07-21T09:56:46.848Z" }, ] +[[package]] +name = "pycparser" +version = "3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/1b/7d/92392ff7815c21062bea51aa7b87d45576f649f16458d78b7cf94b9ab2e6/pycparser-3.0.tar.gz", hash = "sha256:600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29", size = 103492, upload-time = "2026-01-21T14:26:51.89Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0c/c3/44f3fbbfa403ea2a7c779186dc20772604442dde72947e7d01069cbe98e3/pycparser-3.0-py3-none-any.whl", hash = "sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992", size = 48172, upload-time = "2026-01-21T14:26:50.693Z" }, +] + [[package]] name = "pydantic" version = "2.13.4" From 75dce4f488d2cf4bb8616bb135840c78b6a6925a Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Mon, 5 Oct 2026 12:50:10 -0400 Subject: [PATCH 17/33] refactor(wsi): leave accession policy to the data provider Specimen accession formats are institution-specific, so the open-source tile server no longer hard-codes one. Remove ACCESSION_PATTERN, contains_accession and _assert_no_accession, and their uses in WSI and timeline row validation and the safe-text scan. Data providers enforce their own accession rules before publishing rows. Unchanged: v3 token/encrypted-source auth, SLIDE_KEY requirement and pattern, source_fingerprint digest handling, opaque-key/server-only date exemptions, IMAGE_ID(S) rejection on timeline rows, date/MRN checks. Co-Authored-By: Claude Opus 5.5 (1M context) --- app/deid.py | 27 +++++++-------------------- tests/test_deid.py | 24 ++---------------------- 2 files changed, 9 insertions(+), 42 deletions(-) diff --git a/app/deid.py b/app/deid.py index e1a66d8..2c2b824 100644 --- a/app/deid.py +++ b/app/deid.py @@ -1,4 +1,9 @@ -"""Fail-closed checks for the de-identified WSI publication contract.""" +"""Fail-closed checks for the de-identified WSI publication contract. + +These checks are institution-neutral (dates, labelled MRNs, opaque slide keys). +Site-specific identifier formats, such as specimen accession numbers, are the +data provider's to reject before rows are published. +""" from __future__ import annotations @@ -28,8 +33,6 @@ ) _COMPACT_DATE = re.compile(r"(? bool: ) -def contains_accession(value: object) -> bool: - """Return whether text contains a specimen accession number.""" - return bool(ACCESSION_PATTERN.search(_text(value))) - - -def _assert_no_accession(field: str, value: object) -> None: - if contains_accession(value): - raise DeidViolation(f"accession number in {field}") - - def _assert_safe_text(field: str, value: object) -> None: text = _text(value) normalized_field = re.sub(r"[^a-z0-9]+", "_", field.lower()).strip("_") @@ -158,7 +151,6 @@ def _assert_safe_text(field: str, value: object) -> None: return if _LABELLED_MRN.search(text): raise DeidViolation(f"labelled MRN in {field}") - _assert_no_accession(field, text) if _contains_absolute_date(text) or _COMPACT_DATE.search(text): raise DeidViolation(f"absolute date in {field}") @@ -281,10 +273,6 @@ def validate_wsi_public_row( raise DeidViolation("SLIDE_KEY must be 32 lowercase hex characters") for field, value in row.items(): normalized_field = field.lower() - if normalized_field not in _WSI_NON_TEXT_FIELDS: - # Accessions are rejected in every text column, including - # approved identifiers and artifact URIs. - _assert_no_accession(field, value) if ( normalized_field not in _APPROVED_IDENTIFIER_FIELDS and normalized_field not in _WSI_NON_TEXT_FIELDS @@ -338,7 +326,6 @@ def validate_timeline_public_row(row: Mapping[str, object]) -> None: if field.upper() in {"IMAGE_ID", "IMAGE_IDS"}: # Real slide identifiers are server-side only (wsi-serving-v5). raise DeidViolation(f"forbidden timeline field: {field}") - _assert_no_accession(field, value) if field.upper() not in {"PATIENT_ID", "SAMPLE_ID"}: _assert_safe_text(field, value) for field in ("START_DATE", "STOP_DATE"): diff --git a/tests/test_deid.py b/tests/test_deid.py index ec48520..ea2680a 100644 --- a/tests/test_deid.py +++ b/tests/test_deid.py @@ -180,26 +180,6 @@ def test_public_rows_reject_identifier_field_names_even_without_labelled_values( validate_timeline_public_row({"PATIENT_MRN": "123456", "START_DATE": "-1"}) -@pytest.mark.parametrize( - "value", - ["S12-34567", "s99-123", "Part S20-1234 A1", "MSK:S1234", "msk:s9"], -) -def test_public_rows_reject_accession_numbers_in_every_text_column(value): - for field in ("PATH_DX_TITLE", "IMAGE_ID", "SAMPLE_ID", "PATIENT_ID", "BARCODE"): - row = {"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, field: value} - with pytest.raises(DeidViolation, match="accession") as exc_info: - validate_wsi_public_row(row) - assert value not in str(exc_info.value) - for field in ("SPECIMEN", "LINKOUT", "PATIENT_ID", "SAMPLE_ID"): - with pytest.raises(DeidViolation, match="accession"): - validate_timeline_public_row({"PATIENT_ID": "P-1", field: value, "START_DATE": "-1"}) - - -@pytest.mark.parametrize("value", ["S-1", "AS12-345", "S1-2345", "S12-34"]) -def test_accession_pattern_does_not_flag_pseudonyms(value): - validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "SAMPLE_ID": value}) - - @pytest.mark.parametrize( "slide_key", ["", "0123456789ABCDEF0123456789ABCDEF", "0123456789abcdef", "g" * 32, SLIDE_KEY + "0"], @@ -232,7 +212,7 @@ def test_public_wsi_row_allows_date_like_hex_in_opaque_keys_and_server_only_fiel # Non-canonical keys are still scanned as text. with pytest.raises(DeidViolation): validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "PART_KEY": "part:20190412"}) - # Server-only fields still reject accessions and labelled MRNs. - for bad in ("s3://bucket/S12-34567.svs", "s3://bucket/mrn 1234567.svs"): + # Server-only fields still reject labelled MRNs and delimited dates. + for bad in ("s3://bucket/mrn 1234567.svs", "s3://bucket/2021-03-14.svs"): with pytest.raises(DeidViolation): validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "SOURCE_URL": bad}) From ef8184c9bbf4b19599aefa84dcc11f58b457938a Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Thu, 8 Oct 2026 13:12:08 -0400 Subject: [PATCH 18/33] feat(wsi): open sealed sources with WSI_SOURCE_SEAL_KEY (v4 capabilities) Accept only wsi_auth_version 4. The capability's enc claim is now the slide's sealed source produced by the data provider: AES-256-GCM under a raw 32-byte key from the new required WSI_SOURCE_SEAL_KEY (standard base64), AAD = slide_key, layout nonce || ciphertext || tag. The key is no longer derived from WSI_AUTH_SECRET, which still verifies the JWT signature. cBioPortal never holds the seal key. The service refuses to start, reports /ready 503, and rejects every pixel request unless the key decodes to exactly 32 bytes. The decrypted tile and thumbnail URIs remain subject to validate_artifact_uri (scheme, approved prefix, extension, identifier checks); tests now cover out-of-policy thumbnails and sources at the route level. The serving contract version is wsi-serving-v6. Dev env, compose, CI smoke container, README and runbook carry the new setting. Co-Authored-By: Claude Opus 5.5 (1M context) --- .env.example | 5 +- .github/workflows/publish-image.yml | 1 + README.md | 71 ++++++---- app/auth.py | 65 +++++---- app/config.py | 10 +- app/deid.py | 12 +- app/main.py | 15 +- bench/single_user_pan_bench.py | 2 +- docker-compose.yml | 2 + docs/runbook.md | 36 +++-- pyproject.toml | 2 +- tests/smoke.py | 2 +- tests/test_auth.py | 197 ++++++++++++++++--------- tests/test_config.py | 16 ++- tests/test_main.py | 213 ++++++++++++++++++++++++++-- tests/test_write_dev_env.py | 19 +++ tools/write_dev_env.py | 5 + 17 files changed, 519 insertions(+), 154 deletions(-) diff --git a/.env.example b/.env.example index dae519d..76590af 100644 --- a/.env.example +++ b/.env.example @@ -6,11 +6,14 @@ WSI_ALLOWED_SOURCE_SCHEMES=s3 WSI_ALLOWED_SOURCE_PREFIXES= WSI_ALLOWED_THUMBNAIL_PREFIXES= WSI_AUTH_SECRET=replace-with-at-least-32-random-bytes +# Standard base64 of exactly 32 random bytes (openssl rand -base64 32); must +# match the key the study's sealed sources were produced with. +WSI_SOURCE_SEAL_KEY=replace-with-base64-of-32-random-bytes WSI_AUTH_AUDIENCE=cbioportal-wsi WSI_AUTH_MAX_TTL=300 WSI_RELEASE_ID=local-dev IMAGE_GIT_SHA=development -WSI_SERVING_CONTRACT_VERSION=wsi-serving-v5 +WSI_SERVING_CONTRACT_VERSION=wsi-serving-v6 # ── CORS (add viewer and cBioPortal origins) ───────────────────────────────── CORS_ORIGINS=http://localhost:8080,http://localhost:3000,https://cbioportal.org,https://www.cbioportal.org diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 4149989..1b2ac81 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -31,6 +31,7 @@ jobs: set -euo pipefail container_id="$(docker run --detach --rm \ --env WSI_AUTH_SECRET=0123456789abcdef0123456789abcdef \ + --env WSI_SOURCE_SEAL_KEY=AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8= \ --env REDIS_URL= \ --env N_WORKERS=1 \ --env CORS_ORIGINS=https://triage-beta.cbioportal.aws.mskcc.org \ diff --git a/README.md b/README.md index d0c68a9..ec48258 100644 --- a/README.md +++ b/README.md @@ -43,11 +43,13 @@ authorizes every request (see [Request flow](#request-flow)). 2. `GET /api/wsi/v2/slides/{studyId}/{slideKey}/access` reads the materialized slide row from the cBioPortal database and returns tile metadata, thumbnail dimensions, and a short-lived Bearer capability. The exact tile source URL - and thumbnail artifact URL are sealed inside the capability's encrypted - `enc` claim; the response carries no `imageId` or source URL. + and thumbnail artifact URL are in the capability's `enc` claim, sealed by + the data provider with a key cBioPortal does not hold; neither the database + nor the response carries an `imageId` or source URL. 3. The browser sends only that capability to this service. -4. The service verifies and decrypts the capability and reads pixels from the - sealed URLs in object storage. +4. The service verifies the capability, opens `enc` with + `WSI_SOURCE_SEAL_KEY`, checks the URLs against the artifact policy, and + reads pixels from them in object storage. The tile server never resolves an image ID, queries cBioPortal metadata, or loads portal data files. Client-supplied source URLs (`?source=` or @@ -63,14 +65,18 @@ tile server relies on this contract: 1. Thumbnail JPEGs are written to object storage under a prefix listed in `WSI_ALLOWED_THUMBNAIL_PREFIXES`; source slides live under `WSI_ALLOWED_SOURCE_PREFIXES`. -2. Each slide row in the cBioPortal WSI study files (`meta_wsi.txt`/ - `data_wsi.txt`) carries `source_url`, `tile_metadata_json`, - `thumbnail_url`, `thumbnail_width`, `thumbnail_height`, and - `thumbnail_content_type`. `tile_metadata_json` must pass +2. The pipeline seals each servable slide's `image_id`, tile source URL, and + thumbnail URL into `sealed_source` (the `enc` format above, keyed with + `WSI_SOURCE_SEAL_KEY`, AAD = `slide_key`). +3. Each slide row in the cBioPortal WSI study files (`meta_wsi.txt`/ + `data_wsi.txt`) carries `slide_key`, `sealed_source`, + `tile_metadata_json`, `thumbnail_width`, `thumbnail_height`, and + `thumbnail_content_type`, and never the `image_id` or URLs. + `tile_metadata_json` must pass `app.metadata_contract.validate_tile_metadata`. -3. cBioPortal core imports those files and is the sole ClickHouse writer. It +4. cBioPortal core imports those files and is the sole ClickHouse writer. It publishes `can_serve_tiles=true` only when every field is present, and - returns the URLs and metadata in the per-slide access bundle. + forwards `sealed_source` as the capability's `enc` claim. The tile server never reads the pipeline's tables, registries, manifests, or credentials; it sees only what the access bundle and capability token carry. @@ -110,20 +116,26 @@ The same routes are available under `/wsi`. Every pixel request requires: Authorization: Bearer ``` -Capabilities are HMAC-SHA256 JWTs with `scope=wsi:read`, -`wsi_auth_version=3`, `study_id`, an opaque `slide_key`, bounded thumbnail -dimensions, an expiry no longer than `WSI_AUTH_MAX_TTL`, and an `enc` claim. -`enc` is AES-256-GCM (key = HKDF-SHA256 of `WSI_AUTH_SECRET`, info -`wsi-claim-enc-v3`, AAD = `slide_key`) over the real `image_id` and the exact -tile and thumbnail source URLs, so the browser never sees them. Requests that -supply a source themselves (`?source=` or `X-WSI-Source`) are rejected with -`400`. See `../docs/wsi-deid-slide-key-contract.md` (`wsi-serving-v5`). +Capabilities are HMAC-SHA256 JWTs (signed with `WSI_AUTH_SECRET`) with +`scope=wsi:read`, `wsi_auth_version=4`, `study_id`, an opaque `slide_key`, +bounded thumbnail dimensions, an expiry no longer than `WSI_AUTH_MAX_TTL`, and +an `enc` claim. `enc` is the slide's sealed source: base64url (no padding) of +nonce (12 bytes) || AES-256-GCM ciphertext || tag (16 bytes), keyed with the raw +32-byte `WSI_SOURCE_SEAL_KEY`, AAD = `slide_key`, over JSON +`{"image_id":…,"tile_source":…,"thumbnail_source":…}`. The data provider seals +it when it publishes the slide; cBioPortal stores and forwards it verbatim and +cannot open it, so neither cBioPortal nor the browser sees the `image_id` or +source URLs. The tile server decrypts it and applies the source/thumbnail URI +policy (scheme, approved prefix, extension, identifier checks) before any read. +Requests that supply a source themselves (`?source=` or `X-WSI-Source`) are +rejected with `400`. See `../docs/wsi-deid-slide-key-contract.md` +(`wsi-serving-v6`). `/health` and `/ready` intentionally remain public for orchestration probes. ## Runtime configuration -The service needs only pixel storage, the shared capability secret, and an -optional Redis cache: +The service needs only pixel storage, the shared capability secret, the source +seal key, and an optional Redis cache: | Variable | Default | Description | |----------|---------|-------------| @@ -132,6 +144,7 @@ optional Redis cache: | `AWS_SECRET_ACCESS_KEY` | — | Object-store secret key | | `WSI_AUTH_SECRET` | — | At least 32 bytes; shared with cBioPortal | | `WSI_AUTH_PREVIOUS_SECRET` | — | Optional prior secret during a bounded signing-key rotation | +| `WSI_SOURCE_SEAL_KEY` | — | Required. Standard base64 of exactly 32 random bytes; opens the `enc` claim. Shared with the data provider that seals sources, never with cBioPortal. Startup fails without it | | `WSI_AUTH_AUDIENCE` | `cbioportal-wsi` | Capability audience | | `WSI_AUTH_MAX_TTL` | `300` | Maximum capability lifetime in seconds | | `WSI_ALLOWED_SOURCE_SCHEMES` | `s3` | Comma-separated schemes accepted in source URLs | @@ -162,9 +175,9 @@ optional Redis cache: | `CORS_ORIGINS` | internal cBioPortal origins | Allowed browser origins | Thumbnail artifacts are generated offline (see -[Offline preparation](#offline-preparation)) and their URL, dimensions, -content type, and tile metadata are loaded into the cBioPortal WSI slide -table. A slide is +[Offline preparation](#offline-preparation)); their dimensions, content +type, tile metadata, and sealed source (which carries the URL) are loaded into +the cBioPortal WSI slide table. A slide is published with `can_serve_tiles=false` until all of those fields are present. The online service does not generate thumbnails, consult a manifest, or write the registry. Production deployments must run an offline thumbnail batch; the @@ -195,17 +208,21 @@ miss-lock outcomes, and cache-miss rate-limit decisions. ```bash python3 tools/write_dev_env.py -printf 'WSI_AUTH_SECRET=%s\nREDIS_PASSWORD=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 24)" >> .env +printf 'WSI_AUTH_SECRET=%s\nWSI_SOURCE_SEAL_KEY=%s\nREDIS_PASSWORD=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -base64 32)" "$(openssl rand -hex 24)" >> .env docker compose up --build ``` The compose file is a local rehearsal. Configure the same secret, audience, -and compatible TTL in cBioPortal and this service. +and compatible TTL in cBioPortal and this service, and the same +`WSI_SOURCE_SEAL_KEY` here and wherever the study's sealed sources were +produced. ## Local slide tests -For CI-safe local slide tests, set `WSI_ALLOWED_SOURCE_SCHEMES=s3,file` and -issue a v2 capability whose source URL is the mounted file URI. The normal +For CI-safe local slide tests, set `WSI_ALLOWED_SOURCE_SCHEMES=s3,file`, +include `file:///app/testdata/` in both prefix allowlists, and issue a v4 +capability whose `enc` seals the mounted file URIs with `WSI_SOURCE_SEAL_KEY` +(see `seal_claims` in `tests/test_auth.py`). The normal production default accepts only `s3` URLs. ## PHI-safe operation diff --git a/app/auth.py b/app/auth.py index f161afe..a96d4ef 100644 --- a/app/auth.py +++ b/app/auth.py @@ -10,19 +10,17 @@ from functools import lru_cache from cryptography.exceptions import InvalidTag -from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.ciphers.aead import AESGCM -from cryptography.hazmat.primitives.kdf.hkdf import HKDF from app.deid import SLIDE_KEY_PATTERN -WSI_AUTH_VERSION = 3 -CLAIM_ENCRYPTION_INFO = b"wsi-claim-enc-v3" +WSI_AUTH_VERSION = 4 +SOURCE_SEAL_KEY_BYTES = 32 _GCM_NONCE_BYTES = 12 _GCM_TAG_BYTES = 16 _BASE64URL = re.compile(r"[A-Za-z0-9_-]+") -# Claims that carry real slide identifiers or source bindings. A v3 JWT +# Claims that carry real slide identifiers or source bindings. A JWT # payload is readable by the browser, so these may only travel inside `enc`. _PLAINTEXT_FORBIDDEN_CLAIMS = ( "image_id", @@ -66,33 +64,43 @@ def _b64decode(value: str) -> bytes: raise InvalidWsiToken("invalid token encoding") from exc -@lru_cache(maxsize=4) -def _claim_encryption_key(secret: str) -> bytes: - """Derive the AES-256-GCM key for sealed claims (contract section 4).""" - return HKDF( - algorithm=hashes.SHA256(), - length=32, - salt=None, - info=CLAIM_ENCRYPTION_INFO, - ).derive(secret.encode("utf-8")) +def decode_source_seal_key(value: str) -> bytes: + """Decode `WSI_SOURCE_SEAL_KEY`: standard base64 of exactly 32 random bytes. + + The key seals `enc` at the data provider and is never derived from + `WSI_AUTH_SECRET`. Failures never echo the configured value. + """ + if not isinstance(value, str) or not value.strip(): + raise InvalidWsiToken("WSI source seal key is not configured") + try: + key = base64.b64decode(value.strip(), validate=True) + except (binascii.Error, ValueError) as exc: + raise InvalidWsiToken("WSI source seal key is not configured") from exc + if len(key) != SOURCE_SEAL_KEY_BYTES: + raise InvalidWsiToken("WSI source seal key is not configured") + return key -def decrypt_sealed_claims(enc: object, secret: str, slide_key: str) -> dict: - """Decrypt the `enc` claim bound to `slide_key`. +def decrypt_sealed_claims(enc: object, seal_key: bytes, slide_key: str) -> dict: + """Decrypt the `enc` claim with the raw source seal key, bound to `slide_key`. - Failures never echo the ciphertext, plaintext, or slide key. + `enc` is base64url-without-padding of nonce(12) || ciphertext || tag(16) + from AES-256-GCM with AAD = UTF-8 `slide_key`. Failures never echo the + ciphertext, plaintext, or slide key. """ if not isinstance(enc, str) or not _BASE64URL.fullmatch(enc): raise InvalidWsiToken("invalid token source binding") - return dict(_decrypt_sealed_claims_cached(enc, secret, slide_key)) + if not isinstance(seal_key, bytes) or len(seal_key) != SOURCE_SEAL_KEY_BYTES: + raise InvalidWsiToken("WSI source seal key is not configured") + return dict(_decrypt_sealed_claims_cached(enc, seal_key, slide_key)) # One token authorizes hundreds of tile requests; decrypt its `enc` once. The # cache is consulted only after the signature/expiry checks pass on every -# request, ciphertexts are unique per token (random nonce), and failures raise -# and are therefore never cached. +# request. `enc` is sealed once per slide (random nonce), so every token for a +# slide shares one entry; failures raise and are therefore never cached. @lru_cache(maxsize=4096) -def _decrypt_sealed_claims_cached(enc: str, secret: str, slide_key: str) -> tuple[tuple[str, str], ...]: +def _decrypt_sealed_claims_cached(enc: str, seal_key: bytes, slide_key: str) -> tuple[tuple[str, str], ...]: try: sealed = base64.urlsafe_b64decode(enc + "=" * (-len(enc) % 4)) except (binascii.Error, ValueError) as exc: @@ -100,7 +108,7 @@ def _decrypt_sealed_claims_cached(enc: str, secret: str, slide_key: str) -> tupl if len(sealed) <= _GCM_NONCE_BYTES + _GCM_TAG_BYTES: raise InvalidWsiToken("invalid token source binding") try: - plaintext = AESGCM(_claim_encryption_key(secret)).decrypt( + plaintext = AESGCM(seal_key).decrypt( sealed[:_GCM_NONCE_BYTES], sealed[_GCM_NONCE_BYTES:], slide_key.encode("utf-8"), @@ -117,17 +125,22 @@ def _decrypt_sealed_claims_cached(enc: str, secret: str, slide_key: str) -> tupl return tuple((claim, claims[claim]) for claim in _SEALED_CLAIMS) -def validate_wsi_auth_configuration(secret: str, audience: str, max_ttl: int) -> None: +def validate_wsi_auth_configuration( + secret: str, audience: str, max_ttl: int, seal_key: bytes +) -> None: if not secret or len(secret.encode()) < 32: raise InvalidWsiToken("WSI authentication is not configured") if not audience or not audience.strip() or not 1 <= max_ttl <= 300: raise InvalidWsiToken("WSI authentication is not configured") + if not isinstance(seal_key, bytes) or len(seal_key) != SOURCE_SEAL_KEY_BYTES: + raise InvalidWsiToken("WSI source seal key is not configured") def validate_wsi_token( - token: str, secret: str, audience: str, max_ttl: int = 300 + token: str, secret: str, audience: str, max_ttl: int = 300, *, seal_key: bytes ) -> dict: - validate_wsi_auth_configuration(secret, audience, max_ttl) + """Verify a capability signed with `secret` and open its sealed source.""" + validate_wsi_auth_configuration(secret, audience, max_ttl, seal_key) parts = token.split(".") if len(parts) != 3: @@ -187,7 +200,7 @@ def validate_wsi_token( raise InvalidWsiToken("token lifetime exceeds configured maximum") # Decrypt last so expired or mis-scoped tokens never reach the cipher. - sealed = decrypt_sealed_claims(payload.get("enc"), secret, slide_key) + sealed = decrypt_sealed_claims(payload.get("enc"), seal_key, slide_key) claims = {key: value for key, value in payload.items() if key != "enc"} claims.update(sealed) return claims diff --git a/app/config.py b/app/config.py index 4309697..cf76c2b 100644 --- a/app/config.py +++ b/app/config.py @@ -54,15 +54,21 @@ class Settings: release_id: str = field(default_factory=lambda: _env_str("WSI_RELEASE_ID")) image_git_sha: str = field(default_factory=lambda: _env_str("IMAGE_GIT_SHA")) serving_contract_version: str = field( - default_factory=lambda: _env_str("WSI_SERVING_CONTRACT_VERSION", "wsi-serving-v5") + default_factory=lambda: _env_str("WSI_SERVING_CONTRACT_VERSION", "wsi-serving-v6") ) # WSI request authentication wsi_auth_secret: str = field(default_factory=lambda: _env_str("WSI_AUTH_SECRET")) wsi_auth_previous_secret: str = field( default_factory=lambda: _env_str("WSI_AUTH_PREVIOUS_SECRET") ) + # Standard base64 of the 32-byte AES-256-GCM key that opens the `enc` + # claim. Shared only with the data provider that seals slide sources; the + # cBioPortal backend never holds it. Required: startup fails without it. + wsi_source_seal_key: str = field( + default_factory=lambda: _env_str("WSI_SOURCE_SEAL_KEY"), repr=False + ) wsi_auth_audience: str = field(default_factory=lambda: _env_str("WSI_AUTH_AUDIENCE", "cbioportal-wsi")) - # Deprecated compatibility setting. Pixel routes always require a v2 + # Deprecated compatibility setting. Pixel routes always require a # capability; this value is intentionally ignored by app.main. wsi_auth_required: bool = field(default_factory=lambda: _env_bool("WSI_AUTH_REQUIRED", True)) wsi_auth_max_ttl: int = field(default_factory=lambda: _env_int("WSI_AUTH_MAX_TTL", 300)) diff --git a/app/deid.py b/app/deid.py index 2c2b824..84cb0aa 100644 --- a/app/deid.py +++ b/app/deid.py @@ -51,7 +51,7 @@ "procedure_date_days", } # Identifiers allowed to reach the browser without date/MRN text scanning. -# image_id is server-side only (contract wsi-serving-v5) and is scanned like +# image_id is server-side only (contract wsi-serving-v6) and is scanned like # any other text; slide_key is opaque hex and validated by SLIDE_KEY_PATTERN. _APPROVED_IDENTIFIER_FIELDS = { "patient_id", @@ -94,10 +94,10 @@ _SHA256_HEX = re.compile(r"[0-9a-fA-F]{64}") -# Columns that stay server-side under wsi_auth_version 3: image_id lives only -# in ClickHouse and the encrypted token claim; source/thumbnail URIs are sealed -# in that claim and validated by validate_artifact_uri. They are still scanned -# for labelled MRNs and delimited dates, but not for the compact +# Columns that never reach cBioPortal under wsi_auth_version 4: image_id and the +# source/thumbnail URIs travel only inside the sealed `enc` claim and are +# validated by validate_artifact_uri when the tile server opens it. They are +# still scanned for labelled MRNs and delimited dates, but not for the compact # YYYYMMDD heuristic, which 8-digit ids and object paths trip without being # browser-facing text. _SERVER_ONLY_FIELDS = {"image_id", "source_url", "thumbnail_url"} @@ -324,7 +324,7 @@ def validate_timeline_public_row(row: Mapping[str, object]) -> None: if field.upper() in forbidden or field.lower() in _FORBIDDEN_FIELDS: raise DeidViolation(f"forbidden timeline field: {field}") if field.upper() in {"IMAGE_ID", "IMAGE_IDS"}: - # Real slide identifiers are server-side only (wsi-serving-v5). + # Real slide identifiers are server-side only (wsi-serving-v6). raise DeidViolation(f"forbidden timeline field: {field}") if field.upper() not in {"PATIENT_ID", "SAMPLE_ID"}: _assert_safe_text(field, value) diff --git a/app/main.py b/app/main.py index c4c10a3..695f637 100644 --- a/app/main.py +++ b/app/main.py @@ -36,6 +36,7 @@ from .auth import ( WSI_AUTH_VERSION, InvalidWsiToken, + decode_source_seal_key, source_cache_identity, source_digest, validate_wsi_auth_configuration, @@ -301,6 +302,11 @@ async def renew_until_done(): @asynccontextmanager async def lifespan(app: FastAPI): global _slides, _image_operation_semaphore, _thumbnail_fetch_semaphore + try: + decode_source_seal_key(settings.wsi_source_seal_key) + except InvalidWsiToken: + logger.error("WSI_SOURCE_SEAL_KEY must be standard base64 of exactly 32 bytes") + raise RuntimeError("WSI source seal key is not configured") from None _slides = SlideCache(capacity=settings.max_open_slides) _image_operation_semaphore = asyncio.Semaphore(settings.max_image_operations) _thumbnail_fetch_semaphore = asyncio.Semaphore(settings.thumbnail_fetch_concurrency) @@ -368,12 +374,17 @@ async def require_wsi_capability(request: Request, call_next): authorization = request.headers.get("authorization", "") if not authorization.startswith("Bearer "): return Response(status_code=401, headers={"WWW-Authenticate": "Bearer"}) + try: + seal_key = decode_source_seal_key(settings.wsi_source_seal_key) + except InvalidWsiToken: + return Response(status_code=401, headers={"WWW-Authenticate": "Bearer"}) try: claims = validate_wsi_token( authorization[7:].strip(), settings.wsi_auth_secret, settings.wsi_auth_audience, settings.wsi_auth_max_ttl, + seal_key=seal_key, ) except InvalidWsiToken: if not settings.wsi_auth_previous_secret: @@ -384,6 +395,7 @@ async def require_wsi_capability(request: Request, call_next): settings.wsi_auth_previous_secret, settings.wsi_auth_audience, settings.wsi_auth_max_ttl, + seal_key=seal_key, ) except InvalidWsiToken: # Preserve the same response for an invalid token regardless of @@ -730,6 +742,7 @@ def _readiness_status() -> tuple[int, dict]: settings.wsi_auth_secret, settings.wsi_auth_audience, settings.wsi_auth_max_ttl, + decode_source_seal_key(settings.wsi_source_seal_key), ) if not settings.wsi_allowed_source_prefixes or not settings.wsi_allowed_thumbnail_prefixes: raise InvalidWsiToken("WSI artifact allowlists are not configured") @@ -738,7 +751,7 @@ def _readiness_status() -> tuple[int, dict]: raise InvalidWsiToken("WSI release ID is not configured") if not re.fullmatch(r"[0-9a-fA-F]{40}", settings.image_git_sha): raise InvalidWsiToken("WSI image git SHA is not a full commit") - if settings.serving_contract_version != "wsi-serving-v5": + if settings.serving_contract_version != "wsi-serving-v6": raise InvalidWsiToken("unsupported WSI serving contract version") return 200, payload except InvalidWsiToken: diff --git a/bench/single_user_pan_bench.py b/bench/single_user_pan_bench.py index 090f87c..427b7f0 100644 --- a/bench/single_user_pan_bench.py +++ b/bench/single_user_pan_bench.py @@ -3,7 +3,7 @@ The access JSON is the response from cBioPortal's slide access endpoint. It must contain ``accessToken`` and ``tileMetadata``; the tile source travels -encrypted inside the v3 token. The token is read only in memory and is never +sealed inside the v4 token. The token is read only in memory and is never included in the benchmark output. Example:: diff --git a/docker-compose.yml b/docker-compose.yml index e5c1429..b723d00 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,8 @@ services: # ── WSI capability authentication ──────────────────────────────────── WSI_AUTH_SECRET: ${WSI_AUTH_SECRET:?WSI_AUTH_SECRET must be set} + # Opens the capability's sealed source; standard base64 of 32 bytes. + WSI_SOURCE_SEAL_KEY: ${WSI_SOURCE_SEAL_KEY:?WSI_SOURCE_SEAL_KEY must be set} WSI_AUTH_AUDIENCE: ${WSI_AUTH_AUDIENCE:-cbioportal-wsi} WSI_AUTH_MAX_TTL: ${WSI_AUTH_MAX_TTL:-300} WSI_ALLOWED_SOURCE_SCHEMES: ${WSI_ALLOWED_SOURCE_SCHEMES:-s3} diff --git a/docs/runbook.md b/docs/runbook.md index f1937c7..d1c464c 100644 --- a/docs/runbook.md +++ b/docs/runbook.md @@ -16,12 +16,16 @@ or expose clinical metadata. resources. The backend access response is the only online input needed beyond the shared -secret. It contains `slideKey`, thumbnail dimensions, intrinsic tile metadata, -and a `wsi_auth_version=3` token. The token's `enc` claim carries the real -`image_id` and both source URLs encrypted with AES-256-GCM (HKDF-SHA256 of the -shared secret, info `wsi-claim-enc-v3`, AAD = `slide_key`); the tile server -decrypts it and reads only those URLs. v2 tokens are rejected. Contract: -`wsi-serving-v5` (`../docs/wsi-deid-slide-key-contract.md`). +secret and the source seal key. It contains `slideKey`, thumbnail dimensions, +intrinsic tile metadata, and a `wsi_auth_version=4` token signed with +`WSI_AUTH_SECRET`. The token's `enc` claim is the slide's sealed source: the +real `image_id` and both source URLs encrypted by the data provider with +AES-256-GCM under the raw 32-byte `WSI_SOURCE_SEAL_KEY` (AAD = `slide_key`). +cBioPortal stores and forwards it verbatim and cannot decrypt it. The tile +server opens it, applies `validate_artifact_uri` (scheme, approved prefix, +extension, identifier checks), and reads only those URLs. v2 and v3 tokens are +rejected. Contract: `wsi-serving-v6` +(`../docs/wsi-deid-slide-key-contract.md`). ## Production topology @@ -37,6 +41,7 @@ AWS_ENDPOINT_URL= AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= WSI_AUTH_SECRET= +WSI_SOURCE_SEAL_KEY= WSI_AUTH_AUDIENCE=cbioportal-wsi WSI_AUTH_MAX_TTL=300 WSI_ALLOWED_SOURCE_SCHEMES=s3 @@ -70,17 +75,26 @@ curl -fsS \ Also verify that adding `?source=...` or an `X-WSI-Source` header returns `400`, that changing one character of the token returns `401`, that an -expired token returns `401`, and that a v2 token returns `401`. +expired token returns `401`, and that a v2 or v3 token returns `401`. + +`WSI_SOURCE_SEAL_KEY` is required: the process refuses to start, `/ready` +returns `503`, and every pixel request returns `401` unless it decodes to +exactly 32 bytes. It is held only by the data provider that seals sources and +by this service; never give it to cBioPortal. Rotating it means re-sealing +every published `sealed_source` and re-importing the study files. ## Data preparation The offline pipeline loads each WSI slide row with: ```text -source_url, tile_metadata_json, thumbnail_url, +slide_key, sealed_source, tile_metadata_json, thumbnail_width, thumbnail_height, thumbnail_content_type ``` +`sealed_source` seals the `image_id`, source URL, and thumbnail URL with +`WSI_SOURCE_SEAL_KEY`; the study files never carry them in clear. + The cBioPortal core importer publishes `can_serve_tiles=true` only when all fields are complete; otherwise the hierarchy reports the slide as unavailable. No registry or manifest is mounted into the online tile-server pod. @@ -110,8 +124,10 @@ IDs. Keep operation type, dimensions, status, timing, and exception class. ## Local integration The local cBioPortal compose rehearsal should pass the same -`WSI_AUTH_SECRET`/audience to the backend and tile server. For mounted local +`WSI_AUTH_SECRET`/audience to the backend and tile server, and give the tile +server the `WSI_SOURCE_SEAL_KEY` the local study's sealed sources were +produced with. For mounted local slides, explicitly set `WSI_ALLOWED_SOURCE_SCHEMES=s3,file` and include `file:///app/testdata/` in both URI prefix allowlists; production should remain -`s3` only. Generate a v2 access bundle through the backend before +`s3` only. Generate a v4 access bundle through the backend before testing a pixel request. diff --git a/pyproject.toml b/pyproject.toml index 781ffe5..b6c4dc9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ dependencies = [ # Tile cache (asyncio support is built-in since redis 5) "redis>=5.0.0", - # Sealed WSI capability claims (AES-256-GCM + HKDF-SHA256) + # Sealed WSI capability claims (AES-256-GCM) "cryptography>=42.0.0", # Observability (optional but useful) diff --git a/tests/smoke.py b/tests/smoke.py index 284737e..8c682b2 100644 --- a/tests/smoke.py +++ b/tests/smoke.py @@ -1,6 +1,6 @@ """Read-only smoke test for the capability-bound WSI pixel service. -The v3 Bearer capability carries the encrypted tile and thumbnail sources, so +The v4 Bearer capability carries the sealed tile and thumbnail sources, so no source URL is passed to the service. Example: diff --git a/tests/test_auth.py b/tests/test_auth.py index 716f206..5ef360d 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -5,11 +5,13 @@ import time import pytest +from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.ciphers.aead import AESGCM +from cryptography.hazmat.primitives.kdf.hkdf import HKDF from app.auth import ( InvalidWsiToken, - _claim_encryption_key, + decode_source_seal_key, decrypt_sealed_claims, source_cache_identity, source_digest, @@ -20,11 +22,14 @@ SLIDE_KEY = "0123456789abcdef0123456789abcdef" TILE_SOURCE = "s3://slides/slide-a.svs" THUMBNAIL_SOURCE = "s3://thumbs/slide-a.jpg" +SEAL_KEY = bytes(range(32)) +SEAL_KEY_B64 = base64.b64encode(SEAL_KEY).decode() -# Contract test vector (docs/wsi-deid-slide-key-contract.md section 4). -VECTOR_SECRET = "local-development-wsi-secret-change-me-32chars" +# Contract test vector (docs/wsi-deid-slide-key-contract.md, V6.1). +VECTOR_SEAL_KEY_B64 = "8XaidWVtlFzV7hwyAwtTNjN13MNLqnenz5Sy7Y+cbAs=" VECTOR_SLIDE_KEY = "0123456789abcdef0123456789abcdef" VECTOR_KEY_HEX = "f176a275656d945cd5ee1c32030b53363375dcc34baa77a7cf94b2ed8f9c6c0b" +VECTOR_KEY = bytes.fromhex(VECTOR_KEY_HEX) VECTOR_PLAINTEXT = ( '{"image_id":"1","tile_source":"file:///app/testdata/1.svs",' '"thumbnail_source":"file:///app/testdata/1.jpg"}' @@ -37,14 +42,14 @@ def seal_claims( - secret: str, + seal_key: bytes, slide_key: str, sealed: dict | str, nonce: bytes = bytes(range(12)), ) -> str: - """Produce an `enc` claim exactly as the backend does (contract section 4).""" + """Produce an `enc` claim exactly as the data provider seals it (contract V6.1).""" plaintext = sealed if isinstance(sealed, str) else json.dumps(sealed, separators=(",", ":")) - ciphertext = AESGCM(_claim_encryption_key(secret)).encrypt( + ciphertext = AESGCM(seal_key).encrypt( nonce, plaintext.encode("utf-8"), slide_key.encode("utf-8") ) return base64.urlsafe_b64encode(nonce + ciphertext).rstrip(b"=").decode() @@ -76,7 +81,7 @@ def encode(value): return f"{encoded_header}.{encoded_payload}.{signature}" -def valid_claims(secret: str = "s" * 32, **overrides): +def valid_claims(seal_key: bytes = SEAL_KEY, **overrides): now = int(time.time()) slide_key = overrides.get("slide_key", SLIDE_KEY) claims = { @@ -85,13 +90,13 @@ def valid_claims(secret: str = "s" * 32, **overrides): "scope": "wsi:read", "study_id": "study-a", "slide_key": slide_key, - "wsi_auth_version": 3, + "wsi_auth_version": 4, "thumbnail_width": 1024, "thumbnail_height": 768, "iat": now, "exp": now + 300, "enc": seal_claims( - secret, + seal_key, slide_key, { "image_id": "slide-a", @@ -104,13 +109,18 @@ def valid_claims(secret: str = "s" * 32, **overrides): return claims -def make_v3_token(secret: str = "s" * 32, **overrides) -> str: - return make_token(secret, **valid_claims(secret, **overrides)) +def make_v4_token(secret: str = "s" * 32, seal_key: bytes = SEAL_KEY, **overrides) -> str: + return make_token(secret, **valid_claims(seal_key, **overrides)) + + +def validate(token: str, secret: str = "s" * 32, audience: str = "cbioportal-wsi", **kwargs) -> dict: + kwargs.setdefault("seal_key", SEAL_KEY) + return validate_wsi_token(token, secret, audience, **kwargs) def test_valid_wsi_token(): secret = "s" * 32 - claims = validate_wsi_token(make_v3_token(secret), secret, "cbioportal-wsi") + claims = validate(make_v4_token(secret), secret, "cbioportal-wsi") assert claims["sub"] == "user@example.org" assert claims["slide_key"] == SLIDE_KEY assert claims["image_id"] == "slide-a" @@ -123,7 +133,7 @@ def test_sealed_claims_are_decrypted_once_per_token(monkeypatch): from app import auth secret = "s" * 32 - token = make_v3_token(secret) + token = make_v4_token(secret) calls = [] real_aesgcm = auth.AESGCM @@ -137,13 +147,13 @@ def decrypt(self, *args, **kwargs): auth._decrypt_sealed_claims_cached.cache_clear() monkeypatch.setattr(auth, "AESGCM", CountingAESGCM) - first = validate_wsi_token(token, secret, "cbioportal-wsi") + first = validate(token, secret, "cbioportal-wsi") for _ in range(5): - assert validate_wsi_token(token, secret, "cbioportal-wsi") == first + assert validate(token, secret, "cbioportal-wsi") == first assert len(calls) == 1 # Callers get their own copy; mutating it does not poison the cache. first["tile_source"] = "tampered" - assert validate_wsi_token(token, secret, "cbioportal-wsi")["tile_source"] == TILE_SOURCE + assert validate(token, secret, "cbioportal-wsi")["tile_source"] == TILE_SOURCE def test_rejected_sealed_claims_are_not_cached(): @@ -151,23 +161,45 @@ def test_rejected_sealed_claims_are_not_cached(): auth._decrypt_sealed_claims_cached.cache_clear() with pytest.raises(InvalidWsiToken): - decrypt_sealed_claims("A" * 64, "s" * 32, SLIDE_KEY) + decrypt_sealed_claims("A" * 64, SEAL_KEY, SLIDE_KEY) assert auth._decrypt_sealed_claims_cached.cache_info().currsize == 0 -def test_claim_encryption_key_matches_contract_vector(): - assert _claim_encryption_key(VECTOR_SECRET).hex() == VECTOR_KEY_HEX +def test_source_seal_key_decodes_contract_vector(): + assert decode_source_seal_key(VECTOR_SEAL_KEY_B64).hex() == VECTOR_KEY_HEX + + +@pytest.mark.parametrize( + "value", + [ + "", + " ", + base64.b64encode(bytes(31)).decode(), + base64.b64encode(bytes(33)).decode(), + base64.b64encode(bytes(16)).decode(), + VECTOR_SEAL_KEY_B64.replace("+", "-"), + VECTOR_SEAL_KEY_B64.rstrip("="), + "not base64 at all!", + VECTOR_KEY_HEX, + ], +) +def test_malformed_source_seal_key_is_rejected_without_echo(value): + with pytest.raises(InvalidWsiToken, match="seal key is not configured") as exc_info: + decode_source_seal_key(value) + if value.strip(): + assert value.strip() not in str(exc_info.value) def test_contract_enc_vector_decrypts_to_exact_plaintext(): - assert seal_claims(VECTOR_SECRET, VECTOR_SLIDE_KEY, VECTOR_PLAINTEXT) == VECTOR_ENC + assert seal_claims(VECTOR_KEY, VECTOR_SLIDE_KEY, VECTOR_PLAINTEXT) == VECTOR_ENC sealed = base64.urlsafe_b64decode(VECTOR_ENC + "=" * (-len(VECTOR_ENC) % 4)) assert sealed[:12].hex() == "000102030405060708090a0b" - plaintext = AESGCM(_claim_encryption_key(VECTOR_SECRET)).decrypt( + plaintext = AESGCM(VECTOR_KEY).decrypt( sealed[:12], sealed[12:], VECTOR_SLIDE_KEY.encode() ) assert plaintext.decode("utf-8") == VECTOR_PLAINTEXT - assert decrypt_sealed_claims(VECTOR_ENC, VECTOR_SECRET, VECTOR_SLIDE_KEY) == { + seal_key = decode_source_seal_key(VECTOR_SEAL_KEY_B64) + assert decrypt_sealed_claims(VECTOR_ENC, seal_key, VECTOR_SLIDE_KEY) == { "image_id": "1", "tile_source": "file:///app/testdata/1.svs", "thumbnail_source": "file:///app/testdata/1.jpg", @@ -175,32 +207,34 @@ def test_contract_enc_vector_decrypts_to_exact_plaintext(): @pytest.mark.parametrize( - ("enc", "secret", "slide_key"), + ("enc", "seal_key", "slide_key"), [ - (VECTOR_ENC, VECTOR_SECRET, "f" * 32), - (VECTOR_ENC, VECTOR_SECRET, VECTOR_SLIDE_KEY.upper()), - (VECTOR_ENC, "x" * 46, VECTOR_SLIDE_KEY), - (VECTOR_ENC[:-2] + ("AA" if VECTOR_ENC[-2:] != "AA" else "BB"), VECTOR_SECRET, VECTOR_SLIDE_KEY), - (VECTOR_ENC[:16] + ("A" if VECTOR_ENC[16] != "A" else "B") + VECTOR_ENC[17:], VECTOR_SECRET, VECTOR_SLIDE_KEY), - (VECTOR_ENC[:20], VECTOR_SECRET, VECTOR_SLIDE_KEY), - (VECTOR_ENC + "==", VECTOR_SECRET, VECTOR_SLIDE_KEY), - ("", VECTOR_SECRET, VECTOR_SLIDE_KEY), - (None, VECTOR_SECRET, VECTOR_SLIDE_KEY), + (VECTOR_ENC, VECTOR_KEY, "f" * 32), + (VECTOR_ENC, VECTOR_KEY, VECTOR_SLIDE_KEY.upper()), + (VECTOR_ENC, SEAL_KEY, VECTOR_SLIDE_KEY), + (VECTOR_ENC, VECTOR_KEY[:16], VECTOR_SLIDE_KEY), + (VECTOR_ENC, VECTOR_KEY_HEX, VECTOR_SLIDE_KEY), + (VECTOR_ENC[:-2] + ("AA" if VECTOR_ENC[-2:] != "AA" else "BB"), VECTOR_KEY, VECTOR_SLIDE_KEY), + (VECTOR_ENC[:16] + ("A" if VECTOR_ENC[16] != "A" else "B") + VECTOR_ENC[17:], VECTOR_KEY, VECTOR_SLIDE_KEY), + (VECTOR_ENC[:20], VECTOR_KEY, VECTOR_SLIDE_KEY), + (VECTOR_ENC + "==", VECTOR_KEY, VECTOR_SLIDE_KEY), + ("", VECTOR_KEY, VECTOR_SLIDE_KEY), + (None, VECTOR_KEY, VECTOR_SLIDE_KEY), ], ) -def test_tampered_or_rebound_enc_is_rejected(enc, secret, slide_key): +def test_tampered_or_rebound_enc_is_rejected(enc, seal_key, slide_key): with pytest.raises(InvalidWsiToken) as exc_info: - decrypt_sealed_claims(enc, secret, slide_key) + decrypt_sealed_claims(enc, seal_key, slide_key) assert "testdata" not in str(exc_info.value) assert VECTOR_SLIDE_KEY not in str(exc_info.value) def test_token_with_enc_bound_to_another_slide_key_is_rejected(): secret = "s" * 32 - claims = valid_claims(secret) + claims = valid_claims() claims["slide_key"] = "f" * 32 with pytest.raises(InvalidWsiToken, match="source binding"): - validate_wsi_token(make_token(secret, **claims), secret, "cbioportal-wsi") + validate(make_token(secret, **claims), secret, "cbioportal-wsi") @pytest.mark.parametrize( @@ -216,14 +250,14 @@ def test_token_with_enc_bound_to_another_slide_key_is_rejected(): def test_malformed_sealed_plaintext_is_rejected(sealed): secret = "s" * 32 with pytest.raises(InvalidWsiToken, match="source binding"): - validate_wsi_token( - make_v3_token(secret, enc=seal_claims(secret, SLIDE_KEY, sealed)), + validate( + make_v4_token(secret, enc=seal_claims(SEAL_KEY, SLIDE_KEY, sealed)), secret, "cbioportal-wsi", ) -def test_v2_tokens_are_rejected(): +def test_v2_and_v3_tokens_are_rejected(): secret = "s" * 32 now = int(time.time()) v2_claims = { @@ -241,22 +275,45 @@ def test_v2_tokens_are_rejected(): "exp": now + 300, } with pytest.raises(InvalidWsiToken, match="unsupported WSI authorization contract"): - validate_wsi_token(make_token(secret, **v2_claims), secret, "cbioportal-wsi") + validate(make_token(secret, **v2_claims), secret, "cbioportal-wsi") + with pytest.raises(InvalidWsiToken, match="unsupported WSI authorization contract"): + validate(make_v4_token(secret, wsi_auth_version=2), secret, "cbioportal-wsi") with pytest.raises(InvalidWsiToken, match="unsupported WSI authorization contract"): - validate_wsi_token(make_v3_token(secret, wsi_auth_version=2), secret, "cbioportal-wsi") + validate(make_v4_token(secret, wsi_auth_version=3), secret, "cbioportal-wsi") with pytest.raises(InvalidWsiToken, match="unsupported WSI authorization contract"): - validate_wsi_token(make_v3_token(secret, wsi_auth_version="3"), secret, "cbioportal-wsi") + validate(make_v4_token(secret, wsi_auth_version="4"), secret, "cbioportal-wsi") + + +def test_enc_sealed_with_another_key_is_rejected(): + secret = "s" * 32 + with pytest.raises(InvalidWsiToken, match="source binding"): + validate(make_v4_token(secret, seal_key=bytes(32)), secret, "cbioportal-wsi") + + +def test_enc_sealed_with_key_derived_from_signing_secret_is_rejected(): + secret = "s" * 32 + derived = HKDF( + algorithm=hashes.SHA256(), length=32, salt=None, info=b"wsi-claim-enc-v3" + ).derive(secret.encode("utf-8")) + with pytest.raises(InvalidWsiToken, match="source binding"): + validate(make_v4_token(secret, seal_key=derived), secret, "cbioportal-wsi") + + +def test_signing_secret_does_not_open_enc(): + secret = "s" * 32 + with pytest.raises(InvalidWsiToken): + validate(make_v4_token(secret), secret, "cbioportal-wsi", seal_key=secret.encode()) @pytest.mark.parametrize( "claim", ["image_id", "tile_source", "thumbnail_source", "tile_source_sha256", "thumbnail_source_sha256"], ) -def test_v3_token_must_not_expose_sealed_claims_in_plaintext(claim): +def test_token_must_not_expose_sealed_claims_in_plaintext(claim): secret = "s" * 32 with pytest.raises(InvalidWsiToken, match="exposes sealed"): - validate_wsi_token( - make_v3_token(secret, **{claim: "a" * 64}), secret, "cbioportal-wsi" + validate( + make_v4_token(secret, **{claim: "a" * 64}), secret, "cbioportal-wsi" ) @@ -265,10 +322,10 @@ def test_v3_token_must_not_expose_sealed_claims_in_plaintext(claim): ) def test_malformed_slide_key_is_rejected(slide_key): secret = "s" * 32 - claims = valid_claims(secret) + claims = valid_claims() claims["slide_key"] = slide_key with pytest.raises(InvalidWsiToken, match="invalid token slide"): - validate_wsi_token(make_token(secret, **claims), secret, "cbioportal-wsi") + validate(make_token(secret, **claims), secret, "cbioportal-wsi") def test_source_cache_identity_changes_when_manifest_fingerprint_changes(): @@ -280,7 +337,7 @@ def test_source_cache_identity_changes_when_manifest_fingerprint_changes(): def test_source_fingerprint_is_optional(): secret = "s" * 32 - claims = validate_wsi_token(make_v3_token(secret), secret, "cbioportal-wsi") + claims = validate(make_v4_token(secret), secret, "cbioportal-wsi") assert "tile_source_fingerprint" not in claims @@ -288,26 +345,36 @@ def test_source_fingerprint_is_optional(): def test_malformed_source_fingerprint_is_rejected(claim): secret = "s" * 32 with pytest.raises(InvalidWsiToken): - validate_wsi_token( - make_v3_token(secret, **{claim: "not-a-fingerprint"}), + validate( + make_v4_token(secret, **{claim: "not-a-fingerprint"}), secret, "cbioportal-wsi", ) @pytest.mark.parametrize( - ("secret", "audience", "max_ttl"), + ("secret", "audience", "max_ttl", "seal_key"), [ - ("s" * 31, "cbioportal-wsi", 300), - ("s" * 32, " ", 300), - ("s" * 32, "cbioportal-wsi", 0), - ("s" * 32, "cbioportal-wsi", 301), - ("s" * 32, "cbioportal-wsi", 900), + ("s" * 31, "cbioportal-wsi", 300, SEAL_KEY), + ("s" * 32, " ", 300, SEAL_KEY), + ("s" * 32, "cbioportal-wsi", 0, SEAL_KEY), + ("s" * 32, "cbioportal-wsi", 301, SEAL_KEY), + ("s" * 32, "cbioportal-wsi", 900, SEAL_KEY), + ("s" * 32, "cbioportal-wsi", 300, b""), + ("s" * 32, "cbioportal-wsi", 300, SEAL_KEY[:31]), + ("s" * 32, "cbioportal-wsi", 300, SEAL_KEY + b"x"), + ("s" * 32, "cbioportal-wsi", 300, SEAL_KEY_B64), ], ) -def test_invalid_wsi_auth_configuration_is_rejected(secret, audience, max_ttl): +def test_invalid_wsi_auth_configuration_is_rejected(secret, audience, max_ttl, seal_key): with pytest.raises(InvalidWsiToken, match="not configured"): - validate_wsi_auth_configuration(secret, audience, max_ttl) + validate_wsi_auth_configuration(secret, audience, max_ttl, seal_key) + + +def test_token_validation_requires_seal_key(): + secret = "s" * 32 + with pytest.raises(InvalidWsiToken, match="seal key is not configured"): + validate(make_v4_token(secret), secret, "cbioportal-wsi", seal_key=b"") @pytest.mark.parametrize("change", [ @@ -318,21 +385,21 @@ def test_invalid_wsi_auth_configuration_is_rejected(secret, audience, max_ttl): def test_invalid_claims_are_rejected(change): secret = "s" * 32 with pytest.raises(InvalidWsiToken): - validate_wsi_token(make_v3_token(secret, **change), secret, "cbioportal-wsi") + validate(make_v4_token(secret, **change), secret, "cbioportal-wsi") def test_wrong_secret_is_rejected(): secret = "s" * 32 with pytest.raises(InvalidWsiToken): - validate_wsi_token(make_v3_token(secret), "x" * 32, "cbioportal-wsi") + validate(make_v4_token(secret), "x" * 32, "cbioportal-wsi") def test_non_object_header_and_payload_are_rejected(): secret = "s" * 32 with pytest.raises(InvalidWsiToken): - validate_wsi_token(make_raw_token(secret, [], {}), secret, "cbioportal-wsi") + validate(make_raw_token(secret, [], {}), secret, "cbioportal-wsi") with pytest.raises(InvalidWsiToken): - validate_wsi_token( + validate( make_raw_token(secret, {"alg": "HS256", "typ": "JWT"}, []), secret, "cbioportal-wsi", @@ -349,15 +416,15 @@ def test_non_object_header_and_payload_are_rejected(): def test_source_bound_claims_and_max_ttl_are_required(change): secret = "s" * 32 with pytest.raises(InvalidWsiToken): - validate_wsi_token(make_v3_token(secret, **change), secret, "cbioportal-wsi") + validate(make_v4_token(secret, **change), secret, "cbioportal-wsi") def test_token_lifetime_cannot_exceed_configured_limit(): secret = "s" * 32 now = int(time.time()) with pytest.raises(InvalidWsiToken): - validate_wsi_token( - make_v3_token(secret, iat=now, exp=now + 11), + validate( + make_v4_token(secret, iat=now, exp=now + 11), secret, "cbioportal-wsi", max_ttl=10, diff --git a/tests/test_config.py b/tests/test_config.py index b8092e8..a30a79c 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -93,11 +93,23 @@ def test_release_identity_reads_environment(self): s = make_settings( WSI_RELEASE_ID="candidate-1", IMAGE_GIT_SHA="a" * 40, - WSI_SERVING_CONTRACT_VERSION="wsi-serving-v5", + WSI_SERVING_CONTRACT_VERSION="wsi-serving-v6", ) assert s.release_id == "candidate-1" assert s.image_git_sha == "a" * 40 - assert s.serving_contract_version == "wsi-serving-v5" + assert s.serving_contract_version == "wsi-serving-v6" + + def test_serving_contract_version_default(self): + assert make_settings().serving_contract_version == "wsi-serving-v6" + + def test_source_seal_key_reads_environment(self): + key = "8XaidWVtlFzV7hwyAwtTNjN13MNLqnenz5Sy7Y+cbAs=" + s = make_settings(WSI_SOURCE_SEAL_KEY=key) + assert s.wsi_source_seal_key == key + assert key not in repr(s) + + def test_source_seal_key_defaults_empty(self): + assert make_settings().wsi_source_seal_key == "" def test_wsi_artifact_prefixes_read_environment(self): s = make_settings( diff --git a/tests/test_main.py b/tests/test_main.py index 0afbae2..b482b37 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1,4 +1,5 @@ import asyncio +import json from unittest.mock import AsyncMock, patch import httpx @@ -9,11 +10,14 @@ import app.main as main_module from tests.test_auth import ( + SEAL_KEY, + SEAL_KEY_B64, SLIDE_KEY, THUMBNAIL_SOURCE, TILE_SOURCE, make_token, - make_v3_token, + make_v4_token, + seal_claims, ) WSI_SECRET = "s" * 32 @@ -24,8 +28,9 @@ def test_release_identity_is_reported_when_complete(self, monkeypatch): monkeypatch.setattr(main_module.settings, "release_id", "candidate-1") monkeypatch.setattr(main_module.settings, "image_git_sha", "a" * 40) monkeypatch.setattr( - main_module.settings, "serving_contract_version", "wsi-serving-v5" + main_module.settings, "serving_contract_version", "wsi-serving-v6" ) + monkeypatch.setattr(main_module.settings, "wsi_source_seal_key", SEAL_KEY_B64) monkeypatch.setattr( main_module.settings, "wsi_allowed_source_prefixes", ("s3://pathology/",) ) @@ -58,6 +63,59 @@ def test_partial_release_identity_fails_readiness(self, monkeypatch): assert status == 503 assert payload["status"] == "unavailable" + @pytest.mark.parametrize("seal_key", ["", "c2hvcnQ=", SEAL_KEY.hex()]) + def test_invalid_source_seal_key_fails_readiness(self, monkeypatch, seal_key): + monkeypatch.setattr(main_module.settings, "wsi_auth_secret", WSI_SECRET) + monkeypatch.setattr(main_module.settings, "wsi_source_seal_key", seal_key) + monkeypatch.setattr(main_module.settings, "release_id", "") + monkeypatch.setattr(main_module.settings, "image_git_sha", "") + monkeypatch.setattr( + main_module.settings, "wsi_allowed_source_prefixes", ("s3://slides/",) + ) + monkeypatch.setattr( + main_module.settings, "wsi_allowed_thumbnail_prefixes", ("s3://thumbs/",) + ) + + status, payload = main_module._readiness_status() + + assert status == 503 + assert payload["status"] == "unavailable" + if seal_key: + assert seal_key not in json.dumps(payload) + + def test_valid_source_seal_key_passes_readiness(self, monkeypatch): + monkeypatch.setattr(main_module.settings, "wsi_auth_secret", WSI_SECRET) + monkeypatch.setattr(main_module.settings, "wsi_source_seal_key", SEAL_KEY_B64) + monkeypatch.setattr(main_module.settings, "release_id", "") + monkeypatch.setattr(main_module.settings, "image_git_sha", "") + monkeypatch.setattr( + main_module.settings, "wsi_allowed_source_prefixes", ("s3://slides/",) + ) + monkeypatch.setattr( + main_module.settings, "wsi_allowed_thumbnail_prefixes", ("s3://thumbs/",) + ) + + status, _ = main_module._readiness_status() + + assert status == 200 + + @pytest.mark.asyncio + @pytest.mark.parametrize("seal_key", ["", "c2hvcnQ="]) + async def test_startup_fails_without_valid_source_seal_key( + self, monkeypatch, caplog, seal_key + ): + monkeypatch.setattr(main_module.settings, "wsi_source_seal_key", seal_key) + init_cache = AsyncMock() + monkeypatch.setattr(main_module.tile_cache, "init_cache", init_cache) + + with pytest.raises(RuntimeError, match="seal key is not configured"): + async with main_module.lifespan(main_module.app): + pass + + init_cache.assert_not_awaited() + if seal_key: + assert seal_key not in caplog.text + class TestSingleFlight: @pytest.mark.asyncio @@ -546,6 +604,7 @@ async def test_unauthenticated_tile_get_remains_protected(self): def wsi_auth_settings(monkeypatch): monkeypatch.setattr(main_module.settings, "wsi_auth_secret", WSI_SECRET) monkeypatch.setattr(main_module.settings, "wsi_auth_previous_secret", "") + monkeypatch.setattr(main_module.settings, "wsi_source_seal_key", SEAL_KEY_B64) monkeypatch.setattr(main_module.settings, "wsi_auth_audience", "cbioportal-wsi") monkeypatch.setattr(main_module.settings, "wsi_auth_max_ttl", 300) monkeypatch.setattr(main_module.settings, "wsi_allowed_source_schemes", ["s3", "file"]) @@ -651,7 +710,7 @@ def test_authorize_source_uses_decrypted_capability_source( request = httpx.Request("GET", "http://test/tiles/zxy/0/0/0") request.state = type("State", (), {})() request.state.wsi_claims = main_module.validate_wsi_token( - make_v3_token(WSI_SECRET), WSI_SECRET, "cbioportal-wsi" + make_v4_token(WSI_SECRET), WSI_SECRET, "cbioportal-wsi", seal_key=SEAL_KEY ) source, claims = main_module._authorize_source(request, operation) @@ -666,7 +725,7 @@ def test_authorize_source_applies_deid_policy_to_decrypted_source( request = httpx.Request("GET", "http://test/tiles/zxy/0/0/0") request.state = type("State", (), {})() request.state.wsi_claims = main_module.validate_wsi_token( - make_v3_token(WSI_SECRET), WSI_SECRET, "cbioportal-wsi" + make_v4_token(WSI_SECRET), WSI_SECRET, "cbioportal-wsi", seal_key=SEAL_KEY ) with pytest.raises(main_module.HTTPException) as exc_info: @@ -675,6 +734,82 @@ def test_authorize_source_applies_deid_policy_to_decrypted_source( assert exc_info.value.status_code == 403 assert "s3://" not in str(exc_info.value.detail) + @pytest.mark.parametrize( + ("operation", "sealed"), + [ + # Outside the approved prefix. + ("tile", {"tile_source": "s3://other/slide-a.svs"}), + ("thumbnail", {"thumbnail_source": "s3://other/slide-a.jpg"}), + # Wrong artifact extension for the operation. + ("tile", {"tile_source": "s3://slides/slide-a.jpg"}), + ("thumbnail", {"thumbnail_source": "s3://thumbs/slide-a.svs"}), + # Query strings, traversal and embedded credentials. + ("tile", {"tile_source": "s3://slides/slide-a.svs?versionId=1"}), + ("thumbnail", {"thumbnail_source": "s3://thumbs/../private/slide-a.jpg"}), + ("tile", {"tile_source": "s3://user:pass@slides/slide-a.svs"}), + # Labelled MRN and the decrypted image_id in an unapproved path. + ("thumbnail", {"thumbnail_source": "s3://thumbs/MRN-12345678.jpg"}), + ], + ) + def test_authorize_source_rejects_decrypted_source_outside_policy( + self, wsi_auth_settings, operation, sealed + ): + enc = seal_claims( + SEAL_KEY, + SLIDE_KEY, + { + "image_id": "slide-a", + "tile_source": TILE_SOURCE, + "thumbnail_source": THUMBNAIL_SOURCE, + **sealed, + }, + ) + request = httpx.Request("GET", "http://test/tiles/zxy/0/0/0") + request.state = type("State", (), {})() + request.state.wsi_claims = main_module.validate_wsi_token( + make_v4_token(WSI_SECRET, enc=enc), + WSI_SECRET, + "cbioportal-wsi", + seal_key=SEAL_KEY, + ) + + with pytest.raises(main_module.HTTPException) as exc_info: + main_module._authorize_source(request, operation) + + assert exc_info.value.status_code in (400, 403) + assert "s3://" not in str(exc_info.value.detail) + assert "slide-a" not in str(exc_info.value.detail) + + @pytest.mark.parametrize( + "source", ["https://slides/slide-a.svs", "gs://slides/slide-a.svs"] + ) + def test_authorize_source_rejects_decrypted_source_with_unsupported_scheme( + self, wsi_auth_settings, source + ): + enc = seal_claims( + SEAL_KEY, + SLIDE_KEY, + { + "image_id": "slide-a", + "tile_source": source, + "thumbnail_source": THUMBNAIL_SOURCE, + }, + ) + request = httpx.Request("GET", "http://test/tiles/zxy/0/0/0") + request.state = type("State", (), {})() + request.state.wsi_claims = main_module.validate_wsi_token( + make_v4_token(WSI_SECRET, enc=enc), + WSI_SECRET, + "cbioportal-wsi", + seal_key=SEAL_KEY, + ) + + with pytest.raises(main_module.HTTPException) as exc_info: + main_module._authorize_source(request, "tile") + + assert exc_info.value.status_code == 400 + assert "slides" not in str(exc_info.value.detail) + class TestCapabilityRoutes: @pytest.mark.asyncio @@ -684,7 +819,7 @@ async def test_tile_route_serves_decrypted_source(self, wsi_auth_settings): with patch.object(main_module.tile_cache, "get_tile", new=get_tile): async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: response = await client.get( - "/tiles/zxy/0/0/0", headers=_bearer(make_v3_token(WSI_SECRET)) + "/tiles/zxy/0/0/0", headers=_bearer(make_v4_token(WSI_SECRET)) ) assert response.status_code == 200 @@ -699,7 +834,7 @@ async def test_thumbnail_route_serves_decrypted_source(self, wsi_auth_settings): async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: response = await client.get( "/wsi/thumbnails?width=128&height=96", - headers=_bearer(make_v3_token(WSI_SECRET)), + headers=_bearer(make_v4_token(WSI_SECRET)), ) assert response.status_code == 200 @@ -730,7 +865,7 @@ async def test_routes_reject_client_supplied_sources( async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: response = await client.get( path + query, - headers={**_bearer(make_v3_token(WSI_SECRET)), **headers}, + headers={**_bearer(make_v4_token(WSI_SECRET)), **headers}, ) assert response.status_code == 400 @@ -764,7 +899,7 @@ async def test_v2_capability_is_rejected(self, wsi_auth_settings): assert response.status_code == 401 @pytest.mark.asyncio - async def test_previous_secret_also_decrypts_sealed_claims( + async def test_previous_secret_verifies_signature_and_seal_key_opens_enc( self, wsi_auth_settings, monkeypatch ): previous = "p" * 32 @@ -774,11 +909,67 @@ async def test_previous_secret_also_decrypts_sealed_claims( with patch.object(main_module.tile_cache, "get_tile", new=get_tile): async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: response = await client.get( - "/tiles/zxy/0/0/0", headers=_bearer(make_v3_token(previous)) + "/tiles/zxy/0/0/0", headers=_bearer(make_v4_token(previous)) ) assert response.status_code == 200 assert get_tile.await_args.args[0] == main_module.source_cache_identity(TILE_SOURCE) - def test_readiness_reports_v3_auth_contract(self): - assert main_module.health()["auth_contract_version"] == 3 + @pytest.mark.asyncio + async def test_v3_capability_is_rejected(self, wsi_auth_settings): + get_tile = AsyncMock(return_value=b"tile") + transport = httpx.ASGITransport(app=main_module.app) + with patch.object(main_module.tile_cache, "get_tile", new=get_tile): + async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: + response = await client.get( + "/tiles/zxy/0/0/0", + headers=_bearer(make_v4_token(WSI_SECRET, wsi_auth_version=3)), + ) + + assert response.status_code == 401 + get_tile.assert_not_awaited() + + @pytest.mark.asyncio + @pytest.mark.parametrize("seal_key", ["", "c2hvcnQ="]) + async def test_capability_is_rejected_without_valid_seal_key( + self, wsi_auth_settings, monkeypatch, seal_key + ): + monkeypatch.setattr(main_module.settings, "wsi_source_seal_key", seal_key) + get_tile = AsyncMock(return_value=b"tile") + transport = httpx.ASGITransport(app=main_module.app) + with patch.object(main_module.tile_cache, "get_tile", new=get_tile): + async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: + response = await client.get( + "/tiles/zxy/0/0/0", headers=_bearer(make_v4_token(WSI_SECRET)) + ) + + assert response.status_code == 401 + get_tile.assert_not_awaited() + + @pytest.mark.asyncio + async def test_decrypted_thumbnail_outside_policy_is_refused( + self, wsi_auth_settings + ): + enc = seal_claims( + SEAL_KEY, + SLIDE_KEY, + { + "image_id": "slide-a", + "tile_source": TILE_SOURCE, + "thumbnail_source": "s3://other/slide-a.jpg", + }, + ) + get_thumbnail = AsyncMock(return_value=b"thumbnail") + transport = httpx.ASGITransport(app=main_module.app) + with patch.object(main_module.tile_cache, "get_thumbnail", new=get_thumbnail): + async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: + response = await client.get( + "/thumbnails", headers=_bearer(make_v4_token(WSI_SECRET, enc=enc)) + ) + + assert response.status_code == 403 + assert "s3://" not in response.text + get_thumbnail.assert_not_awaited() + + def test_readiness_reports_v4_auth_contract(self): + assert main_module.health()["auth_contract_version"] == 4 diff --git a/tests/test_write_dev_env.py b/tests/test_write_dev_env.py index a6ac4a2..a8afaeb 100644 --- a/tests/test_write_dev_env.py +++ b/tests/test_write_dev_env.py @@ -1,5 +1,6 @@ import os +from app.auth import decode_source_seal_key from tools.write_dev_env import _write_secure, main @@ -24,6 +25,7 @@ def test_main_writes_credentials_without_printing_them(tmp_path, monkeypatch, ca ) output = tmp_path / ".env" monkeypatch.setenv("HOME", str(home)) + monkeypatch.delenv("WSI_SOURCE_SEAL_KEY", raising=False) main(["--output", str(output)]) @@ -38,3 +40,20 @@ def test_main_writes_credentials_without_printing_them(tmp_path, monkeypatch, ca "THUMBNAIL_MANIFEST_URI=s3://mskmind-bkt/wsi-thumbnails-dev/manifest.json" in contents ) + seal_key = next( + line.split("=", 1)[1] + for line in contents.splitlines() + if line.startswith("WSI_SOURCE_SEAL_KEY=") + ) + assert len(decode_source_seal_key(seal_key)) == 32 + + +def test_main_writes_source_seal_key_from_environment(tmp_path, monkeypatch): + key = "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8=" + monkeypatch.setenv("HOME", str(tmp_path)) + monkeypatch.setenv("WSI_SOURCE_SEAL_KEY", key) + output = tmp_path / ".env" + + main(["--output", str(output)]) + + assert f"WSI_SOURCE_SEAL_KEY={key}\n" in output.read_text(encoding="utf-8") diff --git a/tools/write_dev_env.py b/tools/write_dev_env.py index ec3da6f..e206b3f 100644 --- a/tools/write_dev_env.py +++ b/tools/write_dev_env.py @@ -16,6 +16,10 @@ import tempfile from pathlib import Path +# Contract test-vector key (docs/wsi-deid-slide-key-contract.md, V6.1). Local +# development only: sources sealed with it are readable by anyone. +DEV_SOURCE_SEAL_KEY = "8XaidWVtlFzV7hwyAwtTNjN13MNLqnenz5Sy7Y+cbAs=" + def _write_secure(path: Path, contents: str) -> None: path.parent.mkdir(parents=True, exist_ok=True) @@ -75,6 +79,7 @@ def main(argv: list[str] | None = None) -> None: "WSI_AUTH_AUDIENCE=cbioportal-wsi", "WSI_AUTH_MAX_TTL=300", f"WSI_AUTH_SECRET={os.environ.get('WSI_AUTH_SECRET', 'local-dev-wsi-secret-change-me-32chars')}", + f"WSI_SOURCE_SEAL_KEY={os.environ.get('WSI_SOURCE_SEAL_KEY', DEV_SOURCE_SEAL_KEY)}", f"REDIS_PASSWORD={os.environ.get('REDIS_PASSWORD', 'local-dev-redis-password')}", "", "# ── Isolated S3 thumbnail namespace for development ────────────────", From 29bd512d0b7f771579b8e4075450fbd38522abca Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Thu, 8 Oct 2026 13:21:23 -0400 Subject: [PATCH 19/33] feat(deid): validate data_wsi.txt format v4 rows validate_wsi_public_row now checks the sealed-source study row: SLIDE_KEY is required (IMAGE_ID no longer is), a non-empty IMAGE_ID, SOURCE_URL or THUMBNAIL_URL is rejected by field name, and SEALED_SOURCE must be base64url without padding, at most 4096 characters and at least 29 decoded bytes, present exactly when CAN_SERVE_TILES is TRUE. SEALED_SOURCE is ciphertext and is excluded from the date/MRN text scans; every other column keeps them. THUMBNAIL_CONTENT_TYPE must be image/jpeg or image/png. The source/thumbnail prefix arguments are gone: rows no longer carry URIs, and the tile server applies validate_artifact_uri after opening the seal. Co-Authored-By: Claude Opus 5.5 (1M context) --- app/deid.py | 124 +++++++++++++++-------------- tests/test_deid.py | 193 +++++++++++++++++++++++++++++++++------------ 2 files changed, 208 insertions(+), 109 deletions(-) diff --git a/app/deid.py b/app/deid.py index 84cb0aa..ad52ee1 100644 --- a/app/deid.py +++ b/app/deid.py @@ -7,6 +7,8 @@ from __future__ import annotations +import base64 +import binascii import json import re from collections.abc import Iterable, Mapping @@ -34,6 +36,12 @@ _COMPACT_DATE = re.compile(r"(? bool: - if field in _SERVER_ONLY_FIELDS: - return not _contains_absolute_date(_text(value)) pattern = _OPAQUE_KEY_PATTERNS.get(field) return bool(pattern and pattern.fullmatch(_text(value))) @@ -173,19 +175,34 @@ def _assert_safe_metadata_text(value: object, field: str = "TILE_METADATA_JSON") _assert_safe_metadata_text(child, f"{field}[{index}]") -def _validate_thumbnail_content_type(uri: object, content_type: object) -> None: - value = _text(uri) - media_type = _text(content_type).lower() - if not value or not media_type: +def _is_servable(value: object) -> bool: + if isinstance(value, bool): + return value + text = _text(value).lower() + if text in {"", "false"}: + return False + if text == "true": + return True + raise DeidViolation("CAN_SERVE_TILES must be TRUE or FALSE") + + +def _validate_sealed_source(value: object, *, servable: bool) -> None: + """Check SEALED_SOURCE shape without decrypting or echoing it.""" + text = _text(value) + if not text: + if servable: + raise DeidViolation("SEALED_SOURCE is required when CAN_SERVE_TILES is TRUE") return + if not servable: + raise DeidViolation("SEALED_SOURCE must be empty when CAN_SERVE_TILES is not TRUE") + if len(text) > SEALED_SOURCE_MAX_CHARS or not SEALED_SOURCE_PATTERN.fullmatch(text): + raise DeidViolation("SEALED_SOURCE must be base64url without padding") try: - path = unquote(unquote(urlsplit(value).path)) - except ValueError as error: - raise DeidViolation("malformed thumbnail URI") from error - extension = "." + path.rsplit(".", 1)[-1].lower() if "." in path.rsplit("/", 1)[-1] else "" - expected = _THUMBNAIL_CONTENT_TYPES.get(extension) - if expected is None or media_type != expected: - raise DeidViolation("thumbnail content type does not match URI") + decoded = base64.urlsafe_b64decode(text + "=" * (-len(text) % 4)) + except (binascii.Error, ValueError) as error: + raise DeidViolation("SEALED_SOURCE must be base64url without padding") from error + if len(decoded) < SEALED_SOURCE_MIN_BYTES: + raise DeidViolation("SEALED_SOURCE is too short to be a sealed source") def _uri_is_under_prefix(uri: str, prefixes: Iterable[str]) -> bool: @@ -258,21 +275,33 @@ def validate_artifact_uri( raise DeidViolation(f"related identifier in {kind} URI") -def validate_wsi_public_row( - row: Mapping[str, object], - *, - source_prefixes: Iterable[str] = (), - thumbnail_prefixes: Iterable[str] = (), -) -> None: - """Validate the exact fields projected into a public WSI study row.""" - image_id = _text(row.get("IMAGE_ID")) - if not image_id: - raise DeidViolation("IMAGE_ID is required") +def validate_wsi_public_row(row: Mapping[str, object]) -> None: + """Validate one public WSI study row (data_wsi.txt format v4). + + SLIDE_KEY is required. IMAGE_ID, SOURCE_URL and THUMBNAIL_URL must be + absent or empty: sources are published only as SEALED_SOURCE, which is + required when CAN_SERVE_TILES is TRUE and empty otherwise. Every other + column is scanned for absolute dates and labelled MRNs. Violations name + the field, never its value. + """ slide_key = _text(row.get("SLIDE_KEY")) if not SLIDE_KEY_PATTERN.fullmatch(slide_key): raise DeidViolation("SLIDE_KEY must be 32 lowercase hex characters") + for field, value in row.items(): + if field.upper() in _PLAINTEXT_SOURCE_FIELDS and _text(value): + raise DeidViolation( + f"{field.upper()} is not allowed; sources are published only as SEALED_SOURCE" + ) + _validate_sealed_source( + row.get("SEALED_SOURCE"), servable=_is_servable(row.get("CAN_SERVE_TILES")) + ) + content_type = _text(row.get("THUMBNAIL_CONTENT_TYPE")).lower() + if content_type and content_type not in _THUMBNAIL_CONTENT_TYPES: + raise DeidViolation("unsupported THUMBNAIL_CONTENT_TYPE") for field, value in row.items(): normalized_field = field.lower() + if normalized_field in _CIPHERTEXT_FIELDS: + continue if ( normalized_field not in _APPROVED_IDENTIFIER_FIELDS and normalized_field not in _WSI_NON_TEXT_FIELDS @@ -294,27 +323,6 @@ def validate_wsi_public_row( if unknown and not set(metadata) <= {"width", "height"}: raise DeidViolation("unknown TILE_METADATA_JSON field") _assert_safe_metadata_text(metadata) - related = ( - row.get("PATIENT_ID"), - row.get("REFERENCE_SAMPLE_ID"), - row.get("SAMPLE_ID"), - row.get("BARCODE"), - ) - validate_artifact_uri( - row.get("SOURCE_URL"), - image_id=image_id, - kind="source", - prefixes=source_prefixes, - related_identifiers=related, - ) - _validate_thumbnail_content_type(row.get("THUMBNAIL_URL"), row.get("THUMBNAIL_CONTENT_TYPE")) - validate_artifact_uri( - row.get("THUMBNAIL_URL"), - image_id=image_id, - kind="thumbnail", - prefixes=thumbnail_prefixes, - related_identifiers=related, - ) def validate_timeline_public_row(row: Mapping[str, object]) -> None: diff --git a/tests/test_deid.py b/tests/test_deid.py index ea2680a..70ccd8a 100644 --- a/tests/test_deid.py +++ b/tests/test_deid.py @@ -5,6 +5,12 @@ from app.deid import DeidViolation, validate_artifact_uri, validate_timeline_public_row, validate_wsi_public_row SLIDE_KEY = "0123456789abcdef0123456789abcdef" +# Contract V6.1 test vector: a well-formed sealed source. +SEALED_SOURCE = ( + "AAECAwQFBgcICQoLNpOTYnY8HVb-KcPzu1F5HPykr7D0YY_UhVbbyjOFRlxC63fxCt09YO1aYC-phb85" + "wDhN5PPPpC0X46RSD0K0bRRgSptRb9wDiqMLtftFQ6VpBGfGILaddEV_s-Zsmpp28fG5Z3XTNWnyoBRa" + "9qfr9t209wS7V-LhGl8i" +) @pytest.mark.parametrize( @@ -13,7 +19,7 @@ ) def test_public_wsi_row_rejects_common_absolute_date_formats(value): with pytest.raises(DeidViolation): - validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "PATH_DX_TITLE": value}) + validate_wsi_public_row({"SLIDE_KEY": SLIDE_KEY, "PATH_DX_TITLE": value}) def test_artifact_uri_requires_an_approved_prefix_and_rejects_traversal(): @@ -64,32 +70,20 @@ def test_public_wsi_row_rejects_mrn_and_absolute_date_but_keeps_pseudonyms(): "PATIENT_ID": "P-1", "REFERENCE_SAMPLE_ID": "S-REF", "SAMPLE_ID": "S-1", - "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, + "SLIDE_KEY": SLIDE_KEY, "BARCODE": "S-1", "PATH_DX_TITLE": "MRN: 123456", - "SOURCE_URL": "s3://slides/slide-1.svs", - "THUMBNAIL_URL": "s3://thumbs/slide-1.jpg", + "CAN_SERVE_TILES": "TRUE", + "SEALED_SOURCE": SEALED_SOURCE, } with pytest.raises(DeidViolation): - validate_wsi_public_row( - row, - source_prefixes=("s3://slides/",), - thumbnail_prefixes=("s3://thumbs/",), - ) + validate_wsi_public_row(row) row["PATH_DX_TITLE"] = "Diagnosis" row["BARCODE"] = "MRN: 123456" with pytest.raises(DeidViolation): - validate_wsi_public_row( - row, - source_prefixes=("s3://slides/",), - thumbnail_prefixes=("s3://thumbs/",), - ) + validate_wsi_public_row(row) row["BARCODE"] = "S-1" - validate_wsi_public_row( - row, - source_prefixes=("s3://slides/",), - thumbnail_prefixes=("s3://thumbs/",), - ) + validate_wsi_public_row(row) def test_timeline_rows_only_allow_relative_start_dates(): @@ -102,7 +96,7 @@ def test_timeline_rows_only_allow_relative_start_dates(): def test_public_wsi_row_rejects_compact_absolute_dates_and_encoded_identifiers(): with pytest.raises(DeidViolation): - validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "PATH_DX_TITLE": "20240131"}) + validate_wsi_public_row({"SLIDE_KEY": SLIDE_KEY, "PATH_DX_TITLE": "20240131"}) with pytest.raises(DeidViolation): validate_artifact_uri( "s3://slides/P-1%2FMRN%3A123456.svs", @@ -117,7 +111,7 @@ def test_public_wsi_row_rejects_unknown_tile_metadata_fields(): with pytest.raises(DeidViolation): validate_wsi_public_row( { - "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, + "SLIDE_KEY": SLIDE_KEY, "TILE_METADATA_JSON": '{"dimensions": {}, "patient_name": "Alice"}', } ) @@ -126,29 +120,28 @@ def test_public_wsi_row_rejects_unknown_tile_metadata_fields(): def test_public_wsi_row_allows_large_numeric_geometry_and_file_size_values(): validate_wsi_public_row( { - "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, + "SLIDE_KEY": SLIDE_KEY, "FILE_SIZE_BYTES": "2012345678", "TILE_METADATA_JSON": '{"dimensions":{"width":20240101,"height":256}}', } ) -def test_public_wsi_row_requires_thumbnail_mime_to_match_extension(): - row = { - "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, - "THUMBNAIL_URL": "s3://thumbs/slide-1.jpg", - "THUMBNAIL_CONTENT_TYPE": "image/png", - } - with pytest.raises(DeidViolation): - validate_wsi_public_row(row, thumbnail_prefixes=("s3://thumbs/",)) - row["THUMBNAIL_CONTENT_TYPE"] = "image/jpeg" - validate_wsi_public_row(row, thumbnail_prefixes=("s3://thumbs/",)) +@pytest.mark.parametrize("content_type", ["image/jpeg", "image/png", "IMAGE/JPEG", ""]) +def test_public_wsi_row_accepts_supported_thumbnail_content_types(content_type): + validate_wsi_public_row({"SLIDE_KEY": SLIDE_KEY, "THUMBNAIL_CONTENT_TYPE": content_type}) + + +@pytest.mark.parametrize("content_type", ["image/gif", "text/html", "image/svg+xml"]) +def test_public_wsi_row_rejects_unsupported_thumbnail_content_types(content_type): + with pytest.raises(DeidViolation, match="THUMBNAIL_CONTENT_TYPE"): + validate_wsi_public_row({"SLIDE_KEY": SLIDE_KEY, "THUMBNAIL_CONTENT_TYPE": content_type}) def test_public_wsi_row_allows_identity_metadata_from_thumbnail_registry(): validate_wsi_public_row( { - "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, + "SLIDE_KEY": SLIDE_KEY, "TILE_METADATA_JSON": '{"dimensions": {}, "identity_version": "v2"}', } ) @@ -159,7 +152,7 @@ def test_public_wsi_row_allows_date_like_hex_source_fingerprint(): fingerprint = "ab20190412" + "c" * 54 validate_wsi_public_row( { - "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, + "SLIDE_KEY": SLIDE_KEY, "TILE_METADATA_JSON": json.dumps({"dimensions": {}, "source_fingerprint": fingerprint}), } ) @@ -167,7 +160,7 @@ def test_public_wsi_row_allows_date_like_hex_source_fingerprint(): with pytest.raises(DeidViolation): validate_wsi_public_row( { - "IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, + "SLIDE_KEY": SLIDE_KEY, "TILE_METADATA_JSON": json.dumps({"dimensions": {}, "source_fingerprint": bad}), } ) @@ -175,7 +168,7 @@ def test_public_wsi_row_allows_date_like_hex_source_fingerprint(): def test_public_rows_reject_identifier_field_names_even_without_labelled_values(): with pytest.raises(DeidViolation): - validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "MRN_ID": "123456"}) + validate_wsi_public_row({"SLIDE_KEY": SLIDE_KEY, "MRN_ID": "123456"}) with pytest.raises(DeidViolation): validate_timeline_public_row({"PATIENT_MRN": "123456", "START_DATE": "-1"}) @@ -186,33 +179,131 @@ def test_public_rows_reject_identifier_field_names_even_without_labelled_values( ) def test_public_wsi_row_requires_opaque_slide_key(slide_key): with pytest.raises(DeidViolation, match="SLIDE_KEY"): - validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": slide_key}) + validate_wsi_public_row({"SLIDE_KEY": slide_key}) -def test_slide_key_hex_is_not_mistaken_for_a_compact_date(): - validate_wsi_public_row( - {"IMAGE_ID": "slide-1", "SLIDE_KEY": "abc20210314def0123456789abcdef01"} - ) +def test_public_wsi_row_requires_slide_key_column(): + with pytest.raises(DeidViolation, match="SLIDE_KEY"): + validate_wsi_public_row({"PATIENT_ID": "P-1"}) -def test_image_id_is_no_longer_an_unscanned_identifier(): - with pytest.raises(DeidViolation, match="absolute date"): - validate_wsi_public_row({"IMAGE_ID": "2021-03-14", "SLIDE_KEY": SLIDE_KEY}) +def test_slide_key_hex_is_not_mistaken_for_a_compact_date(): + validate_wsi_public_row({"SLIDE_KEY": "abc20210314def0123456789abcdef01"}) -def test_public_wsi_row_allows_date_like_hex_in_opaque_keys_and_server_only_fields(): +def test_public_wsi_row_allows_date_like_hex_in_opaque_keys(): key = "20190412" + "a" * 24 validate_wsi_public_row( { - "IMAGE_ID": "20190412", "SLIDE_KEY": SLIDE_KEY, + "SLIDE_KEY": SLIDE_KEY, "PART_KEY": f"part:{key}", "BLOCK_KEY": f"block:{key}", "SPECIMEN_KEY": f"block::part:{key}::block:{key}", } ) # Non-canonical keys are still scanned as text. with pytest.raises(DeidViolation): - validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "PART_KEY": "part:20190412"}) - # Server-only fields still reject labelled MRNs and delimited dates. - for bad in ("s3://bucket/mrn 1234567.svs", "s3://bucket/2021-03-14.svs"): - with pytest.raises(DeidViolation): - validate_wsi_public_row({"IMAGE_ID": "slide-1", "SLIDE_KEY": SLIDE_KEY, "SOURCE_URL": bad}) + validate_wsi_public_row({"SLIDE_KEY": SLIDE_KEY, "PART_KEY": "part:20190412"}) + + +@pytest.mark.parametrize( + ("field", "value"), + [ + ("IMAGE_ID", "1645553"), + ("SOURCE_URL", "s3://slides/1645553.svs"), + ("THUMBNAIL_URL", "s3://thumbs/1645553.jpg"), + ("image_id", "1645553"), + ], +) +def test_public_wsi_row_rejects_plaintext_sources_without_echo(field, value): + row = { + "SLIDE_KEY": SLIDE_KEY, + "CAN_SERVE_TILES": "TRUE", + "SEALED_SOURCE": SEALED_SOURCE, + field: value, + } + with pytest.raises(DeidViolation, match=field.upper()) as exc_info: + validate_wsi_public_row(row) + assert "1645553" not in str(exc_info.value) + + +@pytest.mark.parametrize("field", ["IMAGE_ID", "SOURCE_URL", "THUMBNAIL_URL"]) +def test_public_wsi_row_tolerates_empty_legacy_columns(field): + validate_wsi_public_row({"SLIDE_KEY": SLIDE_KEY, field: ""}) + + +@pytest.mark.parametrize("can_serve", ["TRUE", "true", True]) +def test_servable_row_requires_sealed_source(can_serve): + validate_wsi_public_row( + {"SLIDE_KEY": SLIDE_KEY, "CAN_SERVE_TILES": can_serve, "SEALED_SOURCE": SEALED_SOURCE} + ) + with pytest.raises(DeidViolation, match="SEALED_SOURCE is required"): + validate_wsi_public_row( + {"SLIDE_KEY": SLIDE_KEY, "CAN_SERVE_TILES": can_serve, "SEALED_SOURCE": ""} + ) + with pytest.raises(DeidViolation, match="SEALED_SOURCE is required"): + validate_wsi_public_row({"SLIDE_KEY": SLIDE_KEY, "CAN_SERVE_TILES": can_serve}) + + +@pytest.mark.parametrize("can_serve", ["FALSE", "false", "", False, None]) +def test_unservable_row_must_not_carry_sealed_source(can_serve): + row = {"SLIDE_KEY": SLIDE_KEY, "CAN_SERVE_TILES": can_serve, "SEALED_SOURCE": ""} + validate_wsi_public_row(row) + row["SEALED_SOURCE"] = SEALED_SOURCE + with pytest.raises(DeidViolation, match="SEALED_SOURCE must be empty"): + validate_wsi_public_row(row) + + +def test_sealed_source_without_can_serve_tiles_column_is_rejected(): + with pytest.raises(DeidViolation, match="SEALED_SOURCE must be empty"): + validate_wsi_public_row({"SLIDE_KEY": SLIDE_KEY, "SEALED_SOURCE": SEALED_SOURCE}) + + +@pytest.mark.parametrize("can_serve", ["yes", "1", "Y"]) +def test_can_serve_tiles_must_be_boolean(can_serve): + with pytest.raises(DeidViolation, match="CAN_SERVE_TILES"): + validate_wsi_public_row({"SLIDE_KEY": SLIDE_KEY, "CAN_SERVE_TILES": can_serve}) + + +@pytest.mark.parametrize( + "sealed_source", + [ + SEALED_SOURCE + "==", + SEALED_SOURCE.replace("-", "+"), + SEALED_SOURCE.replace("_", "/"), + SEALED_SOURCE[:20] + " " + SEALED_SOURCE[20:], + "A" * 38, + "A" * 4097, + "A" * 37 + "B", + ], +) +def test_malformed_sealed_source_is_rejected_without_echo(sealed_source): + with pytest.raises(DeidViolation, match="SEALED_SOURCE") as exc_info: + validate_wsi_public_row( + {"SLIDE_KEY": SLIDE_KEY, "CAN_SERVE_TILES": "TRUE", "SEALED_SOURCE": sealed_source} + ) + assert sealed_source[:24] not in str(exc_info.value) + + +def test_sealed_source_length_bounds(): + # 39 base64url chars decode to 29 bytes: nonce + tag + one ciphertext byte. + validate_wsi_public_row( + {"SLIDE_KEY": SLIDE_KEY, "CAN_SERVE_TILES": "TRUE", "SEALED_SOURCE": "A" * 39} + ) + validate_wsi_public_row( + {"SLIDE_KEY": SLIDE_KEY, "CAN_SERVE_TILES": "TRUE", "SEALED_SOURCE": "A" * 4096} + ) + + +@pytest.mark.parametrize( + "sealed_source", + [ + # Random ciphertext can contain date- or MRN-shaped runs. + "AAAA2021-03-14AAAA" + "A" * 30, + "AAAA20210314AAAA" + "A" * 30, + "AAAA-MRN-12345678" + "A" * 30, + ], +) +def test_sealed_source_is_not_text_scanned(sealed_source): + validate_wsi_public_row( + {"SLIDE_KEY": SLIDE_KEY, "CAN_SERVE_TILES": "TRUE", "SEALED_SOURCE": sealed_source} + ) From 4ed0200fcb931012eae38c54600350bd06456282 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Thu, 8 Oct 2026 18:24:01 -0400 Subject: [PATCH 20/33] deid: check timeline links by parameter, allowing opaque keys A timeline LINKOUT was scanned as one string, so an opaque hex specimenKey or slideKey containing a YYYYMMDD-looking run (about 0.3% of keys) was rejected as an absolute date. Links are now checked part by part: the path, fragment and every query value are scanned as before, except specimenKey and slideKey values that exactly match their opaque-key patterns. Co-Authored-By: Claude Opus 5.5 (1M context) --- app/deid.py | 34 ++++++++++++++++++++++++++++++++-- tests/test_deid.py | 30 ++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 2 deletions(-) diff --git a/app/deid.py b/app/deid.py index ad52ee1..ad0df33 100644 --- a/app/deid.py +++ b/app/deid.py @@ -12,7 +12,7 @@ import json import re from collections.abc import Iterable, Mapping -from urllib.parse import unquote, urlsplit +from urllib.parse import parse_qsl, unquote, urlsplit _ABSOLUTE_DATE = re.compile( @@ -114,6 +114,34 @@ } +# Opaque keys a timeline LINKOUT may carry as query parameters. +_LINKOUT_OPAQUE_PARAMS = { + "specimenKey": _OPAQUE_KEY_PATTERNS["specimen_key"], + "slideKey": re.compile(r"^[0-9a-f]{32}$"), +} + + +def _assert_safe_linkout(field: str, value: object) -> None: + """Scan a link's path and each query value; skip only well-formed opaque keys. + + An opaque hex key can contain a run that looks like a compact date + (e.g. ``...20190412...``), so scanning the whole URL rejects valid links. + Keys that do not match their exact opaque pattern are scanned like any + other value. + """ + text = _text(value) + if not text: + return + parts = urlsplit(text) + _assert_safe_text(f"{field} path", unquote(parts.path)) + _assert_safe_text(f"{field} fragment", unquote(parts.fragment)) + for name, param in parse_qsl(parts.query, keep_blank_values=True): + pattern = _LINKOUT_OPAQUE_PARAMS.get(name) + if pattern and pattern.fullmatch(param): + continue + _assert_safe_text(f"{field} {name}", param) + + def _skips_date_scan(field: str, value: object) -> bool: pattern = _OPAQUE_KEY_PATTERNS.get(field) return bool(pattern and pattern.fullmatch(_text(value))) @@ -334,7 +362,9 @@ def validate_timeline_public_row(row: Mapping[str, object]) -> None: if field.upper() in {"IMAGE_ID", "IMAGE_IDS"}: # Real slide identifiers are server-side only (wsi-serving-v6). raise DeidViolation(f"forbidden timeline field: {field}") - if field.upper() not in {"PATIENT_ID", "SAMPLE_ID"}: + if field.upper() == "LINKOUT": + _assert_safe_linkout(field, value) + elif field.upper() not in {"PATIENT_ID", "SAMPLE_ID"}: _assert_safe_text(field, value) for field in ("START_DATE", "STOP_DATE"): value = _text(row.get(field)) diff --git a/tests/test_deid.py b/tests/test_deid.py index 70ccd8a..cf8e982 100644 --- a/tests/test_deid.py +++ b/tests/test_deid.py @@ -94,6 +94,36 @@ def test_timeline_rows_only_allow_relative_start_dates(): validate_timeline_public_row({"PATIENT_ID": "P-1", "START_DATE": "-14"}) +def test_timeline_linkout_allows_opaque_keys_with_date_like_hex(): + # Opaque hex keys can contain YYYYMMDD-looking runs; they must not be rejected. + hex_with_date = "20190412" + "a" * 24 + specimen_key = f"part::part:{hex_with_date}::block:{'b' * 32}" + linkout = ( + "/patient/wsiHESlides?studyId=s&caseId=P-1&sampleId=P-1-T01" + "&stainFilter=hne&matchLevel=PART" + f"&specimenKey={specimen_key.replace(':', '%3A')}" + f"&slideKey={hex_with_date}" + ) + validate_timeline_public_row({"PATIENT_ID": "P-1", "START_DATE": "-14", "LINKOUT": linkout}) + + +@pytest.mark.parametrize( + "linkout", + [ + # a date in an ordinary parameter is still rejected + "/patient/wsiHESlides?studyId=s&caseId=P-1¬e=2019-04-12", + # a specimenKey that is not a well-formed opaque key is scanned like any value + "/patient/wsiHESlides?studyId=s&caseId=P-1&specimenKey=20190412", + "/patient/wsiHESlides?studyId=s&caseId=P-1&slideKey=MRN%3A123456", + # dates in the path are rejected + "/patient/2019-04-12/wsiHESlides?studyId=s", + ], +) +def test_timeline_linkout_still_rejects_dates_and_mrns(linkout): + with pytest.raises(DeidViolation): + validate_timeline_public_row({"PATIENT_ID": "P-1", "START_DATE": "-14", "LINKOUT": linkout}) + + def test_public_wsi_row_rejects_compact_absolute_dates_and_encoded_identifiers(): with pytest.raises(DeidViolation): validate_wsi_public_row({"SLIDE_KEY": SLIDE_KEY, "PATH_DX_TITLE": "20240131"}) From 4e71588e6c1de6c64416731f2d48ca52f6f2450e Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 9 Oct 2026 12:07:18 -0400 Subject: [PATCH 21/33] security: bump fsspec, s3fs and multidict past known CVEs pip-audit flagged fsspec 2026.4.0 and multidict 6.7.1; locked to fsspec/s3fs 2026.9.0 and multidict 6.9.1. Tests and pip-audit pass. Co-Authored-By: Claude Opus 5.5 (1M context) --- uv.lock | 279 ++++++++++++++++++++++++++++++++------------------------ 1 file changed, 160 insertions(+), 119 deletions(-) diff --git a/uv.lock b/uv.lock index 21bf4e8..b4abf48 100644 --- a/uv.lock +++ b/uv.lock @@ -800,11 +800,11 @@ wheels = [ [[package]] name = "fsspec" -version = "2026.4.0" +version = "2026.9.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d5/8d/1c51c094345df128ca4a990d633fe1a0ff28726c9e6b3c41ba65087bba1d/fsspec-2026.4.0.tar.gz", hash = "sha256:301d8ac70ae90ef3ad05dcf94d6c3754a097f9b5fe4667d2787aa359ec7df7e4", size = 312760, upload-time = "2026-04-29T20:42:38.635Z" } +sdist = { url = "https://files.pythonhosted.org/packages/77/cd/9be253869fc42e764de7f3dedd6969af7d44ff9c3375214a3442a6f3fc08/fsspec-2026.9.0.tar.gz", hash = "sha256:0f08147951c8cb31d844c3547d631053b127863b60be04cf06e121333ee0e2fe", size = 333545, upload-time = "2026-09-18T17:50:42.825Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d5/0c/043d5e551459da400957a1395e0febbf771446ff34291afcbe3d8be2a279/fsspec-2026.4.0-py3-none-any.whl", hash = "sha256:11ef7bb35dab8a394fde6e608221d5cf3e8499401c249bebaeaad760a1a8dec2", size = 203402, upload-time = "2026-04-29T20:42:36.842Z" }, + { url = "https://files.pythonhosted.org/packages/6c/c0/a98505f18594f1bce828bb159cec0fcf9860562f1a2c85913409fc8f3d9e/fsspec-2026.9.0-py3-none-any.whl", hash = "sha256:8dd6e646e99ea382bd85f97a45e6b526a442d79423a7dc673f1e2756d05fcb5f", size = 221738, upload-time = "2026-09-18T17:50:41.341Z" }, ] [[package]] @@ -1066,119 +1066,160 @@ wheels = [ [[package]] name = "multidict" -version = "6.7.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/1a/c2/c2d94cbe6ac1753f3fc980da97b3d930efe1da3af3c9f5125354436c073d/multidict-6.7.1.tar.gz", hash = "sha256:ec6652a1bee61c53a3e5776b6049172c53b6aaba34f18c9ad04f82712bac623d", size = 102010, upload-time = "2026-01-26T02:46:45.979Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/ce/f1/a90635c4f88fb913fbf4ce660b83b7445b7a02615bda034b2f8eb38fd597/multidict-6.7.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:7ff981b266af91d7b4b3793ca3382e53229088d193a85dfad6f5f4c27fc73e5d", size = 76626, upload-time = "2026-01-26T02:43:26.485Z" }, - { url = "https://files.pythonhosted.org/packages/a6/9b/267e64eaf6fc637a15b35f5de31a566634a2740f97d8d094a69d34f524a4/multidict-6.7.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:844c5bca0b5444adb44a623fb0a1310c2f4cd41f402126bb269cd44c9b3f3e1e", size = 44706, upload-time = "2026-01-26T02:43:27.607Z" }, - { url = "https://files.pythonhosted.org/packages/dd/a4/d45caf2b97b035c57267791ecfaafbd59c68212004b3842830954bb4b02e/multidict-6.7.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f2a0a924d4c2e9afcd7ec64f9de35fcd96915149b2216e1cb2c10a56df483855", size = 44356, upload-time = "2026-01-26T02:43:28.661Z" }, - { url = "https://files.pythonhosted.org/packages/fd/d2/0a36c8473f0cbaeadd5db6c8b72d15bbceeec275807772bfcd059bef487d/multidict-6.7.1-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:8be1802715a8e892c784c0197c2ace276ea52702a0ede98b6310c8f255a5afb3", size = 244355, upload-time = "2026-01-26T02:43:31.165Z" }, - { url = "https://files.pythonhosted.org/packages/5d/16/8c65be997fd7dd311b7d39c7b6e71a0cb449bad093761481eccbbe4b42a2/multidict-6.7.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2e2d2ed645ea29f31c4c7ea1552fcfd7cb7ba656e1eafd4134a6620c9f5fdd9e", size = 246433, upload-time = "2026-01-26T02:43:32.581Z" }, - { url = "https://files.pythonhosted.org/packages/01/fb/4dbd7e848d2799c6a026ec88ad39cf2b8416aa167fcc903baa55ecaa045c/multidict-6.7.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:95922cee9a778659e91db6497596435777bd25ed116701a4c034f8e46544955a", size = 225376, upload-time = "2026-01-26T02:43:34.417Z" }, - { url = "https://files.pythonhosted.org/packages/b6/8a/4a3a6341eac3830f6053062f8fbc9a9e54407c80755b3f05bc427295c2d0/multidict-6.7.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6b83cabdc375ffaaa15edd97eb7c0c672ad788e2687004990074d7d6c9b140c8", size = 257365, upload-time = "2026-01-26T02:43:35.741Z" }, - { url = "https://files.pythonhosted.org/packages/f7/a2/dd575a69c1aa206e12d27d0770cdf9b92434b48a9ef0cd0d1afdecaa93c4/multidict-6.7.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:38fb49540705369bab8484db0689d86c0a33a0a9f2c1b197f506b71b4b6c19b0", size = 254747, upload-time = "2026-01-26T02:43:36.976Z" }, - { url = "https://files.pythonhosted.org/packages/5a/56/21b27c560c13822ed93133f08aa6372c53a8e067f11fbed37b4adcdac922/multidict-6.7.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:439cbebd499f92e9aa6793016a8acaa161dfa749ae86d20960189f5398a19144", size = 246293, upload-time = "2026-01-26T02:43:38.258Z" }, - { url = "https://files.pythonhosted.org/packages/5a/a4/23466059dc3854763423d0ad6c0f3683a379d97673b1b89ec33826e46728/multidict-6.7.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6d3bc717b6fe763b8be3f2bee2701d3c8eb1b2a8ae9f60910f1b2860c82b6c49", size = 242962, upload-time = "2026-01-26T02:43:40.034Z" }, - { url = "https://files.pythonhosted.org/packages/1f/67/51dd754a3524d685958001e8fa20a0f5f90a6a856e0a9dcabff69be3dbb7/multidict-6.7.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:619e5a1ac57986dbfec9f0b301d865dddf763696435e2962f6d9cf2fdff2bb71", size = 237360, upload-time = "2026-01-26T02:43:41.752Z" }, - { url = "https://files.pythonhosted.org/packages/64/3f/036dfc8c174934d4b55d86ff4f978e558b0e585cef70cfc1ad01adc6bf18/multidict-6.7.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:0b38ebffd9be37c1170d33bc0f36f4f262e0a09bc1aac1c34c7aa51a7293f0b3", size = 245940, upload-time = "2026-01-26T02:43:43.042Z" }, - { url = "https://files.pythonhosted.org/packages/3d/20/6214d3c105928ebc353a1c644a6ef1408bc5794fcb4f170bb524a3c16311/multidict-6.7.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:10ae39c9cfe6adedcdb764f5e8411d4a92b055e35573a2eaa88d3323289ef93c", size = 253502, upload-time = "2026-01-26T02:43:44.371Z" }, - { url = "https://files.pythonhosted.org/packages/b1/e2/c653bc4ae1be70a0f836b82172d643fcf1dade042ba2676ab08ec08bff0f/multidict-6.7.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:25167cc263257660290fba06b9318d2026e3c910be240a146e1f66dd114af2b0", size = 247065, upload-time = "2026-01-26T02:43:45.745Z" }, - { url = "https://files.pythonhosted.org/packages/c8/11/a854b4154cd3bd8b1fd375e8a8ca9d73be37610c361543d56f764109509b/multidict-6.7.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:128441d052254f42989ef98b7b6a6ecb1e6f708aa962c7984235316db59f50fa", size = 241870, upload-time = "2026-01-26T02:43:47.054Z" }, - { url = "https://files.pythonhosted.org/packages/13/bf/9676c0392309b5fdae322333d22a829715b570edb9baa8016a517b55b558/multidict-6.7.1-cp311-cp311-win32.whl", hash = "sha256:d62b7f64ffde3b99d06b707a280db04fb3855b55f5a06df387236051d0668f4a", size = 41302, upload-time = "2026-01-26T02:43:48.753Z" }, - { url = "https://files.pythonhosted.org/packages/c9/68/f16a3a8ba6f7b6dc92a1f19669c0810bd2c43fc5a02da13b1cbf8e253845/multidict-6.7.1-cp311-cp311-win_amd64.whl", hash = "sha256:bdbf9f3b332abd0cdb306e7c2113818ab1e922dc84b8f8fd06ec89ed2a19ab8b", size = 45981, upload-time = "2026-01-26T02:43:49.921Z" }, - { url = "https://files.pythonhosted.org/packages/ac/ad/9dd5305253fa00cd3c7555dbef69d5bf4133debc53b87ab8d6a44d411665/multidict-6.7.1-cp311-cp311-win_arm64.whl", hash = "sha256:b8c990b037d2fff2f4e33d3f21b9b531c5745b33a49a7d6dbe7a177266af44f6", size = 43159, upload-time = "2026-01-26T02:43:51.635Z" }, - { url = "https://files.pythonhosted.org/packages/8d/9c/f20e0e2cf80e4b2e4b1c365bf5fe104ee633c751a724246262db8f1a0b13/multidict-6.7.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:a90f75c956e32891a4eda3639ce6dd86e87105271f43d43442a3aedf3cddf172", size = 76893, upload-time = "2026-01-26T02:43:52.754Z" }, - { url = "https://files.pythonhosted.org/packages/fe/cf/18ef143a81610136d3da8193da9d80bfe1cb548a1e2d1c775f26b23d024a/multidict-6.7.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:3fccb473e87eaa1382689053e4a4618e7ba7b9b9b8d6adf2027ee474597128cd", size = 45456, upload-time = "2026-01-26T02:43:53.893Z" }, - { url = "https://files.pythonhosted.org/packages/a9/65/1caac9d4cd32e8433908683446eebc953e82d22b03d10d41a5f0fefe991b/multidict-6.7.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b0fa96985700739c4c7853a43c0b3e169360d6855780021bfc6d0f1ce7c123e7", size = 43872, upload-time = "2026-01-26T02:43:55.041Z" }, - { url = "https://files.pythonhosted.org/packages/cf/3b/d6bd75dc4f3ff7c73766e04e705b00ed6dbbaccf670d9e05a12b006f5a21/multidict-6.7.1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:cb2a55f408c3043e42b40cc8eecd575afa27b7e0b956dfb190de0f8499a57a53", size = 251018, upload-time = "2026-01-26T02:43:56.198Z" }, - { url = "https://files.pythonhosted.org/packages/fd/80/c959c5933adedb9ac15152e4067c702a808ea183a8b64cf8f31af8ad3155/multidict-6.7.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eb0ce7b2a32d09892b3dd6cc44877a0d02a33241fafca5f25c8b6b62374f8b75", size = 258883, upload-time = "2026-01-26T02:43:57.499Z" }, - { url = "https://files.pythonhosted.org/packages/86/85/7ed40adafea3d4f1c8b916e3b5cc3a8e07dfcdcb9cd72800f4ed3ca1b387/multidict-6.7.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c3a32d23520ee37bf327d1e1a656fec76a2edd5c038bf43eddfa0572ec49c60b", size = 242413, upload-time = "2026-01-26T02:43:58.755Z" }, - { url = "https://files.pythonhosted.org/packages/d2/57/b8565ff533e48595503c785f8361ff9a4fde4d67de25c207cd0ba3befd03/multidict-6.7.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9c90fed18bffc0189ba814749fdcc102b536e83a9f738a9003e569acd540a733", size = 268404, upload-time = "2026-01-26T02:44:00.216Z" }, - { url = "https://files.pythonhosted.org/packages/e0/50/9810c5c29350f7258180dfdcb2e52783a0632862eb334c4896ac717cebcb/multidict-6.7.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:da62917e6076f512daccfbbde27f46fed1c98fee202f0559adec8ee0de67f71a", size = 269456, upload-time = "2026-01-26T02:44:02.202Z" }, - { url = "https://files.pythonhosted.org/packages/f3/8d/5e5be3ced1d12966fefb5c4ea3b2a5b480afcea36406559442c6e31d4a48/multidict-6.7.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bfde23ef6ed9db7eaee6c37dcec08524cb43903c60b285b172b6c094711b3961", size = 256322, upload-time = "2026-01-26T02:44:03.56Z" }, - { url = "https://files.pythonhosted.org/packages/31/6e/d8a26d81ac166a5592782d208dd90dfdc0a7a218adaa52b45a672b46c122/multidict-6.7.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3758692429e4e32f1ba0df23219cd0b4fc0a52f476726fff9337d1a57676a582", size = 253955, upload-time = "2026-01-26T02:44:04.845Z" }, - { url = "https://files.pythonhosted.org/packages/59/4c/7c672c8aad41534ba619bcd4ade7a0dc87ed6b8b5c06149b85d3dd03f0cd/multidict-6.7.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:398c1478926eca669f2fd6a5856b6de9c0acf23a2cb59a14c0ba5844fa38077e", size = 251254, upload-time = "2026-01-26T02:44:06.133Z" }, - { url = "https://files.pythonhosted.org/packages/7b/bd/84c24de512cbafbdbc39439f74e967f19570ce7924e3007174a29c348916/multidict-6.7.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:c102791b1c4f3ab36ce4101154549105a53dc828f016356b3e3bcae2e3a039d3", size = 252059, upload-time = "2026-01-26T02:44:07.518Z" }, - { url = "https://files.pythonhosted.org/packages/fa/ba/f5449385510825b73d01c2d4087bf6d2fccc20a2d42ac34df93191d3dd03/multidict-6.7.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:a088b62bd733e2ad12c50dad01b7d0166c30287c166e137433d3b410add807a6", size = 263588, upload-time = "2026-01-26T02:44:09.382Z" }, - { url = "https://files.pythonhosted.org/packages/d7/11/afc7c677f68f75c84a69fe37184f0f82fce13ce4b92f49f3db280b7e92b3/multidict-6.7.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3d51ff4785d58d3f6c91bdbffcb5e1f7ddfda557727043aa20d20ec4f65e324a", size = 259642, upload-time = "2026-01-26T02:44:10.73Z" }, - { url = "https://files.pythonhosted.org/packages/2b/17/ebb9644da78c4ab36403739e0e6e0e30ebb135b9caf3440825001a0bddcb/multidict-6.7.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:fc5907494fccf3e7d3f94f95c91d6336b092b5fc83811720fae5e2765890dfba", size = 251377, upload-time = "2026-01-26T02:44:12.042Z" }, - { url = "https://files.pythonhosted.org/packages/ca/a4/840f5b97339e27846c46307f2530a2805d9d537d8b8bd416af031cad7fa0/multidict-6.7.1-cp312-cp312-win32.whl", hash = "sha256:28ca5ce2fd9716631133d0e9a9b9a745ad7f60bac2bccafb56aa380fc0b6c511", size = 41887, upload-time = "2026-01-26T02:44:14.245Z" }, - { url = "https://files.pythonhosted.org/packages/80/31/0b2517913687895f5904325c2069d6a3b78f66cc641a86a2baf75a05dcbb/multidict-6.7.1-cp312-cp312-win_amd64.whl", hash = "sha256:fcee94dfbd638784645b066074b338bc9cc155d4b4bffa4adce1615c5a426c19", size = 46053, upload-time = "2026-01-26T02:44:15.371Z" }, - { url = "https://files.pythonhosted.org/packages/0c/5b/aba28e4ee4006ae4c7df8d327d31025d760ffa992ea23812a601d226e682/multidict-6.7.1-cp312-cp312-win_arm64.whl", hash = "sha256:ba0a9fb644d0c1a2194cf7ffb043bd852cea63a57f66fbd33959f7dae18517bf", size = 43307, upload-time = "2026-01-26T02:44:16.852Z" }, - { url = "https://files.pythonhosted.org/packages/f2/22/929c141d6c0dba87d3e1d38fbdf1ba8baba86b7776469f2bc2d3227a1e67/multidict-6.7.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:2b41f5fed0ed563624f1c17630cb9941cf2309d4df00e494b551b5f3e3d67a23", size = 76174, upload-time = "2026-01-26T02:44:18.509Z" }, - { url = "https://files.pythonhosted.org/packages/c7/75/bc704ae15fee974f8fccd871305e254754167dce5f9e42d88a2def741a1d/multidict-6.7.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:84e61e3af5463c19b67ced91f6c634effb89ef8bfc5ca0267f954451ed4bb6a2", size = 45116, upload-time = "2026-01-26T02:44:19.745Z" }, - { url = "https://files.pythonhosted.org/packages/79/76/55cd7186f498ed080a18440c9013011eb548f77ae1b297206d030eb1180a/multidict-6.7.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:935434b9853c7c112eee7ac891bc4cb86455aa631269ae35442cb316790c1445", size = 43524, upload-time = "2026-01-26T02:44:21.571Z" }, - { url = "https://files.pythonhosted.org/packages/e9/3c/414842ef8d5a1628d68edee29ba0e5bcf235dbfb3ccd3ea303a7fe8c72ff/multidict-6.7.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:432feb25a1cb67fe82a9680b4d65fb542e4635cb3166cd9c01560651ad60f177", size = 249368, upload-time = "2026-01-26T02:44:22.803Z" }, - { url = "https://files.pythonhosted.org/packages/f6/32/befed7f74c458b4a525e60519fe8d87eef72bb1e99924fa2b0f9d97a221e/multidict-6.7.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e82d14e3c948952a1a85503817e038cba5905a3352de76b9a465075d072fba23", size = 256952, upload-time = "2026-01-26T02:44:24.306Z" }, - { url = "https://files.pythonhosted.org/packages/03/d6/c878a44ba877f366630c860fdf74bfb203c33778f12b6ac274936853c451/multidict-6.7.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4cfb48c6ea66c83bcaaf7e4dfa7ec1b6bbcf751b7db85a328902796dfde4c060", size = 240317, upload-time = "2026-01-26T02:44:25.772Z" }, - { url = "https://files.pythonhosted.org/packages/68/49/57421b4d7ad2e9e60e25922b08ceb37e077b90444bde6ead629095327a6f/multidict-6.7.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:1d540e51b7e8e170174555edecddbd5538105443754539193e3e1061864d444d", size = 267132, upload-time = "2026-01-26T02:44:27.648Z" }, - { url = "https://files.pythonhosted.org/packages/b7/fe/ec0edd52ddbcea2a2e89e174f0206444a61440b40f39704e64dc807a70bd/multidict-6.7.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:273d23f4b40f3dce4d6c8a821c741a86dec62cded82e1175ba3d99be128147ed", size = 268140, upload-time = "2026-01-26T02:44:29.588Z" }, - { url = "https://files.pythonhosted.org/packages/b0/73/6e1b01cbeb458807aa0831742232dbdd1fa92bfa33f52a3f176b4ff3dc11/multidict-6.7.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9d624335fd4fa1c08a53f8b4be7676ebde19cd092b3895c421045ca87895b429", size = 254277, upload-time = "2026-01-26T02:44:30.902Z" }, - { url = "https://files.pythonhosted.org/packages/6a/b2/5fb8c124d7561a4974c342bc8c778b471ebbeb3cc17df696f034a7e9afe7/multidict-6.7.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:12fad252f8b267cc75b66e8fc51b3079604e8d43a75428ffe193cd9e2195dfd6", size = 252291, upload-time = "2026-01-26T02:44:32.31Z" }, - { url = "https://files.pythonhosted.org/packages/5a/96/51d4e4e06bcce92577fcd488e22600bd38e4fd59c20cb49434d054903bd2/multidict-6.7.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:03ede2a6ffbe8ef936b92cb4529f27f42be7f56afcdab5ab739cd5f27fb1cbf9", size = 250156, upload-time = "2026-01-26T02:44:33.734Z" }, - { url = "https://files.pythonhosted.org/packages/db/6b/420e173eec5fba721a50e2a9f89eda89d9c98fded1124f8d5c675f7a0c0f/multidict-6.7.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:90efbcf47dbe33dcf643a1e400d67d59abeac5db07dc3f27d6bdeae497a2198c", size = 249742, upload-time = "2026-01-26T02:44:35.222Z" }, - { url = "https://files.pythonhosted.org/packages/44/a3/ec5b5bd98f306bc2aa297b8c6f11a46714a56b1e6ef5ebda50a4f5d7c5fb/multidict-6.7.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:5c4b9bfc148f5a91be9244d6264c53035c8a0dcd2f51f1c3c6e30e30ebaa1c84", size = 262221, upload-time = "2026-01-26T02:44:36.604Z" }, - { url = "https://files.pythonhosted.org/packages/cd/f7/e8c0d0da0cd1e28d10e624604e1a36bcc3353aaebdfdc3a43c72bc683a12/multidict-6.7.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:401c5a650f3add2472d1d288c26deebc540f99e2fb83e9525007a74cd2116f1d", size = 258664, upload-time = "2026-01-26T02:44:38.008Z" }, - { url = "https://files.pythonhosted.org/packages/52/da/151a44e8016dd33feed44f730bd856a66257c1ee7aed4f44b649fb7edeb3/multidict-6.7.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:97891f3b1b3ffbded884e2916cacf3c6fc87b66bb0dde46f7357404750559f33", size = 249490, upload-time = "2026-01-26T02:44:39.386Z" }, - { url = "https://files.pythonhosted.org/packages/87/af/a3b86bf9630b732897f6fc3f4c4714b90aa4361983ccbdcd6c0339b21b0c/multidict-6.7.1-cp313-cp313-win32.whl", hash = "sha256:e1c5988359516095535c4301af38d8a8838534158f649c05dd1050222321bcb3", size = 41695, upload-time = "2026-01-26T02:44:41.318Z" }, - { url = "https://files.pythonhosted.org/packages/b2/35/e994121b0e90e46134673422dd564623f93304614f5d11886b1b3e06f503/multidict-6.7.1-cp313-cp313-win_amd64.whl", hash = "sha256:960c83bf01a95b12b08fd54324a4eb1d5b52c88932b5cba5d6e712bb3ed12eb5", size = 45884, upload-time = "2026-01-26T02:44:42.488Z" }, - { url = "https://files.pythonhosted.org/packages/ca/61/42d3e5dbf661242a69c97ea363f2d7b46c567da8eadef8890022be6e2ab0/multidict-6.7.1-cp313-cp313-win_arm64.whl", hash = "sha256:563fe25c678aaba333d5399408f5ec3c383ca5b663e7f774dd179a520b8144df", size = 43122, upload-time = "2026-01-26T02:44:43.664Z" }, - { url = "https://files.pythonhosted.org/packages/6d/b3/e6b21c6c4f314bb956016b0b3ef2162590a529b84cb831c257519e7fde44/multidict-6.7.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:c76c4bec1538375dad9d452d246ca5368ad6e1c9039dadcf007ae59c70619ea1", size = 83175, upload-time = "2026-01-26T02:44:44.894Z" }, - { url = "https://files.pythonhosted.org/packages/fb/76/23ecd2abfe0957b234f6c960f4ade497f55f2c16aeb684d4ecdbf1c95791/multidict-6.7.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:57b46b24b5d5ebcc978da4ec23a819a9402b4228b8a90d9c656422b4bdd8a963", size = 48460, upload-time = "2026-01-26T02:44:46.106Z" }, - { url = "https://files.pythonhosted.org/packages/c4/57/a0ed92b23f3a042c36bc4227b72b97eca803f5f1801c1ab77c8a212d455e/multidict-6.7.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e954b24433c768ce78ab7929e84ccf3422e46deb45a4dc9f93438f8217fa2d34", size = 46930, upload-time = "2026-01-26T02:44:47.278Z" }, - { url = "https://files.pythonhosted.org/packages/b5/66/02ec7ace29162e447f6382c495dc95826bf931d3818799bbef11e8f7df1a/multidict-6.7.1-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:3bd231490fa7217cc832528e1cd8752a96f0125ddd2b5749390f7c3ec8721b65", size = 242582, upload-time = "2026-01-26T02:44:48.604Z" }, - { url = "https://files.pythonhosted.org/packages/58/18/64f5a795e7677670e872673aca234162514696274597b3708b2c0d276cce/multidict-6.7.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:253282d70d67885a15c8a7716f3a73edf2d635793ceda8173b9ecc21f2fb8292", size = 250031, upload-time = "2026-01-26T02:44:50.544Z" }, - { url = "https://files.pythonhosted.org/packages/c8/ed/e192291dbbe51a8290c5686f482084d31bcd9d09af24f63358c3d42fd284/multidict-6.7.1-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0b4c48648d7649c9335cf1927a8b87fa692de3dcb15faa676c6a6f1f1aabda43", size = 228596, upload-time = "2026-01-26T02:44:51.951Z" }, - { url = "https://files.pythonhosted.org/packages/1e/7e/3562a15a60cf747397e7f2180b0a11dc0c38d9175a650e75fa1b4d325e15/multidict-6.7.1-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:98bc624954ec4d2c7cb074b8eefc2b5d0ce7d482e410df446414355d158fe4ca", size = 257492, upload-time = "2026-01-26T02:44:53.902Z" }, - { url = "https://files.pythonhosted.org/packages/24/02/7d0f9eae92b5249bb50ac1595b295f10e263dd0078ebb55115c31e0eaccd/multidict-6.7.1-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:1b99af4d9eec0b49927b4402bcbb58dea89d3e0db8806a4086117019939ad3dd", size = 255899, upload-time = "2026-01-26T02:44:55.316Z" }, - { url = "https://files.pythonhosted.org/packages/00/e3/9b60ed9e23e64c73a5cde95269ef1330678e9c6e34dd4eb6b431b85b5a10/multidict-6.7.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6aac4f16b472d5b7dc6f66a0d49dd57b0e0902090be16594dc9ebfd3d17c47e7", size = 247970, upload-time = "2026-01-26T02:44:56.783Z" }, - { url = "https://files.pythonhosted.org/packages/3e/06/538e58a63ed5cfb0bd4517e346b91da32fde409d839720f664e9a4ae4f9d/multidict-6.7.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:21f830fe223215dffd51f538e78c172ed7c7f60c9b96a2bf05c4848ad49921c3", size = 245060, upload-time = "2026-01-26T02:44:58.195Z" }, - { url = "https://files.pythonhosted.org/packages/b2/2f/d743a3045a97c895d401e9bd29aaa09b94f5cbdf1bd561609e5a6c431c70/multidict-6.7.1-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:f5dd81c45b05518b9aa4da4aa74e1c93d715efa234fd3e8a179df611cc85e5f4", size = 235888, upload-time = "2026-01-26T02:44:59.57Z" }, - { url = "https://files.pythonhosted.org/packages/38/83/5a325cac191ab28b63c52f14f1131f3b0a55ba3b9aa65a6d0bf2a9b921a0/multidict-6.7.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:eb304767bca2bb92fb9c5bd33cedc95baee5bb5f6c88e63706533a1c06ad08c8", size = 243554, upload-time = "2026-01-26T02:45:01.054Z" }, - { url = "https://files.pythonhosted.org/packages/20/1f/9d2327086bd15da2725ef6aae624208e2ef828ed99892b17f60c344e57ed/multidict-6.7.1-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:c9035dde0f916702850ef66460bc4239d89d08df4d02023a5926e7446724212c", size = 252341, upload-time = "2026-01-26T02:45:02.484Z" }, - { url = "https://files.pythonhosted.org/packages/e8/2c/2a1aa0280cf579d0f6eed8ee5211c4f1730bd7e06c636ba2ee6aafda302e/multidict-6.7.1-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:af959b9beeb66c822380f222f0e0a1889331597e81f1ded7f374f3ecb0fd6c52", size = 246391, upload-time = "2026-01-26T02:45:03.862Z" }, - { url = "https://files.pythonhosted.org/packages/e5/03/7ca022ffc36c5a3f6e03b179a5ceb829be9da5783e6fe395f347c0794680/multidict-6.7.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:41f2952231456154ee479651491e94118229844dd7226541788be783be2b5108", size = 243422, upload-time = "2026-01-26T02:45:05.296Z" }, - { url = "https://files.pythonhosted.org/packages/dc/1d/b31650eab6c5778aceed46ba735bd97f7c7d2f54b319fa916c0f96e7805b/multidict-6.7.1-cp313-cp313t-win32.whl", hash = "sha256:df9f19c28adcb40b6aae30bbaa1478c389efd50c28d541d76760199fc1037c32", size = 47770, upload-time = "2026-01-26T02:45:06.754Z" }, - { url = "https://files.pythonhosted.org/packages/ac/5b/2d2d1d522e51285bd61b1e20df8f47ae1a9d80839db0b24ea783b3832832/multidict-6.7.1-cp313-cp313t-win_amd64.whl", hash = "sha256:d54ecf9f301853f2c5e802da559604b3e95bb7a3b01a9c295c6ee591b9882de8", size = 53109, upload-time = "2026-01-26T02:45:08.044Z" }, - { url = "https://files.pythonhosted.org/packages/3d/a3/cc409ba012c83ca024a308516703cf339bdc4b696195644a7215a5164a24/multidict-6.7.1-cp313-cp313t-win_arm64.whl", hash = "sha256:5a37ca18e360377cfda1d62f5f382ff41f2b8c4ccb329ed974cc2e1643440118", size = 45573, upload-time = "2026-01-26T02:45:09.349Z" }, - { url = "https://files.pythonhosted.org/packages/91/cc/db74228a8be41884a567e88a62fd589a913708fcf180d029898c17a9a371/multidict-6.7.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:8f333ec9c5eb1b7105e3b84b53141e66ca05a19a605368c55450b6ba208cb9ee", size = 75190, upload-time = "2026-01-26T02:45:10.651Z" }, - { url = "https://files.pythonhosted.org/packages/d5/22/492f2246bb5b534abd44804292e81eeaf835388901f0c574bac4eeec73c5/multidict-6.7.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:a407f13c188f804c759fc6a9f88286a565c242a76b27626594c133b82883b5c2", size = 44486, upload-time = "2026-01-26T02:45:11.938Z" }, - { url = "https://files.pythonhosted.org/packages/f1/4f/733c48f270565d78b4544f2baddc2fb2a245e5a8640254b12c36ac7ac68e/multidict-6.7.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:0e161ddf326db5577c3a4cc2d8648f81456e8a20d40415541587a71620d7a7d1", size = 43219, upload-time = "2026-01-26T02:45:14.346Z" }, - { url = "https://files.pythonhosted.org/packages/24/bb/2c0c2287963f4259c85e8bcbba9182ced8d7fca65c780c38e99e61629d11/multidict-6.7.1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1e3a8bb24342a8201d178c3b4984c26ba81a577c80d4d525727427460a50c22d", size = 245132, upload-time = "2026-01-26T02:45:15.712Z" }, - { url = "https://files.pythonhosted.org/packages/a7/f9/44d4b3064c65079d2467888794dea218d1601898ac50222ab8a9a8094460/multidict-6.7.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:97231140a50f5d447d3164f994b86a0bed7cd016e2682f8650d6a9158e14fd31", size = 252420, upload-time = "2026-01-26T02:45:17.293Z" }, - { url = "https://files.pythonhosted.org/packages/8b/13/78f7275e73fa17b24c9a51b0bd9d73ba64bb32d0ed51b02a746eb876abe7/multidict-6.7.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:6b10359683bd8806a200fd2909e7c8ca3a7b24ec1d8132e483d58e791d881048", size = 233510, upload-time = "2026-01-26T02:45:19.356Z" }, - { url = "https://files.pythonhosted.org/packages/4b/25/8167187f62ae3cbd52da7893f58cb036b47ea3fb67138787c76800158982/multidict-6.7.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:283ddac99f7ac25a4acadbf004cb5ae34480bbeb063520f70ce397b281859362", size = 264094, upload-time = "2026-01-26T02:45:20.834Z" }, - { url = "https://files.pythonhosted.org/packages/a1/e7/69a3a83b7b030cf283fb06ce074a05a02322359783424d7edf0f15fe5022/multidict-6.7.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:538cec1e18c067d0e6103aa9a74f9e832904c957adc260e61cd9d8cf0c3b3d37", size = 260786, upload-time = "2026-01-26T02:45:22.818Z" }, - { url = "https://files.pythonhosted.org/packages/fe/3b/8ec5074bcfc450fe84273713b4b0a0dd47c0249358f5d82eb8104ffe2520/multidict-6.7.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7eee46ccb30ff48a1e35bb818cc90846c6be2b68240e42a78599166722cea709", size = 248483, upload-time = "2026-01-26T02:45:24.368Z" }, - { url = "https://files.pythonhosted.org/packages/48/5a/d5a99e3acbca0e29c5d9cba8f92ceb15dce78bab963b308ae692981e3a5d/multidict-6.7.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:fa263a02f4f2dd2d11a7b1bb4362aa7cb1049f84a9235d31adf63f30143469a0", size = 248403, upload-time = "2026-01-26T02:45:25.982Z" }, - { url = "https://files.pythonhosted.org/packages/35/48/e58cd31f6c7d5102f2a4bf89f96b9cf7e00b6c6f3d04ecc44417c00a5a3c/multidict-6.7.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:2e1425e2f99ec5bd36c15a01b690a1a2456209c5deed58f95469ffb46039ccbb", size = 240315, upload-time = "2026-01-26T02:45:27.487Z" }, - { url = "https://files.pythonhosted.org/packages/94/33/1cd210229559cb90b6786c30676bb0c58249ff42f942765f88793b41fdce/multidict-6.7.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:497394b3239fc6f0e13a78a3e1b61296e72bf1c5f94b4c4eb80b265c37a131cd", size = 245528, upload-time = "2026-01-26T02:45:28.991Z" }, - { url = "https://files.pythonhosted.org/packages/64/f2/6e1107d226278c876c783056b7db43d800bb64c6131cec9c8dfb6903698e/multidict-6.7.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:233b398c29d3f1b9676b4b6f75c518a06fcb2ea0b925119fb2c1bc35c05e1601", size = 258784, upload-time = "2026-01-26T02:45:30.503Z" }, - { url = "https://files.pythonhosted.org/packages/4d/c1/11f664f14d525e4a1b5327a82d4de61a1db604ab34c6603bb3c2cc63ad34/multidict-6.7.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:93b1818e4a6e0930454f0f2af7dfce69307ca03cdcfb3739bf4d91241967b6c1", size = 251980, upload-time = "2026-01-26T02:45:32.603Z" }, - { url = "https://files.pythonhosted.org/packages/e1/9f/75a9ac888121d0c5bbd4ecf4eead45668b1766f6baabfb3b7f66a410e231/multidict-6.7.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f33dc2a3abe9249ea5d8360f969ec7f4142e7ac45ee7014d8f8d5acddf178b7b", size = 243602, upload-time = "2026-01-26T02:45:34.043Z" }, - { url = "https://files.pythonhosted.org/packages/9a/e7/50bf7b004cc8525d80dbbbedfdc7aed3e4c323810890be4413e589074032/multidict-6.7.1-cp314-cp314-win32.whl", hash = "sha256:3ab8b9d8b75aef9df299595d5388b14530839f6422333357af1339443cff777d", size = 40930, upload-time = "2026-01-26T02:45:36.278Z" }, - { url = "https://files.pythonhosted.org/packages/e0/bf/52f25716bbe93745595800f36fb17b73711f14da59ed0bb2eba141bc9f0f/multidict-6.7.1-cp314-cp314-win_amd64.whl", hash = "sha256:5e01429a929600e7dab7b166062d9bb54a5eed752384c7384c968c2afab8f50f", size = 45074, upload-time = "2026-01-26T02:45:37.546Z" }, - { url = "https://files.pythonhosted.org/packages/97/ab/22803b03285fa3a525f48217963da3a65ae40f6a1b6f6cf2768879e208f9/multidict-6.7.1-cp314-cp314-win_arm64.whl", hash = "sha256:4885cb0e817aef5d00a2e8451d4665c1808378dc27c2705f1bf4ef8505c0d2e5", size = 42471, upload-time = "2026-01-26T02:45:38.889Z" }, - { url = "https://files.pythonhosted.org/packages/e0/6d/f9293baa6146ba9507e360ea0292b6422b016907c393e2f63fc40ab7b7b5/multidict-6.7.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:0458c978acd8e6ea53c81eefaddbbee9c6c5e591f41b3f5e8e194780fe026581", size = 82401, upload-time = "2026-01-26T02:45:40.254Z" }, - { url = "https://files.pythonhosted.org/packages/7a/68/53b5494738d83558d87c3c71a486504d8373421c3e0dbb6d0db48ad42ee0/multidict-6.7.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:c0abd12629b0af3cf590982c0b413b1e7395cd4ec026f30986818ab95bfaa94a", size = 48143, upload-time = "2026-01-26T02:45:41.635Z" }, - { url = "https://files.pythonhosted.org/packages/37/e8/5284c53310dcdc99ce5d66563f6e5773531a9b9fe9ec7a615e9bc306b05f/multidict-6.7.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:14525a5f61d7d0c94b368a42cff4c9a4e7ba2d52e2672a7b23d84dc86fb02b0c", size = 46507, upload-time = "2026-01-26T02:45:42.99Z" }, - { url = "https://files.pythonhosted.org/packages/e4/fc/6800d0e5b3875568b4083ecf5f310dcf91d86d52573160834fb4bfcf5e4f/multidict-6.7.1-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:17307b22c217b4cf05033dabefe68255a534d637c6c9b0cc8382718f87be4262", size = 239358, upload-time = "2026-01-26T02:45:44.376Z" }, - { url = "https://files.pythonhosted.org/packages/41/75/4ad0973179361cdf3a113905e6e088173198349131be2b390f9fa4da5fc6/multidict-6.7.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7a7e590ff876a3eaf1c02a4dfe0724b6e69a9e9de6d8f556816f29c496046e59", size = 246884, upload-time = "2026-01-26T02:45:47.167Z" }, - { url = "https://files.pythonhosted.org/packages/c3/9c/095bb28b5da139bd41fb9a5d5caff412584f377914bd8787c2aa98717130/multidict-6.7.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:5fa6a95dfee63893d80a34758cd0e0c118a30b8dcb46372bf75106c591b77889", size = 225878, upload-time = "2026-01-26T02:45:48.698Z" }, - { url = "https://files.pythonhosted.org/packages/07/d0/c0a72000243756e8f5a277b6b514fa005f2c73d481b7d9e47cd4568aa2e4/multidict-6.7.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a0543217a6a017692aa6ae5cc39adb75e587af0f3a82288b1492eb73dd6cc2a4", size = 253542, upload-time = "2026-01-26T02:45:50.164Z" }, - { url = "https://files.pythonhosted.org/packages/c0/6b/f69da15289e384ecf2a68837ec8b5ad8c33e973aa18b266f50fe55f24b8c/multidict-6.7.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f99fe611c312b3c1c0ace793f92464d8cd263cc3b26b5721950d977b006b6c4d", size = 252403, upload-time = "2026-01-26T02:45:51.779Z" }, - { url = "https://files.pythonhosted.org/packages/a2/76/b9669547afa5a1a25cd93eaca91c0da1c095b06b6d2d8ec25b713588d3a1/multidict-6.7.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9004d8386d133b7e6135679424c91b0b854d2d164af6ea3f289f8f2761064609", size = 244889, upload-time = "2026-01-26T02:45:53.27Z" }, - { url = "https://files.pythonhosted.org/packages/7e/a9/a50d2669e506dad33cfc45b5d574a205587b7b8a5f426f2fbb2e90882588/multidict-6.7.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e628ef0e6859ffd8273c69412a2465c4be4a9517d07261b33334b5ec6f3c7489", size = 241982, upload-time = "2026-01-26T02:45:54.919Z" }, - { url = "https://files.pythonhosted.org/packages/c5/bb/1609558ad8b456b4827d3c5a5b775c93b87878fd3117ed3db3423dfbce1b/multidict-6.7.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:841189848ba629c3552035a6a7f5bf3b02eb304e9fea7492ca220a8eda6b0e5c", size = 232415, upload-time = "2026-01-26T02:45:56.981Z" }, - { url = "https://files.pythonhosted.org/packages/d8/59/6f61039d2aa9261871e03ab9dc058a550d240f25859b05b67fd70f80d4b3/multidict-6.7.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:ce1bbd7d780bb5a0da032e095c951f7014d6b0a205f8318308140f1a6aba159e", size = 240337, upload-time = "2026-01-26T02:45:58.698Z" }, - { url = "https://files.pythonhosted.org/packages/a1/29/fdc6a43c203890dc2ae9249971ecd0c41deaedfe00d25cb6564b2edd99eb/multidict-6.7.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b26684587228afed0d50cf804cc71062cc9c1cdf55051c4c6345d372947b268c", size = 248788, upload-time = "2026-01-26T02:46:00.862Z" }, - { url = "https://files.pythonhosted.org/packages/a9/14/a153a06101323e4cf086ecee3faadba52ff71633d471f9685c42e3736163/multidict-6.7.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:9f9af11306994335398293f9958071019e3ab95e9a707dc1383a35613f6abcb9", size = 242842, upload-time = "2026-01-26T02:46:02.824Z" }, - { url = "https://files.pythonhosted.org/packages/41/5f/604ae839e64a4a6efc80db94465348d3b328ee955e37acb24badbcd24d83/multidict-6.7.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:b4938326284c4f1224178a560987b6cf8b4d38458b113d9b8c1db1a836e640a2", size = 240237, upload-time = "2026-01-26T02:46:05.898Z" }, - { url = "https://files.pythonhosted.org/packages/5f/60/c3a5187bf66f6fb546ff4ab8fb5a077cbdd832d7b1908d4365c7f74a1917/multidict-6.7.1-cp314-cp314t-win32.whl", hash = "sha256:98655c737850c064a65e006a3df7c997cd3b220be4ec8fe26215760b9697d4d7", size = 48008, upload-time = "2026-01-26T02:46:07.468Z" }, - { url = "https://files.pythonhosted.org/packages/0c/f7/addf1087b860ac60e6f382240f64fb99f8bfb532bb06f7c542b83c29ca61/multidict-6.7.1-cp314-cp314t-win_amd64.whl", hash = "sha256:497bde6223c212ba11d462853cfa4f0ae6ef97465033e7dc9940cdb3ab5b48e5", size = 53542, upload-time = "2026-01-26T02:46:08.809Z" }, - { url = "https://files.pythonhosted.org/packages/4c/81/4629d0aa32302ef7b2ec65c75a728cc5ff4fa410c50096174c1632e70b3e/multidict-6.7.1-cp314-cp314t-win_arm64.whl", hash = "sha256:2bbd113e0d4af5db41d5ebfe9ccaff89de2120578164f86a5d17d5a576d1e5b2", size = 44719, upload-time = "2026-01-26T02:46:11.146Z" }, - { url = "https://files.pythonhosted.org/packages/81/08/7036c080d7117f28a4af526d794aab6a84463126db031b007717c1a6676e/multidict-6.7.1-py3-none-any.whl", hash = "sha256:55d97cc6dae627efa6a6e548885712d4864b81110ac76fa4e534c03819fa4a56", size = 12319, upload-time = "2026-01-26T02:46:44.004Z" }, +version = "6.9.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d6/99/1d4d69c3512d0ddbfa3a1b69cfd9a151012ab2eb4eabbb096201b1f0b7d8/multidict-6.9.1.tar.gz", hash = "sha256:0f06e60fa190aa7abd0914c2a766736fdc8e9f34878c4346338534b73d1b20e2", size = 182404, upload-time = "2026-09-21T17:59:05.362Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e3/24/3823efc330630a1f132bcd0a9b182ddec3c53f452f551c8e8d3aaf5a2d20/multidict-6.9.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:910d4260512660484c0dc1588a316fbb35a40c081c36fc51d1225351af17cfe4", size = 96739, upload-time = "2026-09-21T17:54:42.815Z" }, + { url = "https://files.pythonhosted.org/packages/6a/69/36331fe1d3aeb0c525a9972d6cf82791075a395aa96f026f060009d691ae/multidict-6.9.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:33fa55b990f81c2927e01399ace0d18926c69d69baa8cdaa819424132fb97987", size = 58514, upload-time = "2026-09-21T17:54:44.064Z" }, + { url = "https://files.pythonhosted.org/packages/8c/ca/5860651f782078ef13f2761c2593f4ba066d76f626b2f30f23a7f838b775/multidict-6.9.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:369b5aa01b241cd3fea6890bdbb11a1425d87bf1515831500d518f4223e9d72c", size = 57303, upload-time = "2026-09-21T17:54:45.304Z" }, + { url = "https://files.pythonhosted.org/packages/c7/9f/c56e2fa223cb5d182660e1a09eec38880f96b7cd22769582f74447c60418/multidict-6.9.1-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:803f8b575a71b1b299d677c28db0653459c79b5308874efec813f17b7457c7f1", size = 320076, upload-time = "2026-09-21T17:54:46.826Z" }, + { url = "https://files.pythonhosted.org/packages/59/97/eda4fe0cad51f96096363ed32d3e0f8df28dab00beff4d92adc9db517726/multidict-6.9.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b8a65621b98984a62e59403009591b8a5a7736273aefe1cab64cfb85b365cc07", size = 315489, upload-time = "2026-09-21T17:54:48.25Z" }, + { url = "https://files.pythonhosted.org/packages/24/14/10b1ded0a4085a51c3054125f854da4f47ce4fec724a2d2503231b83f3db/multidict-6.9.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:13849a1d4f54c3809ae721e9e83ab28f5ea602f33660cb84eb6ef261eac706c1", size = 296716, upload-time = "2026-09-21T17:54:49.749Z" }, + { url = "https://files.pythonhosted.org/packages/dc/14/04d155dd18528443cb9009f3a9f35f7417773797d072c95104ff17b8b9b7/multidict-6.9.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:dd9a137a4a9becda3094f3831cd026380f75f6855e051eefe4c73ade524f1cc3", size = 330244, upload-time = "2026-09-21T17:54:51.26Z" }, + { url = "https://files.pythonhosted.org/packages/8b/90/284d10b3a9e5b312a8ec5b7a175fc7d560eefdc99886320449891a197992/multidict-6.9.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:9ae9614c317c50836689ce2dfde07c05fe0b16378562e2221746c3913ede3c80", size = 331288, upload-time = "2026-09-21T17:54:52.595Z" }, + { url = "https://files.pythonhosted.org/packages/27/50/f420de3683f9b047fc5588064d84043ef57a7152ef451b8373dfc7068d22/multidict-6.9.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e8f1e362c9352b50ed120f001046fdbb80810c9d56580f4c3fc13bbe30823387", size = 320663, upload-time = "2026-09-21T17:54:53.91Z" }, + { url = "https://files.pythonhosted.org/packages/01/ab/0120a650d7ce4fe167299c13a13cc4ee2dc72458a9c0e9e9330b824b73c9/multidict-6.9.1-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0dd655518f136febd96c05131a76a863e32fc2a1d7acd4e3c959e3ceb77d8345", size = 291139, upload-time = "2026-09-21T17:54:55.313Z" }, + { url = "https://files.pythonhosted.org/packages/b3/3f/c66342f73ee5cd2c9b1dda6cfce89b5f348c48921b8c8b6e59aafbbfe31a/multidict-6.9.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2c5d675da8f1cb5650271c8ad5e95c0a3e5a183c105e72d953b12877b1c8d0fd", size = 310044, upload-time = "2026-09-21T17:54:56.745Z" }, + { url = "https://files.pythonhosted.org/packages/05/0d/e44b90d9e77e44ec3473c4c7ac7ea95764d7e8fbf6d5a085ef9bff7ce0c2/multidict-6.9.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:658f90f49cf5af2441cad0a2b801c3ef520471989a1ec55bcb25b255b2ca8d2f", size = 303279, upload-time = "2026-09-21T17:54:58.178Z" }, + { url = "https://files.pythonhosted.org/packages/97/8a/7741f7c23c211fae31ab546f0ba41569dae7671cf7ca30d5afb59e9d92aa/multidict-6.9.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:43124fe172ada86d03ac3c8dc8179091341f6724d5e5d5b160e1587e4cd3761b", size = 326177, upload-time = "2026-09-21T17:54:59.825Z" }, + { url = "https://files.pythonhosted.org/packages/e8/63/0cdbfbbe36316b2ef4b8e011afaca2cf291a73fe4fabf34dd0b22e3ee48a/multidict-6.9.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:b2f0adc22a4eb31e545221d93fc73a0f6a8cc2379d0f4309f71d1d17ba938b82", size = 323526, upload-time = "2026-09-21T17:55:01.43Z" }, + { url = "https://files.pythonhosted.org/packages/98/05/0c86e9678e78f4596df0ed7f59d2aa755107da3f2a92f1b7fa150e94cbb8/multidict-6.9.1-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:7fc59e9ba821b220944ccfe0f89c9dc4745f6d097569992356eb03869f21e953", size = 290278, upload-time = "2026-09-21T17:55:02.993Z" }, + { url = "https://files.pythonhosted.org/packages/95/8e/71bd7f43c4883cba6c5f96db88bd2311d52e74ad7680be5915938490d56f/multidict-6.9.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:87cc632c88ee5dc80e12681047839304d98ee5c9a708d686505767001c9b8b9a", size = 321142, upload-time = "2026-09-21T17:55:04.48Z" }, + { url = "https://files.pythonhosted.org/packages/2d/00/bf59d6bb22a4c152e4039574c29490caf3c65107715121807b4bd7cde244/multidict-6.9.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b828cf64d62dc09ac183f03c1aeedd164ade96a2ce4934109452edf29de1dd13", size = 319045, upload-time = "2026-09-21T17:55:06.119Z" }, + { url = "https://files.pythonhosted.org/packages/3a/3c/f27f4f045198bf1c4bcd6eb3b6cf06be2dceaceb6e67222b903fce7a6749/multidict-6.9.1-cp311-cp311-win32.whl", hash = "sha256:2c1aeb92eea59d824f004341b26d5e4b47a8a441cf9726769b9a90abf9d0e08f", size = 51309, upload-time = "2026-09-21T17:55:07.531Z" }, + { url = "https://files.pythonhosted.org/packages/91/17/c2064aef64efc007bc89a571f843e5772f27946eb9bc018731bf8016e319/multidict-6.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:5f89dad732280e7a10b74d40b91364f88e13c3f2c08c2ef83a8cd42f7a61af2e", size = 59148, upload-time = "2026-09-21T17:55:08.936Z" }, + { url = "https://files.pythonhosted.org/packages/45/a1/3bab1827edd813dfb90712af5cbb7fc1473ed4d9c871d103df4f4bb950c2/multidict-6.9.1-cp311-cp311-win_arm64.whl", hash = "sha256:5800368526647146978389dfaa46da3356291e9f0fff9a4ef12e8c2bef964a0d", size = 54258, upload-time = "2026-09-21T17:55:10.191Z" }, + { url = "https://files.pythonhosted.org/packages/d9/0d/4b5afb6d3e545c9af0cdfe2db8f6f4c6664568c23d863d888674e447e6a4/multidict-6.9.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:29138fef49828542e859828107e42e50d0e587c513b7eb4b2d92bade2b0860fe", size = 98360, upload-time = "2026-09-21T17:55:11.508Z" }, + { url = "https://files.pythonhosted.org/packages/89/ab/1b9ca66251899981b21138b87da9d5a9c2c81af12b1ea7d19466972f7fe2/multidict-6.9.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:19e31815d41cefc365489e591d105d2baceb2f65aa75d29471fbdbda8651e006", size = 59979, upload-time = "2026-09-21T17:55:12.866Z" }, + { url = "https://files.pythonhosted.org/packages/36/eb/6ae44062466c26c8469ef43f2481a6a48d8cea0587b2d54514ec92e2adfd/multidict-6.9.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6ed30be8918e18c8bed0a2e8b70639ecf02feb61ed00ca2e41cfcb2a50fa3f42", size = 57736, upload-time = "2026-09-21T17:55:14.223Z" }, + { url = "https://files.pythonhosted.org/packages/b9/5c/a67817593019257a4ac8b0d1b4c426030e637c047b0692ef405439ecea7a/multidict-6.9.1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:637f4ae36264bd7b8d9a60193acddc1d735ad52e8ed53a19931ea6d921fea8e5", size = 333097, upload-time = "2026-09-21T17:55:15.591Z" }, + { url = "https://files.pythonhosted.org/packages/90/bf/599ae2e6222822d88a247a8a7ae82fe6fd25d5700757b79603d5edafe6a0/multidict-6.9.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35fc236507fb1b3138f0af5ecd5f94ed752d4d6d826248eae425f86204013eea", size = 334196, upload-time = "2026-09-21T17:55:17.015Z" }, + { url = "https://files.pythonhosted.org/packages/15/10/d8aac5acacbe7f5c117866c776ec26d5f15a868759b6f37ad8e7ed3b5b02/multidict-6.9.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e58952f04772f59f11c6e007471449809a30165188669bca8fdb19dde40a8f24", size = 317465, upload-time = "2026-09-21T17:55:18.412Z" }, + { url = "https://files.pythonhosted.org/packages/19/0a/714f796f7293a8b1c5c3f465a26996231d5450c54e85d64ef1258c091134/multidict-6.9.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d35a4f1c63f07fbb8c8f9946dea98b21eddf6c57421585f71d91864be3ba2a24", size = 345914, upload-time = "2026-09-21T17:55:20.306Z" }, + { url = "https://files.pythonhosted.org/packages/da/b1/e37fbf769c567be277bcf32df6234035a4384677fcc1bd852752be3d6b93/multidict-6.9.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b5f8771aaaed7f80e84a4e471d2f29ab6721e4595075e54d03ae1ed951b2000a", size = 351163, upload-time = "2026-09-21T17:55:22.21Z" }, + { url = "https://files.pythonhosted.org/packages/ed/5b/db08419c1e1f7c9d60cfd2787b2b517d7ae4ebbda8281b48a33eb5141467/multidict-6.9.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:976fd7689d69ec78d67d31d38d396d8adb562f7e8368279f76aed4aa451fa06d", size = 336881, upload-time = "2026-09-21T17:55:23.699Z" }, + { url = "https://files.pythonhosted.org/packages/9b/07/cc9bc8a62651d2d53ab93ee4993b3a71b7cb78eb8ebfc9c757a5b6698617/multidict-6.9.1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:95052e8777a86bae87c0bd0b5ab22d809e3d1d02bf69e3e66ddda5ba75a05805", size = 303405, upload-time = "2026-09-21T17:55:25.305Z" }, + { url = "https://files.pythonhosted.org/packages/b6/0c/8e912afafa70e944dbb8bec4b66ca6e008511395278c0d3dd0e89567536a/multidict-6.9.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1a8adfcaf96f587ab138476eaddef95f29b8a2a8a9afbfea8d2fd62180995d02", size = 324265, upload-time = "2026-09-21T17:55:26.989Z" }, + { url = "https://files.pythonhosted.org/packages/66/6a/62c2af80fb085e6234805017af857b8e913dfac7a55e9c1349c27768c58a/multidict-6.9.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:1a53de2772cfb74559df2eb4456ec4eeb908435ec55a84b69370d9d745d62aa8", size = 322085, upload-time = "2026-09-21T17:55:28.732Z" }, + { url = "https://files.pythonhosted.org/packages/f8/6b/35bf801b336fd960811207203ffdcdc24acc3558b3e7ff2e1c914b141e70/multidict-6.9.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:0f2ce963299d42fa3f22a90adc0fdf174792ffef5ff4c7ffb68260548fb05580", size = 338107, upload-time = "2026-09-21T17:55:30.303Z" }, + { url = "https://files.pythonhosted.org/packages/80/41/495ef65bf5bba29d142d81b3fe1b8154b919bed70e96491b1e93c3c26f0f/multidict-6.9.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:5b30ddf7234e611ca877575b62840e6af5977f92f1f9d532eedbb05a44ff8004", size = 339631, upload-time = "2026-09-21T17:55:32.012Z" }, + { url = "https://files.pythonhosted.org/packages/19/bd/057fdff5f4e04dcd40a960e38f77d19d3c4b67dd243ffa5f43718edb29fc/multidict-6.9.1-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:63ada7ee2e9345695f9e9bc4c65d72222253f07b1ac94fd0e37555cc6f3c7f60", size = 302080, upload-time = "2026-09-21T17:55:33.817Z" }, + { url = "https://files.pythonhosted.org/packages/3f/de/9ace933ee8dad808632523726f42255b09600087219e3d4ead7369820910/multidict-6.9.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3c95601ed98fad3f6e2f8fe809c3b526b0fab31ef525e00a155e227f3d17f58a", size = 341107, upload-time = "2026-09-21T17:55:35.471Z" }, + { url = "https://files.pythonhosted.org/packages/d8/ac/7c1204406097bfc5c283d4a3287d61166807d189917567df4c1318484fc4/multidict-6.9.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c148e8b596000dd3e4bfe206e70f3e666be18d72032e0012555f2373c52e35d6", size = 333482, upload-time = "2026-09-21T17:55:37.002Z" }, + { url = "https://files.pythonhosted.org/packages/ff/c0/a70c32ea3299ebe00f44533740cb46905717c51faf29bbd3ce8bb5886d9d/multidict-6.9.1-cp312-cp312-win32.whl", hash = "sha256:f9dad513626a33670f17cddc6078e30e311f444c957e8dbfc5b2b4603c8b4edb", size = 52548, upload-time = "2026-09-21T17:55:38.529Z" }, + { url = "https://files.pythonhosted.org/packages/d7/2e/8c9c2591df01e5692ad1bf92febb082a17b1c6c3a19aa8b7ff49988fd989/multidict-6.9.1-cp312-cp312-win_amd64.whl", hash = "sha256:a16a1dc8529f9e734a41c3b856f3eae7ebacdc061dde3f8a844e0c7889c97203", size = 59622, upload-time = "2026-09-21T17:55:39.86Z" }, + { url = "https://files.pythonhosted.org/packages/d0/95/59f4472ec512bc180fd207899594c7803ece96262ff9aaa3a4b6d7da6940/multidict-6.9.1-cp312-cp312-win_arm64.whl", hash = "sha256:361f7206cf341ba94fb015688f5c8b480f8e63bd58a4c14a48aeca7851a241cc", size = 54930, upload-time = "2026-09-21T17:55:41.155Z" }, + { url = "https://files.pythonhosted.org/packages/eb/45/ddf7c76860f5f553a23ad3ca38463ccf5247081618977742c8dc4625355e/multidict-6.9.1-cp313-cp313-android_24_x86_64.whl", hash = "sha256:d7bf9e43282d69561618e8a0ea33368d532ebef42f15c096f427090521dd74f3", size = 63266, upload-time = "2026-09-21T17:55:42.676Z" }, + { url = "https://files.pythonhosted.org/packages/6d/d3/f4ae5945ea2de597eaeb4eca3a74c59783ace54482c9b49435442b63efa8/multidict-6.9.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:03d47df72f084f757c1cb771188d5f4e3a805e4abc4d67e32509272343ae9382", size = 55771, upload-time = "2026-09-21T17:55:44.016Z" }, + { url = "https://files.pythonhosted.org/packages/93/7d/15468239920040d01c686e5ae669e6382f7bf31fc3e5e0a6b8f1c3b32d3b/multidict-6.9.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:6bc94fe17c3c56e5418f79515b786b101845f70609b0d19d0c1ba13448e5633a", size = 57116, upload-time = "2026-09-21T17:55:45.315Z" }, + { url = "https://files.pythonhosted.org/packages/17/1b/b958f06aac2d8b1e485eb1c105b1b159cbf3868249e5142142451577dad2/multidict-6.9.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8f2973bbd2bebd9d2e0cd6394c1292a1a19ccd56bdcbe1e174059f1a39be5b40", size = 97692, upload-time = "2026-09-21T17:55:46.674Z" }, + { url = "https://files.pythonhosted.org/packages/93/6c/d6cfe18e61010166d7237d7527c775eb9843e7078feadea45b7628751b60/multidict-6.9.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:de7738b8c0bb74c4cc16bbd7fb49fc2bcf6430dba11b3432cd52768ae40933e8", size = 59556, upload-time = "2026-09-21T17:55:48.22Z" }, + { url = "https://files.pythonhosted.org/packages/46/46/9b4c1127cece0289fb207d04aae5116382ddfcb2a4dc8e0cb49a33f3c7b3/multidict-6.9.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e5ccad4b7bac125722f48d6f862bed3b514d8526deea06316bb72f152cd30a7c", size = 57357, upload-time = "2026-09-21T17:55:49.998Z" }, + { url = "https://files.pythonhosted.org/packages/bc/fc/c18b07100a6064573e49e538d13d47eb2b5221f48080512df78aef54ab04/multidict-6.9.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:a49ff5cdb33654cb7d6a3c377aa2a83ddefaa1db31eb10bcf3c180aa84f9af8a", size = 330433, upload-time = "2026-09-21T17:55:51.435Z" }, + { url = "https://files.pythonhosted.org/packages/62/ff/52a0082adeb69656b634609d4fb0ae65456deaae4cca3d5a12656626dc50/multidict-6.9.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b22ff30006a2f28f8bff878fb93413cbe3a4d1fd517c28081d848c90e9cfd2c8", size = 332487, upload-time = "2026-09-21T17:55:52.937Z" }, + { url = "https://files.pythonhosted.org/packages/39/3e/80bd4729635a7af371ff4dcc312594cf96e73f98854491be8740792de430/multidict-6.9.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3adf06c66041aa21eeb8a71e82379b74773298c8e6d3d839b151aae441a99b94", size = 316911, upload-time = "2026-09-21T17:55:54.751Z" }, + { url = "https://files.pythonhosted.org/packages/15/f4/7ea4a907e053e924e2e1694d90560f79f72056504bfd5e8483695f9527d2/multidict-6.9.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:963a8d8f97057082679523d0fd4c53a38f86bc58cabe4556faef682ae53fa2fa", size = 344950, upload-time = "2026-09-21T17:55:56.5Z" }, + { url = "https://files.pythonhosted.org/packages/0d/16/9642ae41fbfbdc546aa481c2b07ae1bc087a94ab5f5020b4d9ab77da401f/multidict-6.9.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b66ccc5c2cdd26e74fa5d4c29ffae424cc6148bf93ce574821783fb3b6d452c5", size = 350264, upload-time = "2026-09-21T17:55:58.073Z" }, + { url = "https://files.pythonhosted.org/packages/93/f2/e06c8e42074d0a4b8419bfe92afbd1d262190b69549ecbcd2dffa4f103c2/multidict-6.9.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7fd79c521f6290c69125fa2b85fa65d9e657e6a8ffaf722dc881b926bef4aa5c", size = 336213, upload-time = "2026-09-21T17:55:59.723Z" }, + { url = "https://files.pythonhosted.org/packages/98/43/d7cf9ef4700e7c25244590d1b4f20cf12cbed86beba6c17be4d9e48c1099/multidict-6.9.1-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1d804e4caf5d5da37d6dac1325da5629ebef1e27a294c2b568b295814aa36c7b", size = 302555, upload-time = "2026-09-21T17:56:01.666Z" }, + { url = "https://files.pythonhosted.org/packages/7d/3a/54209920324bc3928f5f2ba28b01a6dd957a9d48c3aaff77e38faaf5668d/multidict-6.9.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bb0d664505f4b112f384cffeee82e91e3f6448d8e574989479db4439b68cba05", size = 322247, upload-time = "2026-09-21T17:56:03.265Z" }, + { url = "https://files.pythonhosted.org/packages/33/50/df96f961b178b621ab0adbf9221d4fd21534e1064fd9f5e85c1fa27fea55/multidict-6.9.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:9e14d17773b1b3c758ff153659a1824608a0cb562c45f484b5ed8a433428444a", size = 321787, upload-time = "2026-09-21T17:56:04.894Z" }, + { url = "https://files.pythonhosted.org/packages/a7/9b/37f354562a8f82f9c1f63d3a94300fc82126d50320175f0702bbd544f87c/multidict-6.9.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:083735b7f395894e43adb278d5dae901448883a835ff8f1977e285fefdb10418", size = 335498, upload-time = "2026-09-21T17:56:06.783Z" }, + { url = "https://files.pythonhosted.org/packages/1e/44/78e366efc6c004185295cc9eb9711c10f13eadf3b547603b9c5526329976/multidict-6.9.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:b65121091567847a8cb520d364ab22ba90e00d3cc55fa9eb34bb439f0684bcd1", size = 338244, upload-time = "2026-09-21T17:56:09.162Z" }, + { url = "https://files.pythonhosted.org/packages/ad/2b/ab5bd3964691abe4d14b43bdbdb8a621b77cea2ca352dc93159ec0a4575b/multidict-6.9.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:ea999ae6e80e66ad5eea287860951b033d0104ca34d6d87c7b5125ebe0e12721", size = 301641, upload-time = "2026-09-21T17:56:11.227Z" }, + { url = "https://files.pythonhosted.org/packages/ea/a8/f6bc899f5aafaba755edc8e4bb934bc00b1e405f8d3fbc1dd10283738074/multidict-6.9.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:095d900c242e00fbe5f321ee072e7278b4153e78c5ce9c1efde167d62c1e4771", size = 340162, upload-time = "2026-09-21T17:56:13.076Z" }, + { url = "https://files.pythonhosted.org/packages/eb/03/a8fc809ef364b8c231c065ea2ea2f97ae86d4f9a0e36b5721759fd606778/multidict-6.9.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6441cc837aea58be7d9baef1b2383eb8311ab9303f500f99ac90b584cd78bb14", size = 332826, upload-time = "2026-09-21T17:56:15.175Z" }, + { url = "https://files.pythonhosted.org/packages/f2/27/32dde80245e2024e9bb7a6ca3c2fb7c695dc74014cba557cc35be6f91e24/multidict-6.9.1-cp313-cp313-win32.whl", hash = "sha256:9c4880d017555d70dea367dd49271830842d48e3891c2da97da7ce8c4abcee40", size = 52378, upload-time = "2026-09-21T17:56:16.959Z" }, + { url = "https://files.pythonhosted.org/packages/be/78/1bac2987edac273a6b27fa50e9204bc3466c94a7b4f6a44828d730f8810f/multidict-6.9.1-cp313-cp313-win_amd64.whl", hash = "sha256:ac51cd64bae51c462ea58ad2492c9b8209667a4ef60c45c4a304518b67598d5d", size = 59449, upload-time = "2026-09-21T17:56:18.336Z" }, + { url = "https://files.pythonhosted.org/packages/e1/32/2a77ce19eea48cb9b3521a202b513ba3349aafa702c8317be0b645ffb74b/multidict-6.9.1-cp313-cp313-win_arm64.whl", hash = "sha256:37a9ebe00c698279213d56e6c64e1962ab1e092918270649b397cac3dc196ca4", size = 54713, upload-time = "2026-09-21T17:56:19.774Z" }, + { url = "https://files.pythonhosted.org/packages/ec/0f/c6041015aa2cdc11e1dff0cae58898ae5525d19e35efd65a4ecf3c6ea235/multidict-6.9.1-cp314-cp314-android_24_x86_64.whl", hash = "sha256:fc0dcb22fa9aeabfe3fa4e0430099acff985ec5d77a851382f76cc6146e780e5", size = 62336, upload-time = "2026-09-21T17:56:21.181Z" }, + { url = "https://files.pythonhosted.org/packages/23/db/95bd0afb130a0149c955f1f066143528d60864e64f41ff5a1e1313609361/multidict-6.9.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:024123f0ab402ab33828e24eb80fa8f25167d0d3783ba5f287e39ed741e6abf9", size = 54892, upload-time = "2026-09-21T17:56:22.63Z" }, + { url = "https://files.pythonhosted.org/packages/94/cc/8aa34ae8d09498e8da003f485c03371b55cf1bc6d56cff861b3a7de61251/multidict-6.9.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:af1b5a92315048c3e36bbebfa7d4760a9c3e910bc4166f11b20d77d20d6bcfca", size = 56251, upload-time = "2026-09-21T17:56:24.36Z" }, + { url = "https://files.pythonhosted.org/packages/52/48/22baa3b95375096369b04c4348af14139570f302f951773d2c68bf0ccf2e/multidict-6.9.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:b2483da477932ad1983d1d33c18bc3771c6fb00cfbaaed70a875fd547ef8e840", size = 96345, upload-time = "2026-09-21T17:56:25.777Z" }, + { url = "https://files.pythonhosted.org/packages/2f/3e/b96779dcac28ec6d491fd821112a0156b519b6701bba186cdf6f6df737f4/multidict-6.9.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:db4d697b18b6ef5528b1f36bfa25072cd2a421869f5963bc0e92c8a34b9e2800", size = 58901, upload-time = "2026-09-21T17:56:27.364Z" }, + { url = "https://files.pythonhosted.org/packages/f9/b4/8e6d950f02ca6ecc00ecf671f2ddb5dab7017671a8d197326f75621f5786/multidict-6.9.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:854fd2f1bc6e8a56b89910b5cd7261a8b40f13ebb31572da985ce59c7da0886d", size = 56491, upload-time = "2026-09-21T17:56:28.901Z" }, + { url = "https://files.pythonhosted.org/packages/ed/8f/212ed7e03282c7bc271e3796bf985b53d5727c2827361e3dd9c5ee6b093f/multidict-6.9.1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:03731f6fc036180700c9dc2308205a48e5ca6f3ff03087739ab746f294022201", size = 332297, upload-time = "2026-09-21T17:56:30.495Z" }, + { url = "https://files.pythonhosted.org/packages/a0/97/555aab000e03ecba85c0a1837fd5674d8bf10949490df7800da3a40660ce/multidict-6.9.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:989261c5f1735a165f2e4e87cf6d5f17ab734fa18f9ad0383d5adfcdaefce701", size = 329197, upload-time = "2026-09-21T17:56:32.652Z" }, + { url = "https://files.pythonhosted.org/packages/3d/25/f3539b5bdc147beba66015795dfe589eedcc580348fb1a8c69b1df4196b5/multidict-6.9.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b4c9e5d05b126b267ac048a89a0e2d9b48b1b648add62d4872906304a8590610", size = 308456, upload-time = "2026-09-21T17:56:34.657Z" }, + { url = "https://files.pythonhosted.org/packages/1e/7d/4665cad8fc326787d218879be879d86dfe32f006c1f88ae47b04d3b52fd5/multidict-6.9.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9d0a21cf76153de8f2d96a877991d6bc59b9ab5180b949e50db73cc193b4a694", size = 343382, upload-time = "2026-09-21T17:56:36.606Z" }, + { url = "https://files.pythonhosted.org/packages/41/01/e1e9abe27f492b22dede492bc423015597412b14ce074f7475f4ecd80185/multidict-6.9.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e7386aa18d98d6b8af44b92173654ec469237fda35f8e8523e43b581a86f476a", size = 346848, upload-time = "2026-09-21T17:56:38.344Z" }, + { url = "https://files.pythonhosted.org/packages/f8/e5/8d54118bc228e64e1087f1729647b93bbea225eda4a3f914663a6f410bca/multidict-6.9.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b69651732c64afb691e50cdc3387cae305e0eeff8804fe3e3ce203876494932a", size = 333612, upload-time = "2026-09-21T17:56:40.041Z" }, + { url = "https://files.pythonhosted.org/packages/76/e1/9509dafc1fc68948e75842a74533ddfa64af57f2b17810e9cacfa68a829b/multidict-6.9.1-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1fee9a16d88a1c4865610de31ef5c666671020d7a81d1f510eaf3c97d00ebeba", size = 304246, upload-time = "2026-09-21T17:56:42.313Z" }, + { url = "https://files.pythonhosted.org/packages/1d/b6/96b93808e1bec0b51d49d89859e49b82a94f7b2e58eca0fc44ffcafd3ae5/multidict-6.9.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7814bbee202acd3bd240204c17d8b87a4c48c81064fd8674dbe527d94d5a4290", size = 321983, upload-time = "2026-09-21T17:56:44.399Z" }, + { url = "https://files.pythonhosted.org/packages/d9/1c/08e5184df026b9d8e05a6dce5da22628e46bc4a7c7f03b8bf3c6939a8c46/multidict-6.9.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:95f273bea318a194f656527ee2ed19494327bc500b8e87d9358e3222579aa28d", size = 315927, upload-time = "2026-09-21T17:56:46.208Z" }, + { url = "https://files.pythonhosted.org/packages/d7/5d/9ff39e7387f6fcc9a81af5dbf055fde08149849a04f8df10ca5b086b0d39/multidict-6.9.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:73bcafa21a78d0776b3ee7cd2a63c66f968eb7db8e8d594e32d7329950f6e828", size = 336827, upload-time = "2026-09-21T17:56:48.021Z" }, + { url = "https://files.pythonhosted.org/packages/5a/be/30fbb2cab22203128928066de94be247dc9a3230bf2bfc54437ac3b5f9f7/multidict-6.9.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:1a938761c77e0e6edb0c93d02f4e988d44a69e5195e5a3b893e5553311347132", size = 336317, upload-time = "2026-09-21T17:56:49.778Z" }, + { url = "https://files.pythonhosted.org/packages/bf/f0/2480aef6b7d8e7ab89b064ae14f12ec069570dab3a5c13e0155912293247/multidict-6.9.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:37245ca4105386194dd1d292a6f2aae09bfe1bd7ac6f9ec25093e3cf8e9b143b", size = 303258, upload-time = "2026-09-21T17:56:51.829Z" }, + { url = "https://files.pythonhosted.org/packages/4c/04/dbe59cf4ea3778600e8e70e30b31aa9118ad6da2844bc9f717804cbaa000/multidict-6.9.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:f0700527dd5bfa8b7204b08330542f4f388899d3c14d885d8a368992e0eb562d", size = 337232, upload-time = "2026-09-21T17:56:53.537Z" }, + { url = "https://files.pythonhosted.org/packages/f4/8c/abe55548f06f12878588f08eb803c5a391283f01243f784cb00adac79231/multidict-6.9.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:6b7e54fd883671d1a8810704851c044b7173287c552b9f5c3d9e0eb9f00ae194", size = 330261, upload-time = "2026-09-21T17:56:55.335Z" }, + { url = "https://files.pythonhosted.org/packages/d0/f1/ba67f668478f152bdfa18abe72e7588bd078bf8b42c172fcf542fcf45826/multidict-6.9.1-cp314-cp314-win32.whl", hash = "sha256:e81ae656b9935ac4528a71f96bb7a14d949778ed1897c573d3e7ebb9187f8841", size = 51715, upload-time = "2026-09-21T17:56:57.048Z" }, + { url = "https://files.pythonhosted.org/packages/33/81/014bb2128aedc8157d2848f0ec8a0209c6b822fb88deea012834e1c4a4e8/multidict-6.9.1-cp314-cp314-win_amd64.whl", hash = "sha256:acddcac38adc8342ba48aba98896faa7928854bebb62542362138655b5367ee3", size = 58621, upload-time = "2026-09-21T17:56:58.531Z" }, + { url = "https://files.pythonhosted.org/packages/66/34/8f43c03c2d8821a2320b8c560d8a49d0be2920627edfac3f546922f91969/multidict-6.9.1-cp314-cp314-win_arm64.whl", hash = "sha256:32217133dddc58c927805cf6c0731d8144584176b768042ee886d51e71860bc9", size = 53959, upload-time = "2026-09-21T17:57:00.15Z" }, + { url = "https://files.pythonhosted.org/packages/08/64/4f2a5eeea10b6d42634ba168ec6efc732ef218772e57b8239cd485c202f6/multidict-6.9.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:0b2fb8c349d1103863750b5d8cb5ace766917f4b35f3d883c8f778853eaa9f76", size = 107694, upload-time = "2026-09-21T17:57:01.785Z" }, + { url = "https://files.pythonhosted.org/packages/32/ce/c68d08ac2096c1528ff20d77fd10f7e401db3e534ac5a1c7726e36a77c2f/multidict-6.9.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:56d834b74c993a7d7cb2b8ab33a0d55c3e0d4a3d2f2da2808a4ad3d79189711b", size = 64766, upload-time = "2026-09-21T17:57:03.52Z" }, + { url = "https://files.pythonhosted.org/packages/3a/9a/9f5c270c88fe289b4876fe28f9932a70e015a7916aff1e5b0325f7597b11/multidict-6.9.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:783ba7d845d79ce976afd9c1e91a4e5714671defa198ee789e8b23316083a485", size = 62723, upload-time = "2026-09-21T17:57:05.104Z" }, + { url = "https://files.pythonhosted.org/packages/7c/63/c9a0b131354dd949426166cef712d708f436a8cf261114f8d5d2aec440ca/multidict-6.9.1-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:4d718fa1b5f0d0dd75e86fbbc5b0c93ea3a5d65216c85c61cd5d7cdddfe08455", size = 290445, upload-time = "2026-09-21T17:57:06.687Z" }, + { url = "https://files.pythonhosted.org/packages/9d/41/ed27d1d20ba91f4e13e8f7dcfaa592614ae0e1d5f45e03171d23c3b098ac/multidict-6.9.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a313bad717dde740959d50850c315b75fd4eb0c5e6b4dc8535db0f1c369be125", size = 304375, upload-time = "2026-09-21T17:57:08.717Z" }, + { url = "https://files.pythonhosted.org/packages/66/6f/a7b26167173c3b73d6e5ebb0856c5154ad005156c3a2fa4062329921819c/multidict-6.9.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ef01d29fca550ab871fd99154f82c6472aacf8e7def272dfb07b460123850390", size = 281746, upload-time = "2026-09-21T17:57:10.713Z" }, + { url = "https://files.pythonhosted.org/packages/34/1d/da27bdd49b0cb84263288f5f48dbd915f2d17fd228fee2078ca607e80277/multidict-6.9.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0f3bd290711c6e9486173a6ee7cd4e7f00c3971c7908c1ec1b6e5437c5e4c6f9", size = 311499, upload-time = "2026-09-21T17:57:12.467Z" }, + { url = "https://files.pythonhosted.org/packages/d0/36/ab0299a7abf53e38ff75d96c64480f1e2ff8edde985f93f7a1ad5e08bd94/multidict-6.9.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:81cdc537e0a42e3c0170752fcadbe450246d5c3b4b7231d6eb9672456605ac94", size = 313553, upload-time = "2026-09-21T17:57:14.548Z" }, + { url = "https://files.pythonhosted.org/packages/5a/44/e21be702efc9c9ba097c8be874c68860b1cb6cf9c85611263039bf95b37e/multidict-6.9.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8b193bf7a443c97d81c47052f60c486071a4bdef4a573fa2514f920089414d45", size = 299898, upload-time = "2026-09-21T17:57:16.192Z" }, + { url = "https://files.pythonhosted.org/packages/00/8d/e93bc0dc947c7f872e502cfaa7ad9d98f001e1c93cfa6f4940457a6e187a/multidict-6.9.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7a0c98f6a636adf0d7edd60c61589eaf52d149239af754d0bfeb0effedba53a8", size = 273054, upload-time = "2026-09-21T17:57:17.793Z" }, + { url = "https://files.pythonhosted.org/packages/5e/c9/945b44493fbe7af26ffe1e43c506b376daeab070fc1a0923bef9bbf572eb/multidict-6.9.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:6e6b7e3a1520c39a2772f414cd9ddf5995f77e4e823dfa1522af383addd465a3", size = 294751, upload-time = "2026-09-21T17:57:19.631Z" }, + { url = "https://files.pythonhosted.org/packages/24/79/0969a9b38b814e5fa3af1b0a57708c49b3d9b3d55c208bac6e98b87bb028/multidict-6.9.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:ca65cced0d67a9039e93bcd98a369920e499bf98296844ff56ead01c9085321f", size = 284523, upload-time = "2026-09-21T17:57:21.313Z" }, + { url = "https://files.pythonhosted.org/packages/1d/1e/c32ddf53234c228b1a374ddabca19f542ac7f32752f5155982abe2304833/multidict-6.9.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:372c063f37480f62c1ae32dc3a1a0a5942b180c883f99789075a8a8ec3c4e709", size = 290275, upload-time = "2026-09-21T17:57:23.206Z" }, + { url = "https://files.pythonhosted.org/packages/5d/09/7a99a3daafd987330abb865a2d36e432fd8bf18e790ddda55c5de15eb98f/multidict-6.9.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:827c92145b3b976b39430129c89d213b250dacbe5fce678e9a03940e6e848983", size = 303350, upload-time = "2026-09-21T17:57:25.086Z" }, + { url = "https://files.pythonhosted.org/packages/2e/09/7e6ebaecc4e226d7fe27973c271d58b75c14c24e84c23736d21dc39997dd/multidict-6.9.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:9b0124b9c17e9890f0819b2e7a5f65ec9a2f5aabd6c8e7ad090c1675cf70dee6", size = 272232, upload-time = "2026-09-21T17:57:27.193Z" }, + { url = "https://files.pythonhosted.org/packages/1f/6e/420e9e879b21cbdb5036214ee238efabcfab7bf262d3fc124132050f79ff/multidict-6.9.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:23136f5a564654eb61061ec6d5620a4c1ea32c8f552b65e9982a12b72bff601b", size = 300525, upload-time = "2026-09-21T17:57:29.004Z" }, + { url = "https://files.pythonhosted.org/packages/b7/7f/c6b0896850b3ceb190ca302760d63148843371f027c5dde3d1d732343a08/multidict-6.9.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f2524ec55b3e65cbe235a8b3c36e2af3b635be02ed05e20c94e70c5c943c009e", size = 295933, upload-time = "2026-09-21T17:57:30.837Z" }, + { url = "https://files.pythonhosted.org/packages/29/f2/f0ff3384a756227741c72f4ee94cadf1f9900df0ae961e48639f96115b1c/multidict-6.9.1-cp314-cp314t-win32.whl", hash = "sha256:35ba0263bae5dd3ad5aad767cc9afc01a8598c7dae30f1b3b2de98b1b32c28bd", size = 57776, upload-time = "2026-09-21T17:57:32.835Z" }, + { url = "https://files.pythonhosted.org/packages/8d/87/013e1eed30ad46bec1eb68947bc9caf55ba2fd0d6aed04fe964e3b44c23b/multidict-6.9.1-cp314-cp314t-win_amd64.whl", hash = "sha256:7c8d5882ba25ac0282258be435d8a05aa0cbcacfce15799154a338f847f159b9", size = 64881, upload-time = "2026-09-21T17:57:34.489Z" }, + { url = "https://files.pythonhosted.org/packages/7f/95/64dd049bb4c53426e2fee7afb874daaa8b4426c41878785883a94511ecf8/multidict-6.9.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ac348379cf4de5538a0a213be1532d289aa801ec5d267c5909446b9ea2f8e2c3", size = 58582, upload-time = "2026-09-21T17:57:36.19Z" }, + { url = "https://files.pythonhosted.org/packages/a2/2c/26bc1723592cfe965b575652a7749026474b0625b04b04564e1fba265dc5/multidict-6.9.1-cp315-cp315-android_24_x86_64.whl", hash = "sha256:f04551dce5a7db8c9659f2e4245494c182d0663b83661803e08d46bfcae5eda1", size = 62339, upload-time = "2026-09-21T17:57:37.967Z" }, + { url = "https://files.pythonhosted.org/packages/bd/c5/614d2eb9995232d066aae7f17d1d454060b6b5d882b22fbaf6150b05ef1d/multidict-6.9.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:c0c88085affd35c33e124e36930c5ad96aff9294ce195eaa0fd9cec962b64a82", size = 55009, upload-time = "2026-09-21T17:57:39.746Z" }, + { url = "https://files.pythonhosted.org/packages/7f/24/f7179ecdf9cdd3581ace3292c3b883a1a500a374aa4e619bf6eb521c62e5/multidict-6.9.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:a8b75dd3d3638d9a19f23e84af4ffab3b8940422c0df2da2a77005ef5aa3d7ea", size = 56273, upload-time = "2026-09-21T17:57:41.544Z" }, + { url = "https://files.pythonhosted.org/packages/ac/72/c9dffcecccd1f8b9a58f960ec4eaecab62c4edb08d5bb984d4de67fe3fdb/multidict-6.9.1-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:006c4478de0a1876f4834e14255776286f09b9846b505fe63f67f9d173a9487c", size = 96390, upload-time = "2026-09-21T17:57:43.385Z" }, + { url = "https://files.pythonhosted.org/packages/e9/3f/76542360e655cecdb7c158c7af88c69c4db0d2aac3421659d41214927229/multidict-6.9.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:2784090c30a586d5b45197bd9c32f87fb927216cde302f6cfd76d76577e90f08", size = 58900, upload-time = "2026-09-21T17:57:45.105Z" }, + { url = "https://files.pythonhosted.org/packages/04/15/f28c71af461dd4ff15653a165cfd8ddaf01f3387ff80d2dd0de057d527d0/multidict-6.9.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:7c708566da8014b120a64b1eb6d200c6c0c8cb36296383723cdb6fc82038270b", size = 56540, upload-time = "2026-09-21T17:57:46.913Z" }, + { url = "https://files.pythonhosted.org/packages/19/de/5ee4050c3ddad88c605a89fc1cd18e89abd40a64f183e6fb5276b6eb7f52/multidict-6.9.1-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:042fb0196047e786936a730bd302de83143950da45f2c16078da8f35e1cf7919", size = 331818, upload-time = "2026-09-21T17:57:48.825Z" }, + { url = "https://files.pythonhosted.org/packages/70/e2/2d4e3c3ee70f583334ff236fe6a3babf7a05ce56169a15df65453af647c0/multidict-6.9.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a2212a0c842c723d919ea4a22a9296cb6b244b386e4e6ea92adfc7fbf3095519", size = 329800, upload-time = "2026-09-21T17:57:50.91Z" }, + { url = "https://files.pythonhosted.org/packages/d6/14/f64bd05667343a7250cdd99f81bda2270e3959f00832441f10c7f904e1c1/multidict-6.9.1-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:fd882aa29bf402b62bf1fd7c19fd5df4b6528cf468a908864b39368572b662a9", size = 312048, upload-time = "2026-09-21T17:57:53.053Z" }, + { url = "https://files.pythonhosted.org/packages/64/bf/a91256ce00199e7544e3eda79c4e9544eb7388c38fa22f11638c2e357ccb/multidict-6.9.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c57541034d12b215ab0a2bfa371d1a8a198da18176d0426c27105b9161a6862d", size = 343676, upload-time = "2026-09-21T17:57:55.069Z" }, + { url = "https://files.pythonhosted.org/packages/14/48/628b978413518159228c2b2ec38645362ceb6427e935d83d716e26490a49/multidict-6.9.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d73fed4e37158ff00cd271871170b79e40138db51e625fd352fa17c6acb34f67", size = 347028, upload-time = "2026-09-21T17:57:57.157Z" }, + { url = "https://files.pythonhosted.org/packages/8c/73/5f9dc2b5ac7dd7a82458ae9cd283b99c185834f23442ace295362dcc5e45/multidict-6.9.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:79da2491348b30810728050b4a8ec0416f85884125c2fd44655b3d01150d9c3e", size = 335670, upload-time = "2026-09-21T17:57:59.126Z" }, + { url = "https://files.pythonhosted.org/packages/f8/84/6f319ee000f5ab3fa0055b194ad706fddd552c60c76a21d581c87db1d46c/multidict-6.9.1-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b4da208a63434d21a3df64d29758e650fc4aa8cb05848554b76949c296539cca", size = 307804, upload-time = "2026-09-21T17:58:01.2Z" }, + { url = "https://files.pythonhosted.org/packages/3f/24/61be5fe1616d033532e8d63dc789c0f35b9793917834713eefe050589ba9/multidict-6.9.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:877ca17fdcfdf5c397493a71e5ff97a87bb181417fe717fdadc77c08c09301ac", size = 323409, upload-time = "2026-09-21T17:58:03.383Z" }, + { url = "https://files.pythonhosted.org/packages/22/a6/eab8aaf59892169a0f4e8e78a5516a6caa6abd8e96e6410111258f4ef0ef/multidict-6.9.1-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:40aec5299e1ed71fbb988389059da381c3c1a60e0c649acceb2a35d9b128848e", size = 315746, upload-time = "2026-09-21T17:58:05.372Z" }, + { url = "https://files.pythonhosted.org/packages/42/b1/d1e14bab80a74babf6e2ac971a878b84fdcf3a972f3ec3400ca12260fac5/multidict-6.9.1-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:4a409ccc42aefec904038695d5d7fd6d8f3af2721b7b6401d55135ec7d6d298e", size = 334529, upload-time = "2026-09-21T17:58:07.35Z" }, + { url = "https://files.pythonhosted.org/packages/f5/50/a05b1d36f6d3363a5a334cebbf11624c9c7a69d66fd23345eb53b1d43b7e/multidict-6.9.1-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:0a5769559e3312dd96731fbe15b4abb6033368ac1cad5a98dadd21946a4c7d6c", size = 336455, upload-time = "2026-09-21T17:58:09.112Z" }, + { url = "https://files.pythonhosted.org/packages/cd/0d/bf33cb097380252b08e1177b5ae0cab822c47ce80d236f3f724953c76721/multidict-6.9.1-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:03fac50ddfd8302175b77863a015eccfae76767cda5506eef86df559ba861e1f", size = 305865, upload-time = "2026-09-21T17:58:10.921Z" }, + { url = "https://files.pythonhosted.org/packages/ba/ee/a2bd133391204b1cec5a5caf327dc9a06710439b7403220860a8fb164560/multidict-6.9.1-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:5ecace251ccfa705bf3d7d35c5032cf750f5c629809740405697bce5c118c4a4", size = 337531, upload-time = "2026-09-21T17:58:12.846Z" }, + { url = "https://files.pythonhosted.org/packages/a8/32/c0972486f81a06c3bbb23063c85afaac53c51608f7e35bcb101a1006408b/multidict-6.9.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:ecc89dbd4155b2f8a47f4bbd89242a35ed15e8e0ec581cab5ac65fa38407329d", size = 332464, upload-time = "2026-09-21T17:58:14.673Z" }, + { url = "https://files.pythonhosted.org/packages/69/4f/5cbbe852b45d8a7f0ab3ed042386e4894e463010eb230603596cb15d0fee/multidict-6.9.1-cp315-cp315-win32.whl", hash = "sha256:a3ffe881246d28a862f1985824f484cb7361f44d6b99c4c620436ef56462f38d", size = 51714, upload-time = "2026-09-21T17:58:16.409Z" }, + { url = "https://files.pythonhosted.org/packages/d4/77/1fa118386deeae4e7a48870fa5cb073e748b0ac5265a6990651cefc48068/multidict-6.9.1-cp315-cp315-win_amd64.whl", hash = "sha256:59c123d0e948d760a5f930f316cfefa07e8d632ab84327c0693ee6a88171154f", size = 58619, upload-time = "2026-09-21T17:58:18.369Z" }, + { url = "https://files.pythonhosted.org/packages/dd/ee/51c45748acfce9cb69d89dcfcd09c874b385407fd6993e885d6905659865/multidict-6.9.1-cp315-cp315-win_arm64.whl", hash = "sha256:31199204b3ced121ff5407a2c342326a5d27e3870abbf94bd80dbd2451b7bc8f", size = 53969, upload-time = "2026-09-21T17:58:20.102Z" }, + { url = "https://files.pythonhosted.org/packages/aa/57/89d2d3dedfae2558853c1770c7cbcdfd5211eb4c4090b1e8cb570544a490/multidict-6.9.1-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:8879510a76940670517ea1cb589978da44b86e286ec3e50d664ef330817afce7", size = 107679, upload-time = "2026-09-21T17:58:21.98Z" }, + { url = "https://files.pythonhosted.org/packages/c8/df/0c2a28870181c1762f90952b897f6db46c934ce073efe0442604cbc276db/multidict-6.9.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:aec65b53a07f580606593f877eefbb29a45939bfc0d3fe6e6d9f42b41b749f68", size = 64753, upload-time = "2026-09-21T17:58:23.622Z" }, + { url = "https://files.pythonhosted.org/packages/43/7e/9c6a3e7619459407d8958f7e56ab3dda7f0738f5aed9bb4ad48076e8de83/multidict-6.9.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:14c56f73e78faa1f68bbb826197cd5871994e70e841b8590829c35912ece5c64", size = 62732, upload-time = "2026-09-21T17:58:25.46Z" }, + { url = "https://files.pythonhosted.org/packages/38/eb/fd56c9d83ba0cdc3cf66f9acb278b24ef1f043b620b96d145685a3b57338/multidict-6.9.1-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:38c9986f9ce50c459b10de216a05f4bd7ed5ac63887d56e500a52bb464b861ce", size = 288648, upload-time = "2026-09-21T17:58:27.115Z" }, + { url = "https://files.pythonhosted.org/packages/df/ef/51e79c2442b0f56ac4ac580108d713078b31297e028d468fc220971a305d/multidict-6.9.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:15db6a102cbaf1949cf028ecf080aac76d20bcd29ad4e092574db6c6b7af78a5", size = 304919, upload-time = "2026-09-21T17:58:29.143Z" }, + { url = "https://files.pythonhosted.org/packages/6f/e4/774700cc5739353fe88a7204ed30e78a9403d98d4bb2496cc91f096d2e71/multidict-6.9.1-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:bd82c4977196681a499bb6ca9e462afbc5c91c1c15b6a991dfbd72733fea4dd2", size = 289094, upload-time = "2026-09-21T17:58:30.938Z" }, + { url = "https://files.pythonhosted.org/packages/ca/41/0bec327bc3a8271825376b6d8a469d1f80e3ba1e2e730e019836e29663c3/multidict-6.9.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bb58ba73a3f96f9a3e46b1fab69929d7edbbddb3133ee74b5c3c54074a53c4f1", size = 312007, upload-time = "2026-09-21T17:58:32.964Z" }, + { url = "https://files.pythonhosted.org/packages/c3/7a/9906bf5f1fe20e8e755affccc1a69ecd8aebb079ac65386e5ffc8eefbe75/multidict-6.9.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7c6eecfab7ce4cd9487ff8ba936fe38cdfd68c04faf3d5c710363c6a8e695659", size = 314657, upload-time = "2026-09-21T17:58:35.285Z" }, + { url = "https://files.pythonhosted.org/packages/33/92/cf6d665a45663bbe216420fe632da10e9f4f842b07ce02bc3ddf8eb882b8/multidict-6.9.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9c62e71e6289d78c0108d8aeb495f8bd3cad4bc1632fedddc9297ddf287ecc20", size = 301563, upload-time = "2026-09-21T17:58:37.472Z" }, + { url = "https://files.pythonhosted.org/packages/97/4c/9f1b7945526905d58b4b2d422e2ea81326dda71f9bdc9c32c8002639234a/multidict-6.9.1-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:539c2cd5fed0947c135cd7eabaaac55f48300dfa1de0f3ca4edb5efa6606f471", size = 278540, upload-time = "2026-09-21T17:58:39.551Z" }, + { url = "https://files.pythonhosted.org/packages/5c/d9/133aa472fc1be181de29a0c2e1c4cd778280882f532b404395f646742e46/multidict-6.9.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:3100d169ceb7bc8f05f89a6db11d1b21f119975fc26f29dc45a472e3569f0879", size = 294858, upload-time = "2026-09-21T17:58:41.791Z" }, + { url = "https://files.pythonhosted.org/packages/bd/38/21f2305dd20ac5038fa581b5d7e0d8dbbd70dc6b50231c22ec173dacddda/multidict-6.9.1-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:696477ad71385c4795e3b8e4cf10b0d2c28c2a1ca6a955e031cb1e62993e9ee3", size = 285461, upload-time = "2026-09-21T17:58:43.844Z" }, + { url = "https://files.pythonhosted.org/packages/ad/21/465a43c214d1d7e2d0c974e727d4b5935f8a0868838b5df9d0984c83c1dc/multidict-6.9.1-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:f5844e7befc707367807586f550fa97e23dcfef0728f02b98c7bc498a961a5df", size = 288964, upload-time = "2026-09-21T17:58:46.16Z" }, + { url = "https://files.pythonhosted.org/packages/2d/58/72a3e8d56c1e05146d2d1841dbaacf8986375eded1e5a58d30eef191a580/multidict-6.9.1-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:abc7c2e4b47bfe6a9aea434d3fdebb9597ee636e914e92ba352f2068b9142f4c", size = 303924, upload-time = "2026-09-21T17:58:48.395Z" }, + { url = "https://files.pythonhosted.org/packages/6f/b9/911084c04530a682a54536b4f738d3992a593b5ff6fea1d6a1f02f3acc6b/multidict-6.9.1-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:7ab379f95caee071a37cbd8be86d4c65accc651d391f9f97748fef006f38769c", size = 278479, upload-time = "2026-09-21T17:58:50.494Z" }, + { url = "https://files.pythonhosted.org/packages/45/eb/9a333346c02c928a9e82534638bce85697c10c46b4901fcd70af19357356/multidict-6.9.1-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:557a4e1708df428ebe6c3081c83a273d275dad2446ce0d81fc648ac71afdb18d", size = 301650, upload-time = "2026-09-21T17:58:52.554Z" }, + { url = "https://files.pythonhosted.org/packages/67/2f/1d936c4e45c8199db6082b6836e9182e31aa393de0de652637790831ca4b/multidict-6.9.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:475d04d5192eba487a3e2f935976340baa24529046e9c1c9c7a3b7bf80445ae1", size = 298024, upload-time = "2026-09-21T17:58:55.03Z" }, + { url = "https://files.pythonhosted.org/packages/a4/0c/ca62ae2882b89a4cfeb0bbca873a4afdb5fc32994c4f8a37a7cb52ede7a0/multidict-6.9.1-cp315-cp315t-win32.whl", hash = "sha256:10083a8a0f4e1b26b599889e90b9802504ce5d3f7722f925bbb7ca47dd22a7c1", size = 57810, upload-time = "2026-09-21T17:58:57.141Z" }, + { url = "https://files.pythonhosted.org/packages/02/8b/b2c2805c3eb6fa4cdf5512fb95ac6174dde71e34dd601c5be52f4df5dc82/multidict-6.9.1-cp315-cp315t-win_amd64.whl", hash = "sha256:e96ca64383efa107262ee3949f047af5ee4f1845ba09463466c04d35a83bd3ec", size = 64984, upload-time = "2026-09-21T17:58:59.446Z" }, + { url = "https://files.pythonhosted.org/packages/fd/34/03f1d204d698c408f4754c969882609b6b7a902c0e3d16a7033f219cdeda/multidict-6.9.1-cp315-cp315t-win_arm64.whl", hash = "sha256:501ed8b02a5990c67a91c732843609d43a6be1f7576fcdfc867331239f37fbd3", size = 58742, upload-time = "2026-09-21T17:59:01.726Z" }, + { url = "https://files.pythonhosted.org/packages/be/59/e26cb779be4c591d1a910f59d29aca9fba4de70349840a833beba2652371/multidict-6.9.1-py3-none-any.whl", hash = "sha256:7bf6478188f4e47bf5686e8a33da4ae28bf43b1b2528d9ee144d28492bfac60b", size = 19176, upload-time = "2026-09-21T17:59:03.501Z" }, ] [[package]] @@ -1896,16 +1937,16 @@ wheels = [ [[package]] name = "s3fs" -version = "2026.4.0" +version = "2026.9.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "aiobotocore" }, { name = "aiohttp" }, { name = "fsspec" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/cb/d8/76f3dc1558bdf4494b117a9f7a9cc0a5d9d34edadc9e5d7ceabc5a6a7c37/s3fs-2026.4.0.tar.gz", hash = "sha256:5bdce0abb00b0435ee150807a45fea727451dbc22de4cbc116464f8504ab9d37", size = 85986, upload-time = "2026-04-29T20:52:51.748Z" } +sdist = { url = "https://files.pythonhosted.org/packages/f7/fe/ab89ab94cc1293849bc1a60876b589007bdd43f59a06ca309e717bd45dc7/s3fs-2026.9.0.tar.gz", hash = "sha256:ec078ff0122d28fd21d36ea4987794e4f42ecd6e8785eeaa083208771c1464e5", size = 89163, upload-time = "2026-09-18T19:02:54.117Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/5d/a4/9d1ea10ebc9e028a289a72fec84da170689549a8102c8aacfcad26bc5035/s3fs-2026.4.0-py3-none-any.whl", hash = "sha256:de0d2a1f33cdf03831fd2382d278c6e4e31fe57c3bf2f703c61f8aec6b703e2a", size = 32392, upload-time = "2026-04-29T20:52:50.295Z" }, + { url = "https://files.pythonhosted.org/packages/bc/9c/15fb18bd708949dc953fe120be8d3c7a1b1b140c2592a9c81ce7961e9ecf/s3fs-2026.9.0-py3-none-any.whl", hash = "sha256:eb185fd98e20a1c9375087d9b2a6ef506f0cd01ae0c0c94efc79f88403fb81fe", size = 33126, upload-time = "2026-09-18T19:02:52.933Z" }, ] [[package]] From 899a2a49b0f40dcc194e675f758775e168ffadaf Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 9 Oct 2026 14:04:10 -0400 Subject: [PATCH 22/33] refactor(auth): decode the seal key once at startup; drop unreachable version re-checks validate_wsi_token already rejects any wsi_auth_version other than WSI_AUTH_VERSION, so the middleware and _authorize_source re-checks could never fire. The lifespan refuses to start without a valid WSI_SOURCE_SEAL_KEY, so decode it there once instead of on every request; an unset key still fails closed (validate_wsi_token rejects it). Co-Authored-By: Claude Opus 5.5 (1M context) --- app/main.py | 18 ++++++------------ tests/test_main.py | 18 +----------------- 2 files changed, 7 insertions(+), 29 deletions(-) diff --git a/app/main.py b/app/main.py index 695f637..eea27b9 100644 --- a/app/main.py +++ b/app/main.py @@ -79,6 +79,8 @@ _slides: SlideCache | None = None _image_operation_semaphore: asyncio.Semaphore | None = None _thumbnail_fetch_semaphore: asyncio.Semaphore | None = None +# Decoded once at startup; lifespan refuses to start without a valid key. +_source_seal_key: bytes | None = None class _SingleFlight: @@ -301,9 +303,9 @@ async def renew_until_done(): @asynccontextmanager async def lifespan(app: FastAPI): - global _slides, _image_operation_semaphore, _thumbnail_fetch_semaphore + global _slides, _image_operation_semaphore, _thumbnail_fetch_semaphore, _source_seal_key try: - decode_source_seal_key(settings.wsi_source_seal_key) + _source_seal_key = decode_source_seal_key(settings.wsi_source_seal_key) except InvalidWsiToken: logger.error("WSI_SOURCE_SEAL_KEY must be standard base64 of exactly 32 bytes") raise RuntimeError("WSI source seal key is not configured") from None @@ -374,17 +376,13 @@ async def require_wsi_capability(request: Request, call_next): authorization = request.headers.get("authorization", "") if not authorization.startswith("Bearer "): return Response(status_code=401, headers={"WWW-Authenticate": "Bearer"}) - try: - seal_key = decode_source_seal_key(settings.wsi_source_seal_key) - except InvalidWsiToken: - return Response(status_code=401, headers={"WWW-Authenticate": "Bearer"}) try: claims = validate_wsi_token( authorization[7:].strip(), settings.wsi_auth_secret, settings.wsi_auth_audience, settings.wsi_auth_max_ttl, - seal_key=seal_key, + seal_key=_source_seal_key, ) except InvalidWsiToken: if not settings.wsi_auth_previous_secret: @@ -395,7 +393,7 @@ async def require_wsi_capability(request: Request, call_next): settings.wsi_auth_previous_secret, settings.wsi_auth_audience, settings.wsi_auth_max_ttl, - seal_key=seal_key, + seal_key=_source_seal_key, ) except InvalidWsiToken: # Preserve the same response for an invalid token regardless of @@ -404,8 +402,6 @@ async def require_wsi_capability(request: Request, call_next): status_code=401, headers={"WWW-Authenticate": "Bearer"}, ) - if claims.get("wsi_auth_version") != WSI_AUTH_VERSION: - return Response(status_code=403, content="slide-scoped capability is required") request.state.wsi_claims = claims return await call_next(request) @@ -546,8 +542,6 @@ def _slide_rate_limit_scope(claims: dict) -> str: def _authorize_source(request: Request, operation: str) -> tuple[str, dict]: """Return the capability-sealed source for `operation` and its claims.""" claims = _claims(request) - if claims.get("wsi_auth_version") != WSI_AUTH_VERSION: - raise HTTPException(status_code=403, detail="slide-scoped capability is required") source = _allowed_source( claims.get("tile_source" if operation == "tile" else "thumbnail_source") ) diff --git a/tests/test_main.py b/tests/test_main.py index b482b37..6337342 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -605,6 +605,7 @@ def wsi_auth_settings(monkeypatch): monkeypatch.setattr(main_module.settings, "wsi_auth_secret", WSI_SECRET) monkeypatch.setattr(main_module.settings, "wsi_auth_previous_secret", "") monkeypatch.setattr(main_module.settings, "wsi_source_seal_key", SEAL_KEY_B64) + monkeypatch.setattr(main_module, "_source_seal_key", SEAL_KEY) monkeypatch.setattr(main_module.settings, "wsi_auth_audience", "cbioportal-wsi") monkeypatch.setattr(main_module.settings, "wsi_auth_max_ttl", 300) monkeypatch.setattr(main_module.settings, "wsi_allowed_source_schemes", ["s3", "file"]) @@ -929,23 +930,6 @@ async def test_v3_capability_is_rejected(self, wsi_auth_settings): assert response.status_code == 401 get_tile.assert_not_awaited() - @pytest.mark.asyncio - @pytest.mark.parametrize("seal_key", ["", "c2hvcnQ="]) - async def test_capability_is_rejected_without_valid_seal_key( - self, wsi_auth_settings, monkeypatch, seal_key - ): - monkeypatch.setattr(main_module.settings, "wsi_source_seal_key", seal_key) - get_tile = AsyncMock(return_value=b"tile") - transport = httpx.ASGITransport(app=main_module.app) - with patch.object(main_module.tile_cache, "get_tile", new=get_tile): - async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: - response = await client.get( - "/tiles/zxy/0/0/0", headers=_bearer(make_v4_token(WSI_SECRET)) - ) - - assert response.status_code == 401 - get_tile.assert_not_awaited() - @pytest.mark.asyncio async def test_decrypted_thumbnail_outside_policy_is_refused( self, wsi_auth_settings From defa854d2fdf5a5bdaf3c230c282ff2ceae6bae8 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 9 Oct 2026 14:04:34 -0400 Subject: [PATCH 23/33] refactor(deid): drop unused validate_artifact_uri params and duplicate slideKey regex validate_artifact_uri never read image_id, and related_identifiers had no production caller. The timeline slideKey linkout pattern now reuses SLIDE_KEY_PATTERN, and a stale pipeline-version comment is reworded. Co-Authored-By: Claude Opus 5.5 (1M context) --- app/deid.py | 13 +++---------- app/main.py | 1 - tests/test_deid.py | 5 ----- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/app/deid.py b/app/deid.py index ad0df33..d592675 100644 --- a/app/deid.py +++ b/app/deid.py @@ -105,8 +105,8 @@ # Ciphertext columns: random base64url can look like a date or labelled MRN, so # they are shape-checked instead of text-scanned. _CIPHERTEXT_FIELDS = {"sealed_source"} -# Canonical opaque keys from the v10 pipeline are built from slide_key hex, -# which can contain YYYYMMDD-looking runs. +# Canonical opaque keys are built from slide_key hex, which can contain +# YYYYMMDD-looking runs. _OPAQUE_KEY_PATTERNS = { "part_key": re.compile(r"^part:[0-9a-f]{32}$"), "block_key": re.compile(r"^block:[0-9a-f]{32}$"), @@ -117,7 +117,7 @@ # Opaque keys a timeline LINKOUT may carry as query parameters. _LINKOUT_OPAQUE_PARAMS = { "specimenKey": _OPAQUE_KEY_PATTERNS["specimen_key"], - "slideKey": re.compile(r"^[0-9a-f]{32}$"), + "slideKey": SLIDE_KEY_PATTERN, } @@ -241,10 +241,8 @@ def _uri_is_under_prefix(uri: str, prefixes: Iterable[str]) -> bool: def validate_artifact_uri( uri: object, *, - image_id: str, kind: str, prefixes: Iterable[str] = (), - related_identifiers: Iterable[str] = (), ) -> None: """Validate a source/thumbnail URI without exposing source identifiers.""" value = _text(uri) @@ -282,7 +280,6 @@ def validate_artifact_uri( # may use a different artifact key. The approved prefix and identifier # checks below are the privacy boundary; they must not be bypassed by a # user-controlled query or path traversal. - lowered = (value + " " + decoded_path).lower() # Approved object-store roots are deployment-controlled release boundaries; # their folder names may contain pipeline dates. Identifiers remain # forbidden regardless of prefix. @@ -297,10 +294,6 @@ def validate_artifact_uri( or _LABELLED_MRN.search(decoded_path) ): raise DeidViolation(f"identifier/date in {kind} URI") - for identifier in related_identifiers: - token = _text(identifier) - if token and token.lower() in lowered: - raise DeidViolation(f"related identifier in {kind} URI") def validate_wsi_public_row(row: Mapping[str, object]) -> None: diff --git a/app/main.py b/app/main.py index eea27b9..2d44ec9 100644 --- a/app/main.py +++ b/app/main.py @@ -548,7 +548,6 @@ def _authorize_source(request: Request, operation: str) -> tuple[str, dict]: try: validate_artifact_uri( source, - image_id=str(claims.get("image_id") or ""), kind="source" if operation == "tile" else "thumbnail", prefixes=( settings.wsi_allowed_source_prefixes diff --git a/tests/test_deid.py b/tests/test_deid.py index cf8e982..45bf22c 100644 --- a/tests/test_deid.py +++ b/tests/test_deid.py @@ -26,14 +26,12 @@ def test_artifact_uri_requires_an_approved_prefix_and_rejects_traversal(): with pytest.raises(DeidViolation): validate_artifact_uri( "s3://slides/../patient-123.svs", - image_id="slide-1", kind="source", prefixes=("s3://slides/",), ) with pytest.raises(DeidViolation): validate_artifact_uri( "s3://other/slide-1.svs", - image_id="slide-1", kind="source", prefixes=("s3://slides/",), ) @@ -42,7 +40,6 @@ def test_artifact_uri_requires_an_approved_prefix_and_rejects_traversal(): def test_artifact_uri_allows_pipeline_date_under_approved_prefix(): validate_artifact_uri( "s3://pathology/2026-08-19/slide-1.svs", - image_id="slide-1", kind="source", prefixes=("s3://pathology/",), ) @@ -130,10 +127,8 @@ def test_public_wsi_row_rejects_compact_absolute_dates_and_encoded_identifiers() with pytest.raises(DeidViolation): validate_artifact_uri( "s3://slides/P-1%2FMRN%3A123456.svs", - image_id="slide-1", kind="source", prefixes=("s3://slides/",), - related_identifiers=("P-1",), ) From d94af088496dd8e0bf6c0b4e74a4ad0fbeb9d522 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 9 Oct 2026 14:05:06 -0400 Subject: [PATCH 24/33] refactor(auth): share sealed-source shape and base64url decoding with deid auth.py re-declared the sealed-source alphabet, nonce/tag sizes and a base64url decoder already defined for the SEALED_SOURCE column check; import them from app.deid instead (values unchanged). decrypt_sealed_claims no longer re-validates the seal key, which validate_wsi_token checks first. Only the sealed claims are forbidden in plaintext; the v2 *_sha256 digest claims are unreachable since v2 tokens fail the version check. Co-Authored-By: Claude Opus 5.5 (1M context) --- app/auth.py | 35 ++++++++++++++--------------------- app/deid.py | 11 +++++++++-- tests/test_auth.py | 3 +-- 3 files changed, 24 insertions(+), 25 deletions(-) diff --git a/app/auth.py b/app/auth.py index a96d4ef..928010a 100644 --- a/app/auth.py +++ b/app/auth.py @@ -5,30 +5,25 @@ import hashlib import hmac import json -import re import time from functools import lru_cache from cryptography.exceptions import InvalidTag from cryptography.hazmat.primitives.ciphers.aead import AESGCM -from app.deid import SLIDE_KEY_PATTERN +from app.deid import ( + SEALED_SOURCE_MIN_BYTES, + SEALED_SOURCE_NONCE_BYTES, + SEALED_SOURCE_PATTERN, + SLIDE_KEY_PATTERN, + b64url_decode, +) WSI_AUTH_VERSION = 4 SOURCE_SEAL_KEY_BYTES = 32 -_GCM_NONCE_BYTES = 12 -_GCM_TAG_BYTES = 16 -_BASE64URL = re.compile(r"[A-Za-z0-9_-]+") # Claims that carry real slide identifiers or source bindings. A JWT # payload is readable by the browser, so these may only travel inside `enc`. -_PLAINTEXT_FORBIDDEN_CLAIMS = ( - "image_id", - "tile_source", - "thumbnail_source", - "tile_source_sha256", - "thumbnail_source_sha256", -) _SEALED_CLAIMS = ("image_id", "tile_source", "thumbnail_source") @@ -59,7 +54,7 @@ def source_cache_identity(source: str, source_fingerprint: str | None = None) -> def _b64decode(value: str) -> bytes: try: - return base64.urlsafe_b64decode(value + "=" * (-len(value) % 4)) + return b64url_decode(value) except Exception as exc: raise InvalidWsiToken("invalid token encoding") from exc @@ -88,10 +83,8 @@ def decrypt_sealed_claims(enc: object, seal_key: bytes, slide_key: str) -> dict: from AES-256-GCM with AAD = UTF-8 `slide_key`. Failures never echo the ciphertext, plaintext, or slide key. """ - if not isinstance(enc, str) or not _BASE64URL.fullmatch(enc): + if not isinstance(enc, str) or not SEALED_SOURCE_PATTERN.fullmatch(enc): raise InvalidWsiToken("invalid token source binding") - if not isinstance(seal_key, bytes) or len(seal_key) != SOURCE_SEAL_KEY_BYTES: - raise InvalidWsiToken("WSI source seal key is not configured") return dict(_decrypt_sealed_claims_cached(enc, seal_key, slide_key)) @@ -102,15 +95,15 @@ def decrypt_sealed_claims(enc: object, seal_key: bytes, slide_key: str) -> dict: @lru_cache(maxsize=4096) def _decrypt_sealed_claims_cached(enc: str, seal_key: bytes, slide_key: str) -> tuple[tuple[str, str], ...]: try: - sealed = base64.urlsafe_b64decode(enc + "=" * (-len(enc) % 4)) + sealed = b64url_decode(enc) except (binascii.Error, ValueError) as exc: raise InvalidWsiToken("invalid token source binding") from exc - if len(sealed) <= _GCM_NONCE_BYTES + _GCM_TAG_BYTES: + if len(sealed) < SEALED_SOURCE_MIN_BYTES: raise InvalidWsiToken("invalid token source binding") try: plaintext = AESGCM(seal_key).decrypt( - sealed[:_GCM_NONCE_BYTES], - sealed[_GCM_NONCE_BYTES:], + sealed[:SEALED_SOURCE_NONCE_BYTES], + sealed[SEALED_SOURCE_NONCE_BYTES:], slide_key.encode("utf-8"), ) claims = json.loads(plaintext.decode("utf-8")) @@ -178,7 +171,7 @@ def validate_wsi_token( slide_key = payload.get("slide_key") if not isinstance(slide_key, str) or not SLIDE_KEY_PATTERN.fullmatch(slide_key): raise InvalidWsiToken("invalid token slide") - if any(claim in payload for claim in _PLAINTEXT_FORBIDDEN_CLAIMS): + if any(claim in payload for claim in _SEALED_CLAIMS): raise InvalidWsiToken("token exposes sealed slide claims") for claim in ("tile_source_fingerprint", "thumbnail_source_fingerprint"): value = payload.get(claim) diff --git a/app/deid.py b/app/deid.py index d592675..d9d575f 100644 --- a/app/deid.py +++ b/app/deid.py @@ -41,7 +41,9 @@ # `enc` claim. SEALED_SOURCE_PATTERN = re.compile(r"^[A-Za-z0-9_-]+$") SEALED_SOURCE_MAX_CHARS = 4096 -SEALED_SOURCE_MIN_BYTES = 12 + 16 + 1 +SEALED_SOURCE_NONCE_BYTES = 12 +SEALED_SOURCE_TAG_BYTES = 16 +SEALED_SOURCE_MIN_BYTES = SEALED_SOURCE_NONCE_BYTES + SEALED_SOURCE_TAG_BYTES + 1 _URI_EXTENSION = { "source": {".svs", ".tif", ".tiff", ".ndpi", ".mrxs", ".scn"}, "thumbnail": {".jpg", ".jpeg", ".png"}, @@ -226,13 +228,18 @@ def _validate_sealed_source(value: object, *, servable: bool) -> None: if len(text) > SEALED_SOURCE_MAX_CHARS or not SEALED_SOURCE_PATTERN.fullmatch(text): raise DeidViolation("SEALED_SOURCE must be base64url without padding") try: - decoded = base64.urlsafe_b64decode(text + "=" * (-len(text) % 4)) + decoded = b64url_decode(text) except (binascii.Error, ValueError) as error: raise DeidViolation("SEALED_SOURCE must be base64url without padding") from error if len(decoded) < SEALED_SOURCE_MIN_BYTES: raise DeidViolation("SEALED_SOURCE is too short to be a sealed source") +def b64url_decode(value: str) -> bytes: + """Decode base64url with or without padding; raises binascii.Error/ValueError.""" + return base64.urlsafe_b64decode(value + "=" * (-len(value) % 4)) + + def _uri_is_under_prefix(uri: str, prefixes: Iterable[str]) -> bool: normalized = uri.rstrip("/") return any(normalized.startswith(prefix.rstrip("/") + "/") for prefix in prefixes) diff --git a/tests/test_auth.py b/tests/test_auth.py index 5ef360d..e8509e3 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -213,7 +213,6 @@ def test_contract_enc_vector_decrypts_to_exact_plaintext(): (VECTOR_ENC, VECTOR_KEY, VECTOR_SLIDE_KEY.upper()), (VECTOR_ENC, SEAL_KEY, VECTOR_SLIDE_KEY), (VECTOR_ENC, VECTOR_KEY[:16], VECTOR_SLIDE_KEY), - (VECTOR_ENC, VECTOR_KEY_HEX, VECTOR_SLIDE_KEY), (VECTOR_ENC[:-2] + ("AA" if VECTOR_ENC[-2:] != "AA" else "BB"), VECTOR_KEY, VECTOR_SLIDE_KEY), (VECTOR_ENC[:16] + ("A" if VECTOR_ENC[16] != "A" else "B") + VECTOR_ENC[17:], VECTOR_KEY, VECTOR_SLIDE_KEY), (VECTOR_ENC[:20], VECTOR_KEY, VECTOR_SLIDE_KEY), @@ -307,7 +306,7 @@ def test_signing_secret_does_not_open_enc(): @pytest.mark.parametrize( "claim", - ["image_id", "tile_source", "thumbnail_source", "tile_source_sha256", "thumbnail_source_sha256"], + ["image_id", "tile_source", "thumbnail_source"], ) def test_token_must_not_expose_sealed_claims_in_plaintext(claim): secret = "s" * 32 From 44a4c02b6a3ef76914e2325f412beb37babcdaa8 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Fri, 9 Oct 2026 14:05:53 -0400 Subject: [PATCH 25/33] test: collapse duplicated capability, source-binding and readiness tests - Fold the wrong-key enc cases (zero key, signing secret) into the tampered-enc table; drop the HKDF v3-derivation test and its imports. - Test auth-version rejection once, in test_auth, parametrized on wsi_auth_version; drop the v2/v3 route-level copies. - Drop the _reject_client_source unit tests (the route test covers them), the duplicate decrypted-source policy test, the duplicate valid-key readiness test, and the test that only pinned WSI_AUTH_VERSION. - Share a _request_with_capability helper; build make_token on make_raw_token; fix a stale comment. Co-Authored-By: Claude Opus 5.5 (1M context) --- tests/test_auth.py | 69 ++++-------------------- tests/test_main.py | 132 +++++---------------------------------------- 2 files changed, 23 insertions(+), 178 deletions(-) diff --git a/tests/test_auth.py b/tests/test_auth.py index e8509e3..aebc561 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -5,9 +5,7 @@ import time import pytest -from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.ciphers.aead import AESGCM -from cryptography.hazmat.primitives.kdf.hkdf import HKDF from app.auth import ( InvalidWsiToken, @@ -55,19 +53,6 @@ def seal_claims( return base64.urlsafe_b64encode(nonce + ciphertext).rstrip(b"=").decode() -def make_token(secret: str, **claims) -> str: - def encode(value): - return base64.urlsafe_b64encode(json.dumps(value).encode()).rstrip(b"=").decode() - - header = encode({"alg": "HS256", "typ": "JWT"}) - payload = encode(claims) - signing_input = f"{header}.{payload}".encode() - signature = base64.urlsafe_b64encode( - hmac.new(secret.encode(), signing_input, hashlib.sha256).digest() - ).rstrip(b"=").decode() - return f"{header}.{payload}.{signature}" - - def make_raw_token(secret: str, header, payload) -> str: def encode(value): return base64.urlsafe_b64encode(json.dumps(value).encode()).rstrip(b"=").decode() @@ -81,6 +66,10 @@ def encode(value): return f"{encoded_header}.{encoded_payload}.{signature}" +def make_token(secret: str, **claims) -> str: + return make_raw_token(secret, {"alg": "HS256", "typ": "JWT"}, claims) + + def valid_claims(seal_key: bytes = SEAL_KEY, **overrides): now = int(time.time()) slide_key = overrides.get("slide_key", SLIDE_KEY) @@ -211,7 +200,10 @@ def test_contract_enc_vector_decrypts_to_exact_plaintext(): [ (VECTOR_ENC, VECTOR_KEY, "f" * 32), (VECTOR_ENC, VECTOR_KEY, VECTOR_SLIDE_KEY.upper()), + # Sealed with another key, including the capability signing secret. (VECTOR_ENC, SEAL_KEY, VECTOR_SLIDE_KEY), + (VECTOR_ENC, bytes(32), VECTOR_SLIDE_KEY), + (VECTOR_ENC, b"s" * 32, VECTOR_SLIDE_KEY), (VECTOR_ENC, VECTOR_KEY[:16], VECTOR_SLIDE_KEY), (VECTOR_ENC[:-2] + ("AA" if VECTOR_ENC[-2:] != "AA" else "BB"), VECTOR_KEY, VECTOR_SLIDE_KEY), (VECTOR_ENC[:16] + ("A" if VECTOR_ENC[16] != "A" else "B") + VECTOR_ENC[17:], VECTOR_KEY, VECTOR_SLIDE_KEY), @@ -256,52 +248,11 @@ def test_malformed_sealed_plaintext_is_rejected(sealed): ) -def test_v2_and_v3_tokens_are_rejected(): +@pytest.mark.parametrize("version", [2, 3, "4"]) +def test_unsupported_auth_version_is_rejected(version): secret = "s" * 32 - now = int(time.time()) - v2_claims = { - "sub": "user@example.org", - "aud": "cbioportal-wsi", - "scope": "wsi:read", - "study_id": "study-a", - "image_id": "slide-a", - "wsi_auth_version": 2, - "tile_source_sha256": source_digest(TILE_SOURCE), - "thumbnail_source_sha256": source_digest(THUMBNAIL_SOURCE), - "thumbnail_width": 1024, - "thumbnail_height": 768, - "iat": now, - "exp": now + 300, - } - with pytest.raises(InvalidWsiToken, match="unsupported WSI authorization contract"): - validate(make_token(secret, **v2_claims), secret, "cbioportal-wsi") - with pytest.raises(InvalidWsiToken, match="unsupported WSI authorization contract"): - validate(make_v4_token(secret, wsi_auth_version=2), secret, "cbioportal-wsi") with pytest.raises(InvalidWsiToken, match="unsupported WSI authorization contract"): - validate(make_v4_token(secret, wsi_auth_version=3), secret, "cbioportal-wsi") - with pytest.raises(InvalidWsiToken, match="unsupported WSI authorization contract"): - validate(make_v4_token(secret, wsi_auth_version="4"), secret, "cbioportal-wsi") - - -def test_enc_sealed_with_another_key_is_rejected(): - secret = "s" * 32 - with pytest.raises(InvalidWsiToken, match="source binding"): - validate(make_v4_token(secret, seal_key=bytes(32)), secret, "cbioportal-wsi") - - -def test_enc_sealed_with_key_derived_from_signing_secret_is_rejected(): - secret = "s" * 32 - derived = HKDF( - algorithm=hashes.SHA256(), length=32, salt=None, info=b"wsi-claim-enc-v3" - ).derive(secret.encode("utf-8")) - with pytest.raises(InvalidWsiToken, match="source binding"): - validate(make_v4_token(secret, seal_key=derived), secret, "cbioportal-wsi") - - -def test_signing_secret_does_not_open_enc(): - secret = "s" * 32 - with pytest.raises(InvalidWsiToken): - validate(make_v4_token(secret), secret, "cbioportal-wsi", seal_key=secret.encode()) + validate(make_v4_token(secret, wsi_auth_version=version), secret, "cbioportal-wsi") @pytest.mark.parametrize( diff --git a/tests/test_main.py b/tests/test_main.py index 6337342..c052a5c 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -15,7 +15,6 @@ SLIDE_KEY, THUMBNAIL_SOURCE, TILE_SOURCE, - make_token, make_v4_token, seal_claims, ) @@ -83,22 +82,6 @@ def test_invalid_source_seal_key_fails_readiness(self, monkeypatch, seal_key): if seal_key: assert seal_key not in json.dumps(payload) - def test_valid_source_seal_key_passes_readiness(self, monkeypatch): - monkeypatch.setattr(main_module.settings, "wsi_auth_secret", WSI_SECRET) - monkeypatch.setattr(main_module.settings, "wsi_source_seal_key", SEAL_KEY_B64) - monkeypatch.setattr(main_module.settings, "release_id", "") - monkeypatch.setattr(main_module.settings, "image_git_sha", "") - monkeypatch.setattr( - main_module.settings, "wsi_allowed_source_prefixes", ("s3://slides/",) - ) - monkeypatch.setattr( - main_module.settings, "wsi_allowed_thumbnail_prefixes", ("s3://thumbs/",) - ) - - status, _ = main_module._readiness_status() - - assert status == 200 - @pytest.mark.asyncio @pytest.mark.parametrize("seal_key", ["", "c2hvcnQ="]) async def test_startup_fails_without_valid_source_seal_key( @@ -617,28 +600,17 @@ def _bearer(token: str) -> dict: return {"Authorization": f"Bearer {token}"} -class TestSourceBinding: - def test_client_source_header_is_rejected(self): - request = httpx.Request( - "GET", - "http://test/thumbnails", - headers={"X-WSI-Source": "s3://bucket/thumbnail.jpg"}, - ) - with pytest.raises(main_module.HTTPException) as exc_info: - main_module._reject_client_source(request, None) - assert exc_info.value.status_code == 400 - assert "s3://" not in str(exc_info.value.detail) - - @pytest.mark.parametrize("query_source", ["s3://bucket/thumbnail.jpg", ""]) - def test_client_source_query_is_rejected(self, query_source): - request = httpx.Request("GET", "http://test/thumbnails") - with pytest.raises(main_module.HTTPException) as exc_info: - main_module._reject_client_source(request, query_source) - assert exc_info.value.status_code == 400 +def _request_with_capability(token: str) -> httpx.Request: + """A tile request carrying the claims the capability middleware would attach.""" + request = httpx.Request("GET", "http://test/tiles/zxy/0/0/0") + request.state = type("State", (), {})() + request.state.wsi_claims = main_module.validate_wsi_token( + token, WSI_SECRET, "cbioportal-wsi", seal_key=SEAL_KEY + ) + return request - def test_requests_without_client_source_are_accepted(self): - main_module._reject_client_source(httpx.Request("GET", "http://test/thumbnails"), None) +class TestSourceBinding: def test_rate_limit_scope_uses_slide_key(self): claims = {"study_id": "study-a", "slide_key": SLIDE_KEY, "image_id": "slide-a"} @@ -708,33 +680,13 @@ async def call_next(request): def test_authorize_source_uses_decrypted_capability_source( self, wsi_auth_settings, operation, expected ): - request = httpx.Request("GET", "http://test/tiles/zxy/0/0/0") - request.state = type("State", (), {})() - request.state.wsi_claims = main_module.validate_wsi_token( - make_v4_token(WSI_SECRET), WSI_SECRET, "cbioportal-wsi", seal_key=SEAL_KEY - ) + request = _request_with_capability(make_v4_token(WSI_SECRET)) source, claims = main_module._authorize_source(request, operation) assert source == expected assert claims["slide_key"] == SLIDE_KEY - def test_authorize_source_applies_deid_policy_to_decrypted_source( - self, wsi_auth_settings, monkeypatch - ): - monkeypatch.setattr(main_module.settings, "wsi_allowed_source_prefixes", ["s3://other/"]) - request = httpx.Request("GET", "http://test/tiles/zxy/0/0/0") - request.state = type("State", (), {})() - request.state.wsi_claims = main_module.validate_wsi_token( - make_v4_token(WSI_SECRET), WSI_SECRET, "cbioportal-wsi", seal_key=SEAL_KEY - ) - - with pytest.raises(main_module.HTTPException) as exc_info: - main_module._authorize_source(request, "tile") - - assert exc_info.value.status_code == 403 - assert "s3://" not in str(exc_info.value.detail) - @pytest.mark.parametrize( ("operation", "sealed"), [ @@ -748,7 +700,7 @@ def test_authorize_source_applies_deid_policy_to_decrypted_source( ("tile", {"tile_source": "s3://slides/slide-a.svs?versionId=1"}), ("thumbnail", {"thumbnail_source": "s3://thumbs/../private/slide-a.jpg"}), ("tile", {"tile_source": "s3://user:pass@slides/slide-a.svs"}), - # Labelled MRN and the decrypted image_id in an unapproved path. + # Labelled MRN. ("thumbnail", {"thumbnail_source": "s3://thumbs/MRN-12345678.jpg"}), ], ) @@ -765,14 +717,7 @@ def test_authorize_source_rejects_decrypted_source_outside_policy( **sealed, }, ) - request = httpx.Request("GET", "http://test/tiles/zxy/0/0/0") - request.state = type("State", (), {})() - request.state.wsi_claims = main_module.validate_wsi_token( - make_v4_token(WSI_SECRET, enc=enc), - WSI_SECRET, - "cbioportal-wsi", - seal_key=SEAL_KEY, - ) + request = _request_with_capability(make_v4_token(WSI_SECRET, enc=enc)) with pytest.raises(main_module.HTTPException) as exc_info: main_module._authorize_source(request, operation) @@ -796,14 +741,7 @@ def test_authorize_source_rejects_decrypted_source_with_unsupported_scheme( "thumbnail_source": THUMBNAIL_SOURCE, }, ) - request = httpx.Request("GET", "http://test/tiles/zxy/0/0/0") - request.state = type("State", (), {})() - request.state.wsi_claims = main_module.validate_wsi_token( - make_v4_token(WSI_SECRET, enc=enc), - WSI_SECRET, - "cbioportal-wsi", - seal_key=SEAL_KEY, - ) + request = _request_with_capability(make_v4_token(WSI_SECRET, enc=enc)) with pytest.raises(main_module.HTTPException) as exc_info: main_module._authorize_source(request, "tile") @@ -872,33 +810,6 @@ async def test_routes_reject_client_supplied_sources( assert response.status_code == 400 assert "s3://" not in response.text - @pytest.mark.asyncio - async def test_v2_capability_is_rejected(self, wsi_auth_settings): - now = int(main_module.time.time()) - v2_token = make_token( - WSI_SECRET, - sub="user@example.org", - aud="cbioportal-wsi", - scope="wsi:read", - study_id="study-a", - image_id="slide-a", - wsi_auth_version=2, - tile_source_sha256=main_module.source_digest(TILE_SOURCE), - thumbnail_source_sha256=main_module.source_digest(THUMBNAIL_SOURCE), - thumbnail_width=1024, - thumbnail_height=768, - iat=now, - exp=now + 300, - ) - transport = httpx.ASGITransport(app=main_module.app) - async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: - response = await client.get( - "/tiles/zxy/0/0/0?source=s3%3A%2F%2Fslides%2Fslide-a.svs", - headers=_bearer(v2_token), - ) - - assert response.status_code == 401 - @pytest.mark.asyncio async def test_previous_secret_verifies_signature_and_seal_key_opens_enc( self, wsi_auth_settings, monkeypatch @@ -916,20 +827,6 @@ async def test_previous_secret_verifies_signature_and_seal_key_opens_enc( assert response.status_code == 200 assert get_tile.await_args.args[0] == main_module.source_cache_identity(TILE_SOURCE) - @pytest.mark.asyncio - async def test_v3_capability_is_rejected(self, wsi_auth_settings): - get_tile = AsyncMock(return_value=b"tile") - transport = httpx.ASGITransport(app=main_module.app) - with patch.object(main_module.tile_cache, "get_tile", new=get_tile): - async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: - response = await client.get( - "/tiles/zxy/0/0/0", - headers=_bearer(make_v4_token(WSI_SECRET, wsi_auth_version=3)), - ) - - assert response.status_code == 401 - get_tile.assert_not_awaited() - @pytest.mark.asyncio async def test_decrypted_thumbnail_outside_policy_is_refused( self, wsi_auth_settings @@ -954,6 +851,3 @@ async def test_decrypted_thumbnail_outside_policy_is_refused( assert response.status_code == 403 assert "s3://" not in response.text get_thumbnail.assert_not_awaited() - - def test_readiness_reports_v4_auth_contract(self): - assert main_module.health()["auth_contract_version"] == 4 From 3b8142de0886be55ddc53ad82f2d722d22c125d8 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Tue, 13 Oct 2026 13:00:24 -0400 Subject: [PATCH 26/33] refactor(slides): delete unused _resolve_s3_location slide_store.resolve_s3_location is the only live copy; nothing calls the SlideCache module's private duplicate. Co-Authored-By: Claude Opus 5.5 (1M context) --- app/slides.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/app/slides.py b/app/slides.py index 13faa70..2993743 100644 --- a/app/slides.py +++ b/app/slides.py @@ -21,7 +21,6 @@ from tiffslide import TiffSlide -from .config import settings from .blockcache import cache_lease_for_slide, purge_slide_cache, touch_slide_cache from .metrics import SLIDE_OPEN_ERRORS, SLIDE_OPEN_SECONDS from .slide_store import SlideEntry as _Entry @@ -32,30 +31,6 @@ T = TypeVar("T") -def _resolve_s3_location(slide_id: str) -> tuple[str, str, dict]: - """ - Return (bucket, key, s3_opts) for a source URL. - - The URL is supplied by cBioPortal, e.g. - "s3://mskmind-bkt/reef-slides/3735444.svs". - """ - if not slide_id.startswith("s3://"): - raise FileNotFoundError("Slide not found (expected s3:// URI)") - without_scheme = slide_id[5:] - bucket, _, key = without_scheme.partition("/") - if not bucket or not key: - raise FileNotFoundError("Malformed slide URI") - - opts: dict = {} - if settings.aws_endpoint_url: - opts["endpoint_url"] = settings.aws_endpoint_url - if settings.aws_access_key_id: - opts["key"] = settings.aws_access_key_id - if settings.aws_secret_access_key: - opts["secret"] = settings.aws_secret_access_key - return bucket, key, opts - - @dataclass class _CacheEntry: entry: _Entry From 6802798ac0c74c1cdd82ae92af572c9c1dcee531 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Tue, 13 Oct 2026 13:00:24 -0400 Subject: [PATCH 27/33] refactor(deid): drop the slideKey LINKOUT exemption No producer emits slideKey in a timeline LINKOUT (pdm #44 and #45 emit only specimenKey), so a slideKey value is now scanned like any other query value. Co-Authored-By: Claude Opus 5.5 (1M context) --- app/deid.py | 1 - tests/test_deid.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/app/deid.py b/app/deid.py index d9d575f..c695e72 100644 --- a/app/deid.py +++ b/app/deid.py @@ -119,7 +119,6 @@ # Opaque keys a timeline LINKOUT may carry as query parameters. _LINKOUT_OPAQUE_PARAMS = { "specimenKey": _OPAQUE_KEY_PATTERNS["specimen_key"], - "slideKey": SLIDE_KEY_PATTERN, } diff --git a/tests/test_deid.py b/tests/test_deid.py index 45bf22c..bb19705 100644 --- a/tests/test_deid.py +++ b/tests/test_deid.py @@ -99,7 +99,6 @@ def test_timeline_linkout_allows_opaque_keys_with_date_like_hex(): "/patient/wsiHESlides?studyId=s&caseId=P-1&sampleId=P-1-T01" "&stainFilter=hne&matchLevel=PART" f"&specimenKey={specimen_key.replace(':', '%3A')}" - f"&slideKey={hex_with_date}" ) validate_timeline_public_row({"PATIENT_ID": "P-1", "START_DATE": "-14", "LINKOUT": linkout}) @@ -111,7 +110,6 @@ def test_timeline_linkout_allows_opaque_keys_with_date_like_hex(): "/patient/wsiHESlides?studyId=s&caseId=P-1¬e=2019-04-12", # a specimenKey that is not a well-formed opaque key is scanned like any value "/patient/wsiHESlides?studyId=s&caseId=P-1&specimenKey=20190412", - "/patient/wsiHESlides?studyId=s&caseId=P-1&slideKey=MRN%3A123456", # dates in the path are rejected "/patient/2019-04-12/wsiHESlides?studyId=s", ], From 9d57a7d728c42bdbbe9481e6f1fb566b23e8e091 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Tue, 13 Oct 2026 13:01:21 -0400 Subject: [PATCH 28/33] test: drop duplicate and default-only source, capability and config tests - fold the unsupported-scheme cases into the outside-policy parametrize - one parametrized route test for tile and thumbnail decrypted sources - drop the route-level thumbnail outside-policy twin, the rate-limit scope unit test (covered end to end), the rebound-slide-key twin of the tampered-enc parametrize, the lru_cache exception test and two default-getter config tests Co-Authored-By: Claude Opus 5.5 (1M context) --- tests/test_auth.py | 17 -------- tests/test_config.py | 6 --- tests/test_main.py | 96 ++++++++------------------------------------ 3 files changed, 17 insertions(+), 102 deletions(-) diff --git a/tests/test_auth.py b/tests/test_auth.py index aebc561..9dbd897 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -145,15 +145,6 @@ def decrypt(self, *args, **kwargs): assert validate(token, secret, "cbioportal-wsi")["tile_source"] == TILE_SOURCE -def test_rejected_sealed_claims_are_not_cached(): - from app import auth - - auth._decrypt_sealed_claims_cached.cache_clear() - with pytest.raises(InvalidWsiToken): - decrypt_sealed_claims("A" * 64, SEAL_KEY, SLIDE_KEY) - assert auth._decrypt_sealed_claims_cached.cache_info().currsize == 0 - - def test_source_seal_key_decodes_contract_vector(): assert decode_source_seal_key(VECTOR_SEAL_KEY_B64).hex() == VECTOR_KEY_HEX @@ -220,14 +211,6 @@ def test_tampered_or_rebound_enc_is_rejected(enc, seal_key, slide_key): assert VECTOR_SLIDE_KEY not in str(exc_info.value) -def test_token_with_enc_bound_to_another_slide_key_is_rejected(): - secret = "s" * 32 - claims = valid_claims() - claims["slide_key"] = "f" * 32 - with pytest.raises(InvalidWsiToken, match="source binding"): - validate(make_token(secret, **claims), secret, "cbioportal-wsi") - - @pytest.mark.parametrize( "sealed", [ diff --git a/tests/test_config.py b/tests/test_config.py index a30a79c..42b6883 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -99,18 +99,12 @@ def test_release_identity_reads_environment(self): assert s.image_git_sha == "a" * 40 assert s.serving_contract_version == "wsi-serving-v6" - def test_serving_contract_version_default(self): - assert make_settings().serving_contract_version == "wsi-serving-v6" - def test_source_seal_key_reads_environment(self): key = "8XaidWVtlFzV7hwyAwtTNjN13MNLqnenz5Sy7Y+cbAs=" s = make_settings(WSI_SOURCE_SEAL_KEY=key) assert s.wsi_source_seal_key == key assert key not in repr(s) - def test_source_seal_key_defaults_empty(self): - assert make_settings().wsi_source_seal_key == "" - def test_wsi_artifact_prefixes_read_environment(self): s = make_settings( WSI_ALLOWED_SOURCE_PREFIXES="s3://slides/, file:///app/testdata/", diff --git a/tests/test_main.py b/tests/test_main.py index c052a5c..f72f9d6 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -611,12 +611,6 @@ def _request_with_capability(token: str) -> httpx.Request: class TestSourceBinding: - def test_rate_limit_scope_uses_slide_key(self): - claims = {"study_id": "study-a", "slide_key": SLIDE_KEY, "image_id": "slide-a"} - - assert main_module._slide_rate_limit_scope(claims) == f"study-a\0{SLIDE_KEY}" - assert "slide-a" not in main_module._slide_rate_limit_scope(claims) - @pytest.mark.asyncio async def test_tile_and_thumbnail_share_slide_rate_limit_scope(self): source = "s3://bucket/slide.svs" @@ -702,6 +696,9 @@ def test_authorize_source_uses_decrypted_capability_source( ("tile", {"tile_source": "s3://user:pass@slides/slide-a.svs"}), # Labelled MRN. ("thumbnail", {"thumbnail_source": "s3://thumbs/MRN-12345678.jpg"}), + # Unsupported schemes. + ("tile", {"tile_source": "https://slides/slide-a.svs"}), + ("tile", {"tile_source": "gs://slides/slide-a.svs"}), ], ) def test_authorize_source_rejects_decrypted_source_outside_policy( @@ -726,61 +723,27 @@ def test_authorize_source_rejects_decrypted_source_outside_policy( assert "s3://" not in str(exc_info.value.detail) assert "slide-a" not in str(exc_info.value.detail) +class TestCapabilityRoutes: + @pytest.mark.asyncio @pytest.mark.parametrize( - "source", ["https://slides/slide-a.svs", "gs://slides/slide-a.svs"] + ("path", "cache_fn", "expected"), + [ + ("/tiles/zxy/0/0/0", "get_tile", TILE_SOURCE), + ("/wsi/thumbnails?width=128&height=96", "get_thumbnail", THUMBNAIL_SOURCE), + ], ) - def test_authorize_source_rejects_decrypted_source_with_unsupported_scheme( - self, wsi_auth_settings, source + async def test_routes_serve_decrypted_source( + self, wsi_auth_settings, path, cache_fn, expected ): - enc = seal_claims( - SEAL_KEY, - SLIDE_KEY, - { - "image_id": "slide-a", - "tile_source": source, - "thumbnail_source": THUMBNAIL_SOURCE, - }, - ) - request = _request_with_capability(make_v4_token(WSI_SECRET, enc=enc)) - - with pytest.raises(main_module.HTTPException) as exc_info: - main_module._authorize_source(request, "tile") - - assert exc_info.value.status_code == 400 - assert "slides" not in str(exc_info.value.detail) - - -class TestCapabilityRoutes: - @pytest.mark.asyncio - async def test_tile_route_serves_decrypted_source(self, wsi_auth_settings): - get_tile = AsyncMock(return_value=b"tile") + cached = AsyncMock(return_value=b"image") transport = httpx.ASGITransport(app=main_module.app) - with patch.object(main_module.tile_cache, "get_tile", new=get_tile): + with patch.object(main_module.tile_cache, cache_fn, new=cached): async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: - response = await client.get( - "/tiles/zxy/0/0/0", headers=_bearer(make_v4_token(WSI_SECRET)) - ) + response = await client.get(path, headers=_bearer(make_v4_token(WSI_SECRET))) assert response.status_code == 200 - assert response.content == b"tile" - assert get_tile.await_args.args[0] == main_module.source_cache_identity(TILE_SOURCE) - - @pytest.mark.asyncio - async def test_thumbnail_route_serves_decrypted_source(self, wsi_auth_settings): - get_thumbnail = AsyncMock(return_value=b"thumbnail") - transport = httpx.ASGITransport(app=main_module.app) - with patch.object(main_module.tile_cache, "get_thumbnail", new=get_thumbnail): - async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: - response = await client.get( - "/wsi/thumbnails?width=128&height=96", - headers=_bearer(make_v4_token(WSI_SECRET)), - ) - - assert response.status_code == 200 - assert response.content == b"thumbnail" - assert get_thumbnail.await_args.args[0] == main_module.source_cache_identity( - THUMBNAIL_SOURCE - ) + assert response.content == b"image" + assert cached.await_args.args[0] == main_module.source_cache_identity(expected) @pytest.mark.asyncio @pytest.mark.parametrize("path", ["/tiles/zxy/0/0/0", "/thumbnails"]) @@ -826,28 +789,3 @@ async def test_previous_secret_verifies_signature_and_seal_key_opens_enc( assert response.status_code == 200 assert get_tile.await_args.args[0] == main_module.source_cache_identity(TILE_SOURCE) - - @pytest.mark.asyncio - async def test_decrypted_thumbnail_outside_policy_is_refused( - self, wsi_auth_settings - ): - enc = seal_claims( - SEAL_KEY, - SLIDE_KEY, - { - "image_id": "slide-a", - "tile_source": TILE_SOURCE, - "thumbnail_source": "s3://other/slide-a.jpg", - }, - ) - get_thumbnail = AsyncMock(return_value=b"thumbnail") - transport = httpx.ASGITransport(app=main_module.app) - with patch.object(main_module.tile_cache, "get_thumbnail", new=get_thumbnail): - async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: - response = await client.get( - "/thumbnails", headers=_bearer(make_v4_token(WSI_SECRET, enc=enc)) - ) - - assert response.status_code == 403 - assert "s3://" not in response.text - get_thumbnail.assert_not_awaited() From 84da53bd361bc6fa36022be14b236955596998d0 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Tue, 13 Oct 2026 13:01:57 -0400 Subject: [PATCH 29/33] refactor(ready): check the seal key decoded at startup lifespan already decodes WSI_SOURCE_SEAL_KEY into _source_seal_key and refuses to start without it; /ready now validates that value instead of decoding the setting a second time on every probe. Co-Authored-By: Claude Opus 5.5 (1M context) --- app/main.py | 2 +- tests/test_main.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/main.py b/app/main.py index 2d44ec9..7a04f67 100644 --- a/app/main.py +++ b/app/main.py @@ -735,7 +735,7 @@ def _readiness_status() -> tuple[int, dict]: settings.wsi_auth_secret, settings.wsi_auth_audience, settings.wsi_auth_max_ttl, - decode_source_seal_key(settings.wsi_source_seal_key), + _source_seal_key, ) if not settings.wsi_allowed_source_prefixes or not settings.wsi_allowed_thumbnail_prefixes: raise InvalidWsiToken("WSI artifact allowlists are not configured") diff --git a/tests/test_main.py b/tests/test_main.py index f72f9d6..3317a34 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -62,10 +62,10 @@ def test_partial_release_identity_fails_readiness(self, monkeypatch): assert status == 503 assert payload["status"] == "unavailable" - @pytest.mark.parametrize("seal_key", ["", "c2hvcnQ=", SEAL_KEY.hex()]) + @pytest.mark.parametrize("seal_key", [None, b"short", SEAL_KEY.hex().encode()]) def test_invalid_source_seal_key_fails_readiness(self, monkeypatch, seal_key): monkeypatch.setattr(main_module.settings, "wsi_auth_secret", WSI_SECRET) - monkeypatch.setattr(main_module.settings, "wsi_source_seal_key", seal_key) + monkeypatch.setattr(main_module, "_source_seal_key", seal_key) monkeypatch.setattr(main_module.settings, "release_id", "") monkeypatch.setattr(main_module.settings, "image_git_sha", "") monkeypatch.setattr( @@ -80,7 +80,7 @@ def test_invalid_source_seal_key_fails_readiness(self, monkeypatch, seal_key): assert status == 503 assert payload["status"] == "unavailable" if seal_key: - assert seal_key not in json.dumps(payload) + assert seal_key.decode() not in json.dumps(payload) @pytest.mark.asyncio @pytest.mark.parametrize("seal_key", ["", "c2hvcnQ="]) From 810ec2f6ac5c4be0013399e7072d24eeef617ef5 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Tue, 13 Oct 2026 13:01:57 -0400 Subject: [PATCH 30/33] docs(slide_store): the source URI comes from the sealed capability Co-Authored-By: Claude Opus 5.5 (1M context) --- app/slide_store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/slide_store.py b/app/slide_store.py index 38f0ea2..58b22bb 100644 --- a/app/slide_store.py +++ b/app/slide_store.py @@ -35,7 +35,7 @@ def resolve_s3_location(slide_id: str) -> tuple[str, str, dict]: """ Return (bucket, key, s3_opts) for a source URL. - The source URL must be a full s3:// URI supplied by cBioPortal. + The source URL must be a full s3:// URI opened from the sealed capability. """ if not slide_id.startswith("s3://"): raise FileNotFoundError("Slide not found (expected s3:// URI)") From 398bb92b3809036ace7586a83d337e2e671a4a8e Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Tue, 3 Nov 2026 11:21:42 -0500 Subject: [PATCH 31/33] Update locked dependencies with published security fixes aiohttp 3.14.5, certifi 2026.10.23, filelock 4.2.7, msgpack 1.2.4 and pillow 13.0.0 (yarl 1.25.1 follows aiohttp), so the pip-audit step passes. Co-Authored-By: Claude Opus 5.5 (1M context) --- uv.lock | 782 ++++++++++++++++++++++++++++++++------------------------ 1 file changed, 444 insertions(+), 338 deletions(-) diff --git a/uv.lock b/uv.lock index 77a04e9..87a24c7 100644 --- a/uv.lock +++ b/uv.lock @@ -35,7 +35,7 @@ wheels = [ [[package]] name = "aiohttp" -version = "3.14.3" +version = "3.14.5" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "aiohappyeyeballs" }, @@ -47,108 +47,150 @@ dependencies = [ { name = "typing-extensions", marker = "python_full_version < '3.13'" }, { name = "yarl" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/58/d9/22ce5786ac0c1653ae8b6c23bded02c1686d11f0dbb45b31ce128e0df985/aiohttp-3.14.3.tar.gz", hash = "sha256:9491196535a88924a60afd5b5f434b5b203b6cc616250878dbdb223a8f7844bc", size = 7971213, upload-time = "2026-07-23T01:57:27.037Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/f8/5c/b3e4ff8ad43a8afef9602c5e90285936da1beaea8b029016b793891f03c3/aiohttp-3.14.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:e568e14940c09955aa51f4e645b6daa18a581c5dcfcd73744dcc86a856e3ced3", size = 764250, upload-time = "2026-07-23T01:52:48.525Z" }, - { url = "https://files.pythonhosted.org/packages/0e/da/f1b384465e51449d844056b75070461da03a9a23e6c1747003695bf4172a/aiohttp-3.14.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:54cfcdee2770dac994417cbb0ee1f3eb0e7cb6b30c79bf44f2c02ff79ec5124a", size = 516281, upload-time = "2026-07-23T01:52:51.047Z" }, - { url = "https://files.pythonhosted.org/packages/b9/3f/01264f820ee2e3712a827892b1cd6ff80f3300c1fcbffbb45714a915d47a/aiohttp-3.14.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:21c016079415ed3fd676963e9793700a566d85dbbd6bfc564b9b2d209147dcc8", size = 514742, upload-time = "2026-07-23T01:52:53.779Z" }, - { url = "https://files.pythonhosted.org/packages/9e/8d/a71c6f2db52ac1ed142b133f7feddaa6b70539c3f4de24d7e226c95b794c/aiohttp-3.14.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d6088ec9894113802bddb3c09e974929aed2c7b3a8c456219b8aab4481f1a239", size = 1780613, upload-time = "2026-07-23T01:52:56.948Z" }, - { url = "https://files.pythonhosted.org/packages/a5/11/3dd9b3fb3a170f6ec9011b5291d876a6fab4086714c9e158600edf01b4fd/aiohttp-3.14.3-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:16ea7e24c309fb7c0bbd505d149abe4fe4dccfb8db911db7dbec0921bc889a6f", size = 1737688, upload-time = "2026-07-23T01:52:59.294Z" }, - { url = "https://files.pythonhosted.org/packages/6d/3e/834c26918be7d88068822b40e0db30fca50b5f4fe79104aa16a93f1d74e6/aiohttp-3.14.3-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:56f355e79f71aef2a85c80305cc915f894b170dba76de5fe84f6351939b83c06", size = 1845742, upload-time = "2026-07-23T01:53:01.641Z" }, - { url = "https://files.pythonhosted.org/packages/cc/c9/49ab8572df7d66bc13d11e31f781292badb04180dd87ba98733066c6aed7/aiohttp-3.14.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:18c441d0a8fca6de8d1f546849b9f0ab20d435993e2c5b59562b2fae6be2f929", size = 1928412, upload-time = "2026-07-23T01:53:04.018Z" }, - { url = "https://files.pythonhosted.org/packages/a5/b9/2b8f0c0ce09c87a1daf80fd483431b56b1435d3f62789bc86f572e1245de/aiohttp-3.14.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:53e7b4ce82b54a8bcc71b3b67a5cbd177ca1d7f592cbc92cd38b7349f73482db", size = 1786220, upload-time = "2026-07-23T01:53:06.481Z" }, - { url = "https://files.pythonhosted.org/packages/85/00/9c45f81de11710460edfa1dc81317b6e882703b160926c879a9d20da9fcc/aiohttp-3.14.3-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f55119f7bf25f49ed210f6096090715da24f2943c62102448915fde3c62877ce", size = 1637231, upload-time = "2026-07-23T01:53:10.258Z" }, - { url = "https://files.pythonhosted.org/packages/19/ce/967d628e910756f3539c6107cb7844a1b69440dcb3029a5ee7871b09ab63/aiohttp-3.14.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:9aa6e61fdf20105c4144e755bd586008ff450791d67b1c8146fdc15959c4d51c", size = 1753161, upload-time = "2026-07-23T01:53:13.817Z" }, - { url = "https://files.pythonhosted.org/packages/11/b2/0c3d4114f0aee4f580f5b3b4eb71b24d7a23b834ea506a4dfebe76513f35/aiohttp-3.14.3-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:ccd4893707b3e2a13e39c90d43cf80edf2e4d0457935bcc103bf2346214c3f15", size = 1756356, upload-time = "2026-07-23T01:53:16.211Z" }, - { url = "https://files.pythonhosted.org/packages/63/5d/99e7d91c82f1399d1ae2a854e080bd1493fbc31e5e959dbc4ec33dac3bec/aiohttp-3.14.3-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:b2466434105a4e03113c36ec775cc2ebe6676b62eae326fa670bb607ef788c1c", size = 1819846, upload-time = "2026-07-23T01:53:18.289Z" }, - { url = "https://files.pythonhosted.org/packages/ad/05/d5e1cb6480eeffd3f901d40a2c5e2d1e7effdc797837da3b490272699f13/aiohttp-3.14.3-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:ba59d59aba08ac02fc03b0c8983ccd5ee39a199d0552ce9e6d2b4845b34d59ae", size = 1628531, upload-time = "2026-07-23T01:53:23.86Z" }, - { url = "https://files.pythonhosted.org/packages/c9/90/b934682bcaefae18a9e04f3dff5b68522ba810906358ae5029b68110ea3b/aiohttp-3.14.3-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:ed099d105449c4f9e84f24af203cd131349d4761d8813fa7e02c32e7128cd910", size = 1832712, upload-time = "2026-07-23T01:53:27.551Z" }, - { url = "https://files.pythonhosted.org/packages/21/df/6061679faaf81fac746e7307c7adb71e858071a5d34c27583afefc64f543/aiohttp-3.14.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:152516815ef926786a0b6ae2b8f1fd2e0c71582dee0b435636865316fd4891b7", size = 1775014, upload-time = "2026-07-23T01:53:30.223Z" }, - { url = "https://files.pythonhosted.org/packages/8a/1d/f854878bbc69b88faefe924b619a34a6f59ec05fd387c77690667eaa75eb/aiohttp-3.14.3-cp311-cp311-win32.whl", hash = "sha256:a4af35c443e0b1a1bd6a8af3f3485d7fda15c142751a00f3ff8090f0b93346fa", size = 456006, upload-time = "2026-07-23T01:53:34.97Z" }, - { url = "https://files.pythonhosted.org/packages/73/0c/2af9d1674baccd1dbd47282a93d660a22e57ef6167c856deb24b4214fbab/aiohttp-3.14.3-cp311-cp311-win_amd64.whl", hash = "sha256:e1e74298bab6ee0d6e749ed4fd1901c7e604bdda32c03d787a2cc71c46d0433d", size = 481069, upload-time = "2026-07-23T01:53:39.673Z" }, - { url = "https://files.pythonhosted.org/packages/8e/76/88401ff3fc95e85c5fc38d588f36f55e61ecb64343b2bc8d69326f453cc0/aiohttp-3.14.3-cp311-cp311-win_arm64.whl", hash = "sha256:03cd2bde3d7f085b64e549c985f4bb928cad7e8ecf5323bfca320db548d81b39", size = 453021, upload-time = "2026-07-23T01:53:43.749Z" }, - { url = "https://files.pythonhosted.org/packages/18/d4/eb96299230e20acf2efae207cb8d69051f1f68e357e5ea5e479bf6fb097a/aiohttp-3.14.3-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:39aded8c7f3b935b54aab1d8d73c70ec0ee2d3ec3b943e0e86611bc150ba47f5", size = 754690, upload-time = "2026-07-23T01:53:47.332Z" }, - { url = "https://files.pythonhosted.org/packages/88/11/e7a70a209eb9a067c0d3212b518a0134e3484f5178c7533878b6b514d469/aiohttp-3.14.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:5bcb6ff3fdab1258a192679ff1a05d44f59626430aa05cd1a9d2447423599228", size = 509484, upload-time = "2026-07-23T01:53:51.159Z" }, - { url = "https://files.pythonhosted.org/packages/30/07/4bbc222cc8dbe31d4c3e8a5baad2286e4d42026ac0c570027b89afce6344/aiohttp-3.14.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:617105e2c3018ee38d0c8ce5ee3c84f621a6d8b9f723202aacaff28449ca91ee", size = 511949, upload-time = "2026-07-23T01:53:55.083Z" }, - { url = "https://files.pythonhosted.org/packages/54/b9/42e74c46b7b7c794b995bbc1f573fb48950c38b19d8600c62a6804ee2d67/aiohttp-3.14.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f631fe87a6f30df5fbe6d79640b25e4cffb38c31c7fb6f10871517b84b0f8c1a", size = 1765282, upload-time = "2026-07-23T01:53:59.662Z" }, - { url = "https://files.pythonhosted.org/packages/6b/ed/62bc4d74363ad346d518e0720363a949f63e2e23439a79eb5813d4d29bb3/aiohttp-3.14.3-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a94dbaae5ae27bd849c93570669bff91e0510f33a80805738e3de72a7be0447b", size = 1741511, upload-time = "2026-07-23T01:54:04.063Z" }, - { url = "https://files.pythonhosted.org/packages/d0/9f/181e8a8bc79e47d13c7fc4540bd7a3b729d9505609c61f392a8dd2fbfe55/aiohttp-3.14.3-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8f2f1c4c032c7cedd7d8da6f54c97b70266c6570c3108d3fdffee7188bb70529", size = 1810680, upload-time = "2026-07-23T01:54:09.882Z" }, - { url = "https://files.pythonhosted.org/packages/5c/9a/dec94d6ad694552fe3424e3f1928d7a606a5d9d9433a04e7ecdd9d38ae7f/aiohttp-3.14.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ea05e1f97ceea523942d9b2a7d7c0359d781d683d6b043f5943a602b14da4787", size = 1905646, upload-time = "2026-07-23T01:54:13.475Z" }, - { url = "https://files.pythonhosted.org/packages/52/b7/7cd31f29d6055bd711ae6e669367fba6f5ae9de463910a793e30556a8db7/aiohttp-3.14.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:543906c127fb1d929b95076db19b83fa2d46751006ff1e23b093aa5ac4d8db42", size = 1792122, upload-time = "2026-07-23T01:54:15.752Z" }, - { url = "https://files.pythonhosted.org/packages/66/73/10b1ef93afa61f4963c746257b70ced619cf31a4798671de5fdb2608501d/aiohttp-3.14.3-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0a5ff2dfbb9ce645fa5b8ef3e02c6c0b9cc3f6030ff863d0c51fffc50cb5541b", size = 1591127, upload-time = "2026-07-23T01:54:19.489Z" }, - { url = "https://files.pythonhosted.org/packages/49/ed/3b203fa6de1b338c14acdc06bf6ca9b043b7944f005966958c2ced932cde/aiohttp-3.14.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:041badb8f84396357c4d3ad26de6afd7a32b112f43d3c63045c0c8278cfd2043", size = 1725210, upload-time = "2026-07-23T01:54:24.129Z" }, - { url = "https://files.pythonhosted.org/packages/28/b7/1c2aab8c706436dcc28598452488ac9cd7c409da815237c28c27d58993e6/aiohttp-3.14.3-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:530125ee1163c4219af35dc3aa1206e541e7b31b6efc1a3f93b70a136f65d427", size = 1764848, upload-time = "2026-07-23T01:54:27.973Z" }, - { url = "https://files.pythonhosted.org/packages/54/50/94c28f08b131c4bf10984ea2c7a536c9920608bb2d6e7f95642c30cc87b7/aiohttp-3.14.3-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:c8653fd547c93a61aadc612007790f5555cdd18946fa48cf45e26d8ea4ea473d", size = 1777102, upload-time = "2026-07-23T01:54:31.775Z" }, - { url = "https://files.pythonhosted.org/packages/13/d4/e7d09ba7d345fb2d74440fd2fa033c5e079fac05552927705986f41a364f/aiohttp-3.14.3-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:89176250f686cb9853c0fb7ead90e639e915b84a6f43eedc2a4e7ec21f1037f0", size = 1580205, upload-time = "2026-07-23T01:54:34.518Z" }, - { url = "https://files.pythonhosted.org/packages/a3/84/072a91d68e1e1eb587985b54baab94221277f877e8ef274fc213a0ceae28/aiohttp-3.14.3-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3a26434dafe408229ff3403458ca58de24fb51936504decac49ce6755f77e59d", size = 1797219, upload-time = "2026-07-23T01:54:36.995Z" }, - { url = "https://files.pythonhosted.org/packages/e0/eb/aad34e897e668424d6e995da5dff8a4a09af93363d3392488772957a63aa/aiohttp-3.14.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d1558173930a5a8d3069cee5c92fc91c87c4dbcb099debbb3622053717145a19", size = 1768629, upload-time = "2026-07-23T01:54:40.103Z" }, - { url = "https://files.pythonhosted.org/packages/b6/2b/6bb88ddba0fecd9122aa3ebcad25996cf6c083a4a7040dbb3a4f97972af6/aiohttp-3.14.3-cp312-cp312-win32.whl", hash = "sha256:16100ad3ab8d649fdfbee87602d9d2dcdca9df0b9eda8a1b5fdc0d41f96da559", size = 451481, upload-time = "2026-07-23T01:54:42.547Z" }, - { url = "https://files.pythonhosted.org/packages/76/9b/f2f8f108da17ecef2cc3efc424e8b7ad3782b1a8360f7b8eae8ced84f6ea/aiohttp-3.14.3-cp312-cp312-win_amd64.whl", hash = "sha256:33a2d7c28d33797a2e99923dffa63f83d908a19b6bf26cfe80fa790aa5e1a75a", size = 476845, upload-time = "2026-07-23T01:54:44.853Z" }, - { url = "https://files.pythonhosted.org/packages/3e/44/28dac80a8941b604f4da10ce21097614ca1bf905ce93dca28d8d7de9c1e7/aiohttp-3.14.3-cp312-cp312-win_arm64.whl", hash = "sha256:362a3fd481769cac1a824514bcd86fda51c65e8fe6e051099e008fddde6db17c", size = 448050, upload-time = "2026-07-23T01:54:47.087Z" }, - { url = "https://files.pythonhosted.org/packages/57/be/5afd201cc0ab139029aadb75392efe85a293403d9dd3a3226161c21ce00c/aiohttp-3.14.3-cp313-cp313-android_21_arm64_v8a.whl", hash = "sha256:2e9878ae68e4a5f1c0abe4dd497dbc3d51946f5837b56759e2a02e78fa90ef86", size = 506269, upload-time = "2026-07-23T01:54:49.075Z" }, - { url = "https://files.pythonhosted.org/packages/22/09/dec8189d62b45ade009f6792a2264b942a90cb88aeaf181239933cd72c3c/aiohttp-3.14.3-cp313-cp313-android_21_x86_64.whl", hash = "sha256:f3d2669fe7dec7fc359ecdb5984b29b50d85d5d00f8c1cb61de4f4a24ee42627", size = 515166, upload-time = "2026-07-23T01:54:51.894Z" }, - { url = "https://files.pythonhosted.org/packages/28/24/2854869d29ed8a8b19d74f9ec6629515f7e04d02dd329d9d179201e58e47/aiohttp-3.14.3-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:cc7cb243a68167172f48c1fd43cee91ec4b1d40cefd190edd43369d1a6bc9c82", size = 486263, upload-time = "2026-07-23T01:54:54.223Z" }, - { url = "https://files.pythonhosted.org/packages/d4/dd/57187c8be2a35aea65eaee3bd2c3dcbbcf0204f5106c89637e3610380cd1/aiohttp-3.14.3-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:78253b573e6ffab5028924fc98bc281aae05445969982a10864bc360dea2016c", size = 492299, upload-time = "2026-07-23T01:54:56.236Z" }, - { url = "https://files.pythonhosted.org/packages/b9/11/06ae6ed8f0d414edf4068861e233d8fe23ee699bfd4b3ceb8663db948a62/aiohttp-3.14.3-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:7041d52c3a7fa20c9e8c182b534704abb19502c8bdcbde7ab23bfda6f642394f", size = 502235, upload-time = "2026-07-23T01:54:58.377Z" }, - { url = "https://files.pythonhosted.org/packages/7e/a3/559639c34a345d2cf7c52dff6838119f2eaf29eb508227b5b83f573af813/aiohttp-3.14.3-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ac74facc01463f138b0da5580329cfcc82818dea5656e83ddcd11268fc12ff80", size = 750883, upload-time = "2026-07-23T01:55:00.65Z" }, - { url = "https://files.pythonhosted.org/packages/91/cd/41e131f13afd1e7b0172a9d9eda085ef90eb8439f41f0d279db81ed3ae60/aiohttp-3.14.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d6218d92e450824e9b4881f44e8c09f1853b490f9a64130801024a4793b1b3b0", size = 508473, upload-time = "2026-07-23T01:55:02.945Z" }, - { url = "https://files.pythonhosted.org/packages/bc/6b/e7f13410d391c6e55b4c007a8de024355389d7d459e3d64c42b2d33617e5/aiohttp-3.14.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:11fb37ef075669eee52ab1928fbf6e1741fada40409fa309ebde9607a962aebf", size = 509190, upload-time = "2026-07-23T01:55:05.173Z" }, - { url = "https://files.pythonhosted.org/packages/97/21/6464573e53d69672cc1eada3e5c5cb2d2efa82701e8305a0f2047a576967/aiohttp-3.14.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:55bdcc472aafe2de4a253045cc128007a64f1e0264fb675791e132ea5edaa3bd", size = 1761478, upload-time = "2026-07-23T01:55:07.383Z" }, - { url = "https://files.pythonhosted.org/packages/1a/81/d217043a4c17fbce360905e3b2bdd20139ebc9a2de836d035d179c4da006/aiohttp-3.14.3-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c39846c3aad97a8530c89d7a3869a8f8e9e3762c6ac0504481e5c80948f7e807", size = 1735092, upload-time = "2026-07-23T01:55:09.803Z" }, - { url = "https://files.pythonhosted.org/packages/a1/66/e13a02d0eeb1a9a502402a977abb4e4abff9fe4051c26f80558c57a7c975/aiohttp-3.14.3-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5895ef58c4620afe02fa16044f023dc4dafec08158f9d08874a46a7dbc0341b8", size = 1800546, upload-time = "2026-07-23T01:55:12.012Z" }, - { url = "https://files.pythonhosted.org/packages/26/5e/57d42fca1d18cb5acc1cad945d017fabc5d6ae71d8a08ad66be8dc3ee544/aiohttp-3.14.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:fa9467a8113aa69d3d7c55a70ef0b7c636010a40993f3df9d9d0d73b3eb7ef24", size = 1895250, upload-time = "2026-07-23T01:55:14.357Z" }, - { url = "https://files.pythonhosted.org/packages/ca/1c/7da8d08e74d56f00070822f9638ff3f1c563f8ad87d1efa996c87bfc8644/aiohttp-3.14.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7d2deec16eeedf55f2c7cf75b521ea3856a5177e123844f8fd0f114ce252cb5", size = 1789289, upload-time = "2026-07-23T01:55:16.668Z" }, - { url = "https://files.pythonhosted.org/packages/cd/0f/cf16bcf56896981c1a0319f5d5db9337994b5165730c48a8fa07e9b34be6/aiohttp-3.14.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:dd54d0e8717de95939766febac482ac0474d8ac3b048115f9f2b1d23a16e7db4", size = 1586706, upload-time = "2026-07-23T01:55:18.913Z" }, - { url = "https://files.pythonhosted.org/packages/fe/6f/76eac12a7f2480e1e304f842efdb07db33256b0d9165b866b6ef0806c202/aiohttp-3.14.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:df82f3787c940c94986b34222d59c9e38843fba85139f36e85255a82ad5355a9", size = 1724652, upload-time = "2026-07-23T01:55:21.296Z" }, - { url = "https://files.pythonhosted.org/packages/39/b6/19c8c592baeeb94b75f966547d40c02ac7590902306ec5863d5c027cf506/aiohttp-3.14.3-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:42a67efc36300d052fb4508a53e8b6901b9284b599ae63945c377569c5fcc1e1", size = 1756239, upload-time = "2026-07-23T01:55:23.705Z" }, - { url = "https://files.pythonhosted.org/packages/dc/c9/4e9383150296f97f873b680c4de8fb2cd88608fb9f48c79edcb111611abc/aiohttp-3.14.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:7a75aa63cbf9b21cfaf60dc2657e19df2c2867d91707d653fee171ffeedd1371", size = 1769161, upload-time = "2026-07-23T01:55:26.082Z" }, - { url = "https://files.pythonhosted.org/packages/aa/1e/147bdc6cc5de5f3ab011be8bf5d6e786633249f22c20bae06f85e45f5387/aiohttp-3.14.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:e92eb8acc45eb6a9f4935071a77edf5b85cc6f8dfad5cd99e97653c26593cdde", size = 1578759, upload-time = "2026-07-23T01:55:28.846Z" }, - { url = "https://files.pythonhosted.org/packages/fd/31/78388a9d6040ece2e11df62ea229a822cf5e52d238374b220ae9975b2623/aiohttp-3.14.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:b014a6ed7cf912e787149fdc529166d3ceabac23f26efeea3158c9aba2354e7e", size = 1792025, upload-time = "2026-07-23T01:55:31.457Z" }, - { url = "https://files.pythonhosted.org/packages/03/51/a3d29fdf2c25d796746af8ad6fe56a45d6256c38b0a8a2ed752e1160b3a2/aiohttp-3.14.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:3d4f72af88ac2474bb5bca640030320e3d38a0163a1d7533500e87be458eef71", size = 1768477, upload-time = "2026-07-23T01:55:33.87Z" }, - { url = "https://files.pythonhosted.org/packages/29/a6/442e18b5afeade534d877a2dc3c3e392aff8d49787890b0cf84790410267/aiohttp-3.14.3-cp313-cp313-win32.whl", hash = "sha256:5f08ec777f35ee70720233b8b9811d3bb5d728137f30ac91b7457709c3261ac0", size = 451069, upload-time = "2026-07-23T01:55:36.121Z" }, - { url = "https://files.pythonhosted.org/packages/9d/69/3d876ac02659f271cf7f6769f14a8e3de5b6e888ed8b5a7e998086a4cec8/aiohttp-3.14.3-cp313-cp313-win_amd64.whl", hash = "sha256:dff9461ec275f22135650d5ba4b4931a11f3958df7dfbb8db630000d4dee0883", size = 476518, upload-time = "2026-07-23T01:55:38.303Z" }, - { url = "https://files.pythonhosted.org/packages/b2/0e/50d6e6471cd31edce8b282bdec59375a3a69124d8a989a0b1313355cae52/aiohttp-3.14.3-cp313-cp313-win_arm64.whl", hash = "sha256:ddcac3c6b382e81f1dd0499199d4136b877beb4cb5ef770bbbfba56c4b8f55d2", size = 447676, upload-time = "2026-07-23T01:55:40.451Z" }, - { url = "https://files.pythonhosted.org/packages/c8/20/887fdcf832326571b370ffc347b3e70abe101096f3720126aac161b1d872/aiohttp-3.14.3-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:49f7325beb0f85ef4aef5f48f490269575f83e6e2acad00a1d80b807eb027062", size = 509067, upload-time = "2026-07-23T01:55:42.618Z" }, - { url = "https://files.pythonhosted.org/packages/ad/a3/92cec936f78cc4bf0fa5554ebe593b73459d94e3c62303e1902a4cccb6f7/aiohttp-3.14.3-cp314-cp314-android_24_x86_64.whl", hash = "sha256:e3be98a7c30b8c25d573dafba7171d66dfb05ee6a9070fc46535464ff97700a6", size = 514774, upload-time = "2026-07-23T01:55:44.937Z" }, - { url = "https://files.pythonhosted.org/packages/29/ba/2a0c38df3fc557620b6a5acd98364af050053b6285b4dc7ee74100c63c18/aiohttp-3.14.3-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:614c61d478b83953e261d02bb2df750f17227cd33ef8002945bf5aebbde21919", size = 488134, upload-time = "2026-07-23T01:55:47.135Z" }, - { url = "https://files.pythonhosted.org/packages/48/d6/d51b7d4bf309af3693940d8ffd2b9ed0b682434ef85959b7c9c137f60cf8/aiohttp-3.14.3-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:1caa7b0d05f3e3a36f87788c59e970a7ee1cefcfcbb924a9f138c4a6551c9cb7", size = 494201, upload-time = "2026-07-23T01:55:49.451Z" }, - { url = "https://files.pythonhosted.org/packages/3f/5a/8f624384e5f1efabb5229b94157eb966b021e97bdb188c62860c2ae243c2/aiohttp-3.14.3-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:dfa68deb2a443bdaa3ea5297b0699c1464f08aef3812b486d1348eee61b07dc0", size = 502766, upload-time = "2026-07-23T01:55:51.656Z" }, - { url = "https://files.pythonhosted.org/packages/a6/26/4ff0164370deec18fb19254ee4ab10b7a73304ac0c860b13f5f84663759b/aiohttp-3.14.3-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:e72ee89e28d907a18f46959b4eb0bb06701cc7f8cf4366e00029e2ccfaaf5924", size = 756557, upload-time = "2026-07-23T01:55:53.964Z" }, - { url = "https://files.pythonhosted.org/packages/97/a3/7056b86dc0d9ec709ea9777eae3b0161428f943372f8b98c01c11593b682/aiohttp-3.14.3-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:ad4c8b7488d745d2ca4838ebd8ae5ba9b56341d30b1da43640e4ce87f9f49646", size = 510168, upload-time = "2026-07-23T01:55:56.22Z" }, - { url = "https://files.pythonhosted.org/packages/85/ed/0357a015892fd68058bf2d39d3fd1958e459b997a7db30aaa6aaa434ae96/aiohttp-3.14.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:db332af25642007330fca8be5c4d194caf2bea7a7fc84415aff3497af5dfee6b", size = 512957, upload-time = "2026-07-23T01:55:58.437Z" }, - { url = "https://files.pythonhosted.org/packages/47/d1/8aba53f15ccb2238405f5e9d30e2a8ca44f93878c26e7165ade00d374b1c/aiohttp-3.14.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:25bd2708db6bdf6a6630dd37bdcdfcb47c4434d22ac69c64665b802910140b30", size = 1750149, upload-time = "2026-07-23T01:56:00.856Z" }, - { url = "https://files.pythonhosted.org/packages/49/bd/40c3fee327529284375c6701cbb0fa4600cc2e8432af1378f897e2ef7d3a/aiohttp-3.14.3-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:cef89a58e628c4efcac3275c2d68083f82426dcdc89c1492a6f654f9f7ea6ab9", size = 1707685, upload-time = "2026-07-23T01:56:03.371Z" }, - { url = "https://files.pythonhosted.org/packages/2a/a3/ca0cc6724cca8114b05694abd916060758c79894c3aa5b012cdadc1bc28e/aiohttp-3.14.3-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c23ec8ee9d5ab2f5421f9c7fffce208435607af27fd46d4a44e031954352838f", size = 1803911, upload-time = "2026-07-23T01:56:05.817Z" }, - { url = "https://files.pythonhosted.org/packages/95/b5/85b099c299c3ffd38ad9b3e43694c8a346934e4a30c88c4fd5a841234f77/aiohttp-3.14.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e2667f0bbe7eb6c74eae5e9691441ad186e5845ca3cff63230fc09c4e7514f5d", size = 1876929, upload-time = "2026-07-23T01:56:08.413Z" }, - { url = "https://files.pythonhosted.org/packages/d5/b7/1da684a04175473fa4cddbf9a2f572e79514c3fd27a74597f43057d4f3da/aiohttp-3.14.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:18cb43369747b2ae007bd2655fb8e63a099c2ff1d207962943636dac989b3147", size = 1761112, upload-time = "2026-07-23T01:56:10.918Z" }, - { url = "https://files.pythonhosted.org/packages/d1/16/bc4b55e3e5cb175fd69c53c90d60d2f47797cb343da5106e23863dc4dba4/aiohttp-3.14.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:d77640cc618c1d99fc4f8589c0f24a730adfa54eb1e57ef7bf0c8dfb78da898c", size = 1583500, upload-time = "2026-07-23T01:56:13.613Z" }, - { url = "https://files.pythonhosted.org/packages/2a/e8/13a9d957a1ee40837f46aa30f0f4c657e673ad86a2e6362a9f9be20d26d9/aiohttp-3.14.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:53e5179d8abb5710f8e83ba207c41c8d1261fcffd4616500e15ca2b7a33be10a", size = 1713940, upload-time = "2026-07-23T01:56:15.969Z" }, - { url = "https://files.pythonhosted.org/packages/38/05/d33c680c1bcf1c7e130f9cbfc1fc02fe8bb0c4af2a94a53dd5fb56131e5c/aiohttp-3.14.3-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:cd817772b2fcf2b8c0905795318485f9ec16eae60b29feb7f4c77085311637f0", size = 1724413, upload-time = "2026-07-23T01:56:18.591Z" }, - { url = "https://files.pythonhosted.org/packages/85/1d/af798d306f7a74b6a632dbcabcf62a4c91391b7582d2a8c6d7712e2cc54e/aiohttp-3.14.3-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:4e3ac92d90e92773b2362d506068e9a948192bd553e743c5b2429e28527c8661", size = 1770748, upload-time = "2026-07-23T01:56:21.074Z" }, - { url = "https://files.pythonhosted.org/packages/a8/92/ad720d472556a995049206867765e9410969684f86ee09423ff9969044c1/aiohttp-3.14.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:3f42e9b78301f11c8f861746175d8b9c1ccef713fcad9eab396e2f6db8ed4a22", size = 1577564, upload-time = "2026-07-23T01:56:23.475Z" }, - { url = "https://files.pythonhosted.org/packages/60/ad/0ed7586cbef7a884e23a752fa2bb987a122e6a5dd50dab109258d0a95193/aiohttp-3.14.3-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:9d9edccfe496b476db5f398d97b865e9a6752bcf8aec4eef8390ce20fb64bb41", size = 1782080, upload-time = "2026-07-23T01:56:25.994Z" }, - { url = "https://files.pythonhosted.org/packages/97/ea/dbaed0d73e8a69aad653b045dab451c67c2454bb731a37b45a86593e9422/aiohttp-3.14.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:1c5ec8fb1bcc31a8466f74aaf26c345d5c386fa4bd08a3f0eb9c7a4a3fe8b5bf", size = 1745813, upload-time = "2026-07-23T01:56:28.604Z" }, - { url = "https://files.pythonhosted.org/packages/81/1b/6893d4bc57e434fc93a6c9217c637d967a0b651d989f6e3265179375754a/aiohttp-3.14.3-cp314-cp314-win32.whl", hash = "sha256:38901a84da3ce22249f6e860bf8f90d141bcab7da090cc398f8bb58c0e44b7da", size = 455872, upload-time = "2026-07-23T01:56:31.031Z" }, - { url = "https://files.pythonhosted.org/packages/f5/8b/c7baa1ba1eda4db6989baefe5de6d99834921b84ebd7918624febcb9f290/aiohttp-3.14.3-cp314-cp314-win_amd64.whl", hash = "sha256:8b3b60de05f3dcb6f6a00f818bb2ec781cee4de0645f59ccaf99b1d1823b6100", size = 481030, upload-time = "2026-07-23T01:56:33.365Z" }, - { url = "https://files.pythonhosted.org/packages/22/8c/c29d067df825a2df88ca432db848aa2fe8199598359cc06c12b09320cac9/aiohttp-3.14.3-cp314-cp314-win_arm64.whl", hash = "sha256:1576145bdceeb92382d899751e12743a3a5b8e460a841e3e50543859e54864dc", size = 453669, upload-time = "2026-07-23T01:56:35.731Z" }, - { url = "https://files.pythonhosted.org/packages/6a/a4/9c033beb355d39b6147980597ec9645e4729243f686ee4dc73945de72030/aiohttp-3.14.3-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:8800c996b01c2772a783e3e46f3e1abd5823029adca0df54231960de9bfefa5b", size = 791403, upload-time = "2026-07-23T01:56:37.972Z" }, - { url = "https://files.pythonhosted.org/packages/80/ca/87c32a0a7704583cfc49660bd817889bae5b830bf53b5dcb4e92145ac2da/aiohttp-3.14.3-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:ebe8e504f058fe91223351cecd2d9d6946c9d241bb0250d898ffbdf584cc72b0", size = 526413, upload-time = "2026-07-23T01:56:40.523Z" }, - { url = "https://files.pythonhosted.org/packages/9e/d8/8ec0e471248c500acdce2be3f46db8fb62b5eb60efef072529cc85ee1d26/aiohttp-3.14.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:30402d03a7c0ff52bce290b57e564e9079fd9d0cb545c8aba73f86a103162d2e", size = 532135, upload-time = "2026-07-23T01:56:42.876Z" }, - { url = "https://files.pythonhosted.org/packages/fe/45/f8919fd936e8b79fcd9bda7b6d8e62613462a713f4f17987fd7c34399142/aiohttp-3.14.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9fc7b5bfec6573f3ae844f457fdde5adeb713f8b8e4a81ad64fc207b49383716", size = 1922742, upload-time = "2026-07-23T01:56:45.528Z" }, - { url = "https://files.pythonhosted.org/packages/f6/ec/9ca76b28a27525b0cc53e20842e0228b022f301ce1f436b7d814b4aaf2df/aiohttp-3.14.3-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:8a5fd34f7f7410d1730d5c2ba873cacb2eed3fede366feb268a70ba22581ed8f", size = 1787371, upload-time = "2026-07-23T01:56:48.045Z" }, - { url = "https://files.pythonhosted.org/packages/b1/04/6acdbf17315f7b55f1937e3387acb89a3cddeb4995689553d064af8e92ab/aiohttp-3.14.3-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:270d3dace9ca2f10f0da5d8ebe519b7a310fc6112ed916e32df5866df0888553", size = 1912623, upload-time = "2026-07-23T01:56:50.605Z" }, - { url = "https://files.pythonhosted.org/packages/86/e6/438b0c79ca6f45eb9fd9817dd4c01a91919a38c0de5ee9e05e2b4dc0ece7/aiohttp-3.14.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3ae5b3a59436d089b5395d910121a390feed4d00578eb95a0fd1a329fe963100", size = 2005515, upload-time = "2026-07-23T01:56:53.153Z" }, - { url = "https://files.pythonhosted.org/packages/bb/6b/62cbd6577758699525f5c712d1ddef57d9875fbab0ae8d5f5a202fd598f8/aiohttp-3.14.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2498f0fe69ead802f9675beca44a7c21c62fdaa4ec5145ea1c3ad6edbee29f85", size = 1879906, upload-time = "2026-07-23T01:56:55.818Z" }, - { url = "https://files.pythonhosted.org/packages/00/95/18bcbf830a21dc3aae24d8f6b6feaf3db1d2090242d00a7868db2ffb0b67/aiohttp-3.14.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a0dc483c00da8b673abbb367eb6f8d8f4bcec30eb58529ea13cb42e7fd2dfa33", size = 1675849, upload-time = "2026-07-23T01:56:58.861Z" }, - { url = "https://files.pythonhosted.org/packages/a9/19/47f4968659c5e23606c3790c80fc624e691c153d036148449ee84d31b287/aiohttp-3.14.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c7d3a97c678d34fc5b59da671ee9cd630096ddc643e7b5a30d54a2a6f3574d3f", size = 1843496, upload-time = "2026-07-23T01:57:01.591Z" }, - { url = "https://files.pythonhosted.org/packages/64/af/38c33c4dd82fddcb4e56c4653b6f1072a8edbc6b7fa15809f14932c41e2d/aiohttp-3.14.3-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:f8fb78a83c9e5f741ca3a68cfb455c1f5bb83b4e7249a3848b3cd78d0a8563b0", size = 1827746, upload-time = "2026-07-23T01:57:05.131Z" }, - { url = "https://files.pythonhosted.org/packages/a1/9d/0537cda4885ac8f5b7053d164dd06312f4c483a4edcb8ee5b8aaf2a989bf/aiohttp-3.14.3-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:74ab5b6a9fb13e873e5a90946588baecaf488745e1db1a4a5c433f971f035098", size = 1853810, upload-time = "2026-07-23T01:57:08.043Z" }, - { url = "https://files.pythonhosted.org/packages/19/fe/26f9c5e6458385aa86497836b0dea6fb2f027827d63f37c7856cce9286ee/aiohttp-3.14.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:bd52f811e65f6fb634b1047159657c98f52b407f8efec907bcfc09da9a4c0a25", size = 1668895, upload-time = "2026-07-23T01:57:10.837Z" }, - { url = "https://files.pythonhosted.org/packages/ec/4c/618b1db9b9ba079b8875d2cdf78e7c4a3bf72903bd5850fee7dd9544600a/aiohttp-3.14.3-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:f0f177d1b195b9e06376cfd7d308d8a1b920909a609d03ac82a8c73bbb16d3b9", size = 1883833, upload-time = "2026-07-23T01:57:13.672Z" }, - { url = "https://files.pythonhosted.org/packages/94/c6/bd959bd1e4771f9fd944e9e436224c48c77b018b73b519b5aad346335bcc/aiohttp-3.14.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:498c6c623134f8e09a3c4e60bcd607a0b4590dd7dbf08dd40851b27cbb520ccb", size = 1844251, upload-time = "2026-07-23T01:57:16.593Z" }, - { url = "https://files.pythonhosted.org/packages/5e/19/08d41839658bdd44a0ed2480f3891705ecb487ce28c0dde62c9040c997e0/aiohttp-3.14.3-cp314-cp314t-win32.whl", hash = "sha256:b304db572b4368edd8dda8a2274f73156fe15558fca4a917cb8a09fc47af5963", size = 474180, upload-time = "2026-07-23T01:57:19.306Z" }, - { url = "https://files.pythonhosted.org/packages/99/5d/3cd6ef0a2b2851f7ab913b5b079334781bd50ff56a323e4454063377a080/aiohttp-3.14.3-cp314-cp314t-win_amd64.whl", hash = "sha256:b20032766aedf6261c7a566585a40867d092ac03a0d81592d5370ef9b054f99b", size = 500528, upload-time = "2026-07-23T01:57:21.762Z" }, - { url = "https://files.pythonhosted.org/packages/a4/37/cfd1ed540a4d318da025590d96b728e63713c09e9377950fc655dadeb856/aiohttp-3.14.3-cp314-cp314t-win_arm64.whl", hash = "sha256:2e1161602f45a54de2ce0905243a95f58cb42dcd378402f3697f5e0b21e9d2e7", size = 469280, upload-time = "2026-07-23T01:57:24.241Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/6c/4c/bdccd81e9ee225b69c60e7766c9a5b05364f118f4d383713b89a682d772d/aiohttp-3.14.5.tar.gz", hash = "sha256:5558a7f5a05af9ecf744af91e5baefc436f93c9333e656c27ec253f9a6bbe178", size = 8078052, upload-time = "2026-10-11T01:05:12.408Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d8/f3/8997f18890a92c79f77fcfbb4f78ca17c2d4ab109e9eb6d31b4e9de194a0/aiohttp-3.14.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:d51db97c96384fbfcaf8f4c65922183a68b94f891c3c10c862ef5f6df2adbb1f", size = 832358, upload-time = "2026-10-11T00:59:42.195Z" }, + { url = "https://files.pythonhosted.org/packages/8e/42/084651e9efb5cadb99265f786df60f2a7b353cead7bfd2c87003cb4867ad/aiohttp-3.14.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ae53924aa853a7a2ca20ed4142c7c6b56338e4d4cd999e2980075b9efc2e257a", size = 559636, upload-time = "2026-10-11T00:59:43.677Z" }, + { url = "https://files.pythonhosted.org/packages/3d/fe/92838944e601f0fe195fd3f3ada37e29fbee3d19bfd323fe15937ec79d36/aiohttp-3.14.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a2c473a355f9239efcb72c92d5abfd8fcdb0cc78c8e9af607e72ca12dbb36593", size = 552588, upload-time = "2026-10-11T00:59:45.592Z" }, + { url = "https://files.pythonhosted.org/packages/8f/b8/dd9b95c5c20ceae1b47738e656bd79e9883e3117a9cc8b143901eb604e9a/aiohttp-3.14.5-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:32e8fa6644e541fcd7e02430588c7fc93b602c1778ea0bc345505db76b61cfb4", size = 1928224, upload-time = "2026-10-11T00:59:47.294Z" }, + { url = "https://files.pythonhosted.org/packages/c6/47/70010cd2ba8746968d53d433ff328c33f06a66c99da5f3de759c64a6b2eb/aiohttp-3.14.5-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:579f97d5120f2971876d2ddca2968135f6944d00c44c3a6590ad7d86ca9b403f", size = 1877674, upload-time = "2026-10-11T00:59:49.472Z" }, + { url = "https://files.pythonhosted.org/packages/c5/a1/b026f071dbd87f0bdba86b92d47e46f3899e3ad7143b6e0fe7e7887090b4/aiohttp-3.14.5-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:24409db442e2fb6e766bc7f3943851a8381dec3098140e43bb2e843b79e31b12", size = 1985850, upload-time = "2026-10-11T00:59:51.296Z" }, + { url = "https://files.pythonhosted.org/packages/36/d1/f7b6f6f8c3cb5a71b53baeddc2e70c224c28b12a23a55c42994c504019b7/aiohttp-3.14.5-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5e8f97c0488ffda3082766ac0f2c8150a9a58c4d05788330e479cfd449b37939", size = 2105471, upload-time = "2026-10-11T00:59:53.191Z" }, + { url = "https://files.pythonhosted.org/packages/42/74/2a2b22953de15c6c8a80debf26db3047e4e8a5a5db6dd7c2c6c01eec0605/aiohttp-3.14.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:50a195903119008fe9cc68710535eb37f556ffffd6a7759afe70a2c145587045", size = 1929915, upload-time = "2026-10-11T00:59:55.609Z" }, + { url = "https://files.pythonhosted.org/packages/33/ad/f80e8d33933d0eacd0217efa3b7fb32c9f48ed480ed0db53cf9948bf474f/aiohttp-3.14.5-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0133c3c3b54a0bf1e71fa5c1ad95c93f07fd54e24ef1fe182f5122e1573d2bf1", size = 1773832, upload-time = "2026-10-11T00:59:57.611Z" }, + { url = "https://files.pythonhosted.org/packages/04/a4/0273d239f3e3bb69438f209c64c82e1f98dc60d5db264795e41f7dd05dcb/aiohttp-3.14.5-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:c172db893e516e1358e65a95ee20b7ce7173963eefe318b6ab2a2220688b999e", size = 1901001, upload-time = "2026-10-11T01:00:00.605Z" }, + { url = "https://files.pythonhosted.org/packages/16/ed/7dd439d26c654645bc34ca3c9a822fc11c1c51801fed1cefdfe1cc41c1f6/aiohttp-3.14.5-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:f2a7966bda23dd85051f1661ce0ace38d6890e05ec6c357ecae9d2479cba377e", size = 1907218, upload-time = "2026-10-11T01:00:02.699Z" }, + { url = "https://files.pythonhosted.org/packages/32/dd/86249c3b8248562a17fd3e22ee0c164378d65766f01aceef62cf52783710/aiohttp-3.14.5-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:4887d130a7bbfed3a85493bb5a25e5b5b558d40c1d986dd16970d2bb26d63793", size = 1958650, upload-time = "2026-10-11T01:00:04.851Z" }, + { url = "https://files.pythonhosted.org/packages/bc/0b/ca4d53d68f683ce195807fd0aeb063bf6d1c6b39343fff234c9524e8d5a9/aiohttp-3.14.5-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:225c579c23b68b343cccea27a7e06e3bd8ec23a09c30b427eb3f1e4ca6239b20", size = 1760057, upload-time = "2026-10-11T01:00:06.978Z" }, + { url = "https://files.pythonhosted.org/packages/6b/42/005437ffd7fa56c2ce3347add40404b654a32754ce91f2e2a14b9e5ab2bc/aiohttp-3.14.5-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:ab52d8f1fc1b64821c1fbad64a647ed6203627004059a6d1ed4f0858a1499703", size = 1978081, upload-time = "2026-10-11T01:00:08.868Z" }, + { url = "https://files.pythonhosted.org/packages/03/71/3a5b66fe1b7b23d3c6524350817ed55de5feb7fbb4cccba7cbe044d118dd/aiohttp-3.14.5-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:cb131d775a1573c1aee66656bd78b023577bbdb6cb8349a07773bd4f73e68a6e", size = 1922954, upload-time = "2026-10-11T01:00:11.035Z" }, + { url = "https://files.pythonhosted.org/packages/69/84/d08a554f281d42fd7c6b2b6dd7738f3e3a7a9f657ddd87e11ca2091cdfe3/aiohttp-3.14.5-cp311-cp311-win32.whl", hash = "sha256:e87046c8ff77a8decdb6a41d8ab25824b47531b2da933aeab0c1e21c7acff329", size = 488101, upload-time = "2026-10-11T01:00:12.933Z" }, + { url = "https://files.pythonhosted.org/packages/0f/15/52b5e65f02b33686ae49f1518548ae4f5a7adaf31d9d3c54fa12a143137b/aiohttp-3.14.5-cp311-cp311-win_amd64.whl", hash = "sha256:6f275c11d1aa6d4c458e05a68be084efe3c55a113d99e3f46a318098e52948fc", size = 512575, upload-time = "2026-10-11T01:00:14.743Z" }, + { url = "https://files.pythonhosted.org/packages/b0/b9/bb75012635f3defb0f7cbb7c4ae391e36bb9cb3fbdca3b9944e2ebebf743/aiohttp-3.14.5-cp311-cp311-win_arm64.whl", hash = "sha256:b032a0023eb41d768ce77d83210ab2a3c389bc0b09313273c7e1eca48c10a755", size = 493179, upload-time = "2026-10-11T01:00:16.961Z" }, + { url = "https://files.pythonhosted.org/packages/d5/94/6ba86efddcb616c811b40e6a0dfdd862738f647e4e3860a961075d5e9ed8/aiohttp-3.14.5-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:df37b620684e19b5e25724412518ccafc3b1a49cdac706fdbd2f983fad943450", size = 817499, upload-time = "2026-10-11T01:00:18.901Z" }, + { url = "https://files.pythonhosted.org/packages/5e/e1/7bca6d84dabd228aa8eb4b7f9feac2586aaa9be5505d7d65bf287a615c43/aiohttp-3.14.5-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ef60869969180ec2464f1349aff07138ae35ca2200f0946cb3552e49e8f301a8", size = 549467, upload-time = "2026-10-11T01:00:20.854Z" }, + { url = "https://files.pythonhosted.org/packages/64/91/11b89f45ca486252dd67dd5f3231fec04bf5518da39a95cb3997619f17fb/aiohttp-3.14.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d079c0a0135c36e7beb6f1c88087c8f108dc5891cdd0b5eafa778421bda70ed2", size = 548067, upload-time = "2026-10-11T01:00:22.659Z" }, + { url = "https://files.pythonhosted.org/packages/22/ff/c6615806c14aab34f82b9424ccde8ce6e417315fd57ce1c5b4d4747888e1/aiohttp-3.14.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:abfda5cb094a829f7bc25216a32f7db2e85cc65bd59910f8e7b40b3d9b224764", size = 1896245, upload-time = "2026-10-11T01:00:24.638Z" }, + { url = "https://files.pythonhosted.org/packages/39/b2/25a8c971ae6a92c8394d77e42422d7f38989e05cf41a5ceb92d73d67ab7e/aiohttp-3.14.5-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:9cc882cf8619109583c906b4d4a85d6a111a98afa34b7a450d1e08118d016820", size = 1872180, upload-time = "2026-10-11T01:00:26.838Z" }, + { url = "https://files.pythonhosted.org/packages/2f/d5/99f93ea36cc5205e47c1e5a803e087f2ad21b5430b5db2e942cb6e988a37/aiohttp-3.14.5-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7457580535e019e1247ea35d6a02bf081ad30c26d0cbc210c93f6c3ab67a0835", size = 1937261, upload-time = "2026-10-11T01:00:28.74Z" }, + { url = "https://files.pythonhosted.org/packages/40/a6/9ac9c9e6695040bd73d2584a1b59a9388f6433c76d5294a7bf591e21ffe5/aiohttp-3.14.5-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c5ed596aedb9c42afd3fe0aae3117725378ac73d2cc5ddc735056fbdb96c5d02", size = 2064994, upload-time = "2026-10-11T01:00:30.623Z" }, + { url = "https://files.pythonhosted.org/packages/da/e4/aa172eb534b7f02f1f8ff1c3213347eaf3cf218db91a727c6863c22f1035/aiohttp-3.14.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:20f085697d7e911f1f73c43ed03fafbed1e7121797e2eb5428efa80398060584", size = 1919630, upload-time = "2026-10-11T01:00:32.548Z" }, + { url = "https://files.pythonhosted.org/packages/06/7d/4eedafc5bababa8932636c141e346806966eade12c0b7e5946d43bf8218b/aiohttp-3.14.5-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:74b0a9c8270f9b0a11410e124ff8d4f18bfc1f1837440ec84da5ae7b50927b5d", size = 1710016, upload-time = "2026-10-11T01:00:34.471Z" }, + { url = "https://files.pythonhosted.org/packages/b2/94/eee018537ba19da0ceb2ac79cab83faed4ac49568e08376e2799043f2538/aiohttp-3.14.5-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:19e2ba471507c34f8252402ab50f5ab512398b9ea8c8f1cb26beb3f75793ba30", size = 1858112, upload-time = "2026-10-11T01:00:36.581Z" }, + { url = "https://files.pythonhosted.org/packages/68/76/354653a306547238f3427283905972d796ba7c292ba9977abec9f2b6f260/aiohttp-3.14.5-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:d418ce2af40c6bb685b3f663e9e8de27cb0a22431d8e88a167348d7f01878073", size = 1896371, upload-time = "2026-10-11T01:00:38.478Z" }, + { url = "https://files.pythonhosted.org/packages/f2/ec/63e8c7136b570e356345ad3174e3820fdc973ea10712cb6c649bf875755a/aiohttp-3.14.5-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:70cb4008ac2ed1e0ca9e824deb4b53d3aa0d939109698ebf1e723a84337bd794", size = 1905836, upload-time = "2026-10-11T01:00:40.527Z" }, + { url = "https://files.pythonhosted.org/packages/57/d8/11365bda144b127928cd42533d0eff78a55613c9e28f81941bd6630ea887/aiohttp-3.14.5-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:a23fe35d776bc03cb495938b9594450d047e3bc08c5255315a82323e9cb7d2dd", size = 1696534, upload-time = "2026-10-11T01:00:42.686Z" }, + { url = "https://files.pythonhosted.org/packages/2f/3d/82df0461b18e00b2998f205c03e0d3010222478c43640aceb8e03dcd7e8f/aiohttp-3.14.5-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3e0eb43bed3c6801a6cee315195377789e90b2a72c2277a475b578535312488d", size = 1933970, upload-time = "2026-10-11T01:00:44.71Z" }, + { url = "https://files.pythonhosted.org/packages/03/ad/6ddfe0aacd931c17b53533336d97e9d11a98b96d6ae815a9da0b19f82ccf/aiohttp-3.14.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:3be7dd397d64ca3e1869626fa9318aaebb54b7bf93bc72d7a205448d83e4f748", size = 1899501, upload-time = "2026-10-11T01:00:46.629Z" }, + { url = "https://files.pythonhosted.org/packages/9e/8e/189bdd9ae4793059bb09f6dc880f211a6c6c7859cebcbf33912dbfab7dd7/aiohttp-3.14.5-cp312-cp312-win32.whl", hash = "sha256:eb324e2009fb54db30a071dad7caf6998ee2879c4704007efb244514dad1fec1", size = 480370, upload-time = "2026-10-11T01:00:48.468Z" }, + { url = "https://files.pythonhosted.org/packages/ae/ce/1f08114679d49655b30a6e0a29858375c94b82c1de1a0bd0a20c2fee8b02/aiohttp-3.14.5-cp312-cp312-win_amd64.whl", hash = "sha256:2cc38a4f2b516bef1714e690df87a0e043faf1a7693c82d860091684453d5111", size = 506141, upload-time = "2026-10-11T01:00:50.272Z" }, + { url = "https://files.pythonhosted.org/packages/79/d4/c7b4f60b16a1b7e43249fa9031ae05e7e8c341ba4b7d1866f914dafeaa0e/aiohttp-3.14.5-cp312-cp312-win_arm64.whl", hash = "sha256:a63afd1f757de949028387e65a7127b61ad0f775432dbb0e62816ae619fe69ac", size = 488108, upload-time = "2026-10-11T01:00:52.321Z" }, + { url = "https://files.pythonhosted.org/packages/d3/e1/2841e020ebb7aefae5513586193e011e06313d9a6bdbd296622afbbce204/aiohttp-3.14.5-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:9ad7e6aa38c20da1be697874349c4c273c8a03b7887169665081706398d0439a", size = 538932, upload-time = "2026-10-11T01:00:54.3Z" }, + { url = "https://files.pythonhosted.org/packages/f7/a6/7fb8ea8fe96bcc7b7c7a36d10f021d99d01a8dc8a4b3f0ddacecfad9a80e/aiohttp-3.14.5-cp313-cp313-android_24_x86_64.whl", hash = "sha256:f59c7673465908cbe506117176156c127f29f917677afceada34957179221d91", size = 553329, upload-time = "2026-10-11T01:00:56.442Z" }, + { url = "https://files.pythonhosted.org/packages/de/64/d056e3c27647dc25af1a592cf356245382ea7c808171b9dac7677afedfc8/aiohttp-3.14.5-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1b5416552740edf07234cc9437d0706f2acb67b93c198670b1a68e1b2b587dec", size = 521367, upload-time = "2026-10-11T01:00:58.345Z" }, + { url = "https://files.pythonhosted.org/packages/3e/e4/95226147e11d4db916fd1d495dcf85af8e3816e38333e42718241196e848/aiohttp-3.14.5-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:43351bdb5e4c3cb7d1772368e988534e869a74db7778079a83782c11c69535c7", size = 528322, upload-time = "2026-10-11T01:01:00.211Z" }, + { url = "https://files.pythonhosted.org/packages/17/cd/1d3c9192cafdb51cad62b2d3ded96cff9cc8af51893210aadd448a325389/aiohttp-3.14.5-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:c8c4478bef6d57fcfda15dae461ea3c9f06aa7b257c58df3f2300174ccbb185a", size = 539874, upload-time = "2026-10-11T01:01:02.06Z" }, + { url = "https://files.pythonhosted.org/packages/f6/0c/dfa33aecc7d4d1dc75e05248f5eac5a0edf4d09e7b44d93ab62529b0c1db/aiohttp-3.14.5-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:c2c30484dd1417ef98b51021ffa2cc0d7f3c78918adaaaab7e70817335ab3e02", size = 813836, upload-time = "2026-10-11T01:01:04.01Z" }, + { url = "https://files.pythonhosted.org/packages/33/17/4a63738052d20567d55529d6daa1b9480d906fd52930fbcf6d3fbed618f0/aiohttp-3.14.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:dab9ac5a67c8d1f070c00fa8fccb7cbd1b8dcc1a8d6b42f37540df9b3d4cc603", size = 548070, upload-time = "2026-10-11T01:01:06.035Z" }, + { url = "https://files.pythonhosted.org/packages/15/e5/b57e58695a757fd4c02497c033fced96a69c631b13866c43d336530c9670/aiohttp-3.14.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e1cc2bfaee8c214f06080a7c7d5772419b8a1108e8e5349236189811823fb02a", size = 545786, upload-time = "2026-10-11T01:01:07.817Z" }, + { url = "https://files.pythonhosted.org/packages/9a/68/8c2c67a3aedf46e00f3c42f04fbc6983de80d4ed5786151e33681ba45883/aiohttp-3.14.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:74efb69332b85675b1eabd760a8cfc2e2cf42c60607c66f88014c1bdfb40942d", size = 1886492, upload-time = "2026-10-11T01:01:09.834Z" }, + { url = "https://files.pythonhosted.org/packages/ab/4b/74aab5e8d28c62e8f795b4fe8f38cf5586fd264a9a27bd2141ef6490333d/aiohttp-3.14.5-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:42b5e616946dbaf505e2bff18c9af2cd4ef9e7ef300ee58a6e951a5b7cf147ae", size = 1870057, upload-time = "2026-10-11T01:01:12.045Z" }, + { url = "https://files.pythonhosted.org/packages/a8/f7/eafc3b1988302b1815d9fd4a21071be5c360d616c0a430d02fd92dc97688/aiohttp-3.14.5-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f9033b43f511f27547c557dcaba0177649e10a3725336ccd2cce0fdc1dc4850d", size = 1925119, upload-time = "2026-10-11T01:01:14.09Z" }, + { url = "https://files.pythonhosted.org/packages/a1/04/78d8f294f74dd570f3898ff20402349fce524176045df98ba727d6846a68/aiohttp-3.14.5-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:15a310d3c71398e3d7bfc93a1a73fbe664315cd9e9016b8efc1cff85eeab7155", size = 2053137, upload-time = "2026-10-11T01:01:16.344Z" }, + { url = "https://files.pythonhosted.org/packages/32/51/395d225ef36f5a50d8e548dcd3141bfdbcd31fb6eed859022c573d2c4d66/aiohttp-3.14.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1ffa3a523a36d8628f98c06492ae16a31a23d14c0b4ec721757b477319f656d6", size = 1911038, upload-time = "2026-10-11T01:01:18.653Z" }, + { url = "https://files.pythonhosted.org/packages/ff/a4/2aec1aa06d82e8a244843b5dae31d78061e5e76744270a86dd0ee051c889/aiohttp-3.14.5-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5fb6a6e919bfb703227bc1ce6579281b84b1a2ba57deb9794dfdbec7dcd1e40c", size = 1702205, upload-time = "2026-10-11T01:01:20.904Z" }, + { url = "https://files.pythonhosted.org/packages/16/27/6051bfde7b6f418f70edd60d655fa426abb3355fa0981764739d87ecf160/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:43e1b7994a8b038125f722bff07492ef501110722c2727c408995d9fb864c421", size = 1848588, upload-time = "2026-10-11T01:01:22.918Z" }, + { url = "https://files.pythonhosted.org/packages/9e/44/55efc06fc26c4e6e1c095f231b4c222bf2d86d64a8eebbc24b2bb5958ea8/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:5f3e96071686755d9cd3600c3880183eb94b012178e92746d68101800f0ed8a3", size = 1887540, upload-time = "2026-10-11T01:01:25.278Z" }, + { url = "https://files.pythonhosted.org/packages/48/dc/1502bfdc2a65760d386ac6a00090b0addaa8a3c9c60b3f8127fad3a9afb2/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:cd88b01f3d37b7a2a34f91d98f14720206f1ea3d540843fab2d649dd5fb91fec", size = 1895030, upload-time = "2026-10-11T01:01:27.316Z" }, + { url = "https://files.pythonhosted.org/packages/93/7e/44174bb6288264418c9eec07a5e35180969c0d5a796c7af544db3cb8a33a/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:f2ed8b64dc0c651c0f5a9c926777719770021251b8f336d97c4b80b660836ce1", size = 1693244, upload-time = "2026-10-11T01:01:29.39Z" }, + { url = "https://files.pythonhosted.org/packages/47/dd/b507d64e50db23888582fff08eda13998b12f9dea70c072edaac19218380/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:a9918e58faf62ba2c7147927d06057aec78f42475aff5048047ec47e7265a600", size = 1926308, upload-time = "2026-10-11T01:01:31.634Z" }, + { url = "https://files.pythonhosted.org/packages/98/4b/5b51b4f63e3f2793151f4aea49c48fe1e00baeb7cec9c7a206de499f8de0/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:42f320d4a5b00b9af0bddcfec5407dc6f2d9816f006b2f79ebbaa31f16895df3", size = 1888406, upload-time = "2026-10-11T01:01:33.715Z" }, + { url = "https://files.pythonhosted.org/packages/ff/13/d5e818a5eaba9f822016727299f41c0e1075799f82a6433ec508a93ab867/aiohttp-3.14.5-cp313-cp313-win32.whl", hash = "sha256:3ae800a20947e2c2e53088047d021e6bf7d51560cc49f6a0737a1f79d2e3a13c", size = 479970, upload-time = "2026-10-11T01:01:35.677Z" }, + { url = "https://files.pythonhosted.org/packages/8d/d0/8eca2c65aa467320990d78fb2005f38ed3588944280c39ff9deb6423fef1/aiohttp-3.14.5-cp313-cp313-win_amd64.whl", hash = "sha256:d05e94cdfe0d15d0206f970722d2554780ce562787b21b218b275447f8751319", size = 505985, upload-time = "2026-10-11T01:01:37.574Z" }, + { url = "https://files.pythonhosted.org/packages/7a/f8/4cdd65305d2fca14b886bea9ed2abb1fe726287872524e56e3d26692b47d/aiohttp-3.14.5-cp313-cp313-win_arm64.whl", hash = "sha256:f001b571ead90ca1770f1e616db255351a1703317f20374c361ef22f12c06d09", size = 487629, upload-time = "2026-10-11T01:01:39.477Z" }, + { url = "https://files.pythonhosted.org/packages/43/be/3184a1d34a8be665569eadb7e9e764b4629e4f3413e241cb2e4d6fecf3b3/aiohttp-3.14.5-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:939042d5cda21d41a6f512e7cc8b8e33a2aebff863352251da495fbd91b673b5", size = 540673, upload-time = "2026-10-11T01:01:41.354Z" }, + { url = "https://files.pythonhosted.org/packages/60/2a/d35f3ba4cf157b072e3b674bf9983047ca5ea5173c995d32d877e1191d36/aiohttp-3.14.5-cp314-cp314-android_24_x86_64.whl", hash = "sha256:6da32b5ff3fd78d244e37300463434c7145162bfd2b6e9e915ab164da37f7343", size = 554087, upload-time = "2026-10-11T01:01:43.719Z" }, + { url = "https://files.pythonhosted.org/packages/fc/d2/61a33880ca4eaca95a9c60ca3f6beed15555af1028652dfaac601627787b/aiohttp-3.14.5-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1b438b73c38111818d0c9d6a5c2bfed8584c8e503a49ef085d70e874ec846738", size = 522613, upload-time = "2026-10-11T01:01:46.154Z" }, + { url = "https://files.pythonhosted.org/packages/31/1d/de579b299d2225dc2c6fd99d579d91f16c02a913fb5af9a3cf2fe9bd88ba/aiohttp-3.14.5-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:755933b107ea7a6a9ac916f635a70595a5b1a32fac10a8ff0b9f2ab88555550c", size = 529682, upload-time = "2026-10-11T01:01:48.477Z" }, + { url = "https://files.pythonhosted.org/packages/f4/4a/ddb923564e15e053b6e060b0036e1694dcadcb13aa476c5a87dcad20e336/aiohttp-3.14.5-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:b3cc509327c7b27f6f4727a8830f4004f6df7766e179f2f4b8e54e65c0bec5d3", size = 540120, upload-time = "2026-10-11T01:01:50.474Z" }, + { url = "https://files.pythonhosted.org/packages/3d/36/a640fbecaa53727a5900b892bdbe17b5f3e8cc88903e22864fe41b654def/aiohttp-3.14.5-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:7bd8ac754ebd6733a3e2a0dd1674c4d8ab086196803fd8dcd776f07b4e2607d9", size = 818795, upload-time = "2026-10-11T01:01:52.665Z" }, + { url = "https://files.pythonhosted.org/packages/ef/b6/d52ca608859e271b5fa7944074802dc45f60e52c318a4ddc34edbf73586e/aiohttp-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:e724a7b6091f0b1ac064f9d1b15ff9ec52e6033a86cdae649e5f086e32a3c0db", size = 549667, upload-time = "2026-10-11T01:01:54.65Z" }, + { url = "https://files.pythonhosted.org/packages/ce/b5/05b8ac39a76ff4bca89f42a4c2471560c71f894ff6e4bc16158c951874e3/aiohttp-3.14.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c32e26310cc10e547f53cd13d39a369034f69dcb7d749d5cb0e5f67bc196b6ba", size = 548922, upload-time = "2026-10-11T01:01:56.547Z" }, + { url = "https://files.pythonhosted.org/packages/19/b0/5aa186d56ce2334dabe29b70bd99dc8ae926ee44184c0de64a53d415a4f3/aiohttp-3.14.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1eb8167961ec4dfcc8cb9dd50bd0ee72519f7ef496be95203e49e27b01618382", size = 1882422, upload-time = "2026-10-11T01:01:59.258Z" }, + { url = "https://files.pythonhosted.org/packages/db/f7/7d5c91bb9620db300c8ddb05337a9014301acb626223faff3abcb8ea47d7/aiohttp-3.14.5-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c1d60eafd9c7e8e74abd03a5b00df44e7febfe6d9b89b559c0a6551eef0699d4", size = 1843621, upload-time = "2026-10-11T01:02:01.417Z" }, + { url = "https://files.pythonhosted.org/packages/30/0a/b208953b96d8f24b75f6da704f508e6c5cf3022f52b60c61933df082e89c/aiohttp-3.14.5-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:137351bf20bbed9a65e839f4a4452ac377389bdb2f2857d2acffef38f5e9f2d1", size = 1927915, upload-time = "2026-10-11T01:02:03.697Z" }, + { url = "https://files.pythonhosted.org/packages/f6/79/90ebcccb55e2d1e11a1fed581d83bb966e38fb35fb4b2577fdc980f8707a/aiohttp-3.14.5-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:fba47bc2c3d7303c3d027c6cf4d07626c37b1314ac81f5820c31032e0ca1f677", size = 2036339, upload-time = "2026-10-11T01:02:06.046Z" }, + { url = "https://files.pythonhosted.org/packages/a6/66/55a8904b3a129fafdf94f9cc0a2e4ca09a3c914650be52355db7ad0bbdb6/aiohttp-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:94684b879ac1d71e4238850c99b62dc1b28d9086b156a2555f082010b85a865c", size = 1888041, upload-time = "2026-10-11T01:02:08.384Z" }, + { url = "https://files.pythonhosted.org/packages/0b/b8/96b25da7329a52e42c812b1e8b076386039ec4fc312afa043d173d8147fc/aiohttp-3.14.5-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:56572c42e3ecd636de8d2c3dd54cf5fc939cb5c32eb56297f176a0d366fac622", size = 1703849, upload-time = "2026-10-11T01:02:10.903Z" }, + { url = "https://files.pythonhosted.org/packages/1b/43/fbf976e3ae4c038d6f5c84945ab2150298c2d71201674d4e53d158063e75/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a95529a92a446db351675f4aab518feaf5e99842f63f5dd17160c2b74f382db3", size = 1849703, upload-time = "2026-10-11T01:02:13.15Z" }, + { url = "https://files.pythonhosted.org/packages/8b/7d/218e912f4c1d89bde7ac551409be57ad2f6121638e56942d395a7cb1fa58/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:3edbece0379b8b4aaa67619b8aa2399bb66fce372cd5911098a434ea77220aa0", size = 1852695, upload-time = "2026-10-11T01:02:15.295Z" }, + { url = "https://files.pythonhosted.org/packages/5a/42/252a1b9287e3b6e393a1c3bd1776f36af30f5f25f071bbf2b0cb7eba9116/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:56d9828f204331a5ca8850fcfe2bcce95a149f1f223f60cc7216e5524978e480", size = 1893493, upload-time = "2026-10-11T01:02:17.93Z" }, + { url = "https://files.pythonhosted.org/packages/78/97/71cae83d5100556fad1521684f7cd1e3e578432644f850245ed3bd969310/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:20064a177a070d789ee64a50b01a9161d3468e989baacfc6c714aa685c4b332f", size = 1693468, upload-time = "2026-10-11T01:02:20.666Z" }, + { url = "https://files.pythonhosted.org/packages/1f/69/73d88e97a8b5f0ca7a946d0011c0de99fb188b1687c7948ecd0553dc5bf0/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:81c2b3dfd56c62bee6108e4852d5970b4cf9086390b6983f52b666e878c1f115", size = 1915398, upload-time = "2026-10-11T01:02:23.011Z" }, + { url = "https://files.pythonhosted.org/packages/05/f0/881644bcb15d4b258daea9b720a0af9dc4330496cc8d6ade9090cdd0cffc/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:09ec102b4b8c9a920275733bbc11fdbb615efe6f9231a06007c0218d336fb77a", size = 1871470, upload-time = "2026-10-11T01:02:25.278Z" }, + { url = "https://files.pythonhosted.org/packages/7f/de/19d9ebbcce5aedaa3242d8a99ff8816a60bdb7629fb0084bf4a45bfd1f62/aiohttp-3.14.5-cp314-cp314-win32.whl", hash = "sha256:9c428eb2bd8817588d16a0ab898aa4eb5d141f896aa2b394cc79a4cf61d9a8e2", size = 485517, upload-time = "2026-10-11T01:02:27.579Z" }, + { url = "https://files.pythonhosted.org/packages/a9/74/8cdaf0e58c2588371670d5a9a8215bbb971d36940b6e5d051967dd05c07d/aiohttp-3.14.5-cp314-cp314-win_amd64.whl", hash = "sha256:6f967dde489ca6a8c02d093ab245d2cbf50ccb5c36adf0188b17b0ca39d24b67", size = 511755, upload-time = "2026-10-11T01:02:29.685Z" }, + { url = "https://files.pythonhosted.org/packages/1a/6b/e0100e25502430a531c7cf1482a378d0b65bf728ab60c01ee270e56bc469/aiohttp-3.14.5-cp314-cp314-win_arm64.whl", hash = "sha256:1d2d981b53dd09a319e3570ef8cc3bbc3ef86f5a7abef0f6b2bff3867db3a9e7", size = 495151, upload-time = "2026-10-11T01:02:32.163Z" }, + { url = "https://files.pythonhosted.org/packages/9d/c2/ca2ead7b655688c53c03aeeb6e96e6851c9ff08d6be7b13802f53a6ae8fd/aiohttp-3.14.5-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:9ce66feae6ac65327379460380549bf1b8df8e17c4e25df2a2bcf168272e3bed", size = 855396, upload-time = "2026-10-11T01:02:34.443Z" }, + { url = "https://files.pythonhosted.org/packages/a7/70/22206fea409255a240c926ce11de48de354ae2bb90ca44f709c05497585d/aiohttp-3.14.5-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:27c2322e03f66101acb09869ce1cf1efc04994ee95e1735b69827bf8c8b9d781", size = 567734, upload-time = "2026-10-11T01:02:36.644Z" }, + { url = "https://files.pythonhosted.org/packages/ce/e5/79a36c118308b56f8667d67e05d2fb6dc638ab45985704cdb199631bedaa/aiohttp-3.14.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ff75a7537413a86e7cafe98e0e1d6e3dc4b15c6349896e7d5c6b881bfdb6d550", size = 567379, upload-time = "2026-10-11T01:02:38.757Z" }, + { url = "https://files.pythonhosted.org/packages/63/a3/2ebec7dece3b1f02c30d2e484647f6f7b13952b1bb40a4cb285b849e8432/aiohttp-3.14.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c061aa954daaf57d2a4b8374f9fca621ef0e1b603584431c220c22458c59b6d", size = 2050686, upload-time = "2026-10-11T01:02:41.169Z" }, + { url = "https://files.pythonhosted.org/packages/3a/d2/7e4d093db2f4450482652e7ef19a9e19919028f5135aa52bc4078c3beb80/aiohttp-3.14.5-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:1612fa5857b37bf32e5c1eaeefb96e3b01e9c70679eec81f0934e8a600080863", size = 1915077, upload-time = "2026-10-11T01:02:43.563Z" }, + { url = "https://files.pythonhosted.org/packages/a6/88/bd40d09958442a0a1df67da81de496361d6e2afc04f9db2950d835da750b/aiohttp-3.14.5-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:adbeee7d6fd4cf5fe0aece2fb3edc4243615d3180430ba8149d01a90670cac99", size = 2027204, upload-time = "2026-10-11T01:02:46.185Z" }, + { url = "https://files.pythonhosted.org/packages/63/eb/3a601c1f8d3103c1a60ea981f20924855da9f575d2007fc38f8898b792fb/aiohttp-3.14.5-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b2966998927d7bed9db12c0a4647b0c7b179755878fc9c357fe1ffd3e3b0c1a5", size = 2149520, upload-time = "2026-10-11T01:02:48.812Z" }, + { url = "https://files.pythonhosted.org/packages/22/d0/4e41bfe1b1ce1cb6f6d2e59fa7a88ef5cf92c402b2d07e9018778ba9edbc/aiohttp-3.14.5-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8e317e0fb6b16212c881d2205a7d87414c29acd69320b3aa6dce9d9c7b86fe4f", size = 2002039, upload-time = "2026-10-11T01:02:51.293Z" }, + { url = "https://files.pythonhosted.org/packages/6f/5e/72067019545c502b881b031153c437752ecef48d7d213bc0218ccebb4bfb/aiohttp-3.14.5-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50343c1757b4b6f6708eeaf24534b32f19dfb99fb1b762c00420867a62fc81e0", size = 1786164, upload-time = "2026-10-11T01:02:53.533Z" }, + { url = "https://files.pythonhosted.org/packages/d9/fe/7741efd6119bfb7a00827fe6f7b84b4409de58d888ae21adc5a9a6824992/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:083673c7a94c3ea035caaa5ca04288bdb44887abfe1f5ba23294e6a4b03efd2d", size = 1970689, upload-time = "2026-10-11T01:02:55.888Z" }, + { url = "https://files.pythonhosted.org/packages/43/e7/342a13bf67f34d269bf2f7e870ecd72b99c832cc6f0a271a9210c0ebfb84/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:2528cb4c6b92008c76ac9ac6298624069bb2db91ff4929905512d1d84485f658", size = 1951967, upload-time = "2026-10-11T01:02:58.467Z" }, + { url = "https://files.pythonhosted.org/packages/e7/d4/fdb3b27340617e5e64df18a70fa89097778652ea5c7c7e2f79def76999c3/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b1b8ece1e71132d2afba4dbc0c3d62c766e25165990b25db1196c04969eb3d84", size = 1968511, upload-time = "2026-10-11T01:03:00.883Z" }, + { url = "https://files.pythonhosted.org/packages/83/b2/e8f88298de78d1a951f36f9f966d38ec6ed1d4721303ba02064a545e8aa6/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:fce9523df31cea6284f3e2c479876750d7687cf671d7b25d32b19effc0e86441", size = 1778497, upload-time = "2026-10-11T01:03:03.206Z" }, + { url = "https://files.pythonhosted.org/packages/22/68/9ccdb93d664345c546be7f34480b921774d8c0d98f47e70d7e03b115d475/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:09e0eb18c7e0c8777e2f9149de63799195b9b3ca1b5c81ba6f32f2c6b8628210", size = 1999676, upload-time = "2026-10-11T01:03:05.829Z" }, + { url = "https://files.pythonhosted.org/packages/57/4a/a33cfa6dcb00e94194ae4fe710432ca4ed111e016356b4ba4d2f4c3a124c/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6774814fd5c338e72ee0da5cbb9432816df450e69c019f72b5d29bdec2a1792d", size = 1963437, upload-time = "2026-10-11T01:03:08.196Z" }, + { url = "https://files.pythonhosted.org/packages/f4/20/eacbecfea3b5c3dcbfc9b023e3a5460f43e5dda16d06a2877ebe7184c3f3/aiohttp-3.14.5-cp314-cp314t-win32.whl", hash = "sha256:33f706574e32c6e694f352a856e05caf18f7f2c871b3e87b41c55ea452b409ab", size = 503973, upload-time = "2026-10-11T01:03:10.481Z" }, + { url = "https://files.pythonhosted.org/packages/ff/78/18eec294f6c8c5dc845dcf6d730a0147d8d0f17e86138a7bdb85e43a30fa/aiohttp-3.14.5-cp314-cp314t-win_amd64.whl", hash = "sha256:5ba14a839fbe87cf7c12a6b5661c05f324a296eb8363141edb3944ba63d4c9d3", size = 531190, upload-time = "2026-10-11T01:03:12.716Z" }, + { url = "https://files.pythonhosted.org/packages/9d/39/e53f8169acc85271ebd12b5b32ad7f1541b35639ccbe0f49034c64785d10/aiohttp-3.14.5-cp314-cp314t-win_arm64.whl", hash = "sha256:1061b364556e8172e8d46b0b183adeeb73e8c42d30ebc745591e1bd89acad52e", size = 510360, upload-time = "2026-10-11T01:03:15.08Z" }, + { url = "https://files.pythonhosted.org/packages/f3/1c/06d89f58b2db3ee92dd377217659d587e06f973e57bf0a97a0d8a4586c0c/aiohttp-3.14.5-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:788ecaa9c10533b786ce5ba70c4f2df78ad41819fd00a6c99d92b66f9a32e1da", size = 540674, upload-time = "2026-10-11T01:03:17.483Z" }, + { url = "https://files.pythonhosted.org/packages/18/39/5e822e038f496f0540ada91e27099d48f9e7f919b6c6deb4cf6db36cc706/aiohttp-3.14.5-cp315-cp315-android_24_x86_64.whl", hash = "sha256:5c76f1802bab718a68ac3cce447160605c734551f95c67ae90fa1132b215cb29", size = 554183, upload-time = "2026-10-11T01:03:19.71Z" }, + { url = "https://files.pythonhosted.org/packages/9b/ff/0cf2619d902b5b160762422a7e5e02091295766a7fe4fcf5b9a655e386c1/aiohttp-3.14.5-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:a6d02b4c38de03d9c7617813433e6a0fb6b522797974177d69d9dad431900833", size = 523160, upload-time = "2026-10-11T01:03:22.193Z" }, + { url = "https://files.pythonhosted.org/packages/86/99/3553abfc53a40849dbaacc3f54c730ec58410809ffa2d05885ae56108f2d/aiohttp-3.14.5-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:20726f9782d5c2744c1c66255842d1d163bb3edcf768b8de25216bf47f7b6ccf", size = 530311, upload-time = "2026-10-11T01:03:24.435Z" }, + { url = "https://files.pythonhosted.org/packages/fe/a4/5d25f73754bc1e8f983ba704e86d641aea290c967f195f2aeebdaed2bd84/aiohttp-3.14.5-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:248d779ad720b49d4fb355720e60c9e5f444f95887bc16974fea48fc56c41789", size = 540274, upload-time = "2026-10-11T01:03:26.698Z" }, + { url = "https://files.pythonhosted.org/packages/29/a4/07eda5db2e3ee017d9590f36c12a94ec6f1f50516e8df78672373dfc7185/aiohttp-3.14.5-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:0a8ea271867e360ac985ae607f4a23ad9a38414b9aca1d49ec98839ae660e49f", size = 819239, upload-time = "2026-10-11T01:03:29.481Z" }, + { url = "https://files.pythonhosted.org/packages/cb/aa/a8723dd987a696dd48d4cf2f0088e589ce77caebff0b96f2a78c20424380/aiohttp-3.14.5-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:823c910f046f23f4c713b8d99a2242dc65f591cb45ee86418fa11762a3c2963c", size = 549832, upload-time = "2026-10-11T01:03:32.02Z" }, + { url = "https://files.pythonhosted.org/packages/29/5c/969a1b72692055fd2a419590c41847ec9144fefb97b75ff1cde5b6372891/aiohttp-3.14.5-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:9b42db919715e91eb76acf3bc492a9a7ccd8bd9adc6745c1412b689735269f14", size = 549234, upload-time = "2026-10-11T01:03:34.469Z" }, + { url = "https://files.pythonhosted.org/packages/38/05/8e3e07fd8a0d33d06955ff4e54a1cb92f4bce347ff55e441dc3e25a7b5e5/aiohttp-3.14.5-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d3112585250b199296c26ca6e0131640b6a8d01bab8b232d2eb3763ed469de11", size = 1891314, upload-time = "2026-10-11T01:03:36.899Z" }, + { url = "https://files.pythonhosted.org/packages/b6/b3/05a79ce2e25f024e93de30c94f39dc6aa6e2bc1e9c531a5c4b18dc61b7a4/aiohttp-3.14.5-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c147451b4a58e7050f7f7394e6c467867c84161560001f9ad4fb2d1446743946", size = 1884372, upload-time = "2026-10-11T01:03:39.334Z" }, + { url = "https://files.pythonhosted.org/packages/94/52/0fd8af0717db109eea258191b326b5cb5847fb88928bfa6c862fd78b9ad3/aiohttp-3.14.5-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bf163cc701f3d4ac43ba7d97771bf5fd955220ef5500ef3ee847bc0ecfbf4ec1", size = 1930957, upload-time = "2026-10-11T01:03:42.172Z" }, + { url = "https://files.pythonhosted.org/packages/4e/b3/fa78733da88812bf9fb193913fb0ce1548f8b6912047633fdf88a758ff8c/aiohttp-3.14.5-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f8d40ce41991e9d56fab4f5dc4a51fe59bc3b5c77c27f4b148963064d00232e8", size = 2038886, upload-time = "2026-10-11T01:03:44.646Z" }, + { url = "https://files.pythonhosted.org/packages/cf/f5/2fcc5e30053a938286f17d0edf3f0850b8061b984256fa7c26850b9c8809/aiohttp-3.14.5-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:276a4fc00b1d9ae492b802763a789c5b86328b989c5ea169f2faa447d6a11c7c", size = 1894470, upload-time = "2026-10-11T01:03:47.304Z" }, + { url = "https://files.pythonhosted.org/packages/62/2a/f87feb42abe8e6a7c03814dbcb711540849a1e90aa392055f3183c643610/aiohttp-3.14.5-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50983e3be33d8c0942ab88cec3905b10602f64c469b20153c48c5d4e558dd016", size = 1716273, upload-time = "2026-10-11T01:03:50.121Z" }, + { url = "https://files.pythonhosted.org/packages/81/b2/adf1f960dd977722ed1347d33da512a1624807114f57a3b91f5cc828e081/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:16c8abd5bca220a47efe667d26f8460124c81810787e79ee87b242677563d9dd", size = 1857513, upload-time = "2026-10-11T01:03:52.959Z" }, + { url = "https://files.pythonhosted.org/packages/d7/fd/ef8d910e641de4160026a513ace5888b7f92826bbc3fd90ced05d55a828e/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:0790ec66fa4013e83c53b9025a45d454723da1a2fce28b3208c9b32d08af162f", size = 1887704, upload-time = "2026-10-11T01:03:55.641Z" }, + { url = "https://files.pythonhosted.org/packages/7e/db/6c9142f941cba8d35be8e1fae6ea2bd390e754fc14076b8147aee1a4592f/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:cb11a971a3aea10f9b8373be628f1df932964fc6c6b174516d318a48c3ac4412", size = 1895684, upload-time = "2026-10-11T01:03:58.18Z" }, + { url = "https://files.pythonhosted.org/packages/e6/7c/6a6bd9a72e576d376c668333b00c51c6147aba4fb863ed6c94996d497eca/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:932ce7e694bbc29b2bf6f64f2343c27d148d4997c771d01bdade4639b6749ff4", size = 1706299, upload-time = "2026-10-11T01:04:00.8Z" }, + { url = "https://files.pythonhosted.org/packages/69/ec/d2cc494242f8c4d3d1cd70baf591742818a74386dc3b84af3195c5c4fced/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:a7d470cf7b206e6359fc77b1b860632fde400d5a2ed59cd0181b93a686bc81ee", size = 1916645, upload-time = "2026-10-11T01:04:03.892Z" }, + { url = "https://files.pythonhosted.org/packages/a3/6e/e852c53647e815db09a1b6b5ab634f54bd736412397e11940feef4d2c89a/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:6e1d8637cf73eebc92eba2e11d4cfff98a3b562f2505bd75bba766d908926e8d", size = 1875408, upload-time = "2026-10-11T01:04:06.922Z" }, + { url = "https://files.pythonhosted.org/packages/fe/f6/72ab6ef20c332399be593bac543d2c24a6d241e39d3540ce9f95a63e4bd2/aiohttp-3.14.5-cp315-cp315-win32.whl", hash = "sha256:fbdc5ec49f9ca3cd24955cf3520b10a4d4c901ba2572094c84274e9e7eb30534", size = 485590, upload-time = "2026-10-11T01:04:09.626Z" }, + { url = "https://files.pythonhosted.org/packages/06/eb/e9de75b8c6d2170c42c08ff303abf857ea8a6d9d9b6e99b5aba40f15e962/aiohttp-3.14.5-cp315-cp315-win_amd64.whl", hash = "sha256:a9d3983bd6ab7aa1cfd573544ae98df9b6cb6912a5185a198263e024a636861d", size = 511740, upload-time = "2026-10-11T01:04:12.277Z" }, + { url = "https://files.pythonhosted.org/packages/fc/25/455f3c2785eb0d50748cffd0abd07500815f419a9495b14610b7622d8d2d/aiohttp-3.14.5-cp315-cp315-win_arm64.whl", hash = "sha256:e29347c142cf6e99e0dff5e2995ead1d50fa3b51bf37a7c726a7ccfe5419745a", size = 495171, upload-time = "2026-10-11T01:04:14.667Z" }, + { url = "https://files.pythonhosted.org/packages/e7/6c/497f0a98782eebfcf0f02a7fbdef5428148bd426027140cbad494cf842b5/aiohttp-3.14.5-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:9bf1d5dcc15204d9ec8b8ea4c18fd66e6b80e5de1f4ecbafb3a2f2740f8039d4", size = 855638, upload-time = "2026-10-11T01:04:17.154Z" }, + { url = "https://files.pythonhosted.org/packages/9a/c5/55c0cef2572af9b1ee81608f7c0a1bf74e6c9151a73b04915d933f192335/aiohttp-3.14.5-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:14f04769cfefe4734016a856a83af36133cd17779cef9ae817f812b8ba9d6d51", size = 567455, upload-time = "2026-10-11T01:04:19.702Z" }, + { url = "https://files.pythonhosted.org/packages/4d/47/e1a0e39f4a2b881f6071225afaf94a6547001b5aefc1566734d73c685934/aiohttp-3.14.5-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:6e4251c0ba4624a68a2c11471a1ac54c3306876c21f0ae86de085cc9241c8905", size = 567836, upload-time = "2026-10-11T01:04:22.235Z" }, + { url = "https://files.pythonhosted.org/packages/c3/1d/817d85836f52b687160064a326e62e037dc42f1ad5b6b5188a70e5c134b5/aiohttp-3.14.5-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e4f5cf4dc72a71c4cfa9751b4950be22f733626670230d46e7d606592aa22d59", size = 2051409, upload-time = "2026-10-11T01:04:24.821Z" }, + { url = "https://files.pythonhosted.org/packages/f7/25/e8ea6fc212a9aabce982917346ce8ecab0929c74b60232a056dd11c99da0/aiohttp-3.14.5-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:dbf53ae2601b7fd5a93c3944deea3a78d40f495226d582c35ef7a433425ce2b2", size = 1936493, upload-time = "2026-10-11T01:04:27.456Z" }, + { url = "https://files.pythonhosted.org/packages/24/33/de0517f71f1a19feea4aff78a2ec4ec2d98634129ec30ead78fce2f8f81b/aiohttp-3.14.5-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:657291433bf4dd3142f3abac495764cd47d0c7c92087751e6666c6447e65fcef", size = 2021405, upload-time = "2026-10-11T01:04:30.276Z" }, + { url = "https://files.pythonhosted.org/packages/c4/11/ddaf2e7930543e9f0cad3a1c54e1af0c1bd2fae3973d568c4263d3b010e9/aiohttp-3.14.5-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3e51a27980c3788e6e6b3325d694fdd4898087fa8a86b2763af77b39353da41e", size = 2142017, upload-time = "2026-10-11T01:04:33.022Z" }, + { url = "https://files.pythonhosted.org/packages/1d/7b/58784353c06de8adc20f426daad3d85dd86fd55331c713a3f4b638c94573/aiohttp-3.14.5-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:82c7583cd3dfdc7dcc927835b4f6c7faae7ecc1ba3ca5879321621ae2e6f8e84", size = 2002482, upload-time = "2026-10-11T01:04:35.94Z" }, + { url = "https://files.pythonhosted.org/packages/b9/f0/417d9535caa9e165ffe6a53e2347a78107e7c87dcb0e10aca315c3af0344/aiohttp-3.14.5-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6fdcd6af7e2e51d1ba1b4bea16e97b074bcb7b5dd0246a9d8201341bb28085a0", size = 1791774, upload-time = "2026-10-11T01:04:38.733Z" }, + { url = "https://files.pythonhosted.org/packages/98/01/25e49c2e8a01b9f0e19ca0a8448ad50aa2bdf96c8cd41e92bd45af044784/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:c8859a013ae0de1074660992139a1a440df3e6b219b86cf0d3f11c2692bb4fe3", size = 1970358, upload-time = "2026-10-11T01:04:41.66Z" }, + { url = "https://files.pythonhosted.org/packages/2d/fc/c132fd3465b6c7e4ce0193154f602c3e6c46b680e4da7eb3bd0d8a40d1c7/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:8966ecac808dd5f473c9c4cefd10cd3ffda71c18a4d3493b7c7d2ae1803bf2cc", size = 1969192, upload-time = "2026-10-11T01:04:44.66Z" }, + { url = "https://files.pythonhosted.org/packages/95/4e/d58b45e7dba4eb607eca11fc0a4aa77ae0f39c11afa804635a61ce18cff4/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:3093b72c215bda16ce961a6d073f6e71d46e022962a9d5d457c5d4d421c78b57", size = 1963618, upload-time = "2026-10-11T01:04:47.505Z" }, + { url = "https://files.pythonhosted.org/packages/a2/d9/f6ac50946efb3490428ef52b56e62c1c6b7f9c6ff3ec6083535526c83e60/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:149fb56caf7acb67073126f675d0958d9c4b3125fcd3f6d4877df98aa8a97ce9", size = 1784817, upload-time = "2026-10-11T01:04:50.287Z" }, + { url = "https://files.pythonhosted.org/packages/d0/2f/f255eb63da788cd8a452fe350869c03266ccad7d884925f6963c87808f24/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:293d3ae7c6a0ed176a42e59a1b5fde825ead65c835360f734148e96729f928d2", size = 1995956, upload-time = "2026-10-11T01:04:53.213Z" }, + { url = "https://files.pythonhosted.org/packages/d9/9b/241aa3393eaafda0034470add1625f82a4c252901108723b283a9b0b32ca/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:3f2dcc00191fd563e9075181a14ec31d7dd63223ced7582cc70a15a499de0c79", size = 1967794, upload-time = "2026-10-11T01:04:55.958Z" }, + { url = "https://files.pythonhosted.org/packages/5f/7f/a68e689288c9e4bfcf8d0979f2b12b774bf01861985420df6150eba5448e/aiohttp-3.14.5-cp315-cp315t-win32.whl", hash = "sha256:7779cd97e61ebe583ec2f1c5616cdd038aa08a4453b1848c67842176d054948e", size = 503876, upload-time = "2026-10-11T01:04:58.978Z" }, + { url = "https://files.pythonhosted.org/packages/a4/78/49b0299da6d54de19fc6fdc6889d50233ac47d192a461624f4fc010fde83/aiohttp-3.14.5-cp315-cp315t-win_amd64.whl", hash = "sha256:0e6f16f5e49c4b8267988c05ab07760d7064cea57d077c3d068d04b0fbb992cb", size = 530957, upload-time = "2026-10-11T01:05:02.23Z" }, + { url = "https://files.pythonhosted.org/packages/21/d4/b0afc936aeb6d2f93157e3408b069ec5d7934429ae7d023de5e0953b1887/aiohttp-3.14.5-cp315-cp315t-win_arm64.whl", hash = "sha256:1aead151c3abbac6b32942e452020cb66d7efc099d253cc6c20f748e926c858b", size = 510408, upload-time = "2026-10-11T01:05:05.362Z" }, + { url = "https://files.pythonhosted.org/packages/68/30/173960c42b05a6c59f7558e4b12a4b0d9ba376cf6aa9bde7f9e08a30ca8d/aiohttp-3.14.5-py3-none-any.whl", hash = "sha256:efc21a454892828368b11c2c780de0ff8bc991f73f6b99c6b66e56205470929b", size = 279517, upload-time = "2026-10-11T01:05:08.523Z" }, ] [[package]] @@ -422,11 +464,11 @@ dev = [ [[package]] name = "certifi" -version = "2026.5.20" +version = "2026.10.23" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f3/ce/ee2ecad540810a79593028e88299baeae54d346cc7a0d94b6199988b89b1/certifi-2026.5.20.tar.gz", hash = "sha256:69dea482ab64caa7b9f6aba1c6bf48bb6a5448d1c0f1b17ab42ad8c763a5344d", size = 135422, upload-time = "2026-05-20T11:46:50.073Z" } +sdist = { url = "https://files.pythonhosted.org/packages/fd/11/b524cbd9bbdaca58608e4cf4053fd463417549e1959fa8d3aa18319f9555/certifi-2026.10.23.tar.gz", hash = "sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd", size = 136225, upload-time = "2026-10-23T11:36:16.478Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/59/8c/57e832b7af6d7c5abe66eb3fbe3a3a32f4d11ea23a1aa7131371035be991/certifi-2026.5.20-py3-none-any.whl", hash = "sha256:3c52e209ba0a4ad7aebe60436a4ab349c39e1e602e8c134221e546902ad25897", size = 134134, upload-time = "2026-05-20T11:46:48.578Z" }, + { url = "https://files.pythonhosted.org/packages/32/d1/a3652fe2c19134d0d15922177821d863cbd7e842d53a21bbe7e8e3a1b5ac/certifi-2026.10.23-py3-none-any.whl", hash = "sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1", size = 135082, upload-time = "2026-10-23T11:36:14.763Z" }, ] [[package]] @@ -770,11 +812,11 @@ wheels = [ [[package]] name = "filelock" -version = "3.32.0" +version = "4.2.7" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/c0/80/8232b582c4b318b817cf1274ba74976b07b34d35ef439b3eb948f98645a1/filelock-3.32.0.tar.gz", hash = "sha256:7be2ad23a14607ccc71808e68fe30848aeace7058ace17852f68e2a68e310402", size = 213757, upload-time = "2026-07-21T13:17:42.898Z" } +sdist = { url = "https://files.pythonhosted.org/packages/e0/14/73688a22e91cfcfc6837a011ffa572e2ba3c348765f7bd482d8436fa9b6f/filelock-4.2.7.tar.gz", hash = "sha256:31f6f7e3a8b6f0bd89114d30c5d5218ea1cfb63e5c4aa695b7559314a209bc7f", size = 661450, upload-time = "2026-11-02T16:09:15.119Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/06/79/b4c714bef36bc4ec2beeae1e0c124f0223888cd8c6feb1cdc56038116920/filelock-3.32.0-py3-none-any.whl", hash = "sha256:d396bea984af47333ef05e50eae7eff88c84256de6112aea0ec48a233c064fe3", size = 97732, upload-time = "2026-07-21T13:17:41.55Z" }, + { url = "https://files.pythonhosted.org/packages/1d/1a/1fcf0d3886bad15b92459a0e529dd86a1ec4d9ef30e789df48044fd3698c/filelock-4.2.7-py3-none-any.whl", hash = "sha256:d08972bbca2b8767ee552aff877b091dd111ffb1d22de7de885766ea7d719d5e", size = 164345, upload-time = "2026-11-02T16:09:13.588Z" }, ] [[package]] @@ -1087,65 +1129,90 @@ wheels = [ [[package]] name = "msgpack" -version = "1.2.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/31/f9/c0a1c127f9049db9155afc316952ea571720dd01833ff5e4d7e8e6352dbb/msgpack-1.2.1.tar.gz", hash = "sha256:04c721c2c7448767e9e3f2520a475663d8ee0f09c31890f6d2bd70fd636a9647", size = 183960, upload-time = "2026-06-18T16:13:52.594Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/f4/6b/e9b1cdc042c4458801d2545ed782a95f3d6ba8e270cce8745b8603c7f748/msgpack-1.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:29a3f6e9667868429d8240dfd063ea5ffdc1321c13d783aa23827a38de0dcb22", size = 82812, upload-time = "2026-06-18T16:12:45.022Z" }, - { url = "https://files.pythonhosted.org/packages/0c/3a/dd518a1bf78ed1e9ad8afe57307c079a00eafe4b3068932a27ca1ea56b4f/msgpack-1.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:aded5bdf32609dc7987a49bbbd15a8ef096193f96dd8bbeb791de729e650acf5", size = 82739, upload-time = "2026-06-18T16:12:46.025Z" }, - { url = "https://files.pythonhosted.org/packages/70/e0/7ba9e1542bf0771a27b8b37c1316e3f95ae9d748fd765284655c476ad4ef/msgpack-1.2.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:146ee4e9ce80b365c6d4c47073da9da7bcec473e58194ceee5dd7620ace77e06", size = 414233, upload-time = "2026-06-18T16:12:47.029Z" }, - { url = "https://files.pythonhosted.org/packages/03/8d/671d81534ea0e2b0e8a121be100020da09eb78861fe3aa8f3ef7dcd3bed1/msgpack-1.2.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a28d076ca7c82b9c8728ad90b7147489449557038bed50e4241eb832395169b4", size = 423843, upload-time = "2026-06-18T16:12:48.19Z" }, - { url = "https://files.pythonhosted.org/packages/d2/b6/e5c737515ed1f166664b87601b532f58cbb73d8aa6a90b99f7c2c5037e8e/msgpack-1.2.1-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7d31c0ac0c640f877804c67cb2bc9f4e23dc2db97e96c2e67fa27d38283b41f8", size = 390772, upload-time = "2026-06-18T16:12:49.624Z" }, - { url = "https://files.pythonhosted.org/packages/a8/46/62ed8c2e87d7021eab19921594d961ef3aa3794eec76c716dc30f3bfd433/msgpack-1.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8ff92d7feeaf5bc26c51495b69e2f99ed97ab79346fb6555f44be7dd2ac6503b", size = 409559, upload-time = "2026-06-18T16:12:50.936Z" }, - { url = "https://files.pythonhosted.org/packages/70/ff/59aa3887b860bbf43532835e192b1c388a17590d6068ae4f8b2bc74c906e/msgpack-1.2.1-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:779197a6513bab3c3632265e3d0f7cb3227e62510841a6f34f1eaa37efbb345e", size = 387838, upload-time = "2026-06-18T16:12:52.161Z" }, - { url = "https://files.pythonhosted.org/packages/09/11/f8563e471093420cf6478cb3271a0175d8402b82d879783d4035d2d03360/msgpack-1.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:67f6dd22fa72a93752643f07889796d62739a13415ee630169a8ce764f86cf9f", size = 421732, upload-time = "2026-06-18T16:12:53.556Z" }, - { url = "https://files.pythonhosted.org/packages/57/cf/e673683c4c6c90c1022b24c65af4b03eda72b182a1176ef6449069d66acc/msgpack-1.2.1-cp311-cp311-win32.whl", hash = "sha256:91054a783328e0ea7954b8771095705c8d2243b814743fbaadf14552c9c52c5d", size = 64091, upload-time = "2026-06-18T16:12:54.821Z" }, - { url = "https://files.pythonhosted.org/packages/3f/07/ca212739d179f9083bff2c7c08c24101c3555a334fadc2b876b18768a3ae/msgpack-1.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:2eda0b7ebb1283a98d3e4492ac933c8af6aff59fd3df1c3ed024f536af4b1dc8", size = 70462, upload-time = "2026-06-18T16:12:55.898Z" }, - { url = "https://files.pythonhosted.org/packages/6d/be/6798347b425e26f35db82e69dd83c09716c856a3714e7bffc4c0860fd830/msgpack-1.2.1-cp311-cp311-win_arm64.whl", hash = "sha256:6ee967f7c7e1df2890c671ff2ee51a28ded0efc95da3e507176dee881ce36c66", size = 65059, upload-time = "2026-06-18T16:12:57.053Z" }, - { url = "https://files.pythonhosted.org/packages/bc/dd/9e8cbd8f5582ca4b590336f2b91ee5662f6a6ca562b565abaf696a0f81ff/msgpack-1.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:2ef59c659f289eddf8aa6623823f19fa2f40a4029266889eac7a2505dd210c35", size = 83531, upload-time = "2026-06-18T16:12:58.249Z" }, - { url = "https://files.pythonhosted.org/packages/50/2e/ebdb85a8da151397a2790363676b7ed7c125924fe618e4c6d8befb0cc62c/msgpack-1.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d3567748a5107cb40cdf66a275430c2f87c07777698f4bfd25c35f44d533258c", size = 82657, upload-time = "2026-06-18T16:12:59.396Z" }, - { url = "https://files.pythonhosted.org/packages/26/aa/753ad8b007b464e1d8aa0c8e650b9c5f4f725e658fc5ac8a7635c55b7f6e/msgpack-1.2.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:60926b75d00c8e816ef98f3034f484a8bc64242d66839cef4cf7e503142316a0", size = 410634, upload-time = "2026-06-18T16:13:00.383Z" }, - { url = "https://files.pythonhosted.org/packages/6a/fd/6adabd4f6d5e686f97dd02ce7fce3fe4cf672cbac36b8f67ff4040e8ad8b/msgpack-1.2.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:020e881a764b20d8d7ca1a54fc01b8175519d108e3c3f194fddc200bda95951a", size = 419989, upload-time = "2026-06-18T16:13:01.776Z" }, - { url = "https://files.pythonhosted.org/packages/5a/cc/85039b7b0eb168aaad7383a23c97e291a11f08351cb45a606ce865e4e3f1/msgpack-1.2.1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:4202c74688ca06591f78cb18988228bd4cca2cc75d57b60008372892d2f1e6e6", size = 377544, upload-time = "2026-06-18T16:13:03.637Z" }, - { url = "https://files.pythonhosted.org/packages/ed/bf/35963899493b32030c85fc513b723ae66144ac70c11ebc52e889e16e3d99/msgpack-1.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8b267ce94efb76fbd1b3373511420074ee3187f0f7811bf394531de13294735a", size = 400842, upload-time = "2026-06-18T16:13:05.012Z" }, - { url = "https://files.pythonhosted.org/packages/a6/df/8e2ac970c8f99264cd9997d1c73df5466bc19da3301d7dc5500862a9b089/msgpack-1.2.1-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:e4f1d0f8f98ade9634e01fb704a408f9336c0a8f1117b369f5db83dc7551d8b1", size = 374108, upload-time = "2026-06-18T16:13:06.232Z" }, - { url = "https://files.pythonhosted.org/packages/17/dd/fa8bd265110dfa51c20cb529f9e6d240a16fafe7e645004c6af2d01353ba/msgpack-1.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:f02cf17a6ca1abe29b5f980644f7551f94d71f2011509b26d8625ce038f0df64", size = 414939, upload-time = "2026-06-18T16:13:07.478Z" }, - { url = "https://files.pythonhosted.org/packages/2e/b9/8377a5ad8953fc0437c70cc98d9ae29f27fe5ac5109fbec0812085865735/msgpack-1.2.1-cp312-cp312-win32.whl", hash = "sha256:0c0d9802354507bcba62af19c17918e3eb437cc25e6f50657d511b5856a77aac", size = 64504, upload-time = "2026-06-18T16:13:08.822Z" }, - { url = "https://files.pythonhosted.org/packages/57/7f/ce1e377df7e62461fefd9eb23bfb93a4a523f40a517b377b8f844d836828/msgpack-1.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:5c24aa15d5963051e1a5c62b12c50cd705992502b5ec1f3bece6046f33c9fc24", size = 71421, upload-time = "2026-06-18T16:13:09.828Z" }, - { url = "https://files.pythonhosted.org/packages/8f/32/ebfe84c9929f08f188d56c7a2fd913406a9ddad76a634697c1c43b8112e6/msgpack-1.2.1-cp312-cp312-win_arm64.whl", hash = "sha256:4227224aaec8f7fbcbfbd4272319347b2bb4030366502600f8c45588c5187b07", size = 64775, upload-time = "2026-06-18T16:13:11.056Z" }, - { url = "https://files.pythonhosted.org/packages/b0/ac/dcddcab6f6c20ecb387ca5e980371cdb3f87ff69aeca388be97eebc4c074/msgpack-1.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:0a70e3cf2804a300d921bb0940426e35f4e489a23adfb77a808892241db0a064", size = 83151, upload-time = "2026-06-18T16:13:12.173Z" }, - { url = "https://files.pythonhosted.org/packages/64/71/fbcfa83a1d6a9c6091942d1cfd070962244664b87427a9a49a6897b1b219/msgpack-1.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:491cc39455ca765fad51fb451bf2915eb2cf41192ab5801ce8d67c1d614fe056", size = 82351, upload-time = "2026-06-18T16:13:13.194Z" }, - { url = "https://files.pythonhosted.org/packages/e3/10/ddf7b06db879e8792d13934ddda09ff20bd2a583fd84c9b59aae9b0e650b/msgpack-1.2.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f310233ef7fb9c14e201c93639fe5f5260b005f56f0b29048e999c30935596cc", size = 407518, upload-time = "2026-06-18T16:13:14.233Z" }, - { url = "https://files.pythonhosted.org/packages/79/d3/36a46a8ed992b781acbc05928bd5bee3c810cb0c3563bf81a7b0c04a1a76/msgpack-1.2.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:787c9bebb5833e8f6fc8abca3c0597683d8d87f56a8842b6b89c75a5f3176e2d", size = 416405, upload-time = "2026-06-18T16:13:15.435Z" }, - { url = "https://files.pythonhosted.org/packages/f9/84/e8e9598b557c0ba6ddae901a73780a4c75ac667dddf59414b1e56a42fb34/msgpack-1.2.1-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:dc871b997a9370d855b7394465f2f350e847a5b806dd38dcc9c989e7d87da155", size = 376257, upload-time = "2026-06-18T16:13:17.022Z" }, - { url = "https://files.pythonhosted.org/packages/40/16/738fe6d875ad7e2a9429c165322a4ec088f4f273cdfae63d96a89c467961/msgpack-1.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:85f57e960d877f2977f6430896191b04a21f8901b3b4baf2e4604329f4db5402", size = 397469, upload-time = "2026-06-18T16:13:18.287Z" }, - { url = "https://files.pythonhosted.org/packages/ca/be/6d5952df75a7f24f35833af764c3a6860780364cb3a0030beb8099e1b2b4/msgpack-1.2.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:1233ee2dd0cefba127583de50ea654677277047d238303521db35def3d7b2e7c", size = 372802, upload-time = "2026-06-18T16:13:19.685Z" }, - { url = "https://files.pythonhosted.org/packages/e1/39/e2ef7dbf0473bcb8dc7c50bf782a892d67414877b63e47fc88eb189ef5e6/msgpack-1.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e3dc2feb0876209d9c38aa56cb1de169bd6c4348f1aa48271f241226590993e6", size = 411273, upload-time = "2026-06-18T16:13:21.028Z" }, - { url = "https://files.pythonhosted.org/packages/ef/c5/133f4512a56e983a93445c836c9d94d88f3bc2e0980ff4b9e577bd8416ce/msgpack-1.2.1-cp313-cp313-win32.whl", hash = "sha256:6d09badf350af2be9d189184e04e64cf54ad93569ab3d96fca58bd3e84aad707", size = 64471, upload-time = "2026-06-18T16:13:22.293Z" }, - { url = "https://files.pythonhosted.org/packages/e2/98/577e10b055096a7dd40732358cabaf7180a20c79ed1dcdbb618e4b9deac7/msgpack-1.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:33f14fba63278b714efe6ad07e50ea5f03d91537aa6a1c5f1ceca4cf44013ca9", size = 71274, upload-time = "2026-06-18T16:13:23.455Z" }, - { url = "https://files.pythonhosted.org/packages/ba/ee/0c0048e7cfbef23c6a94791b8959ab28155232e7956de8a305b5ff588f05/msgpack-1.2.1-cp313-cp313-win_arm64.whl", hash = "sha256:afc5febcd4c99effbc02b528e49d6fd0760b2b7d48c05239e345a5fa6e743d9a", size = 64795, upload-time = "2026-06-18T16:13:24.687Z" }, - { url = "https://files.pythonhosted.org/packages/77/58/cce442852c6b9e1639c7c8ac8fd9143121cb32dab0f308df4d1426a8eb9c/msgpack-1.2.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:05f340e47e7e47d2da8db9b53e1bb1d294369e9ef45a747441309f6650b8351d", size = 83610, upload-time = "2026-06-18T16:13:25.724Z" }, - { url = "https://files.pythonhosted.org/packages/60/5c/15b4c7a0182f75ffa90751958ba36a9c01cafee367d49a3edc10ed140b01/msgpack-1.2.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:810b916696c86ef0deb3b74588480224df4c1b071136c34183e4a2a4284d7ac7", size = 83138, upload-time = "2026-06-18T16:13:26.781Z" }, - { url = "https://files.pythonhosted.org/packages/b8/a6/99e58722feaffc5f2fbcc0c8c0d1451ab9f84097f7af87291b46af2390f4/msgpack-1.2.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ca0dacff965c47afdc3749a8469d7302a8f801d6a28758d55120d75e66ce6889", size = 406090, upload-time = "2026-06-18T16:13:28.072Z" }, - { url = "https://files.pythonhosted.org/packages/19/03/8c63e8cf52958534ef688625965ab04c269a6cadd8caef16758b380a821a/msgpack-1.2.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0e2bf9280bceb5efca998435904b5d3e9fdbcc11d90dc9df30aec7973252b720", size = 412106, upload-time = "2026-06-18T16:13:29.427Z" }, - { url = "https://files.pythonhosted.org/packages/63/d2/155d9e71b40e41fd934bc0c48b9b2770f22263e1ac20aad8e29fdca7be3f/msgpack-1.2.1-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:aa6c4be5d1c02a42b066ca6ddb71adf36432868fdcdb6ee87e634e86e0674190", size = 374851, upload-time = "2026-06-18T16:13:30.631Z" }, - { url = "https://files.pythonhosted.org/packages/98/48/deaf2326262a8d5ea3295ce9649912ecd3f551ba7ec8e33c665d2ba583f3/msgpack-1.2.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ec0e675d59150a6269ddc9139087c722292664a37d071a849c05c473350f1f2d", size = 396168, upload-time = "2026-06-18T16:13:31.977Z" }, - { url = "https://files.pythonhosted.org/packages/10/2a/b4410f906c2ec0008f1608d3ab5143afc3ad3f4e6da0fed3ea2231d0bef4/msgpack-1.2.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:dd3bfe82d53edfe4b7fc9a7ec9761e23a7a5b1dac22264505af428253c29ed24", size = 371959, upload-time = "2026-06-18T16:13:33.282Z" }, - { url = "https://files.pythonhosted.org/packages/59/86/1edc67270099a528fa2093ea60fe191233cd238e4bd30cfacf7db79fc959/msgpack-1.2.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5ad5467fc3f68b5468e06c5f788d712e9f8ffc8b0cd1bcb160c105c1ee92dae7", size = 408457, upload-time = "2026-06-18T16:13:34.567Z" }, - { url = "https://files.pythonhosted.org/packages/82/90/8b630fef07d8c5ab457b71ff2c217910c83d333c7a68472c186e87cc504a/msgpack-1.2.1-cp314-cp314-win32.whl", hash = "sha256:98b58bdb89c46190e4609bb36abe17c6d4105ad13f9c5f8f6f64d320f8ced3fb", size = 65942, upload-time = "2026-06-18T16:13:36.056Z" }, - { url = "https://files.pythonhosted.org/packages/16/f1/467b81e98b24dd3885d7b1857728797b4ffc76a7a7483af4fb321a07de3c/msgpack-1.2.1-cp314-cp314-win_amd64.whl", hash = "sha256:74847557e28ce71bd3c438a447ca90e4b507e997ddbdef8a12a7b283b86c156b", size = 72627, upload-time = "2026-06-18T16:13:37.079Z" }, - { url = "https://files.pythonhosted.org/packages/a7/1d/5d8c4c89985feb6acefb82a09e501c60392261856d2408d20bfe4f0360b1/msgpack-1.2.1-cp314-cp314-win_arm64.whl", hash = "sha256:b50b727bd652bdc37d950336c848ef20ec54a4cafc38dce19b1cd86ad625d0f7", size = 66908, upload-time = "2026-06-18T16:13:38.23Z" }, - { url = "https://files.pythonhosted.org/packages/1b/02/ad2afb678b4de94496cd432b581759b756a92c1192d8c767edd6b132efdc/msgpack-1.2.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:8d00f177ca88a77c1cf848d204a38f249751650b601cb6532acc68805d8a8273", size = 86000, upload-time = "2026-06-18T16:13:39.44Z" }, - { url = "https://files.pythonhosted.org/packages/54/74/0b797484013128837f3b1cbb6cea019277c4de4e377dc512b4d9a0f92940/msgpack-1.2.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:5bb9c386f0a329c035ddbab4b72d1028bf9627add8dda41070288563d57ed1b1", size = 86544, upload-time = "2026-06-18T16:13:40.447Z" }, - { url = "https://files.pythonhosted.org/packages/a9/b4/b774d7eb95561739907fec675582f83203cf41c597a418c2589b4bfb8e9d/msgpack-1.2.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:20466cca18c49c7292a8984bc15d65857b171e7264bdcb5f96baf8be238791fc", size = 427661, upload-time = "2026-06-18T16:13:41.574Z" }, - { url = "https://files.pythonhosted.org/packages/b2/f9/3243191dc9937e00756c8bc1b0272fed8f23758e43df2a3b46f533e5090f/msgpack-1.2.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:196300e7e5d6e74d50f1607ab9c06c4a1484c383cd22defd727902591f7e8dde", size = 426375, upload-time = "2026-06-18T16:13:42.936Z" }, - { url = "https://files.pythonhosted.org/packages/23/c7/1693111db9944ba4ad4b67a1e788400d78a0b6af7a6523dc7e4e58f8274b/msgpack-1.2.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:575957e79cd51903a4e8495a242442949641e08f1efd5197b43bebd3ea7682b4", size = 380495, upload-time = "2026-06-18T16:13:44.306Z" }, - { url = "https://files.pythonhosted.org/packages/3e/2b/92f86956a0c13e8662f7e2ad630c4eb4db07497b967589bd5245e018b2c1/msgpack-1.2.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8c2ed1e48cc0f460bf3c7780e7137ff21a4e18433451916f2442c1b21036cd7d", size = 410897, upload-time = "2026-06-18T16:13:45.629Z" }, - { url = "https://files.pythonhosted.org/packages/da/ea/1479f72d200313a76fc2f823a79d1e07ed052ab7b8a0280640aa7b95de42/msgpack-1.2.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:5f6277e5f783c36786a145e0247fc189a03f35f84b251646e53592d2bc12b355", size = 378519, upload-time = "2026-06-18T16:13:46.998Z" }, - { url = "https://files.pythonhosted.org/packages/f5/4d/fa006060ffa1011d32bfae826fe766fe73e02982183601633b7121058ab3/msgpack-1.2.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f9389552ecf4784886345ead0647e4edc96bee37cbab05b75540f542f766c48c", size = 419815, upload-time = "2026-06-18T16:13:48.205Z" }, - { url = "https://files.pythonhosted.org/packages/2f/e1/aab6c946570496b78e67804721f3d5e2d62a93081b9b37df77764ef56347/msgpack-1.2.1-cp314-cp314t-win32.whl", hash = "sha256:c1c79a604a2969a868a78b6ebd27a887e00c624f14f66b3038e0590cb23332d1", size = 70914, upload-time = "2026-06-18T16:13:49.385Z" }, - { url = "https://files.pythonhosted.org/packages/13/0a/e608956488a2af014cfe6e3d665e090b8ee42aa14b07f8f95b8880d66b09/msgpack-1.2.1-cp314-cp314t-win_amd64.whl", hash = "sha256:f12038a35fabd52e56a3547bab42401af49a45caa6dd00b34c44de235bc93ee2", size = 77999, upload-time = "2026-06-18T16:13:50.467Z" }, - { url = "https://files.pythonhosted.org/packages/d2/8a/27e2e57055176e366a46b85d02d68e7a5bcfbdd8474c9706375d965f24d3/msgpack-1.2.1-cp314-cp314t-win_arm64.whl", hash = "sha256:0adcf06ffde0777c0e1a9b771a2b1c4226ba1bbf748c8efcc02fcdeca3299107", size = 71160, upload-time = "2026-06-18T16:13:51.498Z" }, +version = "1.2.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cc/52/1ec7ead2c7528bf3d1db73e886fa4df10f9e6f0eb7854a448b7090cfcef7/msgpack-1.2.4.tar.gz", hash = "sha256:475c44e12f2a5de766a8448783f149c9b33f3f49b88953c6cd739a77d93c732c", size = 197764, upload-time = "2026-10-26T17:55:48.593Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/64/cb/a3bd4d234c0f2f7e646b9be259b801c5d6a35c97f93dded4f722e6b80acd/msgpack-1.2.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:1095b1ebcc8c9d3e70c51240b7160d8e9da66044e0a45c3ef8403d3a9ef0c5ad", size = 90935, upload-time = "2026-10-26T17:53:46.588Z" }, + { url = "https://files.pythonhosted.org/packages/56/3c/fc87d06bdfc99b302f4379f0eb34bb8695b6ecd90b965652d0a3195d1acd/msgpack-1.2.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a4b47ec7422bef149223786a87df80067ac65bfc7c0565e5cf1dfbdc40acee50", size = 90187, upload-time = "2026-10-26T17:53:48.151Z" }, + { url = "https://files.pythonhosted.org/packages/05/a3/abebe12c1b589b7eeab60cb87dd5eb398fcf549bdafca8c30d8d73e48493/msgpack-1.2.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0c75cfda0d3ccb1f6abc20e0608ad6b226e11f317b5ac297721504d2509e2bd9", size = 466911, upload-time = "2026-10-26T17:53:49.536Z" }, + { url = "https://files.pythonhosted.org/packages/03/41/ed5517a107628f6f7f3a1f46f19de3aca979bd1fc95861cb56ce0e4bcc02/msgpack-1.2.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a45ceb5f199d5e388f28b550ba881096a3740d4bda10e661d77f59d9a2e8187a", size = 480247, upload-time = "2026-10-26T17:53:51.211Z" }, + { url = "https://files.pythonhosted.org/packages/31/71/14c39858380e11408fcf75aeab1cda0afb253cd8f62a01fbe4ae1838b66f/msgpack-1.2.4-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7ca62b31a873c70b73f367bb2c1efec1d143016642c5191405549578184ff6ff", size = 438298, upload-time = "2026-10-26T17:53:52.919Z" }, + { url = "https://files.pythonhosted.org/packages/3b/73/ba40b91632e011851e1a397d53e0bd031848751902424a5b37c33f7de412/msgpack-1.2.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:f641971d3eec89ffca57fa36d151ad1cf1b6a214b47faca16cb165c7d45ef8be", size = 461600, upload-time = "2026-10-26T17:53:54.8Z" }, + { url = "https://files.pythonhosted.org/packages/51/f0/c13ce7e7a7d8dabc1a48eecf61eb789084dbcc64374a7f19770eaf96f2c3/msgpack-1.2.4-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:b9eff629190a4b118549b654df32a56ed535351819f690d0c935d185500cc90b", size = 435020, upload-time = "2026-10-26T17:53:56.433Z" }, + { url = "https://files.pythonhosted.org/packages/b4/d2/2a4e254f8ee5d5dd5019bd9f99164d79704788dbe16d9d6de77fda4e6727/msgpack-1.2.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:4e22c6571ab6ac9036da87d8a6fddb4baf86981844b480c0c60a4a4be417ee48", size = 479138, upload-time = "2026-10-26T17:53:57.918Z" }, + { url = "https://files.pythonhosted.org/packages/70/b6/28f7eb3f38e3b6ea1f87f36c44cc25ab0eeb451147b5ff61637ce3d0b839/msgpack-1.2.4-cp311-cp311-win32.whl", hash = "sha256:5d7d4d2a5fc6a604f20c546ee1e8327bed1e9329be2417cef9af1f799f3e55e0", size = 67926, upload-time = "2026-10-26T17:53:59.172Z" }, + { url = "https://files.pythonhosted.org/packages/b9/9e/67a97d5caa41bcbdbb4fae7bf5009b60222c72d0748364ac9e32de334a4e/msgpack-1.2.4-cp311-cp311-win_amd64.whl", hash = "sha256:9db832747bd05834530189e564a3fe31e2617547dc1f3a005f835eafc2b8e048", size = 76117, upload-time = "2026-10-26T17:54:00.403Z" }, + { url = "https://files.pythonhosted.org/packages/32/43/890b028b2cdb6b75fd56bd9388466c9fea9f10a31ebb685c489c5cb32fa9/msgpack-1.2.4-cp311-cp311-win_arm64.whl", hash = "sha256:deb1730c4c0c1a8c975be2f43efea6ee4834d35031a39075f78917d0ba8b3c04", size = 72632, upload-time = "2026-10-26T17:54:01.798Z" }, + { url = "https://files.pythonhosted.org/packages/27/fd/45f6cd13cefbb659a8e0128ea64d51b349571163fec3c9c20f99792dc42a/msgpack-1.2.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:90cba4996b18ec1201fcaabd01ec48ff4b9755416bcd52105ded2f89fe145c49", size = 91903, upload-time = "2026-10-26T17:54:03.097Z" }, + { url = "https://files.pythonhosted.org/packages/7f/89/169c2a0b1ffeafe68a4f13d8d96b6ed1cd8d40d8262b3a6690851da7eda1/msgpack-1.2.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:112933726919f4239646cca9572e2c2fa5626358c670da8440aac09403100a48", size = 90573, upload-time = "2026-10-26T17:54:04.383Z" }, + { url = "https://files.pythonhosted.org/packages/cf/8e/272a384f2a001cfced1baab0a8abdd912d6281432670f4609d1aab718d7b/msgpack-1.2.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9ca1e78106675f2aed07dc37b842ce19be70010ab22c5c5c04688f0840d48539", size = 461057, upload-time = "2026-10-26T17:54:05.821Z" }, + { url = "https://files.pythonhosted.org/packages/1e/d9/f59bd841fc2fd2b74dc50ce85860a6a25f58e588dd48946aeaf2862cf990/msgpack-1.2.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c4d5bbdbea8f5669b3a734d6c226772804fb120848f99cbe63a0ddee63b049c9", size = 475652, upload-time = "2026-10-26T17:54:07.414Z" }, + { url = "https://files.pythonhosted.org/packages/00/03/afd000e1b1e28fd535dc8c7bc21ebb88923bc1964a2429fe660fb313ace3/msgpack-1.2.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0d9ff7f3aaffd84010f1c501b05406a497584f5cab2f732eb9d89bf960e12f6f", size = 427082, upload-time = "2026-10-26T17:54:09.1Z" }, + { url = "https://files.pythonhosted.org/packages/f7/7a/e2890b272883c496faad777324ddb70e9cc4a6c63731962a4a39a6a40f44/msgpack-1.2.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:aa10dc04c03408f31948ac1896a942141fd8d7a954b3612edac79f19663e4076", size = 451956, upload-time = "2026-10-26T17:54:10.476Z" }, + { url = "https://files.pythonhosted.org/packages/c2/46/0c1b240b8a580af3e72139c33b018025440a1a42c2579e82e39b1195ee36/msgpack-1.2.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:472a25463678f2795143a7cb42e88a1b59cc2375e9881917e69a9323bde42114", size = 423833, upload-time = "2026-10-26T17:54:12.195Z" }, + { url = "https://files.pythonhosted.org/packages/80/8e/851415b1a9264e6abf64d8a9617d856769d59e247fb9470106f133aedbae/msgpack-1.2.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:cbb8a677da3e845713925e9a203b8a120b1e9da9989836890ba4a4a187902701", size = 470951, upload-time = "2026-10-26T17:54:13.764Z" }, + { url = "https://files.pythonhosted.org/packages/c9/74/d75bf61aab9cb88b84f7d3a8eca8dd92e19a742b77ded300a1177e88d031/msgpack-1.2.4-cp312-cp312-win32.whl", hash = "sha256:2b0b7dff5beddc10f16ecea6b28c6b98014d1135d7015bd83adff5037f35848d", size = 68786, upload-time = "2026-10-26T17:54:15.049Z" }, + { url = "https://files.pythonhosted.org/packages/81/c5/dd0e78eb04f9a0773a810d25ef2cd8f16bb941487567d0c63f814881133c/msgpack-1.2.4-cp312-cp312-win_amd64.whl", hash = "sha256:6e38b123681df22373d545520f54bbeddc4706d9235a1161061f12bd6648497d", size = 77272, upload-time = "2026-10-26T17:54:16.491Z" }, + { url = "https://files.pythonhosted.org/packages/65/e7/b38f63ae82777c0077daa56c4b09af39d29dcb8927ab2ff59268094069c5/msgpack-1.2.4-cp312-cp312-win_arm64.whl", hash = "sha256:6795c588b210b2f13d62c8fcc23bf779b509b839ec5c197a7ab4f5191459e126", size = 71884, upload-time = "2026-10-26T17:54:17.995Z" }, + { url = "https://files.pythonhosted.org/packages/2d/26/16eaad5fe6e199334fa5bd66070778665717c86e9a273525dc706ddb06a7/msgpack-1.2.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:fb811ac3d463a75013b234d2aae56b9f0bdb0105caf4dd2ee65305b6a8a6078d", size = 92057, upload-time = "2026-10-26T17:54:19.616Z" }, + { url = "https://files.pythonhosted.org/packages/9c/b8/9660be6d120820bc05106f291e824c73d35f4ab77d927788ae67ea80889c/msgpack-1.2.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:36258fd0909e1bf26e94604439108846432abe4ffa9a23c9dc2f6f1c60f94b60", size = 90542, upload-time = "2026-10-26T17:54:20.965Z" }, + { url = "https://files.pythonhosted.org/packages/6c/10/cd55a69fec29df26884b178dc4b1803442ec82abf929604aac619881917a/msgpack-1.2.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e9c5ba0f053a7e98f013f083c9d1b2dffb26cad8c897c533d8286e44ed24c669", size = 455798, upload-time = "2026-10-26T17:54:22.434Z" }, + { url = "https://files.pythonhosted.org/packages/c9/94/562e0733593a780c70b0b18994f30c205149f7f9f4efbe3e9b00b88612c5/msgpack-1.2.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7fabd415c41e62006c6641fcdf5b3e866f581c4e11c58328c0d0f69584b9577d", size = 469262, upload-time = "2026-10-26T17:54:24.043Z" }, + { url = "https://files.pythonhosted.org/packages/bb/92/76d1a5c597e04e1d360b05573d150bdb4502f5a014e6e9cf089c9537c156/msgpack-1.2.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7433d340de45003db3ed909a642c9469b598d175530f7a707cbaba64287d27ce", size = 420789, upload-time = "2026-10-26T17:54:25.587Z" }, + { url = "https://files.pythonhosted.org/packages/8a/c6/b72b8d8022718380db459ced8ffbabc7570ad2d22c7f2fa659c872cb6734/msgpack-1.2.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ccd6e4af5347eb9828147320449bcd30e3321f6397d4583ff16047485dd8be3d", size = 447068, upload-time = "2026-10-26T17:54:27.721Z" }, + { url = "https://files.pythonhosted.org/packages/cb/dc/f378ef1def4aa135e70325c09e22457f3203ae2a390a192e892267906f33/msgpack-1.2.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:23d1459a1d0b4c9f6629df072d592eb74424b3ed3656b69af507bc9023cc027f", size = 418896, upload-time = "2026-10-26T17:54:29.325Z" }, + { url = "https://files.pythonhosted.org/packages/62/93/a7e507378f43e91415cb6fda47e0ded0c9de1618a1f4ac4f2887912a92dd/msgpack-1.2.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9e73761fe9fc55a4e9d2df8e8f59b0979231af4dbf80b8bf90cd64c74173d779", size = 465764, upload-time = "2026-10-26T17:54:30.719Z" }, + { url = "https://files.pythonhosted.org/packages/60/76/7f39f49cbcdaa4aafe64b4941b2640772dbdc1cac3a9332f4c9ba6994da9/msgpack-1.2.4-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:d088d1f552e129859db830692268747aba0a1ee3e6e0fe6344dbb3aab1df9f6c", size = 53615, upload-time = "2026-10-26T17:54:32.213Z" }, + { url = "https://files.pythonhosted.org/packages/67/9b/85b93350dbd7b52b358882f7f17a88a03664a7a59a359406e6315c162634/msgpack-1.2.4-cp313-cp313-win32.whl", hash = "sha256:892d4f17d7962bfd2c2928b0a47542bf2948f074a7c04721b73d4138b70481e4", size = 68724, upload-time = "2026-10-26T17:54:33.484Z" }, + { url = "https://files.pythonhosted.org/packages/02/4a/a7e2778ce09a943c17b6f91c7acb2f9488357657c01f2cccb278297621c4/msgpack-1.2.4-cp313-cp313-win_amd64.whl", hash = "sha256:318d4e634d2b320be10decd9968ad1ae0be1d80cba23b5528c37b429eeb0e3e0", size = 77039, upload-time = "2026-10-26T17:54:35.016Z" }, + { url = "https://files.pythonhosted.org/packages/64/16/9ff7495a9853e9d7de74965fdadce15017e7213ce564bb5dafc5403c9108/msgpack-1.2.4-cp313-cp313-win_arm64.whl", hash = "sha256:bec3e34749b90cfcf116149aad11295c720ff4a74a7d0a35abdb968a396c1524", size = 71873, upload-time = "2026-10-26T17:54:36.19Z" }, + { url = "https://files.pythonhosted.org/packages/86/34/747f9ea2b428088201c73fcb3a885cebcbedcd71def0f1f3c36896294b27/msgpack-1.2.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:895e9369185df4a874768849405c30cba7990caceb3fcb1692ebe62bb050f55e", size = 92449, upload-time = "2026-10-26T17:54:37.503Z" }, + { url = "https://files.pythonhosted.org/packages/83/7e/52d208cb1561f869762c17be0e2c004e4d34f2842d239a450492d6246d62/msgpack-1.2.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c97f5f17407e1761f23f1944be33cbf1d5ce67017db32544dcd5e16e0b1b4a3b", size = 91202, upload-time = "2026-10-26T17:54:38.797Z" }, + { url = "https://files.pythonhosted.org/packages/2e/58/5516cabb60da83506024015c669622a0277979aef51eb611308cebaf4cc9/msgpack-1.2.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2444a4e04f924630d059ae6eae8f91fdfcd28ed9fd17b21bacf4e74550a091f7", size = 455185, upload-time = "2026-10-26T17:54:40.213Z" }, + { url = "https://files.pythonhosted.org/packages/39/8f/bf975b5d2111e4954a0f8567fc6b60bab22c8766dd4fa509af1334c91a4f/msgpack-1.2.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5d65b791ce4283e02b6267742ad540899155e1b32887b9cbdda47f38f5a076b5", size = 465078, upload-time = "2026-10-26T17:54:41.971Z" }, + { url = "https://files.pythonhosted.org/packages/32/2f/c74baeafc53d1c1fadfbeb774444d0e6354778d12b40b827e437a7a35856/msgpack-1.2.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5e4c67dbac05dce90a3fa1d845137617383c415e6b319062baac9734540706ae", size = 420144, upload-time = "2026-10-26T17:54:44.994Z" }, + { url = "https://files.pythonhosted.org/packages/b0/f2/bdf2ce9e284821397dc5549101824c7607ee6ba6e0635390d168a77ac49c/msgpack-1.2.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:781e856db4f2cb398e4992e2a74305295d3ebf694eec26fa0f4bc766eb9fa0a0", size = 446479, upload-time = "2026-10-26T17:54:46.484Z" }, + { url = "https://files.pythonhosted.org/packages/76/8d/b4572d24bb75d98bcbbd031a934a3a1d03494ea88a100cd51ab16c4c7d57/msgpack-1.2.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:cfc1cc237792f9a5664002b66acb961027d4184528ec9d10e0e42330f7972383", size = 418780, upload-time = "2026-10-26T17:54:48.04Z" }, + { url = "https://files.pythonhosted.org/packages/55/8e/4493bef4422730cfd3420b84094652fabd27ef8aadc8b443a8995b524d08/msgpack-1.2.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f60de6ae13d4d2a12a483f15c5e47cb6fa2731aa32d92fb31178e2017d6574a8", size = 462009, upload-time = "2026-10-26T17:54:49.433Z" }, + { url = "https://files.pythonhosted.org/packages/41/29/efdc3d1d09e4e0e45955b0aad559b4c1f5d908767c9fb1021990c52182a5/msgpack-1.2.4-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:06a0657a4110d563255006b7cb7147432f67827144e429c2cdb1c967548d1817", size = 53714, upload-time = "2026-10-26T17:54:50.753Z" }, + { url = "https://files.pythonhosted.org/packages/df/0b/08794c65e0a752acf20aa44e193e61dfb552b48fe6c27ba6023c146f9e77/msgpack-1.2.4-cp314-cp314-win32.whl", hash = "sha256:727a65b35db9f5ef516fc0229c4b05cab983092b1ae274a8a769b2d517fb0499", size = 70726, upload-time = "2026-10-26T17:54:52.397Z" }, + { url = "https://files.pythonhosted.org/packages/b5/da/e2cc63ec61e7ac05595b391cba01c10cb4657f4e517da1512e4a75d2d12e/msgpack-1.2.4-cp314-cp314-win_amd64.whl", hash = "sha256:80f5d4fda1ba373d95933f98e6c1d18247feffac839fda3930bdd85e6561bb5f", size = 78346, upload-time = "2026-10-26T17:54:54.662Z" }, + { url = "https://files.pythonhosted.org/packages/93/e4/1b0eb49887009dc2c530171d659cf2aa37202b5f79c0b784e63777554b37/msgpack-1.2.4-cp314-cp314-win_arm64.whl", hash = "sha256:e5f67f0286f2ba2c6dbb4998404ed880112ca204ceda729cf239879cd89d3acf", size = 74152, upload-time = "2026-10-26T17:54:55.915Z" }, + { url = "https://files.pythonhosted.org/packages/d0/4a/6defc8fd0270c4ba675e6625f4f76ce936fd0c48733395fd7ba912cd423e/msgpack-1.2.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:45506bfb902cde24a0d33fb0581f58497ddb2682686dd1f6aa07e7b769df7ca4", size = 94083, upload-time = "2026-10-26T17:54:57.108Z" }, + { url = "https://files.pythonhosted.org/packages/c8/e8/59f7e076739048864710a4de3403ae1c1b43ed5077b796cd9e8cbce9b3f6/msgpack-1.2.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:dc9dc681958e69f46b9f37def3e7fd6cc5dcfaa5943fb00bfe9c223a1a1052f6", size = 95037, upload-time = "2026-10-26T17:54:58.489Z" }, + { url = "https://files.pythonhosted.org/packages/2c/dd/dbae250b23b831cd0571eb664089f80de3249a39e98c6ef55f9a0efe928d/msgpack-1.2.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0bef691e2a95119cc6bf3ded29325dbd89c4b6f8ff233070431948ed70902421", size = 472722, upload-time = "2026-10-26T17:54:59.924Z" }, + { url = "https://files.pythonhosted.org/packages/a9/e2/383ece1c1b27c1ed322055fce8ab8972bc6d529ede881592065ce0c461bf/msgpack-1.2.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:55e6106d2d085af42b2de72efeb38ed255241a24b32295ca889707c1d679c442", size = 468726, upload-time = "2026-10-26T17:55:01.492Z" }, + { url = "https://files.pythonhosted.org/packages/37/2f/5410a8815ae74a824ac87543c612e40cb6674851b70a6ad858bb32813203/msgpack-1.2.4-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:996dfc4774c240c8e6adf1166ae102141cfbed33c8856fde821bd6c0bd35ee41", size = 420488, upload-time = "2026-10-26T17:55:02.848Z" }, + { url = "https://files.pythonhosted.org/packages/39/8e/16fdf02b4f91dff9c1480433c1bf80756c2fedc0b74fc6a231f02dfed007/msgpack-1.2.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:efa1357fb0c7201e833de28638be371ee127476f7ccff9e7a94211b0afc33ddf", size = 455541, upload-time = "2026-10-26T17:55:04.564Z" }, + { url = "https://files.pythonhosted.org/packages/c4/76/2454ef54d780a167667552d02e7bc977a3d419943bcbdf6a96a4da6786ad/msgpack-1.2.4-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:b9270b63409e70c8c6deb5faedc81fc27c6bd0196b38084a8773f68286abf034", size = 419514, upload-time = "2026-10-26T17:55:06.257Z" }, + { url = "https://files.pythonhosted.org/packages/ac/8b/2af9bf378def33c24875f250421b0d0b1b06f72a1c2c3f964749fc4cdee1/msgpack-1.2.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:2b597bb01aff61d65e305c2cf2589c93c86609929d42d575bfc359f3c54ea8e1", size = 461910, upload-time = "2026-10-26T17:55:08.05Z" }, + { url = "https://files.pythonhosted.org/packages/0e/46/a133ac6c4cef4d3939383c00cc19baa16ee85fd70af0c5990e7a9ca8767f/msgpack-1.2.4-cp314-cp314t-win32.whl", hash = "sha256:ad5bc540cbc34db236f8535721a9a872d12a9d88d1322470f1fc7c5e9dadfdb2", size = 76441, upload-time = "2026-10-26T17:55:09.711Z" }, + { url = "https://files.pythonhosted.org/packages/d4/f5/8d22ec454c188f1795107a3fd9f68ada485076ebf394a4aaaa5fbb6093e7/msgpack-1.2.4-cp314-cp314t-win_amd64.whl", hash = "sha256:287e52c2ebaa94f8eca045628374859f51584e77bc07086e6835a9bb2204c774", size = 84321, upload-time = "2026-10-26T17:55:10.947Z" }, + { url = "https://files.pythonhosted.org/packages/41/52/1390514aee47d14ca3fe6ea0cf236fddc55021867ace30daf8761deba36f/msgpack-1.2.4-cp314-cp314t-win_arm64.whl", hash = "sha256:f3f19fe5decd348b35b003ae5f32d3fa90877413a0183da676f748a3a7ab9270", size = 78589, upload-time = "2026-10-26T17:55:12.425Z" }, + { url = "https://files.pythonhosted.org/packages/d0/d8/0465d475c1a7063af1a1fb4f8c69e0dd661c4dd172055c9757a343a07d5d/msgpack-1.2.4-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:765584b93ed6f0b561f0c56e9735f24945c0682f857c9b3ee3b4caad9c32f66a", size = 92449, upload-time = "2026-10-26T17:55:13.665Z" }, + { url = "https://files.pythonhosted.org/packages/b2/d0/5220a8a53579dda39f3526394ba5b7eafc28736085f2626deda7fcd22cd1/msgpack-1.2.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:0221748c30ace75fde0dec8c470abe65fb5374cd4f37adb9db6aca7a3c362c0a", size = 91209, upload-time = "2026-10-26T17:55:14.913Z" }, + { url = "https://files.pythonhosted.org/packages/b2/98/f151742eba413503074a10d8f636bf03dd4f3f7cba29689767a35d19bd1c/msgpack-1.2.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c5917972ce1bf5f85f761031e00dab6fe0ad9f880cb3d2d43ed74b330c850400", size = 455713, upload-time = "2026-10-26T17:55:16.406Z" }, + { url = "https://files.pythonhosted.org/packages/b0/54/890510a2c9841aff63258e085d15d4e140c7eef559d4da81ef2d2d867436/msgpack-1.2.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e7ae8cf6012372cecb43016132d1b87ccc2ebb8ae5ab5078687399e82423386a", size = 466177, upload-time = "2026-10-26T17:55:18.351Z" }, + { url = "https://files.pythonhosted.org/packages/3d/41/a6f20d7c2c380fb072b95ffc5b865a1d62eaf49d77fbee44466c45a1a8de/msgpack-1.2.4-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e78c66cf97ac5675037f705ca433ad98ac9177f9523e7fdbb34e486ae29044c8", size = 424398, upload-time = "2026-10-26T17:55:19.979Z" }, + { url = "https://files.pythonhosted.org/packages/89/86/fa9559961f2b0d498e6cefa226298ddee2b896cb223449c211702bc34071/msgpack-1.2.4-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:59887281c3c163a7afff7dffaaad2f78cd2b513b7e1a7843f1ee8e7cd6a94231", size = 445686, upload-time = "2026-10-26T17:55:21.775Z" }, + { url = "https://files.pythonhosted.org/packages/39/23/5a9d94036cdd77d4310bbb7cfaf3ccd1f087c4a5d5a4befec4361c5fc0dc/msgpack-1.2.4-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:9f46e70c8d22e96856967ab9d80c51dcf5bc63133e4da2d66fab64c0d4119b82", size = 422096, upload-time = "2026-10-26T17:55:24Z" }, + { url = "https://files.pythonhosted.org/packages/6e/4b/86a5384112509a94ff6e20028aba6845138743effb7c6617e959ad1256ab/msgpack-1.2.4-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:0a1fd6c31952155b7cd01061288c70303e6554ae855244dfb38a897fd94f8749", size = 463407, upload-time = "2026-10-26T17:55:26.146Z" }, + { url = "https://files.pythonhosted.org/packages/f4/cf/14db289e0ad531e22ce0f03284865f81d14fbc80bf3f79d3b1714bcf76cf/msgpack-1.2.4-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:b1f08ec826417e3c8dc3edadb50f38debba033af6cb849229f0eac72f80f2342", size = 53743, upload-time = "2026-10-26T17:55:27.497Z" }, + { url = "https://files.pythonhosted.org/packages/46/72/a76fc90b51503c0bdacbc7fc823aa6fa62d40596ac47f9ea8492d6f95a34/msgpack-1.2.4-cp315-cp315-win32.whl", hash = "sha256:e8ba23c838739fe929e868095171e71f2f38d6ce0fcf5840b576fb82648e58e6", size = 70780, upload-time = "2026-10-26T17:55:28.705Z" }, + { url = "https://files.pythonhosted.org/packages/58/a7/fa9d4a1b5dfead83ea6e03b4007041a5da988c25eb941d42612e0211d3c0/msgpack-1.2.4-cp315-cp315-win_amd64.whl", hash = "sha256:67310606cf2528a6dc3ece1298dcd5cc6c57add148b16d22c5111138aa84820c", size = 78288, upload-time = "2026-10-26T17:55:29.928Z" }, + { url = "https://files.pythonhosted.org/packages/b5/f3/8163d7938a8fe003952fe2719ddb31da71998559bbe290c55ffe622b886b/msgpack-1.2.4-cp315-cp315-win_arm64.whl", hash = "sha256:ce76e7a7c11459157887a8dadf07c107ff74eca98cf914f0de6ee7ab4b47104d", size = 74235, upload-time = "2026-10-26T17:55:31.112Z" }, + { url = "https://files.pythonhosted.org/packages/b4/fa/37c3219b250d81bee788c0dd78ae2fc673db2da1c21ae51f7982d85698f7/msgpack-1.2.4-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:fb9ddbf23b8c6e89752af399fcf4daed60055e239cda44c6acfaa76d19331e8c", size = 93793, upload-time = "2026-10-26T17:55:32.304Z" }, + { url = "https://files.pythonhosted.org/packages/83/9f/b8afcd20d32cf4be1fa3c327e997656d6d446e667452b0fcc66b91710e82/msgpack-1.2.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:e283cf563166c21762131b88e3870ee2ec57757b08a8736929757b5a67541061", size = 94746, upload-time = "2026-10-26T17:55:33.624Z" }, + { url = "https://files.pythonhosted.org/packages/e6/4f/03348d381fcbbc2685356833408cc7e9d2af0fe0775926935a2889650f64/msgpack-1.2.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:40e91bf8325f492e8eb3c3aa6de06b20593c225336bb52b585c913d7c1da025b", size = 468480, upload-time = "2026-10-26T17:55:34.991Z" }, + { url = "https://files.pythonhosted.org/packages/16/46/e54af8d9a51fb562e068e69a0d75a51e9c2fedec49f911f888515f5477ab/msgpack-1.2.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cfa86432bf329d6b976f5a00ad4c9064fd51736e4967a52526750236345cc2da", size = 470064, upload-time = "2026-10-26T17:55:36.615Z" }, + { url = "https://files.pythonhosted.org/packages/74/f5/8f9a6b3af1d803e832b11017c8dad44d761fefdb91dba04ee58cb51838da/msgpack-1.2.4-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:42e0a7dc26df739149478585d4264338b4d330f24b3e3b57d5aa89e48866e8ab", size = 421267, upload-time = "2026-10-26T17:55:38.076Z" }, + { url = "https://files.pythonhosted.org/packages/4b/8f/7302b0d18eadbbfef9be1dbbdc49905f7f3b847200c3e47068d093976be4/msgpack-1.2.4-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:8e680367090a58c966052d61418cc943111863538fd82471d61fca5271d911e1", size = 451244, upload-time = "2026-10-26T17:55:39.639Z" }, + { url = "https://files.pythonhosted.org/packages/36/c6/05717fb56b510b5e974446f2cb8e9b26fa4347fafc0c5927745b176939b3/msgpack-1.2.4-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:a6c9926f8871b261622fe6b599db72c69be5bca8fdc0976886f9a531a301dee9", size = 420273, upload-time = "2026-10-26T17:55:41.488Z" }, + { url = "https://files.pythonhosted.org/packages/05/d9/a19077d664c37319097e16ba8de14e6b3a2edcc8ee78a2069c0808e38960/msgpack-1.2.4-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:c50bac325dbf1a9c80e10da6dbd1100d7082f6b12e153084501e18e86cd3a037", size = 460421, upload-time = "2026-10-26T17:55:43.223Z" }, + { url = "https://files.pythonhosted.org/packages/a2/bd/0e2033a7435f8d2311be37363fedc88bdfa9fd95c364ee8ac3216eb63e36/msgpack-1.2.4-cp315-cp315t-win32.whl", hash = "sha256:34051de19ae532ba47fcab5b0abd08c25c7a64ff763ad819f18764d45f3c2c81", size = 76256, upload-time = "2026-10-26T17:55:44.588Z" }, + { url = "https://files.pythonhosted.org/packages/b3/3f/aa7265f25dafb6af7567a1a7d0a95c5566803db2226c5e084dc5850cfd96/msgpack-1.2.4-cp315-cp315t-win_amd64.whl", hash = "sha256:6ad2f0808099d4281208ff2c756efa958a55a7c8eb21fe1c7052b95c584f02f1", size = 83939, upload-time = "2026-10-26T17:55:45.773Z" }, + { url = "https://files.pythonhosted.org/packages/bf/f2/c53904c4bc3da828fb75678bf489ece808a277affa73f8a7a91dfb7c5851/msgpack-1.2.4-cp315-cp315t-win_arm64.whl", hash = "sha256:e38d854f1c60e94f46d998765201126338bde3fe1b029be0d849094bcbef72c2", size = 77995, upload-time = "2026-10-26T17:55:47.016Z" }, ] [[package]] @@ -1429,87 +1496,92 @@ wheels = [ [[package]] name = "pillow" -version = "12.3.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/1c/3d/bb7fca845737cf9d7dbde16ed1843984665ff2e0a518f5db43e77ec540b9/pillow-12.3.0.tar.gz", hash = "sha256:3b8182a766685eaa002637e28b4ec8d6b18819a0c71f579bf0dbaa5830297cce", size = 47025035, upload-time = "2026-07-01T11:56:38.965Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/fb/c8/0a78b0e02d7ac54bc03e5321c9220da52f0c2ea83b21f7c40e7f3169c502/pillow-12.3.0-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:00808c5e14ef63ac5161091d242999076604ff74b883423a11e5d7bbb38bf756", size = 5392415, upload-time = "2026-07-01T11:53:47.162Z" }, - { url = "https://files.pythonhosted.org/packages/b2/5b/a02d30018abd97ced9f5a6c63d28597694a00d066516b9c1c6de45859fc9/pillow-12.3.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:37d6d0a00072fd2948eb22bce7e1475f34569d90c87c59f7a2ec59541b77f7a6", size = 4785266, upload-time = "2026-07-01T11:53:49.079Z" }, - { url = "https://files.pythonhosted.org/packages/c8/98/766667a4be768150a202836acd9fad19c06824ca86c4286d3cf6b274964e/pillow-12.3.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bcb46e2f9feff8d06323983bd83ed00c201fdcab3d74973e7072a889b3979fcd", size = 6263814, upload-time = "2026-07-01T11:53:51.32Z" }, - { url = "https://files.pythonhosted.org/packages/3b/2d/ede717bc1144f63886c21fd349bb95860b0d1a21149ff16f2bb362b612b6/pillow-12.3.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:23d27a3e0307ec2244cc51e7287b919aa68d097504ebe19df4e76a98a3eea5bd", size = 6934408, upload-time = "2026-07-01T11:53:53.487Z" }, - { url = "https://files.pythonhosted.org/packages/a3/48/9c58b685e69d49c31af6c8eb9012055fab7e665785165c84796e2c73ce72/pillow-12.3.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:4f883547d4b7f0495ebe7056b0cc2aea76094e7a4abc8e933540f3271df27d9c", size = 6337160, upload-time = "2026-07-01T11:53:55.457Z" }, - { url = "https://files.pythonhosted.org/packages/ff/fa/dc2a5c0ba6df93f67c31d34b808b7ce440b40cdbf96f0b81cde1d1e6fa93/pillow-12.3.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:236ff70b9312fb68943c703aa842ca6a758abfa45ac187a5e7c1452e96ef72b5", size = 7045172, upload-time = "2026-07-01T11:53:57.736Z" }, - { url = "https://files.pythonhosted.org/packages/86/a5/444817a4d4c4c2417df00513086ca196f388d8f9ef40c2e4ccd1ad1af54b/pillow-12.3.0-cp311-cp311-win32.whl", hash = "sha256:10e41f0fbf1eec8cfd234b8fe17a4caac7c9d0db4c204d3c173a8f9f6ef3232b", size = 6472232, upload-time = "2026-07-01T11:53:59.767Z" }, - { url = "https://files.pythonhosted.org/packages/63/c6/4bad1b18d132a50b27e1365e1ab163616f7a5bb56d330f66f9d1d9d4f9d4/pillow-12.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:8e95e1385e4998ae9694eeaa4730ba5457ff61185b3a55e2e7bea0880aef452a", size = 7233653, upload-time = "2026-07-01T11:54:02.066Z" }, - { url = "https://files.pythonhosted.org/packages/fd/16/00f91ab7760dc842f5aad55217e80fc4a7067a0604535249bc8a2d6d9870/pillow-12.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:ebaea975e03d3141d9d3a507df75c9b3ec90fa9d2ffd07567b3a978d9d790b26", size = 2568195, upload-time = "2026-07-01T11:54:04.622Z" }, - { url = "https://files.pythonhosted.org/packages/37/bf/fb3ebff8ddcb76aac5a01389251bbbb9519922a9b520d8247c1ca864a25d/pillow-12.3.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ba09209fbe443b4acccebe845d8a138b89a8f4fbaeedd44953490b5315d5e965", size = 5345969, upload-time = "2026-07-01T11:54:06.397Z" }, - { url = "https://files.pythonhosted.org/packages/d8/66/9a386a92561f402389a4fc70c18838bf6d35eb5eb5c6850b4b2dc64f5048/pillow-12.3.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ffd0c5368496f41b0944be820fcb7a838aa6e623d250b01acf2643939c3f99d7", size = 4780323, upload-time = "2026-07-01T11:54:09.351Z" }, - { url = "https://files.pythonhosted.org/packages/25/27/ac8f99618ffd3dde21db0f4d4b1d2ab00c0880595bfd17df103f7f39fd0c/pillow-12.3.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d9c7f76c0673154f044e9d78c8655fb4213f6ca31a836df48b40fe5d187717b9", size = 6266838, upload-time = "2026-07-01T11:54:11.71Z" }, - { url = "https://files.pythonhosted.org/packages/84/21/a35af28dcc61f37ed850a2d64c65c701321dfbf25085e469d5559360cbbf/pillow-12.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:78cb2c6865a35ab8ff8b75fd122f6033b92a62c82801110e48ddd6c936a45d91", size = 6940830, upload-time = "2026-07-01T11:54:13.732Z" }, - { url = "https://files.pythonhosted.org/packages/eb/51/8b08617af3ad95e33ce6d7dd2c99ed6c8298f7fb131636303956be022e25/pillow-12.3.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e491916b378fba47242221bb9ead245211b70d504f495d105d17b14a24b4907c", size = 6344383, upload-time = "2026-07-01T11:54:15.756Z" }, - { url = "https://files.pythonhosted.org/packages/1d/72/cf78ac9780bb93c28328f408973845a309d4d145041665f734572ced1b52/pillow-12.3.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0dd2064cbc55aaec028ef5fbb60fa47bb6c3e7918e07ff17935284b227a9d2df", size = 7052934, upload-time = "2026-07-01T11:54:17.721Z" }, - { url = "https://files.pythonhosted.org/packages/20/20/25e0f4dc178a6bc0696793720055519a0de89e7661dae886992decbd2f81/pillow-12.3.0-cp312-cp312-win32.whl", hash = "sha256:dbce0b29841537a2fa4a214c2bbf14de3587c9680caa9b4e217568472490b28f", size = 6472684, upload-time = "2026-07-01T11:54:19.839Z" }, - { url = "https://files.pythonhosted.org/packages/45/89/da2f7971a317f83d807fdd4065c0af40208e59e692cc43d315a71a0e96d1/pillow-12.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:a2b55dd6b2a4c4b7d87ffa56bdb33fdc5fdb9a462173861a7bc097f17d91cb09", size = 7227137, upload-time = "2026-07-01T11:54:22.025Z" }, - { url = "https://files.pythonhosted.org/packages/de/47/4845a0a6c0dbf1db8456bd9fc791f13c5ced7ced20606d08a0aacfd25b49/pillow-12.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:331b624368d4f1d069149002f25f44bc61c8919ce8ddb3c45bdad8f6e2d89510", size = 2568267, upload-time = "2026-07-01T11:54:24.051Z" }, - { url = "https://files.pythonhosted.org/packages/9d/ac/31fb64e1e7efb5a4b50cd3d92049ba89ac6e4d8d3bb6a74e15048ca3353e/pillow-12.3.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:21900ce7ba264168cd50defae43cd75d25c833ad4ad6e73ffc5596d12e25ac89", size = 4161684, upload-time = "2026-07-01T11:54:25.934Z" }, - { url = "https://files.pythonhosted.org/packages/87/b4/9805e23d2b4d77842b468513841fda254ee42f0289d25088340e4ff46e2d/pillow-12.3.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:4e8c2a84d977f50b9daed6eeaf3baef67d00d5d74d932288f02cb94518ee3ace", size = 4255487, upload-time = "2026-07-01T11:54:27.935Z" }, - { url = "https://files.pythonhosted.org/packages/df/39/ecf519435a200c693fe053a6ee4d835b41cf963a4dfc2551c4e637cb2a71/pillow-12.3.0-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:ae26d61dfa7a47befdc7572b521024e8745f3d809bd95ca9505a7bba9ef849ec", size = 3696433, upload-time = "2026-07-01T11:54:29.813Z" }, - { url = "https://files.pythonhosted.org/packages/42/92/2fc3ffad878ae8dd5469ec1bc8eb83b71f48e13efdf68f02709003982a32/pillow-12.3.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:7a743ff716f746fc19a9557f60dab1600d4613255f8a7aeb3cdde4db7eb15a66", size = 5345889, upload-time = "2026-07-01T11:54:31.97Z" }, - { url = "https://files.pythonhosted.org/packages/10/76/8803c13605b763d33d156c4678fc77f8443389c0c51c8aef707bb02015f4/pillow-12.3.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:d69141514cc30b774ceea5e3ed3a6635c8d8a96edf664689b890f4089111fb35", size = 4780109, upload-time = "2026-07-01T11:54:34.026Z" }, - { url = "https://files.pythonhosted.org/packages/1f/01/e18aff37cb0b4aac47ac90f016d347a49aca667ef97f190b06ac2aabc928/pillow-12.3.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f7401aebd7f581d7f83a439d87d474999317ee099218e5ad25d125290990ba65", size = 6263736, upload-time = "2026-07-01T11:54:36.131Z" }, - { url = "https://files.pythonhosted.org/packages/f7/62/de5bdd77d935331f4f802edc11e4d82950f642caad6cb2f949837b8560e2/pillow-12.3.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0847a763afefb695bc912d7c131e7e0632d4edc1d8698f58ddabec8e46b8b6d3", size = 6937129, upload-time = "2026-07-01T11:54:38.216Z" }, - { url = "https://files.pythonhosted.org/packages/70/4d/105627a13300c5e0df1d174230b32fd1273062c96f7745fd552b945d1e1d/pillow-12.3.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:571b9fcb07b97ef3a492028fb3d2dc0993ca23a06138b0315286566d29ef718a", size = 6339562, upload-time = "2026-07-01T11:54:40.354Z" }, - { url = "https://files.pythonhosted.org/packages/6b/1d/f13de01a553988ab895ba1c722e06cf3144d4f57656fd5b81b6d881f1179/pillow-12.3.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:756c768d0c9c2955feb7a56c37ea24aea2e369f8d36a88da270b6a9f19e62b5e", size = 7049439, upload-time = "2026-07-01T11:54:42.489Z" }, - { url = "https://files.pythonhosted.org/packages/c9/f9/066794cca041b969964f779ee5fa66a9498bbf34248ac39c5d7954e4198f/pillow-12.3.0-cp313-cp313-win32.whl", hash = "sha256:a876864214e136f0eb367788dbd7df045f4806801518e2cfe9e13229cfe06d8f", size = 6473287, upload-time = "2026-07-01T11:54:44.9Z" }, - { url = "https://files.pythonhosted.org/packages/a6/9b/7a58e61d62be561da3a356fe2384d4059a6345fc130e23ef1c36a5b81d24/pillow-12.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:1cca606cd25738df4ed873d5ad46bbdb3d83b5cbca291f6b4ff13a4df6b0bbe8", size = 7239691, upload-time = "2026-07-01T11:54:47.141Z" }, - { url = "https://files.pythonhosted.org/packages/aa/b0/c4ed4f0ef8f8fa5ee8351537db6650bb8189f7e118842978dd6589065692/pillow-12.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:b629de27fda84b42cde7edef0d85f13b958b47f6e9bbcbba9b673c562a89bd8b", size = 2568185, upload-time = "2026-07-01T11:54:49.137Z" }, - { url = "https://files.pythonhosted.org/packages/dc/01/001f65b68192f0228cc1dbbc8d2530ab5d58b61037ba0587f946fea607cd/pillow-12.3.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:9cf95fe4d0f84c82d282745d9bb08ad9f926efa00be4697e767b814ce40d4330", size = 4161736, upload-time = "2026-07-01T11:54:51.156Z" }, - { url = "https://files.pythonhosted.org/packages/1a/d2/0219746d0fd16fc8a84498e79452375be3797d3ce4044596ce565164b84f/pillow-12.3.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:8728f216dcdb6e6d555cf971cb34076139ad74b31fc2c14da4fafc741c5f6217", size = 4255435, upload-time = "2026-07-01T11:54:53.414Z" }, - { url = "https://files.pythonhosted.org/packages/c8/02/8d0bc62ef0302318c46ff2a512822d2610e81c7aa46c9b3abe6cbaca5ad0/pillow-12.3.0-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:a45650e8ce7fafffd731db8550230db6b0d306d181a90b67d3e6bca2f1990930", size = 3696262, upload-time = "2026-07-01T11:54:55.739Z" }, - { url = "https://files.pythonhosted.org/packages/85/e2/73c77d218410b14f5f2d565e8a998d5317b7b9c75368d29985139f7a46f0/pillow-12.3.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:ba54cfebe86920a559a7c4d6b9050791c20513650a1952ebe3368c7dc70306f8", size = 5350344, upload-time = "2026-07-01T11:54:57.657Z" }, - { url = "https://files.pythonhosted.org/packages/c7/da/32c752228ae345f489e3a42499d817b6c3996da7e8a3bc7a04fc806b243b/pillow-12.3.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:e158cb00350dc278f3b91551101aa7d12415a66ebf2c91d8d5ac14e56ddd3ad0", size = 4780131, upload-time = "2026-07-01T11:54:59.713Z" }, - { url = "https://files.pythonhosted.org/packages/b1/9d/8b2c807dbef61a5197c047afe99823787eb66f63daf9fb2432f91d6f0462/pillow-12.3.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e9aeb04d6aef139de265b29683e119b638208f88cf73cdd1658aa07221165321", size = 6263757, upload-time = "2026-07-01T11:55:01.778Z" }, - { url = "https://files.pythonhosted.org/packages/5c/44/c85361f65dbe00eea8576ee467c768d25129989efb76e94f205e9ca9bb46/pillow-12.3.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:251bf95b67017e27b13d82f5b326234ca62d70f9cf4c2b9032de2358a3b12c7b", size = 6936962, upload-time = "2026-07-01T11:55:03.93Z" }, - { url = "https://files.pythonhosted.org/packages/18/7e/e483414b35800b86b6f08dbbc7803fb5cd52c4d6f897f47d53ea2c7e6f65/pillow-12.3.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:fe3cca2e4e8a592be0f269a1ca4835c25199d9f3ce815c8491048f785b0a0198", size = 6339171, upload-time = "2026-07-01T11:55:05.989Z" }, - { url = "https://files.pythonhosted.org/packages/f0/f4/68c491844841ede6bed70189546b3ee9731cf9f2cbad396faff5e1ccba45/pillow-12.3.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:23aceaa007d6172b02c277f0cd359c79492bbb14f7072b4ede9fbcaf20648130", size = 7048116, upload-time = "2026-07-01T11:55:08.131Z" }, - { url = "https://files.pythonhosted.org/packages/a3/34/77f3f793fed8efc7d243f21b33c5a3f0d1c97ee70346d3db855587e155ff/pillow-12.3.0-cp314-cp314-win32.whl", hash = "sha256:af8d94b0db561cf68b88a267c5c44b49e134f525d0dc2cb7ed413a66bc23559a", size = 6467209, upload-time = "2026-07-01T11:55:10.408Z" }, - { url = "https://files.pythonhosted.org/packages/f1/e0/492879f69d94f91f60fc8cd05ba03650e9520afebb2fb7aa12777d7c7f38/pillow-12.3.0-cp314-cp314-win_amd64.whl", hash = "sha256:fdafc9cce40277e0f7a0feabce0ee50dd2fa1800f3b38015e51296b5e814048d", size = 7237707, upload-time = "2026-07-01T11:55:12.745Z" }, - { url = "https://files.pythonhosted.org/packages/c9/ac/6b11f2875f1c2ac040d84e1bbf9cf22a88038f901ca1037898b280b38365/pillow-12.3.0-cp314-cp314-win_arm64.whl", hash = "sha256:e91206ee562682b51b98ef4b26a6ef48fd84e15fd4c4bc5ec768eb641d206838", size = 2565995, upload-time = "2026-07-01T11:55:14.736Z" }, - { url = "https://files.pythonhosted.org/packages/52/69/c2208e56af9bfc1913afb24020297a691eb1d4ef688474c8a04913f65e04/pillow-12.3.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:164b31cd1a0490ab6efae01aa5df49da7061be0af1b30e035b6e9a1bfe34ee6e", size = 5352503, upload-time = "2026-07-01T11:55:17.076Z" }, - { url = "https://files.pythonhosted.org/packages/07/70/e5686d753e898a45d778ff1718dba8516ead6ab6b95d85fc8c4b70650cf2/pillow-12.3.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:5afb51d599ea772b8365ae807ae557f18bccfe46ab261fd1c2a9ed700fc6eb17", size = 4782956, upload-time = "2026-07-01T11:55:19.448Z" }, - { url = "https://files.pythonhosted.org/packages/d5/37/25c6692f06927ee973ff18c8d9ee98ad0b4d84ee67a09610c2dd1447958e/pillow-12.3.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3edce1d53195db527e0191f84b71d02022de0540bf43a16ed734ed7537b07385", size = 6322855, upload-time = "2026-07-01T11:55:21.613Z" }, - { url = "https://files.pythonhosted.org/packages/cc/91/420637fcb8f1bc11029e403b4538e6694744428d8246118e45719f944556/pillow-12.3.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bf16ba1b4d0b6b7c8e534936632270cf70eb00dbe09005bc345b2677b726855c", size = 6989642, upload-time = "2026-07-01T11:55:24.006Z" }, - { url = "https://files.pythonhosted.org/packages/10/08/b94d7811281ccf0d143a1cf768d1c49e1e54af63e7b708ab2ee3eb87face/pillow-12.3.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:24870b09b224f7ae3c39ed07d10e819d06f8720bc551847b1d623832b5b0e28d", size = 6391281, upload-time = "2026-07-01T11:55:26.252Z" }, - { url = "https://files.pythonhosted.org/packages/d2/87/24233f785f55474dc02ce3e739c5528a77e3a862e9333d1dd7a25cc31f70/pillow-12.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:30f2aa603c41533cc25c05acd0da21636e84a315768feb631c937177db558931", size = 7096716, upload-time = "2026-07-01T11:55:28.318Z" }, - { url = "https://files.pythonhosted.org/packages/23/26/fcb2f6e37175b04f53570b59937867e2b80ee1685e744023153028fc14f9/pillow-12.3.0-cp314-cp314t-win32.whl", hash = "sha256:4b0a7fe987b14c31ebda6083f74f22b561fd3739bc0ac51e019622e3d72668c7", size = 6474125, upload-time = "2026-07-01T11:55:30.956Z" }, - { url = "https://files.pythonhosted.org/packages/90/de/3634abee5f1c9e13c56787b7d5517b0ba8d6de51700b95578cf338349c9f/pillow-12.3.0-cp314-cp314t-win_amd64.whl", hash = "sha256:962864dc93511324d51ddbb5b9f8731bf71675b93ca612a07441896f4688fb8c", size = 7242939, upload-time = "2026-07-01T11:55:34.044Z" }, - { url = "https://files.pythonhosted.org/packages/ce/2a/fd13f8eb24de5714a6eb444a3d67e2842c6c576e159a43793adf23051351/pillow-12.3.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0740a512dc522224c77d9aa5a8d70d8b7d73fb91f2c21125d8d025d3b8990e45", size = 2567506, upload-time = "2026-07-01T11:55:35.988Z" }, - { url = "https://files.pythonhosted.org/packages/5d/dc/8fdce34ec725a33c81c6ba122b904d6b9024e50ea9ac7bede62fab54506c/pillow-12.3.0-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:0feb2e9d6ad6c9e3c06effe9d00f3f1e618a6643273576b016f591e9315a7139", size = 4162063, upload-time = "2026-07-01T11:55:37.941Z" }, - { url = "https://files.pythonhosted.org/packages/76/66/2044b9a63d3b84ff048228dfcb7cd9bf0df983e8470971bf7d4c57b693de/pillow-12.3.0-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:9e881fca225083806662a5c43d627d215f258ff43c890f831966c7d7ba9c7402", size = 4255549, upload-time = "2026-07-01T11:55:40.022Z" }, - { url = "https://files.pythonhosted.org/packages/52/7e/1f67e6f4ece6b582ee4b539decbcc9f848dc245a93ed8cd7338bafef72f1/pillow-12.3.0-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:4998562bf62a445225f22e07c896bb04b35b1b1f2eb6d760584c9c51d7a5f78c", size = 3696331, upload-time = "2026-07-01T11:55:41.98Z" }, - { url = "https://files.pythonhosted.org/packages/12/40/d306fc2c8e4d45d7f175c77edca7063be7b86fe7fe6e68f4353bf71d808c/pillow-12.3.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:dc624f6bc473dacdf7ef7eb8678d0d08edf15cd94fad6ae5c7d6cc67a4e4902f", size = 5350370, upload-time = "2026-07-01T11:55:44.028Z" }, - { url = "https://files.pythonhosted.org/packages/dd/44/668fb1437e8ce420f62d6106eb66e44a5971602a4d794615bdf79315d82d/pillow-12.3.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:71d6097b330eea8fd15097780c8e89cb1a8ce7838669f48c5bacd6f663dd4701", size = 4780147, upload-time = "2026-07-01T11:55:46.073Z" }, - { url = "https://files.pythonhosted.org/packages/0c/08/93fa2e70e30a2d81547e481b6ee2bb9522117221fb1e0ce4b5df70967677/pillow-12.3.0-cp315-cp315-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:28ce87c5ab450a9dd970b52e5aca5fe63ed432d18a2eaddd1979a00a1ba24ace", size = 6273659, upload-time = "2026-07-01T11:55:48.264Z" }, - { url = "https://files.pythonhosted.org/packages/f8/6d/043e96ff814fc31a33077e4cba86082167db520c93632afdf2042febbb0c/pillow-12.3.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6b02afb9b97f65fbca5f31db6a2a3ba21aa93030225f150fa3f249717e938fb4", size = 6947439, upload-time = "2026-07-01T11:55:50.503Z" }, - { url = "https://files.pythonhosted.org/packages/af/92/ba71d2ee2ac0edf3fa33bd9d5ee9ee080da70b1766f3ca3934f9938ddac9/pillow-12.3.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:1182d52bc2d5e5d7d0949503aa7e36d12f42205dc287e4883f407b1988820d39", size = 6353577, upload-time = "2026-07-01T11:55:52.697Z" }, - { url = "https://files.pythonhosted.org/packages/0f/ce/e63064e2122923ff687c8ad792d0d736a7b3920a56a46982e81a7fdd25d6/pillow-12.3.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:e795b7eb908249c4e43c7c99fac7c2c75dab0c43566e37db472a355f63693d71", size = 7060394, upload-time = "2026-07-01T11:55:55.149Z" }, - { url = "https://files.pythonhosted.org/packages/54/76/a09cc3ccc8d773a7283d34c38bec1708f9e3cc932093cbc4c5e71ac4060b/pillow-12.3.0-cp315-cp315-win32.whl", hash = "sha256:57b3d78c95ba9059768b10e28b813002261d3f3dfc55cc48b0c988f625175827", size = 6467375, upload-time = "2026-07-01T11:55:57.769Z" }, - { url = "https://files.pythonhosted.org/packages/3e/03/1846c49ba3b1d5550392a4bbd06d6fb4578e1cd91a803198b5c90f5f7d53/pillow-12.3.0-cp315-cp315-win_amd64.whl", hash = "sha256:fa4ecea169a355be7a3ade2c783e2ed12f0e40d2c5621cda8b3297faf7fbb9f5", size = 7237048, upload-time = "2026-07-01T11:55:59.975Z" }, - { url = "https://files.pythonhosted.org/packages/fb/bb/89f35dcc79610423f9f195504d7def7f0d1416a711541b42867e25fe3412/pillow-12.3.0-cp315-cp315-win_arm64.whl", hash = "sha256:877c3f311ff35410f690861c4409e7ccbf0cd2f878e50628a28e5a0bb689e658", size = 2566006, upload-time = "2026-07-01T11:56:02.143Z" }, - { url = "https://files.pythonhosted.org/packages/30/88/707027ba09942dfa2c28759b5c222d769290a41c6d20ea60ec250801941f/pillow-12.3.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:e9871b1ffbfa9656b60aeee92ed5136a5742696006fa322b29ea3d8da0ecc9cf", size = 5352509, upload-time = "2026-07-01T11:56:04.2Z" }, - { url = "https://files.pythonhosted.org/packages/b0/6d/00352fa25332c2569cd387851f568cc5a4b75a9adbfb37ac4fbce4c02eec/pillow-12.3.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:53aa02d20d10c3d814d536aa4e5ac9b84ca0ff5a88377963b085ad6822f93e64", size = 4783167, upload-time = "2026-07-01T11:56:06.631Z" }, - { url = "https://files.pythonhosted.org/packages/13/4f/9e049dfa21af7c22427275720e2490267ba8138120add5c4c574deb69782/pillow-12.3.0-cp315-cp315t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446c34dcc4324b084a53b705127dc15717b22c5e140ae0a3c38349d4efec071e", size = 6329237, upload-time = "2026-07-01T11:56:08.868Z" }, - { url = "https://files.pythonhosted.org/packages/36/16/cf6eeaae8d0fce8dd390a33437cf68c5d5bd73834a2bc6e2f14efda0ab45/pillow-12.3.0-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cf1845d02ad822a369a49f2bb9345b1614744267682e7a03527dc3bf6eea1777", size = 6997047, upload-time = "2026-07-01T11:56:11.379Z" }, - { url = "https://files.pythonhosted.org/packages/1e/69/dbf769bdd55f48bf5733cac28edc6364ffaa072ec9ba336266e4fe66be55/pillow-12.3.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:186941b6aef820ad110fb01fb06eb925374dc3a21b17e37ec9a53b250c6fe2d1", size = 6400440, upload-time = "2026-07-01T11:56:13.908Z" }, - { url = "https://files.pythonhosted.org/packages/a0/e1/ffc9cfc2eea0d178da8018e18e959301ad9d6bc9f3edb7181e748a474b97/pillow-12.3.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:f13c32a3abd6079a66d9526e18dad9b6d280384d49d7c54040cd57b6424041d9", size = 7105895, upload-time = "2026-07-01T11:56:16.575Z" }, - { url = "https://files.pythonhosted.org/packages/18/f0/a5595c1e8c3ae44b9828cb2f0fa8155e5095ef04d6327b8f61cf44a3df85/pillow-12.3.0-cp315-cp315t-win32.whl", hash = "sha256:1657923d2d45afb66526e5b933e5b3052e6bdea196c90d3abb2424e18c77dae8", size = 6474384, upload-time = "2026-07-01T11:56:18.855Z" }, - { url = "https://files.pythonhosted.org/packages/e4/04/62bcd9f844984c5938d3b05264a61d797a29d3e0812341a8204af70bbdee/pillow-12.3.0-cp315-cp315t-win_amd64.whl", hash = "sha256:8cd2f7bdda092d99c9fc2fb7391354f306d01443d22785d0cbfafa2e2c8bb418", size = 7243537, upload-time = "2026-07-01T11:56:21.214Z" }, - { url = "https://files.pythonhosted.org/packages/3d/68/1f3066acedf37673694a7141381d8f811ae97f30d34413d236abe7d489f1/pillow-12.3.0-cp315-cp315t-win_arm64.whl", hash = "sha256:06ff022112bc9cbf83b60f8e028d94ad87b60621706487e65f673de61610ab59", size = 2567491, upload-time = "2026-07-01T11:56:23.506Z" }, - { url = "https://files.pythonhosted.org/packages/75/18/2e8b40223153ccbc60df07f9e8928dc0c76202aa4e55ae9f53962b6510d6/pillow-12.3.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:b3c777e849237620b022f7f297dd67705f9f5cf1685f09f02e46f93e92725468", size = 5302510, upload-time = "2026-07-01T11:56:25.736Z" }, - { url = "https://files.pythonhosted.org/packages/46/3e/51fabf59d5ab801ceab709453d3ab6b180083496579549de4c45ced6528a/pillow-12.3.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:b343699e8308bdc51978310e1c959c584e7869cc8c40780058c87da7781a1e94", size = 4736058, upload-time = "2026-07-01T11:56:28.041Z" }, - { url = "https://files.pythonhosted.org/packages/bf/20/22fe9384b7949e25fb1293bcfc84fb82590ff4ea6b37c95b24d26d793d86/pillow-12.3.0-pp311-pypy311_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fbd139c8447d25dd750ab79ee274cc5e1fe80fc56340ab10b18a195e1b6eca3e", size = 5237776, upload-time = "2026-07-01T11:56:30.263Z" }, - { url = "https://files.pythonhosted.org/packages/08/14/f6ba68107680ffa74b39985f3f30884e41318fbc4250caa423c79b4788bb/pillow-12.3.0-pp311-pypy311_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e7e480451b9fa137494bccd3a7d69adbe8ac65a87d97be61e11f1b1050a5bac3", size = 5860358, upload-time = "2026-07-01T11:56:32.68Z" }, - { url = "https://files.pythonhosted.org/packages/36/54/0169bc772ec491108b62f644f8ecf1fe5d8ae5ebafde2ee2142210166903/pillow-12.3.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:04f01d28a6aaff387bf842a13be313df23ba0597a44f1a976c9feb3c6ff4711a", size = 7231786, upload-time = "2026-07-01T11:56:35.046Z" }, +version = "13.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ce/a4/9cc30690a394a8305e8be4c9036aa16d0dfddadd09079860b582f562496d/pillow-13.0.0.tar.gz", hash = "sha256:cdcd1ba258178f7356d74170c9a81ba4eab6a5d55748bc402a5a2a6fe6be3510", size = 47058631, upload-time = "2026-10-16T22:18:09.718Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6c/d7/af6af1b8cc55e07cb0489d5b0950bf5a9bb1461eeba825700b6d8d0e26ea/pillow-13.0.0-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:6f38f3f885a09cafc93fd667b1173a92f379e43785d635e7983c893f0da319fb", size = 5592324, upload-time = "2026-10-16T22:15:24.672Z" }, + { url = "https://files.pythonhosted.org/packages/0b/d2/2c12cb4fbb5d95f38d1001ff3d95fafcb830077018cba40e56a8f932dfbc/pillow-13.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:37290fbef0c73e2d51d594eb78fded7dc7170d1c3ad0a890269e6fd8c8c4e061", size = 4856298, upload-time = "2026-10-16T22:15:27.669Z" }, + { url = "https://files.pythonhosted.org/packages/5c/ee/229b27472483a4801ea94990815e710391836afdf987b4b722b62bd75db6/pillow-13.0.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7c88c10dd432f3b39ccdafc9ed81d0c21b8fd634502574da76d1bfa4fe2c76d0", size = 6517304, upload-time = "2026-10-16T22:15:29.43Z" }, + { url = "https://files.pythonhosted.org/packages/36/46/f509b74787f40ce0627501089d630b2c741b63b244c1f40b640b3b01e181/pillow-13.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a625df9a2a5597fa5e5266e01aefc82604bb85d291e3547981e863560d75da6c", size = 7140667, upload-time = "2026-10-16T22:15:31.368Z" }, + { url = "https://files.pythonhosted.org/packages/aa/a4/5a398b8ec2c37145397d6461c0b551c23ec03072aa64f357aed25e582b00/pillow-13.0.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:10b5019883c98f1dd819ca48ffc6f33a91cee04948fe637c605f4345c7cafd6f", size = 6610583, upload-time = "2026-10-16T22:15:34.025Z" }, + { url = "https://files.pythonhosted.org/packages/4f/7b/f2f1109b230fd4e2d57ab2305de31adc37ea9b4ff8719436c623cb484415/pillow-13.0.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f391dc92a015c478745192fe4f2e120c2af2aba18d9fe0616341cbf537599806", size = 7218241, upload-time = "2026-10-16T22:15:36.214Z" }, + { url = "https://files.pythonhosted.org/packages/ab/d3/069edb9083b267746baf59756282cacef904d3475c5288c7216fb5195a98/pillow-13.0.0-cp311-cp311-win32.whl", hash = "sha256:6a0920cb55df5a4d3f6862964908078c0bd59332bdd1bcd20d14e8c70ef27cc5", size = 6515278, upload-time = "2026-10-16T22:15:38.129Z" }, + { url = "https://files.pythonhosted.org/packages/7d/f6/6e2d96413e4c9dbec12ea584d9e646d602877d4cce3ea669099f959deac6/pillow-13.0.0-cp311-cp311-win_amd64.whl", hash = "sha256:d7710eb676e9bb68965cb045be0d333b4c0d7f9dfbaa7fbf121385b1588683d3", size = 7278471, upload-time = "2026-10-16T22:15:40.286Z" }, + { url = "https://files.pythonhosted.org/packages/70/e7/baff21f8cb60496c8c250609501b88919eeedb4088d3da106f6c62f3f3c0/pillow-13.0.0-cp311-cp311-win_arm64.whl", hash = "sha256:12fbb851cf323cc19aac3eea1df5ad17b57e91e9fe3cfd06100dba7bb8208c13", size = 2698981, upload-time = "2026-10-16T22:15:42.637Z" }, + { url = "https://files.pythonhosted.org/packages/7a/b8/58d79332229482eb0d27c82973850808c19d37e5bdc14443d3417bd373f5/pillow-13.0.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:67c8d44ad89fa7eb88de5d6ef6199b1e03dd24974f85a67639fc8badb801fe79", size = 5568643, upload-time = "2026-10-16T22:15:44.474Z" }, + { url = "https://files.pythonhosted.org/packages/39/4b/f2ed53d83aa44ac19599ac0a54897f867fafb95f406980d1e24083f8cbe3/pillow-13.0.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc481f742ccda20e9ed760b8f978dff50f2a4e9bc253ac167fb0a05b0783ef52", size = 4852329, upload-time = "2026-10-16T22:15:46.284Z" }, + { url = "https://files.pythonhosted.org/packages/3b/bb/9e30e8ed18c20800ee327a12107d5249ad8dc444867b3adfcc21654e3c71/pillow-13.0.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8bf295fe459343bc6093c8e5e0df60bfa189e0fcb775a22e2c2488fdeccc6c0d", size = 6519309, upload-time = "2026-10-16T22:15:48.14Z" }, + { url = "https://files.pythonhosted.org/packages/e6/99/fdf65cc539e266ab93546c261bdf98411fe165c6e4e13f9dbf597097192b/pillow-13.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:42d63be3af4f9b951b199b0a9d23365d37ab14687e6d77b74940432c8515c4ca", size = 7144542, upload-time = "2026-10-16T22:15:50.093Z" }, + { url = "https://files.pythonhosted.org/packages/26/9b/f38b7c4d8f599537e2d1a6d546cec9beef7536ff8f5c49a3f9c78179d8ac/pillow-13.0.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4bd024d567eca931b668978d672dba914d4b8e2628e2c3073a2ad178de8a2620", size = 6618042, upload-time = "2026-10-16T22:15:52.054Z" }, + { url = "https://files.pythonhosted.org/packages/a8/7c/45ee28531f89ee4582967d8a17f7a26d71ca64cd902b93c269590cd60a00/pillow-13.0.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:23edf4ec4b6f4f240e8df6e4985e9ee2ced86474632433e55fb1e2548744bf40", size = 7228137, upload-time = "2026-10-16T22:15:54.009Z" }, + { url = "https://files.pythonhosted.org/packages/01/bc/9c2a969cb1b70201d04fa17fd5aedf02a732870b8da86bceaaa30b0ca385/pillow-13.0.0-cp312-cp312-win32.whl", hash = "sha256:02464da86f561f410e13b061ec37c3068a9cb557a095494157742d07b3c24a27", size = 6515423, upload-time = "2026-10-16T22:15:56.25Z" }, + { url = "https://files.pythonhosted.org/packages/ff/cd/73a79ecdc822076002eb24b5e1e4a530b0bb5310fcb6d239abbec877110b/pillow-13.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:ff3fe9eb621fbb9db4c4be33ab946f6bac5f98ab50ca8d3260503653656c961b", size = 7272166, upload-time = "2026-10-16T22:15:58.597Z" }, + { url = "https://files.pythonhosted.org/packages/4a/a3/be5a1236efd085b3984e4305da8f179ae9dab80c991d2ad78f2bd5c4c843/pillow-13.0.0-cp312-cp312-win_arm64.whl", hash = "sha256:c3bc8ee0271387e0b1e3ad0ff893645990a656e79bf9c42f4f734a3642b11d51", size = 2698943, upload-time = "2026-10-16T22:16:00.637Z" }, + { url = "https://files.pythonhosted.org/packages/82/e2/9132d38df320e8099e2642d9fa538f18a7dfebf68a875a31725dc2a115aa/pillow-13.0.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:e98b4f91f99b24b1da72e10621ba181f7281922384a7403094debb4199de6c00", size = 4190620, upload-time = "2026-10-16T22:16:02.527Z" }, + { url = "https://files.pythonhosted.org/packages/cb/be/436dac0996876f65ef1916ffb711c5ef4af2ebc57414b6f16642e07f6b47/pillow-13.0.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:34fb3db1149c879343861831728c243c432d4a5afc8f1878ca7612ef8de2a033", size = 4290286, upload-time = "2026-10-16T22:16:04.861Z" }, + { url = "https://files.pythonhosted.org/packages/60/16/7c1007162e4169ea0d5bec47e2e0b2174f56c50cf5b8c02a1dc23e41037e/pillow-13.0.0-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:2d50500a4a3bc6469adcdb319cf05d688b08ca3bf0f22a05339f3b25b433a599", size = 3723169, upload-time = "2026-10-16T22:16:06.956Z" }, + { url = "https://files.pythonhosted.org/packages/08/bc/578ab2eaa04705a8978bd9be0fe15c3d43a8fc95097c4f7e39540e79e4fa/pillow-13.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ef5fe6b7db3f501c56000ba8fe7c7e1a35ca1d45824fbeb95a67daa85cff4dbe", size = 5568469, upload-time = "2026-10-16T22:16:08.664Z" }, + { url = "https://files.pythonhosted.org/packages/98/c8/ccede3dcc4f274b80fb49199eed1ef34ba05566c8b71976b9d1f111da2e3/pillow-13.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f11a3c1358bb3c68012a7b1f41b223c3db9f7bfde90b481df028cfe1c3363313", size = 4852187, upload-time = "2026-10-16T22:16:10.693Z" }, + { url = "https://files.pythonhosted.org/packages/fb/3c/cd0770e96d20bfd990db024bcbd43897ff3e88da1f4782cf90ea231b1d4f/pillow-13.0.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:19b66ca0a4d25cc0200b381ce824c7ea090db61427315e73cfb05dbf1b35c369", size = 6515908, upload-time = "2026-10-16T22:16:12.896Z" }, + { url = "https://files.pythonhosted.org/packages/ef/fe/f5cdaa2d1c4086e757430f368c271a58ee29cfe7378e7ae7b9d964015c25/pillow-13.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5f56499c1a74d2b862beb0c33b8016f99d095858455df9d21583bbbc1c15b582", size = 7142544, upload-time = "2026-10-16T22:16:14.844Z" }, + { url = "https://files.pythonhosted.org/packages/fb/b5/a54f6d44adbcd23737c8c12953f42be107e4cca64e247c0ca3a5b563061c/pillow-13.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a2a14cd73d5e6c927f644b0110ee81f59c4ef506259ec9183904747f2caacc81", size = 6613097, upload-time = "2026-10-16T22:16:16.893Z" }, + { url = "https://files.pythonhosted.org/packages/e6/b4/9e6c1207c21b2e91db0d15c16d30f3701ce5add1bd4da0e787761e66cb6e/pillow-13.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:08b826a9bf1265c76de04a42061d61ea6b109418b7826f28ff1ecdfaa26c5502", size = 7224846, upload-time = "2026-10-16T22:16:19.195Z" }, + { url = "https://files.pythonhosted.org/packages/78/9f/d3c3cb0518f3dd1eee0ef501535f53d15597a53c5c4118d178086143397a/pillow-13.0.0-cp313-cp313-win32.whl", hash = "sha256:12b0fa15879fe5a9d9eebe66e4e2d74128a773b1a4448010c9c714f45e04b9d8", size = 6516013, upload-time = "2026-10-16T22:16:21.389Z" }, + { url = "https://files.pythonhosted.org/packages/d7/ed/1b16fb66a37e1b9e41370b93b2c614c7da761a5b2a41dc333f7af4639962/pillow-13.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:9dda0788a9932776a75d8bcc020076edc308ce2508b51f6739a45e3158b3fc42", size = 7284777, upload-time = "2026-10-16T22:16:23.393Z" }, + { url = "https://files.pythonhosted.org/packages/87/7d/8d02eba9f7ecc87f8e90f731e032cc4773802f2a843763afd0c66a535ff4/pillow-13.0.0-cp313-cp313-win_arm64.whl", hash = "sha256:40a266371ece581e5de13b6635ef78d7487824af80561b6ca27694a88c19bc0f", size = 2698826, upload-time = "2026-10-16T22:16:25.382Z" }, + { url = "https://files.pythonhosted.org/packages/8e/45/fbad9c7f5e2f1745c373a434d46072bc84eddfefaa28b852425ac957fda6/pillow-13.0.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:44629d4498c9cb6b2051806155f22141df0d8a929c56134b166655232dfb2f8c", size = 4190721, upload-time = "2026-10-16T22:16:27.524Z" }, + { url = "https://files.pythonhosted.org/packages/a2/bf/2074902a259a90692c5dbf132885d21671644cbbd3f690047516243a55db/pillow-13.0.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:bf97ba1b5542050e9b0c74e632323b6d8136cc99d64e193abebee22fe6013c76", size = 4290236, upload-time = "2026-10-16T22:16:29.562Z" }, + { url = "https://files.pythonhosted.org/packages/ff/a5/3d1bb93b8ea38d15d21356c1b8e9f50971ac592aaa248f7fb71739094c0e/pillow-13.0.0-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:aa694c49787040943570d61c9b8fc01271bd2a2cfdd55f0d896f8aecdce1a981", size = 3723093, upload-time = "2026-10-16T22:16:31.249Z" }, + { url = "https://files.pythonhosted.org/packages/84/a1/be060135d85187b25fa8b2573786c0e45c62ae27527fff5257675eb97f4a/pillow-13.0.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:49c12af515073e9bf511e4ef736743bf70d531a643668722279314b937742ba4", size = 5572253, upload-time = "2026-10-16T22:16:33.103Z" }, + { url = "https://files.pythonhosted.org/packages/b5/f4/0bf6f1ac9ba7ee2ffe9914aeb410a1035a0c1a3c42f122388d7fc950bc4b/pillow-13.0.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:d9b0a2bee3f3e03e9f29057aedb807dbf1e1d96ee1b9d0f422d9db6c8583271d", size = 4852269, upload-time = "2026-10-16T22:16:35.102Z" }, + { url = "https://files.pythonhosted.org/packages/83/16/b603274617b3e6728da3a0133d4fba1ea8d7fbe0c4ea5fef9cbffa398b8b/pillow-13.0.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5933fcea5a5ba64c686f55c886a115cbfd92f2900460784a1e79909fdbafd7b6", size = 6516058, upload-time = "2026-10-16T22:16:37.228Z" }, + { url = "https://files.pythonhosted.org/packages/1d/f2/1371707ce438ba9a43f9d24089828494ec6f9396e28cd7903aa704dd6306/pillow-13.0.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e91c2b1cbeae768c98752e67e717e283d68dae45717b41f2d91eaee648e37b7d", size = 7142574, upload-time = "2026-10-16T22:16:39.172Z" }, + { url = "https://files.pythonhosted.org/packages/b9/a9/62cf68587f910bc87c5951bcb6e9430c7643a65076adf5f18b4bf350e2bd/pillow-13.0.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7f6299e494e46253d40c34653cac369412f44ca53b5f85d848d3f95b1ed0546c", size = 6614295, upload-time = "2026-10-16T22:16:41.117Z" }, + { url = "https://files.pythonhosted.org/packages/6c/c9/9e9b48178649730299be0bafbf5f810a5b6977538f5a92d47e4ba5f5d608/pillow-13.0.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f9bd7d260d986f3553518c5d723544346fa48031f8aef3265d786aeb59845bc0", size = 7224841, upload-time = "2026-10-16T22:16:43.118Z" }, + { url = "https://files.pythonhosted.org/packages/8f/48/c44e91384b1b6c072a714a63d00608acc16a6a968735e478e4be4384e5ac/pillow-13.0.0-cp314-cp314-win32.whl", hash = "sha256:2e31c4e68cffd7b1f116127626813b82fcba19edf6b940a7b0c266d6484d0055", size = 6508694, upload-time = "2026-10-16T22:16:45.883Z" }, + { url = "https://files.pythonhosted.org/packages/50/e2/7ad17747517e4c813dca78257d6bb593466f8231baf1384bc98d92745edb/pillow-13.0.0-cp314-cp314-win_amd64.whl", hash = "sha256:f7cbb7a64e7ec664775195e4f81923bc8a93d9451b963f844e59118f63147a7a", size = 7281830, upload-time = "2026-10-16T22:16:47.725Z" }, + { url = "https://files.pythonhosted.org/packages/41/9f/e5b51f2ce8ef4563215334035403ce61a244f93a2e65c24a940131618f87/pillow-13.0.0-cp314-cp314-win_arm64.whl", hash = "sha256:a6aaa7871aebca081eb5c45f83e845bbd9712ae99fa9286dbfdcee835e63f4b4", size = 2695468, upload-time = "2026-10-16T22:16:49.515Z" }, + { url = "https://files.pythonhosted.org/packages/97/73/a53502f731f6c84805a4ce87a8881e86d07a65aee64728b900d112dc703e/pillow-13.0.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:7b999816b5850a35ada08443e6e03945f1f6488144a83afe2d37b240a552aafa", size = 5578196, upload-time = "2026-10-16T22:16:51.291Z" }, + { url = "https://files.pythonhosted.org/packages/21/50/7e949959a56b5559c78ef172b70fc6025706acb289f3f648a15329e4fa6f/pillow-13.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:67871a13cf47275201553b536c025da777f997fa562a19eb798af4ad4b97c18f", size = 4857276, upload-time = "2026-10-16T22:16:53.399Z" }, + { url = "https://files.pythonhosted.org/packages/c9/52/43ded0ac08e77e39d17bd6d894162572201b5e8fdc4a022b14c55a1960a4/pillow-13.0.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e8ca8f69b7c77fa96dad99f8638c1fc4f1c0bed4acaa1baf7a3c31bdb80a0ab1", size = 6607008, upload-time = "2026-10-16T22:16:55.525Z" }, + { url = "https://files.pythonhosted.org/packages/0d/2e/4a57ed216d5bf877387cba4d44c02aa87abe51ad2e06404aa6b597c4da39/pillow-13.0.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6bce6a29c3898191f4c9998e4d4e8f69790caeabde46e54da4bc235ce5bde683", size = 7224281, upload-time = "2026-10-16T22:16:57.738Z" }, + { url = "https://files.pythonhosted.org/packages/5c/3d/2929b248e135752d63aaeabf53f6de797e905b7b6263f9c1e2adade20aba/pillow-13.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:816752a5ef76a80484c8c441c85593b7ea9304f6231fc5776ad1fbff7e773058", size = 6695600, upload-time = "2026-10-16T22:16:59.842Z" }, + { url = "https://files.pythonhosted.org/packages/bc/33/fb0da992cf084ed1ee6ee05e96b6191e35c351eb707ca2df874feb24ce47/pillow-13.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5bdb38ba220b61b4ec31dd1046dea6b016d3c6850a23f43ed8b58332b2fc668e", size = 7300589, upload-time = "2026-10-16T22:17:01.686Z" }, + { url = "https://files.pythonhosted.org/packages/bb/af/c30dd9ef6a3dce84ecb1b2393cac629047a32e66279056c6cb46c3ffd65c/pillow-13.0.0-cp314-cp314t-win32.whl", hash = "sha256:06903aac074d00c988e77a1fc435286dc498506d4ca8d6f69df9babddf4ecc15", size = 6517204, upload-time = "2026-10-16T22:17:03.722Z" }, + { url = "https://files.pythonhosted.org/packages/85/d5/ef3a8ae7609c8ab26570abf18194882534b480d245a9148b895a2262c004/pillow-13.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:9a635068d9793c7f0d929f39f18b58f1bd86c236e8e7b64167b86af9232ebca0", size = 7286695, upload-time = "2026-10-16T22:17:05.543Z" }, + { url = "https://files.pythonhosted.org/packages/84/3c/0861db0c69a03689ebe3e7599d35668a414deb5aaafd8255215e4e62e3d3/pillow-13.0.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0d1a9cf7bc6917538b20f8d06b9ab2147e542f68849e96fc58eb66bdf6acc692", size = 2698098, upload-time = "2026-10-16T22:17:07.674Z" }, + { url = "https://files.pythonhosted.org/packages/6e/eb/e86a41962a3a31ad495a3d6a912d9002b01bba4a6fa71c28703abdca7f69/pillow-13.0.0-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7d5e097eabd5d4915c27ac9f6e9325bb1e01a7c94d7348b5c4451d3fc30e8521", size = 4191213, upload-time = "2026-10-16T22:17:09.449Z" }, + { url = "https://files.pythonhosted.org/packages/dd/04/7e7445e706afec84ef06dc25b2c77f9cecff242c23730c62928ad1089d4a/pillow-13.0.0-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:51ebb529fc5e8abdd55302f6c3f8943037348ec2384329a3e55677f69ae2fdfc", size = 4290650, upload-time = "2026-10-16T22:17:11.196Z" }, + { url = "https://files.pythonhosted.org/packages/46/85/d534089068ac40c0f61f650389a296c812eab745a8a733f81feec39ae955/pillow-13.0.0-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:c87a04e7f152ee4db5dbe15f0bfa3fe628a1aeedbe66b81c43b87f52c813f9ac", size = 3723078, upload-time = "2026-10-16T22:17:12.772Z" }, + { url = "https://files.pythonhosted.org/packages/ce/2b/00b5c3b401df538b5dbe311d3899730fae5ba1e21cb8b80a128887ac6747/pillow-13.0.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:20722cd5375533ad754053363a80b8fb30c79d37930a6f7228030e237ce3bd5d", size = 5572292, upload-time = "2026-10-16T22:17:14.539Z" }, + { url = "https://files.pythonhosted.org/packages/72/f5/a6b0610f946e9b54ae888ba7ad29d6e2f8d9b11f69e212d70416b7186c09/pillow-13.0.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:04a63720f79e22fd54d897c233a68314c50ca0603360f54ce2bd5db8f0f43782", size = 4852222, upload-time = "2026-10-16T22:17:16.521Z" }, + { url = "https://files.pythonhosted.org/packages/1e/d0/c0ff25bb0427ec70f32aac995453321fc3c4494a46c7292ff02d9d260b04/pillow-13.0.0-cp315-cp315-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4f8db54177035a2b5f717f94475b74907e12a96dc74f6d487f3966b0a4694071", size = 6527349, upload-time = "2026-10-16T22:17:18.534Z" }, + { url = "https://files.pythonhosted.org/packages/85/11/e46fa0bcc0fc117f1eacc206b3d51f04d583fab328b4b740672d0438d83f/pillow-13.0.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8f36aa77f74b14a2103622b196402c71330e4e7cf4122ee45c854e9a01e0eecf", size = 7152873, upload-time = "2026-10-16T22:17:20.415Z" }, + { url = "https://files.pythonhosted.org/packages/7c/53/2bdeca705f3a58679fa9201233193c86a30238340ca29b3a152c3fcc719b/pillow-13.0.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:149a1c323ba366f90b48e6f1a6db6582eb50512df374588de56fc909abc0f0f3", size = 6626871, upload-time = "2026-10-16T22:17:22.361Z" }, + { url = "https://files.pythonhosted.org/packages/14/de/3829030f209722ade3753bb456b805a0e7f885cf885b483407365c82e9ca/pillow-13.0.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:e892354a424b1e82a78ba16785822bdd40de06f19446a3d4a28047df1a4f8932", size = 7236439, upload-time = "2026-10-16T22:17:24.352Z" }, + { url = "https://files.pythonhosted.org/packages/44/b1/67fc37388382bc036a74f04da5bb6fcbf90ec3ac1f45893e06176c373fd3/pillow-13.0.0-cp315-cp315-win32.whl", hash = "sha256:8e459b613cf31f8980f584387b4fe47bf08e076e288d61aa8eba1f7fd4ddbb81", size = 6508688, upload-time = "2026-10-16T22:17:26.314Z" }, + { url = "https://files.pythonhosted.org/packages/44/05/fdb6a79aee10861165526b41b7b440e36ee1ff58613b2fbefe3acbf06d4f/pillow-13.0.0-cp315-cp315-win_amd64.whl", hash = "sha256:d4737f50d23ddd11d6685faacbb9252887dde0bc7997127757247983d74399d6", size = 7281107, upload-time = "2026-10-16T22:17:28.198Z" }, + { url = "https://files.pythonhosted.org/packages/e6/9c/6c6f7dc2a566467baf121394e83de25ac287cffe34cc030726beb4be0224/pillow-13.0.0-cp315-cp315-win_arm64.whl", hash = "sha256:2310e2adfc13c6d457d7d0f2ffdd5c56a74a317650cf765887df8d515a647ac0", size = 2695513, upload-time = "2026-10-16T22:17:30.013Z" }, + { url = "https://files.pythonhosted.org/packages/23/16/e9120defdb8bff693b582d035312acc6f530cdc2bc5238a87f410efccd82/pillow-13.0.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:21c32061a5512dc13f87cc7303e120e4d77c2f70df89a35af0e3ce246e5ac57f", size = 5578129, upload-time = "2026-10-16T22:17:31.642Z" }, + { url = "https://files.pythonhosted.org/packages/47/22/76faf2bb2448f48a84cf894c1e2bb1090d7d2b1aa521ece131cb2f05d631/pillow-13.0.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:1c774b9c0ba0d0b356f71530677b39028878a2cae5a93e0a13779cfd17120f88", size = 4857428, upload-time = "2026-10-16T22:17:33.43Z" }, + { url = "https://files.pythonhosted.org/packages/b3/64/0861ea4e03c50b14af9ed9dd8b9f388ab42f445c623a9fcbab19aef7aa55/pillow-13.0.0-cp315-cp315t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:20822140c9a2ba9c5e42df342b0a892ab2e102fc0e3db967a133bb9ce3f898bb", size = 6612582, upload-time = "2026-10-16T22:17:35.415Z" }, + { url = "https://files.pythonhosted.org/packages/5c/20/cd1e9b3f60a9f3d5ebe46da36955c26004092a501f7f2c42f9fcc26611bc/pillow-13.0.0-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ffea6b2986a797c84b6d1d27d4f43e0b83c73fc16281a930891cd237cf0d08fe", size = 7230176, upload-time = "2026-10-16T22:17:37.362Z" }, + { url = "https://files.pythonhosted.org/packages/b6/ef/ffb0a2fc85690714fb7ac662956949645d57f15bf4426f520da361e7b6e3/pillow-13.0.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:05cd2cd39055d0b9650060e4513ef4a9a0aea870083950bd046a0d6490f93a22", size = 6703640, upload-time = "2026-10-16T22:17:39.313Z" }, + { url = "https://files.pythonhosted.org/packages/e0/c2/6402ee3ccb3363aeed8fdb3f9fe56703ac5377a539f0b81b53999d7e121f/pillow-13.0.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:c6fd031333dedcad7ce3e03d244093f43504f209e86925ebdb2b868fa4037630", size = 7309231, upload-time = "2026-10-16T22:17:41.021Z" }, + { url = "https://files.pythonhosted.org/packages/fc/96/d6b82e8b8c06ad143b66b12e0b31051e4bf489b4fabca1f390a14fe1ebde/pillow-13.0.0-cp315-cp315t-win32.whl", hash = "sha256:c50c80e3591e5cf9a8dfa6007d4f10732f02e32263850999286e56ccd650cfb2", size = 6517200, upload-time = "2026-10-16T22:17:42.886Z" }, + { url = "https://files.pythonhosted.org/packages/60/d4/0062e6005e9b270b165015aafd343364ac378ec5a685431ea42baad33357/pillow-13.0.0-cp315-cp315t-win_amd64.whl", hash = "sha256:adb3c2124c68e480f4632d06cb7caa3b48a51678475f483b4edb1c6dee29ea43", size = 7287488, upload-time = "2026-10-16T22:17:45.56Z" }, + { url = "https://files.pythonhosted.org/packages/e4/81/b8eb349746be7bce47dd95337c6634e84910af91b59aaa9159c034c614fa/pillow-13.0.0-cp315-cp315t-win_arm64.whl", hash = "sha256:4a25756244bdcce3b50580baadf320fa48297f0eeb8e114ba64139a40d4d0fc8", size = 2698073, upload-time = "2026-10-16T22:17:47.556Z" }, + { url = "https://files.pythonhosted.org/packages/68/c0/fb7b1caf25ed5ac5d46116f09b8b0706b9559833c65c667cecb1a53153f2/pillow-13.0.0-pp311-pypy311_pp80-macosx_10_15_x86_64.whl", hash = "sha256:405be6058e206a86fedce2f715ecc2343f94072d7925251632dffa2c05f70dca", size = 5521630, upload-time = "2026-10-16T22:17:50.008Z" }, + { url = "https://files.pythonhosted.org/packages/1a/e6/4d11d5b1137f4fc080605cce410cfaae4f303ad400bdec75d27d3083fa29/pillow-13.0.0-pp311-pypy311_pp80-macosx_11_0_arm64.whl", hash = "sha256:b84be41387fc00db28c13c02e30d42b02d8d8f6a4a741a1aee6012ca7f1f6039", size = 4806023, upload-time = "2026-10-16T22:17:51.932Z" }, + { url = "https://files.pythonhosted.org/packages/f1/45/0923202a658e8ff6aafd72c1a4395ebadcdebaa182c437d8595d3dd3db32/pillow-13.0.0-pp311-pypy311_pp80-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a192360d512305fe92d3053e4f7627bbad1f7708f1f4ad38cccd9336acabe9ad", size = 5464831, upload-time = "2026-10-16T22:17:53.742Z" }, + { url = "https://files.pythonhosted.org/packages/07/52/d3e38f0cad1dadea2a658b9a7d6ba8a04048f5ae14f011b806e5c3bd6bcb/pillow-13.0.0-pp311-pypy311_pp80-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:83b37abd87b590acd8f47ca8a61f70893322b11834d36e07c2298dacad4d14d2", size = 6043133, upload-time = "2026-10-16T22:17:55.625Z" }, + { url = "https://files.pythonhosted.org/packages/c4/f9/2ed7685980c1d64f8131a7d87a19c369424747577152622b73ddeff163b7/pillow-13.0.0-pp311-pypy311_pp80-win_amd64.whl", hash = "sha256:73ee25cf8cf8b75d5a5aeed7cb6588f5e5dbfbb0fde51707b630bbb23897645c", size = 7365208, upload-time = "2026-10-16T22:17:57.509Z" }, + { url = "https://files.pythonhosted.org/packages/60/da/f6d644e631c5b370c5d0b899f3ccadd2780aab070b29a110527cf4e1fd2c/pillow-13.0.0-pp312-pypy312_pp80-macosx_10_15_x86_64.whl", hash = "sha256:8619685cad8efc4c38c66d3b36aad854523297c43d748b3b6f0cc03c90ba3463", size = 5523188, upload-time = "2026-10-16T22:17:59.334Z" }, + { url = "https://files.pythonhosted.org/packages/e4/b0/2594f202d743a35d4fe80682bfd96f277e5ca7aecb27cf64ef5bfc1d000b/pillow-13.0.0-pp312-pypy312_pp80-macosx_11_0_arm64.whl", hash = "sha256:7e91e97a929232cdb828889ee6ad0e48d7f40f4ec38818f4e4a8968b2b1af22e", size = 4806808, upload-time = "2026-10-16T22:18:01.188Z" }, + { url = "https://files.pythonhosted.org/packages/8e/ed/d504165ef79af6fafe25c76726cf30f544cc236002f7ed054f1d51adc4ff/pillow-13.0.0-pp312-pypy312_pp80-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:93ff9c9c3663ce23aaa5d0b6b6abac55359e2a0c06c7e30f3771829af816be63", size = 5464358, upload-time = "2026-10-16T22:18:02.779Z" }, + { url = "https://files.pythonhosted.org/packages/7b/fe/a10aba5503ca13e9e009b8bd0a1a4ce5584bdce246245fd6f3a83701369c/pillow-13.0.0-pp312-pypy312_pp80-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e65dd6e75de67b2362a4fa3e16aa627595f65054dc4ec73d64680c84d592fa61", size = 6043514, upload-time = "2026-10-16T22:18:04.538Z" }, + { url = "https://files.pythonhosted.org/packages/c0/37/66b12dc476041fe523bca29c9d58fbf1ea92a4eaf73acfb9e993948f1191/pillow-13.0.0-pp312-pypy312_pp80-win_amd64.whl", hash = "sha256:567f20f1c75897d7663830da6ea8af719e03d712b1d9ee7f813319f9ece42e5a", size = 7366030, upload-time = "2026-10-16T22:18:06.638Z" }, ] [[package]] @@ -2501,101 +2573,135 @@ wheels = [ [[package]] name = "yarl" -version = "1.24.2" +version = "1.25.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "idna" }, { name = "multidict" }, { name = "propcache" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/79/12/1e8f37460ea0f7eb59c221fdaf0ed75e7ac43e97f8093b9c6f411df50a78/yarl-1.24.2.tar.gz", hash = "sha256:9ac374123c6fd7abf64d1fec93962b0bd4ee2c19751755a762a72dd96c0378f8", size = 210798, upload-time = "2026-05-19T21:31:05.599Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/c5/c5/1ce244152ff2839645e7cae92f90e7bafcb2c52bea7ff586ac714f14f5df/yarl-1.24.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:36348bebb147b83818b9d7e673ea4debc75970afc6ffdc7e3975ad05ce5a58c1", size = 128971, upload-time = "2026-05-19T21:28:20.543Z" }, - { url = "https://files.pythonhosted.org/packages/87/5a/00f36967203ed89cb3acd2c8ed526cc3fed9418eb70ce128160a911c8499/yarl-1.24.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:1a97e42c8a2233f2f279ecadd9e4a037bcb5d813b78435e8eedd4db5a9e9708c", size = 91507, upload-time = "2026-05-19T21:28:22.556Z" }, - { url = "https://files.pythonhosted.org/packages/31/d0/1fb0c1cd27288f39f6974da4318c32768d72c9890984541fdf1e2e32a51d/yarl-1.24.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8d027d56f1035e339d1001ac33eceab5b2ec8e42e449787bb75e289fb9a5cd1d", size = 91343, upload-time = "2026-05-19T21:28:24.092Z" }, - { url = "https://files.pythonhosted.org/packages/03/ce/d4a646508bed2f8dec6435b40166fe9308dd191262033d3f307b2bbcaecd/yarl-1.24.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0a6377060e7927187a42b7eb202090cbe2b34933a4eeaf90e3bd9e33432e5cae", size = 105704, upload-time = "2026-05-19T21:28:25.872Z" }, - { url = "https://files.pythonhosted.org/packages/4b/07/b3278e82d8bc41485bcf6d856cd0433262593de615b1d3dc43bd3f5bead4/yarl-1.24.2-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:17076578bce0049a5ce57d14ad1bded391b68a3b213e9b81b0097b090244999a", size = 97281, upload-time = "2026-05-19T21:28:27.352Z" }, - { url = "https://files.pythonhosted.org/packages/17/5b/4cee6e7c92e487bebe7afc797da0aa54a248ab4e776a68fe369ec29665a5/yarl-1.24.2-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:50713f1d4d6be6375bb178bb43d140ee1acb8abe589cd723320b7925a275be1e", size = 114020, upload-time = "2026-05-19T21:28:29.458Z" }, - { url = "https://files.pythonhosted.org/packages/5c/82/111076571545a7d4f9cca3fbd5c6f40615af58642be09f12328f48022468/yarl-1.24.2-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:34263e2fa8fb5bb63a0d97706cda38edbad62fddb58c7f12d6acbc092812aa50", size = 111450, upload-time = "2026-05-19T21:28:31.262Z" }, - { url = "https://files.pythonhosted.org/packages/b6/ec/08f671f69a444d704aeecebf92af659b67b97a869942411d0a578b08c334/yarl-1.24.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:49016d82f032b1bd1e10b01078a7d29ae71bf468eeae0ea22df8bab691e60003", size = 106384, upload-time = "2026-05-19T21:28:32.856Z" }, - { url = "https://files.pythonhosted.org/packages/e5/86/ce41e7a7a199340b2330d52b60f25c4074b6636dd0e60b1a80d31a9db042/yarl-1.24.2-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3f6d2c216318f8f32038ca3f72501ba08536f0fd18a36e858836b121b2deed9f", size = 106153, upload-time = "2026-05-19T21:28:35.222Z" }, - { url = "https://files.pythonhosted.org/packages/c4/5d/31be8a729531ab3e55ac3e7e5c800be8c89ea98947f418b2f6ea259fb6ee/yarl-1.24.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:08d3a33218e0c64393e7610284e770409a9c31c429b078bcb24096ed0a783b8f", size = 105322, upload-time = "2026-05-19T21:28:36.642Z" }, - { url = "https://files.pythonhosted.org/packages/47/9b/b57afb22b386ae87ac9940f09878b98d8c333f89113e6fc96fcf4ca9eb64/yarl-1.24.2-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:5d699376c4ca3cba49bbfae3a05b5b70ded572937171ce1e0b8d87118e2ba294", size = 99057, upload-time = "2026-05-19T21:28:38.386Z" }, - { url = "https://files.pythonhosted.org/packages/a3/4f/06348c27c8389256c313e8a57d796808fc0264c915dd5e7cfd3c0e314dc7/yarl-1.24.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:a1cab588b4fa14bea2e55ebea27478adfb05372f47573738e1acc4a36c0b05d2", size = 113502, upload-time = "2026-05-19T21:28:40.091Z" }, - { url = "https://files.pythonhosted.org/packages/5f/1c/284f307b298e4a17b7943b07d9d7ecc4151537f8d137ba51f3bb6c31ca20/yarl-1.24.2-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:ec87ccc31bd21db7ad009d8572c127c1000f268517618a4cc09adba3c2a7f21c", size = 105253, upload-time = "2026-05-19T21:28:41.987Z" }, - { url = "https://files.pythonhosted.org/packages/c8/bf/0de123bec8619e45c80cbded9085f61b5b4a9eddb8abe6d25d28ee1ec866/yarl-1.24.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:d1dd47a22843b212baa8d74f37796815d43bd046b42a0f41e9da433386c3136b", size = 111345, upload-time = "2026-05-19T21:28:43.93Z" }, - { url = "https://files.pythonhosted.org/packages/90/af/0248eb065e51129d2a9b2436cd1b5c772c19a6b04e5b6a186955671e3319/yarl-1.24.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:7b54b9c67c2b06bd7b9a77253d242124b9c95d2c02def5a1144001ee547dd9d5", size = 106558, upload-time = "2026-05-19T21:28:45.806Z" }, - { url = "https://files.pythonhosted.org/packages/21/3c/f960d7a65ef97d8ba9b424fb5128796a4bc710fc6df2ddbbd7dfdc3bbd20/yarl-1.24.2-cp311-cp311-win_amd64.whl", hash = "sha256:f8fdbcff8b2c7c9284e60c196f693588598ddcee31e11c18e14949ce44519d45", size = 92808, upload-time = "2026-05-19T21:28:48.465Z" }, - { url = "https://files.pythonhosted.org/packages/03/1a/49fb03750e4de4d2284cd5b885a383133c34eef45bd59631b2bb8b7e81e8/yarl-1.24.2-cp311-cp311-win_arm64.whl", hash = "sha256:b32c37a7a337e90822c45797bf3d79d60875cfcccd3ecc80e9f453d87026c122", size = 87610, upload-time = "2026-05-19T21:28:50.07Z" }, - { url = "https://files.pythonhosted.org/packages/f0/da/866bcb01076ba49d2b42b309867bed3826421f1c479655eb7a607b44f20b/yarl-1.24.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:b975866c184564c827e0877380f0dae57dcca7e52782128381b72feff6dfceb8", size = 129957, upload-time = "2026-05-19T21:28:51.695Z" }, - { url = "https://files.pythonhosted.org/packages/bf/1d/fcefb70922ea2268a8971d8e5874d9a8218644200fb8465f1dcad55e6851/yarl-1.24.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:3b075301a2836a0e297b1b658cb6d6135df535d62efefdd60366bd589c2c82f2", size = 92164, upload-time = "2026-05-19T21:28:53.242Z" }, - { url = "https://files.pythonhosted.org/packages/29/b6/170e2b8d4e3bc30e6bfdcca53556537f5bf595e938632dfcb059311f3ff6/yarl-1.24.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8ae44649b00947634ab0dab2a374a638f52923a6e67083f2c156cd5cbd1a881d", size = 91688, upload-time = "2026-05-19T21:28:54.865Z" }, - { url = "https://files.pythonhosted.org/packages/fe/a5/c9f655d5553ea0b99fdac9d6a99ad3f9b3e73b8e5758bb46f58c9831f74c/yarl-1.24.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:507cc19f0b45454e2d6dcd62ff7d062b9f77a2812404e62dbdaec05b50faa035", size = 102902, upload-time = "2026-05-19T21:28:56.963Z" }, - { url = "https://files.pythonhosted.org/packages/5d/bc/6b9664d815d79af4ee553337f9d606c56bbf269186ada9172de45f1b5f60/yarl-1.24.2-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c4c17bad5a530912d2111825d3f05e89bab2dd376aaa8cbc77e449e6db63e576", size = 97931, upload-time = "2026-05-19T21:28:58.56Z" }, - { url = "https://files.pythonhosted.org/packages/98/ec/32ba48acae30fecd60928f5791188b80a9d6ee3840507ffda29fecd37b71/yarl-1.24.2-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f5f0cbb112838a4a293985b6ed73948a547dadcc1ba6d2089938e7abdedceef8", size = 111030, upload-time = "2026-05-19T21:29:00.148Z" }, - { url = "https://files.pythonhosted.org/packages/82/5a/6f4cd081e5f4934d2ae3a8ef4abe3afacc010d26f0035ee91b35cd7d7c37/yarl-1.24.2-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5ec8356b8a6afcf81fc7aeeef13b1ff7a49dec00f313394bbb9e83830d32ccd7", size = 110392, upload-time = "2026-05-19T21:29:02.155Z" }, - { url = "https://files.pythonhosted.org/packages/7a/da/323a01c349bd5fb01bb6652e314d9bb218cee630a736bdb810ad50e4013f/yarl-1.24.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7e7ebcdef69dec6c6451e616f32b622a6d4a2e92b445c992f7c8e5274a6bbc4c", size = 105612, upload-time = "2026-05-19T21:29:04.247Z" }, - { url = "https://files.pythonhosted.org/packages/7c/80/264ab684f181e1a876389374519ff05d10248725535ae2ac4e8ac4e563d6/yarl-1.24.2-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:47a55d6cf6db2f401017a9e96e5288844e5051911fb4e0c8311a3980f5e59a7d", size = 104487, upload-time = "2026-05-19T21:29:06.491Z" }, - { url = "https://files.pythonhosted.org/packages/41/07/efabe5df87e96d7ad5959760b888344be48cd6884db127b407c6b5503adc/yarl-1.24.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3065657c80a2321225e804048597ad55658a7e76b32d6f5ee4074d04c50401db", size = 102333, upload-time = "2026-05-19T21:29:08.267Z" }, - { url = "https://files.pythonhosted.org/packages/44/0c/bcf7c42603e1009295f586d8890f2ba032c8b53310e815adf0a202c73d9f/yarl-1.24.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:cb84b80d88e19ede158619b80813968713d8d008b0e2497a576e6a0557d50712", size = 99025, upload-time = "2026-05-19T21:29:10.682Z" }, - { url = "https://files.pythonhosted.org/packages/4f/82/84482ab1a57a0f21a08afe6a7004c61d741f8f2ecc3b05c321577c612164/yarl-1.24.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:990de4f680b1c217e77ff0d6aa0029f9eb79889c11fb3e9a3942c7eba29c1996", size = 110507, upload-time = "2026-05-19T21:29:12.954Z" }, - { url = "https://files.pythonhosted.org/packages/c4/8d/a546ba1dfe1b0f290e05fef145cd07614c0f15df1a707195e512d1e39d1d/yarl-1.24.2-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:abb8ec0323b80161e3802da3150ef660b41d0e9be2048b76a363d93eee992c2b", size = 103719, upload-time = "2026-05-19T21:29:14.893Z" }, - { url = "https://files.pythonhosted.org/packages/1a/b6/267f2a09213138473adfce6b8a6e17791d7fee70bd4d9003218e4dec58b0/yarl-1.24.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:e7977781f83638a4c73e0f88425563d70173e0dfd90ac006a45c65036293ee3c", size = 110438, upload-time = "2026-05-19T21:29:16.485Z" }, - { url = "https://files.pythonhosted.org/packages/48/2d/1c8d89c7c5f9cad9fb2902445d94e2ab1d7aa35de029afbb8ae95c42d00f/yarl-1.24.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e30dd55825dc554ec5b66a94953b8eda8745926514c5089dfcacecb9c99b5bd1", size = 105719, upload-time = "2026-05-19T21:29:18.367Z" }, - { url = "https://files.pythonhosted.org/packages/a7/25/722e3b93bd687009afb2d59a35e13d30ddd8f80571445bb0c4e4ce26ec66/yarl-1.24.2-cp312-cp312-win_amd64.whl", hash = "sha256:7dafe10c12ddd4d120d528c4b5599c953bd7b12845347d507b95451195bb6cad", size = 92901, upload-time = "2026-05-19T21:29:20.014Z" }, - { url = "https://files.pythonhosted.org/packages/39/47/4486ccfb674c04854a1ef8aa77868b6a6f765feaf69633409d7ca4f02cb8/yarl-1.24.2-cp312-cp312-win_arm64.whl", hash = "sha256:044a09d8401fcf8681977faef6d286b8ade1e2d2e9dceda175d1cfa5ca496f30", size = 87229, upload-time = "2026-05-19T21:29:22.1Z" }, - { url = "https://files.pythonhosted.org/packages/82/62/fcf0ce677f17e5c471c06311dd25964be38a4c586993632910d2e75278bc/yarl-1.24.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:491ac9141decf49ee8030199e1ee251cdff0e131f25678817ff6aa5f837a3536", size = 128978, upload-time = "2026-05-19T21:29:23.83Z" }, - { url = "https://files.pythonhosted.org/packages/d3/58/8e63299bb71ed61a834121d9d3fe6c9fcf2a6a5d09754ff4f20f2d20baf5/yarl-1.24.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e89418f65eda18f99030386305bd44d7d504e328a7945db1ead514fbe03a0607", size = 91733, upload-time = "2026-05-19T21:29:25.375Z" }, - { url = "https://files.pythonhosted.org/packages/c1/24/16748d5dab6daec8b0ed81ccec639a1cded0f18dcc62a4f696b4fe366c37/yarl-1.24.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:cdfcce633b4a4bb8281913c57fcafd4b5933fbc19111a5e3930bbd299d6102f1", size = 91113, upload-time = "2026-05-19T21:29:26.928Z" }, - { url = "https://files.pythonhosted.org/packages/1b/66/b63fff7b71211e866624b21432d5943cbb633eb0c2872d9ee3070648f22c/yarl-1.24.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:863297ddede92ee49024e9a9b11ecb59f310ca85b60d8537f56bed9bbb5b1986", size = 103899, upload-time = "2026-05-19T21:29:28.842Z" }, - { url = "https://files.pythonhosted.org/packages/9d/ac/ba1974b8533909636f7733fe86cf677e3619527c3c2fa913e0ea89c48757/yarl-1.24.2-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:374423f70754a2c96942ede36a29d37dc6b0cb8f92f8d009ddf3ed78d3da5488", size = 97862, upload-time = "2026-05-19T21:29:31.086Z" }, - { url = "https://files.pythonhosted.org/packages/1b/a5/123ac993b5c2ba6f554a140305620cb8f150fa543711bbc49be3ec0a65a4/yarl-1.24.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:33a29b5d00ccbf3219bb3e351d7875739c19481e030779f48cc46a7a71681a9b", size = 111060, upload-time = "2026-05-19T21:29:32.657Z" }, - { url = "https://files.pythonhosted.org/packages/23/37/c472d3af3509688392134a88a825276770a187f1daa4de3f6dc0a327a751/yarl-1.24.2-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a9532c57211730c515341af11fef6e9b61d157487272a096d0c04da445642592", size = 110613, upload-time = "2026-05-19T21:29:34.379Z" }, - { url = "https://files.pythonhosted.org/packages/df/88/09c28dad91e662ccfaa1b78f1c57badde74fc9d0b23e74aef644750ecd73/yarl-1.24.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:91e72cf093fd833483a97ee648e0c053c7c629f51ff4a0e7edd84f806b0c5617", size = 107012, upload-time = "2026-05-19T21:29:36.216Z" }, - { url = "https://files.pythonhosted.org/packages/07/ab/9d4f69d571a94f4d112fa7e2e007200f5a54d319f58c82ac7b7baa61f5c6/yarl-1.24.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b3177bc0a768ef3bacceb4f272632990b7bea352f1b2f1eee9d6d6ff16516f92", size = 105887, upload-time = "2026-05-19T21:29:38.746Z" }, - { url = "https://files.pythonhosted.org/packages/8e/9a/000b2b66c0d772a499fc531d21dab92dfeb73b640a12eed6ba89f49bb2d0/yarl-1.24.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:e196952aacaf3b232e265ff02980b64d483dc0972bd49bcb061171ff22ac203a", size = 103620, upload-time = "2026-05-19T21:29:40.368Z" }, - { url = "https://files.pythonhosted.org/packages/41/7c/7c1050f73450fbdaa3f0c72017059f00ce5e13366692f3dba25275a1083d/yarl-1.24.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:204e7a61ce99919c0de1bf904ab5d7aa188a129ea8f690a8f76cfb6e2844dc44", size = 100599, upload-time = "2026-05-19T21:29:42.66Z" }, - { url = "https://files.pythonhosted.org/packages/ec/b1/29e5756b3926705f5f6089bd5b9f50a56eaac550da6e260bf713ead44d04/yarl-1.24.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:4b156914620f0b9d78dc1adb3751141daee561cfec796088abb89ed49d220f1a", size = 110604, upload-time = "2026-05-19T21:29:44.632Z" }, - { url = "https://files.pythonhosted.org/packages/a3/4b/8415bc96e9b150cde942fbac9a8182985e58f40ce5c54c34ed015407d3ee/yarl-1.24.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:8372a2b976cf70654b2be6619ab6068acabb35f724c0fda7b277fbf53d66a5cf", size = 105161, upload-time = "2026-05-19T21:29:46.755Z" }, - { url = "https://files.pythonhosted.org/packages/8b/d4/cde059abfa229553b7298a2eadde2752e723d50aeedaef86ce59da2718ee/yarl-1.24.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:f9a1e9b622ca284143aab5d885848686dcd85453bb1ca9abcdb7503e64dc0056", size = 110619, upload-time = "2026-05-19T21:29:48.972Z" }, - { url = "https://files.pythonhosted.org/packages/e7/2c/d6a6c9a61549f7b6c7e6dc6937d195bcf069582b47b7200dcd0e7b256acf/yarl-1.24.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:810e19b685c8c3c5862f6a38160a1f4e4c0916c9390024ec347b6157a45a0992", size = 107362, upload-time = "2026-05-19T21:29:51Z" }, - { url = "https://files.pythonhosted.org/packages/92/dd/3ae5fe417e9d1c353a548553326eb9935e76b6b727161563b424cc296df3/yarl-1.24.2-cp313-cp313-win_amd64.whl", hash = "sha256:7d37fb7c38f2b6edab0f845c4f85148d4c44204f52bc127021bd2bc9fdbf1656", size = 92667, upload-time = "2026-05-19T21:29:52.743Z" }, - { url = "https://files.pythonhosted.org/packages/10/cc/a7beb239f78f27fca1b053c8e8595e4179c02e62249b4687ec218c370c50/yarl-1.24.2-cp313-cp313-win_arm64.whl", hash = "sha256:1e831894be7c2954240e49791fa4b50c05a0dc881de2552cfe3ffd8631c7f461", size = 87069, upload-time = "2026-05-19T21:29:54.442Z" }, - { url = "https://files.pythonhosted.org/packages/40/0e/e08087695fc12789263821c5dc0f8dc52b5b17efd0887cacf419f8a43ba3/yarl-1.24.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:f9312b3c02d9b3d23840f67952913c9c8721d7f1b7db305289faefa878f364c2", size = 129670, upload-time = "2026-05-19T21:29:56.631Z" }, - { url = "https://files.pythonhosted.org/packages/3a/98/ab4b5ed1b1b5cd973c8a3eb994c3a6aefb6ce6d399e21bb5f0316c33815c/yarl-1.24.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:a4f4d6cd615823bfc7fb7e9b5987c3f41666371d870d51058f77e2680fbe9630", size = 91916, upload-time = "2026-05-19T21:29:58.645Z" }, - { url = "https://files.pythonhosted.org/packages/ba/b1/5297bb6a7df4782f7605bffc43b31f5044070935fbbcaa6c705a07e6ac65/yarl-1.24.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:0c3063e5c0a8e8e62fae6c2596fa01da1561e4cd1da6fec5789f5cf99a8aefd8", size = 91625, upload-time = "2026-05-19T21:30:00.412Z" }, - { url = "https://files.pythonhosted.org/packages/02/a7/45baabfff76829264e623b185cff0c340d7e11bf3e1cd9ea37e7d17934bd/yarl-1.24.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fecd17873a096036c1c87ab3486f1aef7f269ada7f23f7f856f93b1cc7744f14", size = 104574, upload-time = "2026-05-19T21:30:02.544Z" }, - { url = "https://files.pythonhosted.org/packages/f3/40/3a5ab144d3d650ca37d4f4b57e56169be8af3ca34c448793e064b30baaed/yarl-1.24.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a46d1ab4ba4d32e6dc80daf8a28ce0bd83d08df52fbc32f3e288663427734535", size = 97534, upload-time = "2026-05-19T21:30:04.319Z" }, - { url = "https://files.pythonhosted.org/packages/9c/b5/5658fef3681fb5776b4513b052bec750009f47b3a592251c705d75375798/yarl-1.24.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:73e68edf6dfd5f73f9ca127d84e2a6f9213c65bdffb736bda19524c0564fcd14", size = 111481, upload-time = "2026-05-19T21:30:05.988Z" }, - { url = "https://files.pythonhosted.org/packages/4c/06/fdcd7dde037f00866dce123ed4ba23dba94beb56fc4cf561668d27be37f2/yarl-1.24.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a296ca617f2d25fbceafb962b88750d627e5984e75732c712154d058ae8d79a3", size = 111529, upload-time = "2026-05-19T21:30:07.738Z" }, - { url = "https://files.pythonhosted.org/packages/c2/53/d81269aaafccea0d33396c03035de997b743f11e648e6e27a0df99c72980/yarl-1.24.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e51b2cf5ec89a8b8470177641ed62a3ba22d74e1e898e06ad53aa77972487208", size = 107338, upload-time = "2026-05-19T21:30:09.713Z" }, - { url = "https://files.pythonhosted.org/packages/ae/04/23049463f729bd899df203a7960505a75333edd499cda8aa1d5a82b64df5/yarl-1.24.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:310fc687f7b2044ec54e372c8cbe923bb88f5c37bded0d3079e5791c2fc3cf50", size = 106147, upload-time = "2026-05-19T21:30:11.365Z" }, - { url = "https://files.pythonhosted.org/packages/14/18/04a4b5830b43ed5e4c5015b40e9f6241ad91487d71611061b4e111d6ac80/yarl-1.24.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:297a2fe352ecf858b30a98f87948746ec16f001d279f84aebdbd3bd965e2f1bd", size = 104272, upload-time = "2026-05-19T21:30:12.978Z" }, - { url = "https://files.pythonhosted.org/packages/5a/f7/8cffdf319aee7a7c1dbd07b61d91c3e3fda460c7a93b5f93e445f3806c4c/yarl-1.24.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:2a263e76b97bc42bdcd7c5f4953dec1f7cd62a1112fa7f869e57255229390d67", size = 99962, upload-time = "2026-05-19T21:30:15.001Z" }, - { url = "https://files.pythonhosted.org/packages/d7/39/b3cce3b7dbef64ac700ad4cea156a207d01bede0f507587616c364b5468e/yarl-1.24.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:822519b64cf0b474f1a0aaef1dc621438ea46bb77c94df97a5b4d213a7d8a8b1", size = 111063, upload-time = "2026-05-19T21:30:16.683Z" }, - { url = "https://files.pythonhosted.org/packages/a1/ea/100818505e7ebf165c7242ff17fdf7d9fee79e27234aeca871c1082920d7/yarl-1.24.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:b6067060d9dc594899ba83e6db6c48c68d1e494a6dab158156ed86977ca7bcb1", size = 105438, upload-time = "2026-05-19T21:30:18.769Z" }, - { url = "https://files.pythonhosted.org/packages/8f/d2/e075a0b32aa6625087de9e653087df0759fed5de4a435fef594181102a77/yarl-1.24.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:0063adad533e57171b79db3943b229d40dfafeeee579767f96541f106bac5f1b", size = 111458, upload-time = "2026-05-19T21:30:21.024Z" }, - { url = "https://files.pythonhosted.org/packages/e6/5c/ceea7ba98b65c8eb8d947fdc52f9bedfcd43c6a57c9e3c90c17be8f324a3/yarl-1.24.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ee8e3fb34513e8dc082b586ef4910c98335d43a6fab688cd44d4851bacfce3e8", size = 107589, upload-time = "2026-05-19T21:30:23.412Z" }, - { url = "https://files.pythonhosted.org/packages/fa/d9/5582d57e2b2db9b85eb6663a22efdd78e08805f3f5389566e9fcad254d1b/yarl-1.24.2-cp314-cp314-win_amd64.whl", hash = "sha256:afb00d7fd8e0f285ca29a44cc50df2d622ff2f7a6d933fa641577b5f9d5f3db0", size = 94424, upload-time = "2026-05-19T21:30:25.425Z" }, - { url = "https://files.pythonhosted.org/packages/92/10/7dc07a0e22806a9280f42a57361395506e800c64e22737cd7b0886feab42/yarl-1.24.2-cp314-cp314-win_arm64.whl", hash = "sha256:68cf6eacd6028ef1142bc4b48376b81566385ca6f9e7dde3b0fa91be08ffcb57", size = 88690, upload-time = "2026-05-19T21:30:27.623Z" }, - { url = "https://files.pythonhosted.org/packages/9e/13/d5b8e2c8667db955bcb3de233f18798fefe7edf1d7429c2c9d4f9c401114/yarl-1.24.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:221ce1dd921ac4f603957f17d7c18c5cc0797fbb52f156941f92e04605d1d67b", size = 136248, upload-time = "2026-05-19T21:30:29.297Z" }, - { url = "https://files.pythonhosted.org/packages/de/46/a4a97c05c9c9b8fd266bb2a0df12992c7fbd02391eb9640583411b6dab32/yarl-1.24.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:5f3224db28173a00d7afacdee07045cc4673dfab2b15492c7ae10deddbece761", size = 95084, upload-time = "2026-05-19T21:30:31.031Z" }, - { url = "https://files.pythonhosted.org/packages/95/b2/845cf2074a015e6fe0d0808cf1a2d9e868386c4220d657ebd8302b199043/yarl-1.24.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c557165320d6244ebe3a02431b2a201a20080e02f41f0cfa0ccc47a183765da8", size = 95272, upload-time = "2026-05-19T21:30:33.062Z" }, - { url = "https://files.pythonhosted.org/packages/fe/16/e69d4aa244aef45235ddfebc0e04036a6829842bc5a6a795aedc6c998d23/yarl-1.24.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:904065e6e85b1fa54d0d87438bd58c14c0bad97aad654ad1077fd9d87e8478ed", size = 101497, upload-time = "2026-05-19T21:30:34.842Z" }, - { url = "https://files.pythonhosted.org/packages/15/94/c07107715d621076863ee88b3ddf183fa5e9d4aba5769623c9979828410a/yarl-1.24.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:8cec2a38d70edc10e0e856ceda886af5327a017ccbde8e1de1bd44d300357543", size = 94002, upload-time = "2026-05-19T21:30:37.724Z" }, - { url = "https://files.pythonhosted.org/packages/a9/35/fc1bbdd895b5e4010b8fdd037f7ed3aa289d3863e08231b30231ca9a0815/yarl-1.24.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e7484b9361ed222ee1ca5b4337aa4cbdcc4618ce5aff57d9ef1582fd95893fc0", size = 106524, upload-time = "2026-05-19T21:30:40.196Z" }, - { url = "https://files.pythonhosted.org/packages/1f/f2/32b66d0a4ba47c296cf86d03e2c67bff58399fe6d6d84d5205c04c66cc6d/yarl-1.24.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:84f9670b89f34db07f81e53aee83e0b938a3412329d51c8f922488be7fcc4024", size = 106165, upload-time = "2026-05-19T21:30:41.888Z" }, - { url = "https://files.pythonhosted.org/packages/95/47/37cb5ff50c5e825d4d38e81bb04d1b7e96bf960f7ab89f9850b162f3f114/yarl-1.24.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:abb2759733d63a28b4956500a5dd57140f26486c92b2caedfb964ab7d9b79dbf", size = 103010, upload-time = "2026-05-19T21:30:43.985Z" }, - { url = "https://files.pythonhosted.org/packages/6f/d2/4597912315096f7bb359e46e13bf8b60994fcbb2db29b804c0902ef4eff5/yarl-1.24.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:081c2bf54efe03774d0311172bc04fedf9ca01e644d4cd8c805688e527209bdc", size = 101128, upload-time = "2026-05-19T21:30:46.291Z" }, - { url = "https://files.pythonhosted.org/packages/b9/d5/c8e86e120521e646013d02a8e3b8884392e28494be8f392366e50d208efc/yarl-1.24.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:86746bef442aa479107fe28132e1277237f9c24c2f00b0b0cf22b3ee0904f2bb", size = 101382, upload-time = "2026-05-19T21:30:48.085Z" }, - { url = "https://files.pythonhosted.org/packages/fa/98/70b229236118f89dbeb739b76f10225bbf53b5497725502594c9a01d699a/yarl-1.24.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:2d07d21d0bc4b17558e8de0b02fbfdf1e347d3bb3699edd00bb92e7c57925420", size = 95964, upload-time = "2026-05-19T21:30:49.785Z" }, - { url = "https://files.pythonhosted.org/packages/87/f8/56c386981e3c8648d279fdef2397ffec577e8320fd5649745e34d54faeb7/yarl-1.24.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:4fb1ac3fc5fecd8ae7453ea237e4d22b49befa70266dfe1629924245c21a0c7f", size = 106204, upload-time = "2026-05-19T21:30:51.862Z" }, - { url = "https://files.pythonhosted.org/packages/1a/1e/765afe97811ca35933e2a7de70ac57b1997ea2e4ee895719ee7a231fb7e5/yarl-1.24.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:4da31a5512ed1729ca8d8aacde3f7faeb8843cde3165d6bcf7f88f74f17bb8aa", size = 101510, upload-time = "2026-05-19T21:30:53.62Z" }, - { url = "https://files.pythonhosted.org/packages/ee/78/393913f4b9039e1edd09ae8a9bbb9d539be909a8abf6d8a2084585bed4b7/yarl-1.24.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:533ded4dceb5f1f3da7906244f4e82cf46cfd40d84c69a1faf5ac506aa65ecbe", size = 105584, upload-time = "2026-05-19T21:30:55.962Z" }, - { url = "https://files.pythonhosted.org/packages/78/87/deb17b7049bbe74ea11a713b86f8f27800cc1c8648b0b797243ebb4830ba/yarl-1.24.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:7b3a85525f6e7eeabcfdd372862b21ee1915db1b498a04e8bf0e389b607ff0bd", size = 103410, upload-time = "2026-05-19T21:30:57.962Z" }, - { url = "https://files.pythonhosted.org/packages/8f/be/f9f7594e23b5b93affff0318e4593c1920331bcaefda326cabcad94296a1/yarl-1.24.2-cp314-cp314t-win_amd64.whl", hash = "sha256:a7624b1ca46ca5d7b864ef0d2f8efe3091454085ee1855b4e992314529972215", size = 102980, upload-time = "2026-05-19T21:30:59.735Z" }, - { url = "https://files.pythonhosted.org/packages/65/a4/ba80dccd3593ff1f01051a818694d07b58cb8232677ee9a22a5a1f93a9fc/yarl-1.24.2-cp314-cp314t-win_arm64.whl", hash = "sha256:e434a45ce2e7a947f951fc5a8944c8cc080b7e59f9c50ae80fd39107cf88126d", size = 91219, upload-time = "2026-05-19T21:31:01.934Z" }, - { url = "https://files.pythonhosted.org/packages/fd/4d/4b880086bd0d3e034d25647be1d830afc3e3f610e98c4ab3490af6b1b6d5/yarl-1.24.2-py3-none-any.whl", hash = "sha256:2783d9226db8797636cd6896e4de81feed252d1db72265686c9558d97a4d94b9", size = 53576, upload-time = "2026-05-19T21:31:03.909Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/75/16/e8be8e2fb175bbf41a0680381a319f1199fae256588241a2ac8677eafb49/yarl-1.25.1.tar.gz", hash = "sha256:03dd38de09bc213e9a8b29761eec33ee1d5318dac0e49d8af36e4d27830e23a7", size = 246245, upload-time = "2026-09-15T19:35:02.264Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/83/b3/2cea721d495ca57f8f414aa4867ee263f486b274e07463158cf52f02ba7f/yarl-1.25.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9d693bf4bf534e9ba3ae2780cfd577f5135629f7b5ac653490859d0b77864865", size = 143794, upload-time = "2026-09-15T19:30:26.946Z" }, + { url = "https://files.pythonhosted.org/packages/55/e6/cd145cff8e5cf60b8b3c41fbecfa2a45028a8dec3fbc52bec03595ff3d3b/yarl-1.25.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ab2054c5531af2a9ba7b69b8ec91e4f884420e83a8c5e579b013084cb57e5e5d", size = 103993, upload-time = "2026-09-15T19:30:28.661Z" }, + { url = "https://files.pythonhosted.org/packages/ce/7c/fbb40fe2d53747c40aa36a9e2bd2178a202f942bda0b670f3306d4aefbce/yarl-1.25.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:564fdc7085d2245ab84f88882fdb1d6ac0723124bff6ded35bfb1c00f812630d", size = 104010, upload-time = "2026-09-15T19:30:31.069Z" }, + { url = "https://files.pythonhosted.org/packages/f0/0b/5a516f70641092283f57cf3670bdb75e7327bcc0dcb5038697e4dfbfd569/yarl-1.25.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:acae6b45d1ace09b6ba3876da43b88366ef368f73b988c7f57e14231753d4420", size = 116444, upload-time = "2026-09-15T19:30:32.894Z" }, + { url = "https://files.pythonhosted.org/packages/b6/8a/d1a627f827b0a404ae0f5647cab0534959081cde13b0756a783469fb3b5e/yarl-1.25.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:1fb2a01ba8cd9c5d2c5dc1ec35e0fc951d04b4f037541d4ac090c993ce58b3d7", size = 107565, upload-time = "2026-09-15T19:30:35.188Z" }, + { url = "https://files.pythonhosted.org/packages/aa/cf/c8e0aaec886840a6c4480fe44eaec7cd4319f79a563b79321473be79c56f/yarl-1.25.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e92b6bcc741b86d67606c40d3cb9c7cc8e6c737f81e31f4a94efc204456c92e3", size = 125006, upload-time = "2026-09-15T19:30:37.1Z" }, + { url = "https://files.pythonhosted.org/packages/50/26/0cce366d54a93cdc8342965dc7663385e4db161625cc1e8b18e786753d24/yarl-1.25.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:72c34ac7ad4314c19362d5ce27626dcc8429bd30bbf8c179f4234078851f9492", size = 128717, upload-time = "2026-09-15T19:30:38.904Z" }, + { url = "https://files.pythonhosted.org/packages/95/0c/a71501bbc1a674ff72c4d6c2b75f4d9a5af819f5244c3a7558080a8802c5/yarl-1.25.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d5add7b4ca7afeea91d52e4d4e4db3b1fe9885b71f07054560d8c4296b7441a2", size = 117728, upload-time = "2026-09-15T19:30:40.809Z" }, + { url = "https://files.pythonhosted.org/packages/e7/6f/c3267ca01defeed9ed9c4ff9b17bd54915432c405945233265b707475d1c/yarl-1.25.1-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:def538065f9e4d4cf1ae164bd59aba00dfa84f03923e0de4c3788f252d6bcd17", size = 116224, upload-time = "2026-09-15T19:30:42.818Z" }, + { url = "https://files.pythonhosted.org/packages/8f/69/fad57ee52d648431718ee0f1f68966a99c1352c3924688ffbdcc9d3fe51a/yarl-1.25.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0a191bfdb30a79b98e5d175d75285f9fcb78bf0e46ba5efda042e1c72071a0de", size = 116299, upload-time = "2026-09-15T19:30:44.966Z" }, + { url = "https://files.pythonhosted.org/packages/2a/d4/6a8c1e29f33338687ca278cba0a8fbf6525a322c2c02a9a500ccbe041152/yarl-1.25.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:71f42c5b9a948c113bbdebfa544598321431d064ff959d32e99b1feb61d68345", size = 108625, upload-time = "2026-09-15T19:30:46.874Z" }, + { url = "https://files.pythonhosted.org/packages/e8/d2/3a35ae791c9cb6522c106923ff25c3230d999091e5e65511bca23bbd9914/yarl-1.25.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:72849d892954be4d09e569b8b831ac39ce58417fedc767d4308a0fe542018a40", size = 124515, upload-time = "2026-09-15T19:30:49.082Z" }, + { url = "https://files.pythonhosted.org/packages/be/fd/2b022109a6b4af0f7dc371cf7500af380b0d4f034010243e1b0ce218dc93/yarl-1.25.1-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:efb01a106f971cb3752856bca2318bbdf7f01bd8823779c461586cbe5ffd5258", size = 115711, upload-time = "2026-09-15T19:30:51.208Z" }, + { url = "https://files.pythonhosted.org/packages/18/59/f7586271136c3ddb0126bbfe661844699369b76b555fe38c4efe86870b2e/yarl-1.25.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:a1daf47cd95a7c3a63456336bc5aaa8c86dd3a47d07ed3d0e76132ae4666a5a1", size = 122751, upload-time = "2026-09-15T19:30:53.535Z" }, + { url = "https://files.pythonhosted.org/packages/a0/0b/07f7a2d881f7e16c385b47fc1753382600847cad305dcc7fa0c25828acf8/yarl-1.25.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9489e6abf47ba37f332075a91444c7cfedb03e6ce99fbb2f116bfe1ce810da3b", size = 117983, upload-time = "2026-09-15T19:30:55.277Z" }, + { url = "https://files.pythonhosted.org/packages/aa/9d/8cdceec66a9b940700cb45931741403f045b162afd79bcb93c41cadd0972/yarl-1.25.1-cp311-cp311-win_amd64.whl", hash = "sha256:d7306dee25b8a0e737363f347362b875094b4dc4e367311470656ae420fdbf8e", size = 102894, upload-time = "2026-09-15T19:30:57.606Z" }, + { url = "https://files.pythonhosted.org/packages/17/f1/7ec357db1d3ad2863542d71e8fe64a126bbec17b134cd7d30951196809a5/yarl-1.25.1-cp311-cp311-win_arm64.whl", hash = "sha256:abb1384477f5901d436b5d2e5465954de46ea6098f59163d243660b5c4461d35", size = 98609, upload-time = "2026-09-15T19:30:59.705Z" }, + { url = "https://files.pythonhosted.org/packages/75/b3/cd32ac66ae622b854c2df0ac52106dda220d361b65a64fde7d5b3684aa3f/yarl-1.25.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:94d7aa6debf92a1dd14cb5280b083a764169a13cfb23a452111160274ed989f4", size = 144798, upload-time = "2026-09-15T19:31:01.821Z" }, + { url = "https://files.pythonhosted.org/packages/61/fb/a2c52a8007c2051ba74662afb112ecf3d00346af4c25e33df9d80fd14fb8/yarl-1.25.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:83d4a37e4b95da4d8bda930d6d35b75b4cdadbacbb4980cae290ea3100b5d51d", size = 104583, upload-time = "2026-09-15T19:31:04.05Z" }, + { url = "https://files.pythonhosted.org/packages/be/dd/ee38aec8e09fdf957e50d4085453fbe202f56c6c3b4cf07b81cdb4f09ee9/yarl-1.25.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e029648f9c951db30e98a7d7ec90835db88ec4b32820efe2a9bdc2287e032eb6", size = 104325, upload-time = "2026-09-15T19:31:06.338Z" }, + { url = "https://files.pythonhosted.org/packages/1e/b3/058dbfb1857b484c9cf9cc135659f50b85ce66e03c99e44dc2f7b6161f55/yarl-1.25.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4d781294bb815ecb5ea57ff6bbf8038e0a31a95fdf3e1788f66e0dc100d64b58", size = 115358, upload-time = "2026-09-15T19:31:08.593Z" }, + { url = "https://files.pythonhosted.org/packages/db/39/29693446cf0cf6b15a0e2f75a5d40f93c56819b05b0622196f45e95b5cc0/yarl-1.25.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e12c538e00e7c1b286a07061046b90e8124e6a9793efae2c70db6a4aad07faad", size = 107658, upload-time = "2026-09-15T19:31:10.802Z" }, + { url = "https://files.pythonhosted.org/packages/86/b3/3c4dd7e1af43b931fba95e0a722737f2ea94a6d199c802585282831d7abd/yarl-1.25.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7e4de3ac4adbad3d0bc7c6f4360a7dbff5de2f15e3b723be3198074e17fd9c40", size = 122660, upload-time = "2026-09-15T19:31:12.84Z" }, + { url = "https://files.pythonhosted.org/packages/bd/b5/1b60dbc3cfc9c5712b15148c206748f2bc93953ffdbe25ea75b63dfc89c9/yarl-1.25.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:419f392a1da624877975709e3864dfe833af6cc7671b39318086d456e288380c", size = 126506, upload-time = "2026-09-15T19:31:15.088Z" }, + { url = "https://files.pythonhosted.org/packages/bc/7b/ca212cbe170ac8b96e45317ecbcf9c3c3ecf0cdec98d5b088a9c4088929b/yarl-1.25.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c6f117789d22dce188e5754e8bc65b7e6ebf8cb73963b9fa761f672a5883769d", size = 117050, upload-time = "2026-09-15T19:31:17.241Z" }, + { url = "https://files.pythonhosted.org/packages/cb/c3/72b4938cdbe619ad71ac156182faef4908846b84dc3ca4dbb4c4e6f84014/yarl-1.25.1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:80e47012e730da131c9f059c80936783f9659aae22dc31c03c0595590d11ed54", size = 114174, upload-time = "2026-09-15T19:31:19.294Z" }, + { url = "https://files.pythonhosted.org/packages/e8/43/268717870f9ba0cc9701a95181587f6dc8c5f387aab4aeecc83158f38a79/yarl-1.25.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e80f557716fd765439577131e526b8942ffc2c07bdbc5e39fa62f660ba1e963f", size = 114944, upload-time = "2026-09-15T19:31:21.414Z" }, + { url = "https://files.pythonhosted.org/packages/da/84/baa5bf504d51fe062c4bcaf62936da97fffb43285978d0b39984824231fd/yarl-1.25.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:f61964f235a43738bfac50da46fc4254943a7eea3051aeb0b6fc7c992c29fadc", size = 108263, upload-time = "2026-09-15T19:31:23.388Z" }, + { url = "https://files.pythonhosted.org/packages/a4/28/779a2ed9e0152a601a27039bed9aead3f0b79797a67e2c44bfa444622dd8/yarl-1.25.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:e546fe1d4a93ebc2910f0d768baff19faa09843ab3f2036a67ed6e69fae4419d", size = 122184, upload-time = "2026-09-15T19:31:25.343Z" }, + { url = "https://files.pythonhosted.org/packages/f8/1f/118e9e5b8f07694d63fd3222e801d7782270003f1a222aa798df3f8d5933/yarl-1.25.1-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:cce0727fd5ac04d372fa9bbfde9febc2bcf209aadfcf0468e45dec72719895d1", size = 114001, upload-time = "2026-09-15T19:31:27.465Z" }, + { url = "https://files.pythonhosted.org/packages/0f/ae/a4cf1cf372313734b17996d4007f9f73596e7a178b9485802e5494ecf484/yarl-1.25.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:af4ea5b37403ef4e30f3927eaed540db942bde01d8d3ff083527c0704d1c9c68", size = 120565, upload-time = "2026-09-15T19:31:29.47Z" }, + { url = "https://files.pythonhosted.org/packages/05/79/ad94f93ca731bc9e44d321833ab96b82a4f9f5f63cf773f81a4aeea5ecc1/yarl-1.25.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:68782fdb4027b8d1eee25ec35e9a6db05e863b899eb0310b3a33b6c3fef55707", size = 117060, upload-time = "2026-09-15T19:31:31.367Z" }, + { url = "https://files.pythonhosted.org/packages/bb/cc/51a7b4abf4ac593b8e7eb3794b28e5a35ae26eed8bc04787628d215af82f/yarl-1.25.1-cp312-cp312-win_amd64.whl", hash = "sha256:7d575b54cb3863ef9bc290ea4b009999d55dc237326131e4853cf33e888fee03", size = 102593, upload-time = "2026-09-15T19:31:33.329Z" }, + { url = "https://files.pythonhosted.org/packages/9d/21/0941a6b93a58b59a1ec75e5333bf06929b671309c43c0cd201c172d9c39f/yarl-1.25.1-cp312-cp312-win_arm64.whl", hash = "sha256:bc3ac7bf569f6b64dad04dd7808c7872dae8a97df657856eac05e9b7e3614a85", size = 97697, upload-time = "2026-09-15T19:31:35.855Z" }, + { url = "https://files.pythonhosted.org/packages/7b/ed/2f3129bbcc9a5c8ba12cc2b29d8060a3bab9c8043c456cfd4b5ca3188890/yarl-1.25.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:25868beca8b6765f8f7d0e11fe6dd7c66dd4b0793b9500286d20cc92352126a5", size = 143623, upload-time = "2026-09-15T19:31:37.966Z" }, + { url = "https://files.pythonhosted.org/packages/17/e1/f1bc3390fdca352826676b531d0712736f156919090206700421d46b2c37/yarl-1.25.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:10b2fd95332f0d716d5eee3c9fb2ce8eada19082de7fee83d32e37992fd75c26", size = 104011, upload-time = "2026-09-15T19:31:40.25Z" }, + { url = "https://files.pythonhosted.org/packages/a8/aa/50acc5c3e5da04172ae3c281c75405af4d2ca911e16120ab0563f4dffb66/yarl-1.25.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0f12afda4eea8c8994a76d4df1875c765194f5fbe8a9d197929ea303caee29ec", size = 103677, upload-time = "2026-09-15T19:31:42.46Z" }, + { url = "https://files.pythonhosted.org/packages/30/d2/7d1e0ab9f8390e1fbcede5a6dbf70d23c96ad09b8c5567f3a514d1ddb0e2/yarl-1.25.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:14b79a30a93a3ce2e8832603fd0ab780ada281b0ba5110b519a634f2d7d7d1fc", size = 115392, upload-time = "2026-09-15T19:31:44.371Z" }, + { url = "https://files.pythonhosted.org/packages/71/e1/5ba1e3a2a22139213655e760919038e8ed7e2d4a99826d0bbddb3beb96e5/yarl-1.25.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4bd6340d20ae2c7ca719b87b426e808e90743b676d05d4c26c4fb5ca71f41184", size = 107493, upload-time = "2026-09-15T19:31:46.273Z" }, + { url = "https://files.pythonhosted.org/packages/f5/53/780653d5e0f73831f467cf13548912e5eec97f21dc49fc8daf21da027df4/yarl-1.25.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:126a2533570c554719ca40a1288fdee1700b6bc82e7131aa69fa85252d92e651", size = 122537, upload-time = "2026-09-15T19:31:48.654Z" }, + { url = "https://files.pythonhosted.org/packages/03/92/d54fa70236c6036271c9c9c09fd978df5cbe3ef49ef6c46e9b833476d215/yarl-1.25.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a3faadac7d812ddac258feb57b9846b60c1b437c4f4b9ad42595c6f6fe4390df", size = 126170, upload-time = "2026-09-15T19:31:50.872Z" }, + { url = "https://files.pythonhosted.org/packages/0e/b7/a82a49bf88340b837ef6972b508a1604ae377b9e6904b46b10cf5f1cf925/yarl-1.25.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:be80550d9bfe83d9b62398a37081a90434e6df2d978ec345c3d2820de6beddab", size = 117012, upload-time = "2026-09-15T19:31:53.189Z" }, + { url = "https://files.pythonhosted.org/packages/ef/78/5d684b411e3f3602464ee9b538db48205038f8605872985f61efb809ced0/yarl-1.25.1-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e07595c7d6f4db270ceede356a1bd1c07a34f1c26f958d1ed0cd7b48e0d2bba3", size = 114950, upload-time = "2026-09-15T19:31:55.694Z" }, + { url = "https://files.pythonhosted.org/packages/2f/11/51d82b852c64f7fad0fc7a7ff3031517204887e874c722bbca839c0b23ac/yarl-1.25.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:eb96ed1ae6c7d072d60840c0434aef07a2df611812810807fbc54263a6053e9a", size = 115428, upload-time = "2026-09-15T19:31:57.966Z" }, + { url = "https://files.pythonhosted.org/packages/e4/49/9d1978049bf646b9ea918313926453c6901b71c92f097467777d47d36a88/yarl-1.25.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:3feb99222553a8cbedfa52c2f59dd84c3f50d5b582c728d522caf8d72769a54b", size = 108428, upload-time = "2026-09-15T19:32:00.048Z" }, + { url = "https://files.pythonhosted.org/packages/43/35/7b8f1ebb45d7ec3dda7d1909bf44f458de41ef91e2937f107733582a5166/yarl-1.25.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:a2ed0ba415ccdf08f14bf544cb78346d0f76086707ffee24921a2c84dbf1305a", size = 121961, upload-time = "2026-09-15T19:32:02.436Z" }, + { url = "https://files.pythonhosted.org/packages/63/d6/d8b689ab7ca26edeb85f6ff28812aac7a25376eefc1780e303a7bfbaceff/yarl-1.25.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:2b49375d22299b0a834c2bca72f39aaecc270d96fb24c30424899676f487b22a", size = 114961, upload-time = "2026-09-15T19:32:04.456Z" }, + { url = "https://files.pythonhosted.org/packages/cf/d5/1a1798ea4dc6b7ee3260010a27907ebc697c95dae99817d817ed446d24aa/yarl-1.25.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:ef74070ac553c59eb4f04258722066d6c6135b7baa03b2e9f2da65c096e96d98", size = 120036, upload-time = "2026-09-15T19:32:06.5Z" }, + { url = "https://files.pythonhosted.org/packages/91/8d/b1b35ed7903da6669b1d367cb2c09436acd4ff508029b4f39a0c0c2058fc/yarl-1.25.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:0a66db89ea473abeac4b70523cafd94db3772380e565f9d28af7a179b7af71fa", size = 117276, upload-time = "2026-09-15T19:32:09.401Z" }, + { url = "https://files.pythonhosted.org/packages/3a/8f/4db01cef62caff0d7a4593ed694fb8a41a27a11158cab80d290221f13e57/yarl-1.25.1-cp313-cp313-win_amd64.whl", hash = "sha256:1f51020b2eb8a003c84925638ec63c21a750a4bddd3a22ec8eac6a742dadf1b9", size = 101945, upload-time = "2026-09-15T19:32:11.545Z" }, + { url = "https://files.pythonhosted.org/packages/c0/5e/3ce00497c5c0babb74d4130c10c3828ccd215b4819d12020c42429f991ac/yarl-1.25.1-cp313-cp313-win_arm64.whl", hash = "sha256:b10dd0557ba422715b5206b3743192135a6022acca8baec51aa127d0a75db8fe", size = 97270, upload-time = "2026-09-15T19:32:14.127Z" }, + { url = "https://files.pythonhosted.org/packages/80/cf/54023edfab7aa773b860503db0c56e962ccab0922803ee97988c176ea090/yarl-1.25.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:a9ca696eb02e5c02a8afd872ada510eba9b7fe6e68b9572c2e9a9b1941e31e2e", size = 143975, upload-time = "2026-09-15T19:32:16.416Z" }, + { url = "https://files.pythonhosted.org/packages/d7/a8/e6c1be0e6761d0f2d10bbf33a3e1e02b99dc83874d92945d7b461a72481e/yarl-1.25.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:a5877f2255aab518ebe528289037699201d5dc5f045f2396cb30aa02db22f57f", size = 104018, upload-time = "2026-09-15T19:32:18.364Z" }, + { url = "https://files.pythonhosted.org/packages/6e/bb/dda344765ffd3430afe1a1c66c866a57fae67786537d4f14607df6505ac1/yarl-1.25.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:7a5c3115595995779ee21f2567035793911c3802a43c74f3fbb0314929ec67ac", size = 104156, upload-time = "2026-09-15T19:32:20.459Z" }, + { url = "https://files.pythonhosted.org/packages/e5/5f/ed1538bcd06009fe990d6d283dd7667f639e62a81e35c6d8c6ef6c08fb3c/yarl-1.25.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:77e5099b99b37f3cf79c246998ca9f7313a78054cd1809ec46bc1afad47e1c4c", size = 116025, upload-time = "2026-09-15T19:32:22.766Z" }, + { url = "https://files.pythonhosted.org/packages/a2/af/2185daf56b99830d3356ecfada46faaa49945de6626e842b7728088d4980/yarl-1.25.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:6efaf45df6a849cef613a03a94c845647456662f85438c886bb67a9c027c8c2c", size = 106985, upload-time = "2026-09-15T19:32:24.749Z" }, + { url = "https://files.pythonhosted.org/packages/c1/65/bc1ae564fb4b04a30b6a8f250e787772581c57e4c3d5cf07ac3359de3103/yarl-1.25.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d5f90e44653c4e0f78501ed9bb7d3fce835a8d62b7c6ed0cb16557534087e743", size = 123030, upload-time = "2026-09-15T19:32:27.084Z" }, + { url = "https://files.pythonhosted.org/packages/6a/3e/e2afcde10d74e53b3fa889960991efb3019beda2b1682a01de720a302056/yarl-1.25.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:632da579b2d879f6bad20f2cfa35ded1efe2f4f77f8abb26a6234a5b236acd2f", size = 126765, upload-time = "2026-09-15T19:32:29.332Z" }, + { url = "https://files.pythonhosted.org/packages/a2/be/415b00c0fe5a0615b062a456b26623d7ec91c2bee20faea1a14045aa0469/yarl-1.25.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:30eec96e8a91bd588ce897c9543f6d5d8d34b28fbcba28a4dedf20ebeae9fe57", size = 117199, upload-time = "2026-09-15T19:32:31.49Z" }, + { url = "https://files.pythonhosted.org/packages/97/27/3d8c63ddd3e8bcfd033748ab93876678ce59bacd66e4cb1ed851c9c5b37e/yarl-1.25.1-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:12b6bc4906e11f5e1a1cdcb12296e7afbd366c783cc8073403cd2fb74334e453", size = 115187, upload-time = "2026-09-15T19:32:34.137Z" }, + { url = "https://files.pythonhosted.org/packages/39/b7/7a81d0be1a502a26a0d4326c6f2ecb736c824f570ea1c6529f2b0b227b50/yarl-1.25.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:9d6ed3d17bccce4c05343e1ca8da13bc5c02c812a4e7282ddd05e8769322d3fc", size = 116085, upload-time = "2026-09-15T19:32:36.438Z" }, + { url = "https://files.pythonhosted.org/packages/f0/69/39fff459916aa0fab42215dc47b759586fd80f94aa56dfc4a7c15ba6e0dc/yarl-1.25.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:f38a70074041d3b7e138e452799f5174198bae5bd5ab2000917badf403908c5f", size = 107996, upload-time = "2026-09-15T19:32:38.959Z" }, + { url = "https://files.pythonhosted.org/packages/c0/39/80b9a55a3335590451d9ecf3eb593a8c635351f4c905ef056d7e8a8fd9e7/yarl-1.25.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:4ca89e4e21854ed27ec753297dde84b16c9f8e53b14a4866fb44457d643c19f8", size = 122549, upload-time = "2026-09-15T19:32:41.151Z" }, + { url = "https://files.pythonhosted.org/packages/42/7d/a179c6757818bb59372a4adafd09f7f26a3b4a0f04c3ae404b544c0b0c82/yarl-1.25.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:1ab7618921a93767387a4b83776f751588f5b5ae9bb5bc96620e2e2e00bca868", size = 115107, upload-time = "2026-09-15T19:32:43.072Z" }, + { url = "https://files.pythonhosted.org/packages/32/2b/a773ac867e4ab53a98ed98e5cefe3bae31e6f550252ca9d1de266f1a40c5/yarl-1.25.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:0ae12ff2b805fa02c4dab838005caef735e39986322698c48588d3beacb65c62", size = 120666, upload-time = "2026-09-15T19:32:45.061Z" }, + { url = "https://files.pythonhosted.org/packages/bc/41/52be6505e85b0f76b4f85b01b5de7e06a0512201abc2c95e14e099549174/yarl-1.25.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:90c30ed53546da833c700115c0064c22120d1b1560f474699fd31f22dd668233", size = 117505, upload-time = "2026-09-15T19:32:47.177Z" }, + { url = "https://files.pythonhosted.org/packages/f5/01/349c0386caedbbe488d519f252df54efac8a1459282d466c474bdd84a620/yarl-1.25.1-cp314-cp314-win_amd64.whl", hash = "sha256:acfa7e22aa6c6e7a5996a41d275bfa01efa7ea56ab890590280e9063e2cf5c1b", size = 103446, upload-time = "2026-09-15T19:32:49.615Z" }, + { url = "https://files.pythonhosted.org/packages/5c/f0/8ec63180f77912f0dc4e5a42760cb8c08d20da1d5ace3578a01b84d1f3d8/yarl-1.25.1-cp314-cp314-win_arm64.whl", hash = "sha256:8e7d98cdbb6d71e726f7d525952867096053d1f290dd4e3c50d7d313a136f414", size = 99159, upload-time = "2026-09-15T19:32:51.686Z" }, + { url = "https://files.pythonhosted.org/packages/47/7d/92d2220d6886b70ab1ed8579533ac2af2dfac716d5d929001daff7986df9/yarl-1.25.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:d21f0fa80a02d05299207eeaafef345d812ace96d5306e4ef265e1d419a615fa", size = 150071, upload-time = "2026-09-15T19:32:53.911Z" }, + { url = "https://files.pythonhosted.org/packages/64/fc/b245e448124bcda9340df38e3553fa222b50260fca027a84095e9bd8642d/yarl-1.25.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:17c9877a89fb6e2bca6f9087eb24cd7fb434653946ef5075e470d23d49b52287", size = 106780, upload-time = "2026-09-15T19:32:56.443Z" }, + { url = "https://files.pythonhosted.org/packages/51/e2/9a6ce2e334ebf218a30335ae76fb1696459430d42f733b8cb0d7d65b84d3/yarl-1.25.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:29273edf1530e397bd07cb784db1fbe0d2590b77569f2e24679a9c0a2d763b94", size = 107361, upload-time = "2026-09-15T19:32:58.827Z" }, + { url = "https://files.pythonhosted.org/packages/ed/70/66e8c76b569b450d16e190f15071c916c3df70b0e33927e415ac497cf0c2/yarl-1.25.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b7abffdf37af1cec6a2ad69b827aa84320db5894791bc8ed932dc93fb274b7e9", size = 114396, upload-time = "2026-09-15T19:33:02.24Z" }, + { url = "https://files.pythonhosted.org/packages/73/23/0d82838a05c57fdc05bc8b66e8c92dcc0df15e27463a5f163142d521c682/yarl-1.25.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2239a02249d9326655419e0168a28ca9008938eaab31dc29fc875c217927a6c0", size = 104882, upload-time = "2026-09-15T19:33:04.494Z" }, + { url = "https://files.pythonhosted.org/packages/86/d4/ea08615c4edaa6049a13a2f1128944d068d1893abda7d708d4d7ea01599a/yarl-1.25.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:664ec6a520b74a1df2810666eb67695fcb77fa663e6ea0a25aaf2e529cb24dfa", size = 119485, upload-time = "2026-09-15T19:33:06.583Z" }, + { url = "https://files.pythonhosted.org/packages/1a/82/0898bdce9b1ae403b308b9c733d0d24af4a3464270c2c081f457b16c3e0d/yarl-1.25.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4f1c91f5a5980a937ff8e238e98e6897e1ad74a4b1e2c0d68c73b5ffbb3f5c0b", size = 122490, upload-time = "2026-09-15T19:33:08.653Z" }, + { url = "https://files.pythonhosted.org/packages/d1/38/97d79b81c342b78246cfedb74809e68841f3198d21653e10d3232bd9c622/yarl-1.25.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7c88edaec8c349ad4c5ad4c486a3defcc4b80ceb2f074436ffa0a87caf5e76a6", size = 115336, upload-time = "2026-09-15T19:33:11.056Z" }, + { url = "https://files.pythonhosted.org/packages/8e/9d/2577896554cd310dc470adb6da0b7dd0b435cb63e2565204a7ac240e504c/yarl-1.25.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:35dcbea443fafb3eece757ad4e514560ddeb6c34cfae1582c620d7b293d7feee", size = 111825, upload-time = "2026-09-15T19:33:13.204Z" }, + { url = "https://files.pythonhosted.org/packages/29/6b/7ac49d8ba84a5c4bd73415a4c949d22c749cb3762579b3d50e48019a78aa/yarl-1.25.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:882569ff613758cac762a457a5d72d6e211b28d4bcfea89d1d71ea942b02eac0", size = 114655, upload-time = "2026-09-15T19:33:15.553Z" }, + { url = "https://files.pythonhosted.org/packages/e5/18/e5942a16723f5b72f9b1297fd5a85a54f6300cd15c0dcb5005b90cd89156/yarl-1.25.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:d0f1489233a254bb3643d2f05de7d59019254d81daeca6b9162fe9edef57e0c7", size = 106395, upload-time = "2026-09-15T19:33:17.599Z" }, + { url = "https://files.pythonhosted.org/packages/7b/2d/549fa46240781513ebc47ae7eb418df428a163a2a3d644cc9cbb3ecb7846/yarl-1.25.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:f41753a76f4f63927d03a0d8ba8f5ce0f2083bec29a8cfaccc55371b1564b96b", size = 119277, upload-time = "2026-09-15T19:33:19.973Z" }, + { url = "https://files.pythonhosted.org/packages/76/16/4763f78dcdc0b3b9fb3842b04afe72b9320857c6a69300c62a0eab03d119/yarl-1.25.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:8fb0eb4955adf0579001581f2f71a126e8781ba61bcd120f127b0401163c6c2d", size = 112504, upload-time = "2026-09-15T19:33:22.464Z" }, + { url = "https://files.pythonhosted.org/packages/ae/b4/974e3edfe0d188393ce1cb9de400111c63fe61f4eb3b772a500d84c970d1/yarl-1.25.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:a1e32763e641a1566507d90a8d3b19bfc3cc04a9d4e5ae3e32189874ed4b58a3", size = 116243, upload-time = "2026-09-15T19:33:24.788Z" }, + { url = "https://files.pythonhosted.org/packages/b0/aa/157b940428da80c104ca09666a740e51c94963df65d5b112e06b52e4d7a8/yarl-1.25.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:65b5b2066651b7432d389e9799d979c703bcc6ef44266bb8153ef54e91e4aab3", size = 115822, upload-time = "2026-09-15T19:33:26.886Z" }, + { url = "https://files.pythonhosted.org/packages/7e/af/19fbdce41412e1b96825544cc52cd7029d3724655d0988237972f078bd29/yarl-1.25.1-cp314-cp314t-win_amd64.whl", hash = "sha256:734f6e5400352ac4254456003d462866c684703570929cff7a7bde015d0cb371", size = 107386, upload-time = "2026-09-15T19:33:29.009Z" }, + { url = "https://files.pythonhosted.org/packages/2a/99/f6431c8968e89be608d74b28ae2d024521b2953f27dd44e0dece5e04f67a/yarl-1.25.1-cp314-cp314t-win_arm64.whl", hash = "sha256:287e99ff5aa4dc1c7630bfc683ded6f106d756c99dec432a2d7f197a784f51c6", size = 102094, upload-time = "2026-09-15T19:33:31.151Z" }, + { url = "https://files.pythonhosted.org/packages/c7/3b/4f51eab40c2eabea6c3d5b121dff4b8988dc35087732ffede12d2be8b8dd/yarl-1.25.1-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:9b1bdaae98bc016825dd3c9d8ee1832f829b3341f9cc6ebd1a1b0a7fef7367cc", size = 143875, upload-time = "2026-09-15T19:33:33.52Z" }, + { url = "https://files.pythonhosted.org/packages/41/05/bbd58fc063f5f299a883f810760b265ca26c8167c91cb9a494d0fe2387e1/yarl-1.25.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:e7011b8fb8c4054bf0c12e5edc6cd83778b0028e99ce59b18586ed036f92cfdc", size = 104028, upload-time = "2026-09-15T19:33:36.22Z" }, + { url = "https://files.pythonhosted.org/packages/12/ee/2fba0aecb52e7020e189f684148783aa0b9cfa3b3bfb0b400646eef70ad4/yarl-1.25.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:f074e8d4aa0a5798920ddb6de3d08b228c614ff3724c3e8bd7577f4bafea867b", size = 104041, upload-time = "2026-09-15T19:33:38.86Z" }, + { url = "https://files.pythonhosted.org/packages/38/35/884beab53ed88c7247d1671972b5ef116f7351fe0c7e6de8c3558372cb16/yarl-1.25.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7d42e7e3ca399555578b4d617e3a6ecf13371b3743a115995fa010c7bf341459", size = 116018, upload-time = "2026-09-15T19:33:44.265Z" }, + { url = "https://files.pythonhosted.org/packages/e2/cc/1a91b685afb55cc18608443ace95280e96e263a97565811732b6788d3269/yarl-1.25.1-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:aa4ed3dd308548f9e707d9caaf005d2d7f8c1e7868f858dfeb47fe76e16b391d", size = 107033, upload-time = "2026-09-15T19:33:46.45Z" }, + { url = "https://files.pythonhosted.org/packages/c5/c1/58b379fcb1d68d907b7fcf75200c44321896509b2a6a74abbb4b19d864d2/yarl-1.25.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:42a66563d8cc056ee32e6191e05097a7b2b3bc302e0bc3133daf8710eb18bd26", size = 123257, upload-time = "2026-09-15T19:33:48.631Z" }, + { url = "https://files.pythonhosted.org/packages/d7/2d/1fe96cf5c2aeab10095e48f38585cf5a8451fb7253234822398e52aa5336/yarl-1.25.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:98d370568f393215d605304cdb77b3d5539bd192c75b623c7304c42c8d6d8273", size = 126745, upload-time = "2026-09-15T19:33:50.999Z" }, + { url = "https://files.pythonhosted.org/packages/ad/60/8674394ce43f4dadae573a1d6f451716438e9eab7d7fe8d643c673a32d85/yarl-1.25.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:23bf5b403c879a54964e0feac7285688e04bb220074878d737d331522da0a5bf", size = 117255, upload-time = "2026-09-15T19:33:53.456Z" }, + { url = "https://files.pythonhosted.org/packages/2f/72/0faa30e02605d56127d42bb987dcc97da3863b7bf70b9bfbf5f739c05e30/yarl-1.25.1-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:d45673badd08456d0340e9364eddafe1c53a9d2896424294de4d7dd71ad3ee57", size = 115166, upload-time = "2026-09-15T19:33:55.669Z" }, + { url = "https://files.pythonhosted.org/packages/8c/90/9a46eac564c437e128285c5c1d7bb385d268394e9209d84f6bf4a14471ef/yarl-1.25.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:0136d640dfa9b0523853e411430a99f8a91eca85774c6420285a33b755bc6de3", size = 116082, upload-time = "2026-09-15T19:33:57.78Z" }, + { url = "https://files.pythonhosted.org/packages/ad/38/4b1a686a3758878f93d2f1ea943f5a165f3555769cd16e761cfd0efdca17/yarl-1.25.1-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:59ba3a6e1aa8cfe5adf4bd270fd965db21955401b7ca6f1696010c55ed4daec2", size = 108048, upload-time = "2026-09-15T19:34:00.25Z" }, + { url = "https://files.pythonhosted.org/packages/da/14/f348eb967f31a58348612a2b93bd8a2ab664548e2b5e879cac7f592f7201/yarl-1.25.1-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:87796fedc3ba97ec14fab55acb48584276e6c1e4c1e89c422bda62c838e754a9", size = 122775, upload-time = "2026-09-15T19:34:02.455Z" }, + { url = "https://files.pythonhosted.org/packages/ab/e9/4f7b79700f88cb9e8bb66f8b54f9bce1844c013a2c39fdc47112e9334c95/yarl-1.25.1-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:bd0912757081f89b107d6c00b2ff8a194401b0b87eadcf4481de2b865a8fd44f", size = 115096, upload-time = "2026-09-15T19:34:05.283Z" }, + { url = "https://files.pythonhosted.org/packages/cf/37/f9cb020331997d3eb887bd28d5410ecfd3d80bf163c23d7cec490d78dade/yarl-1.25.1-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:b51c159a9794633f5e0db7ecec7b2b6e3734eca1f5d17dc989ff3552a43ff78b", size = 120655, upload-time = "2026-09-15T19:34:07.382Z" }, + { url = "https://files.pythonhosted.org/packages/12/83/52fceb22891a41f168db7ec22fd1d81e06b6a0b8d9f70921bd3e785defd0/yarl-1.25.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:319e070a01db9920fb63761843f96a104c8e2b9427266731810dc1e22595b17c", size = 117488, upload-time = "2026-09-15T19:34:09.988Z" }, + { url = "https://files.pythonhosted.org/packages/f5/5c/ce6c4ff1247fcbe4b33d462c23a097106d909b173fde7042bc52290466e2/yarl-1.25.1-cp315-cp315-win_amd64.whl", hash = "sha256:a2059a2d891bd156bc5184e7ab7a56e78a84dfcfdeac8c501b552533ad1c36ee", size = 103434, upload-time = "2026-09-15T19:34:12.56Z" }, + { url = "https://files.pythonhosted.org/packages/3c/a1/766a906b0704fb26d52b19dc22bed48a8ba0544203b70dcf44da350e8194/yarl-1.25.1-cp315-cp315-win_arm64.whl", hash = "sha256:a78b50b4f7918a3de71105d5c0b93bbc57bb8339a4d03a9dfd449f9068e76f3d", size = 99155, upload-time = "2026-09-15T19:34:15.132Z" }, + { url = "https://files.pythonhosted.org/packages/bd/d3/a1d09b32cb6ab14f66b44939f5b4255b8b9e747aef3974af1d5d80ccc2fd/yarl-1.25.1-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:b5402a340723fa7da00b5cff987ddab61276be6d11251ea71ae02bcac54890d8", size = 149284, upload-time = "2026-09-15T19:34:17.452Z" }, + { url = "https://files.pythonhosted.org/packages/7f/3b/fe554d879692650bca70bfbc0df124e82e4d2bb7456f698c7756f1279a96/yarl-1.25.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:eda19ea5ee88742f47a2340816e6f2d40b53bed3ab5b69794769f36af9f35bb4", size = 106399, upload-time = "2026-09-15T19:34:21.474Z" }, + { url = "https://files.pythonhosted.org/packages/e1/4b/e7af56177ac8d40094c82d7728224c0b8472157d50d362e5fb3b014b2bc8/yarl-1.25.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:75baa6cf9b6d1c52f3e111a130e202fd8cf0a5b3a066c3f73d615e885092e4ec", size = 106968, upload-time = "2026-09-15T19:34:23.619Z" }, + { url = "https://files.pythonhosted.org/packages/da/4f/2df41fd738d46f23ef829ae8b4468d94bb6070038fc6dfab6165ed44fea8/yarl-1.25.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:dbcef5a9119ef653653132cccaf999b30a0af6f33bb0a4ba80bec30056868487", size = 114717, upload-time = "2026-09-15T19:34:25.879Z" }, + { url = "https://files.pythonhosted.org/packages/69/ea/002b66df53bbd1aed1c23358ff99c9bdc744fe3f4d2740e1b2fdd7192885/yarl-1.25.1-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7efc9f082dfed77c316edffa9deb52888e1bc6789171887cc1f68e06d65465c8", size = 105198, upload-time = "2026-09-15T19:34:28.204Z" }, + { url = "https://files.pythonhosted.org/packages/b1/7c/95c8bc0c8f97d71e59c94525ad60d76f5c57d3f2820f08137ca8b9f0542a/yarl-1.25.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:fe01645169a2112aa1d4ebc3e4c5f029c5c8f97adfc32e5d37c993b39a994d75", size = 120271, upload-time = "2026-09-15T19:34:30.5Z" }, + { url = "https://files.pythonhosted.org/packages/5d/7a/6fe9da56ec77927baa669fd86c39c567ce6205bab53d581082c6744c8ae7/yarl-1.25.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d1c557dfd5e3db046053a0bdc72261ade790ebe8e2c7a41b36b0ca1f14cb95f3", size = 123572, upload-time = "2026-09-15T19:34:32.73Z" }, + { url = "https://files.pythonhosted.org/packages/8b/83/35f222d17fa70a14c7c74fdf112ccf5515e0c2a87082b1f9b99f7693bf57/yarl-1.25.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8ce4d6ccafb33d39bd78444612d14938ead674c25702ded2ee9c54a47735d225", size = 115228, upload-time = "2026-09-15T19:34:35.344Z" }, + { url = "https://files.pythonhosted.org/packages/da/6f/fbaaf619423578a7d898d0f226ae47bc1906c293865c416d83c17b828b0e/yarl-1.25.1-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:80a063f8297fc796296f00f100be520f209b23dc98f93ce8eba6ee7122598209", size = 111618, upload-time = "2026-09-15T19:34:37.656Z" }, + { url = "https://files.pythonhosted.org/packages/ba/78/7383278f1b3cf8e0496bd95b3281a7b09b89217b6b428db24c6b99b3deca/yarl-1.25.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:7cb414a73e21a7ab58254926073f2930cb22f5b4314ea4260a687e2b3fd4dce3", size = 114839, upload-time = "2026-09-15T19:34:40.099Z" }, + { url = "https://files.pythonhosted.org/packages/62/49/5506e5b6d29aab91bd845cc9016d88c3d3f81b81bc242b8100bdd5737825/yarl-1.25.1-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:85a18376073f8a39aa07be34f9fc77e2869aa72c55c441efdd2cf79a0407504d", size = 106212, upload-time = "2026-09-15T19:34:42.768Z" }, + { url = "https://files.pythonhosted.org/packages/46/8a/19877c193b7c5929f4b07118c18bbe390f3fadd0f59dd98c0cd12b31fa5c/yarl-1.25.1-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:77716e245c90f058466a05e6a465bb8600f767a8f4b18b4d40f3aff958e5f73c", size = 119985, upload-time = "2026-09-15T19:34:44.976Z" }, + { url = "https://files.pythonhosted.org/packages/4e/6c/0a46fbbf9ecbcbd0cc20d2193394254b9e19817f22c814aab60f99847400/yarl-1.25.1-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:1e80dcf1446e1b080b1932b0d103c464a04112f5bc31f0f983ad418172063cde", size = 112081, upload-time = "2026-09-15T19:34:47.45Z" }, + { url = "https://files.pythonhosted.org/packages/ef/30/93f5d471230c74ccd06255d0842739f86551f937f9e63a5e947853c6244a/yarl-1.25.1-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:bdc8d8b8c22e9e43ac68316b5e6cf083dec537f4ec213cb4aa967b583bc3fa64", size = 116995, upload-time = "2026-09-15T19:34:49.972Z" }, + { url = "https://files.pythonhosted.org/packages/2b/80/c386593035ee3f9c6c6af0847b5578f2830c674794a9d7701b744a3ebd42/yarl-1.25.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:dfbf531053a0935f2e871bcd4753f90313688772ff8c017f5ea402e315a78c1f", size = 115570, upload-time = "2026-09-15T19:34:52.628Z" }, + { url = "https://files.pythonhosted.org/packages/38/02/eef443559563ef8f2e10469387b8b1e97cb5efee95b288a56da60801f7ee/yarl-1.25.1-cp315-cp315t-win_amd64.whl", hash = "sha256:b13b88747769537f3d32e89e3a735da10c0a9e35d7322928c701b5f93d3afffd", size = 106811, upload-time = "2026-09-15T19:34:54.935Z" }, + { url = "https://files.pythonhosted.org/packages/88/91/41e284ca2cf5211e05dae031d126a3668aea88fa759df56e7e35c6ad25ba/yarl-1.25.1-cp315-cp315t-win_arm64.whl", hash = "sha256:783dd1467083f4d3f7722ad6a313f24c173e7571372738fcb7a6e6d1ba48df25", size = 101804, upload-time = "2026-09-15T19:34:57.231Z" }, + { url = "https://files.pythonhosted.org/packages/54/22/318c7980066769c6bcd9221ed2248294f5698811da099013098c670565ed/yarl-1.25.1-py3-none-any.whl", hash = "sha256:681c758b0490f9e96b78e5fa8e8dc6e648e9185bb6eaebe73183c33ea0c445f3", size = 63617, upload-time = "2026-09-15T19:34:59.616Z" }, ] [[package]] From 129736e130a36e60fad4e55db7a701493221898e Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Thu, 12 Nov 2026 16:50:50 -0500 Subject: [PATCH 32/33] Serve annotations from a companion app behind the proxy's identity Annotations move out of the pixel app into app.companion, a separate ASGI app in the same image (gunicorn ... app.companion:app). The pixel app serves no annotation route and is back to GET-only CORS, so a hostNetwork pixel pod never trusts a user header. The companion takes the user and study from X-Auth-Request-User and X-Auth-Request-Study, which the proxy copies from cBioPortal's /api/studies/{studyId}/access response (app.request_identity): - no study header: 401; - studyId missing, repeated in any case, or not the header study: 403; - the body's study and an updated or deleted row's study must be the header study (403), with no "no study" bypass; - no user header: 401, or ANNOTATION_ANONYMOUS_USER when ANNOTATION_ALLOW_ANONYMOUS=true (development only). created_by is the forwarded user. Study tokens (WSI_AUTH_SECRET, WSI_AUTH_AUDIENCE, scopes, ANNOTATION_AUTH_ENABLED) are gone. Unsafe methods need X-Requested-With: XMLHttpRequest, a JSON body and no foreign Origin (own host or COMPANION_ALLOWED_ORIGINS); the companion sends no CORS headers, caps bodies at COMPANION_MAX_BODY_BYTES (4 MiB) and marks responses no-store. /ready checks annotation storage. The README documents both entrypoints, the trusted-proxy requirement and ingress-nginx / nginx examples; docker-compose runs the companion on loopback. Co-Authored-By: Claude Opus 5.5 (1M context) --- README.md | 203 ++++++++++++++++++- app/annotations.py | 48 ++--- app/companion.py | 179 +++++++++++++++++ app/config.py | 29 +-- app/main.py | 9 +- app/request_identity.py | 99 ++++++++++ app/study_auth.py | 206 ------------------- docker-compose.yml | 32 ++- tests/test_annotations.py | 28 +-- tests/test_companion.py | 402 ++++++++++++++++++++++++++++++++++++++ tests/test_config.py | 2 +- tools/write_dev_env.py | 4 +- 12 files changed, 964 insertions(+), 277 deletions(-) create mode 100644 app/companion.py create mode 100644 app/request_identity.py delete mode 100644 app/study_auth.py create mode 100644 tests/test_companion.py diff --git a/README.md b/README.md index 282066e..0d3691d 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,12 @@ cBioPortal frontend. At MSK, cBioPortal uses this service to show H&E and IHC whole-slide images alongside the patients and samples they were taken from. -The service only handles pixels. It does not know about patients, samples, -studies, slide hierarchy, or image IDs; cBioPortal owns that metadata, and -the ingress in front of this service authorizes every request against -cBioPortal (see [Request flow](#request-flow)). +The pixel service only handles pixels. It does not know about patients, +samples, studies, slide hierarchy, or image IDs; cBioPortal owns that +metadata, and the ingress in front of this service authorizes every request +against cBioPortal (see [Request flow](#request-flow)). Slide annotations run +as a separate application from the same image (see +[Companion service](#companion-service)). ## What it serves @@ -365,6 +367,192 @@ This example caches nothing. To cache, add `proxy_cache` to the auth location with `proxy_cache_key "$cookie_SESSION$http_authorization$wsi_study";` and a short `proxy_cache_valid 200 30s;`, for the reason above. +## Companion service + +The same image also runs a second, separate application, `app.companion`, +which serves slide annotations. The pixel application (`app.main`) serves +none of its routes. + +| Application | Command | Routes | +|-------------|---------|--------| +| Pixels | `gunicorn -c python:app.gunicorn_conf app.main:app` (the image's default `CMD`) | `/tiles`, `/thumbnails`, `/health`, `/ready`, `/metrics` | +| Companion | `gunicorn -c python:app.gunicorn_conf app.companion:app` | `/annotations`, `/health`, `/ready` | + +Both serve the same routes under `/wsi` as well. Run them as separate +deployments: override the container command for the companion. + +### Identity from the proxy + +The companion does not authenticate anyone itself. It trusts two request +headers that an authenticating reverse proxy sets: + +1. For every companion request, the proxy makes an auth subrequest to the + portal's `GET /api/studies/{studyId}/access`, carrying the browser's + `Cookie` (and `Authorization`, if sent). `{studyId}` comes from the + request's `studyId` query parameter. The portal answers: + - `204` with `X-Auth-Request-User` (the signed-in user; absent when the + portal runs without login) and `X-Auth-Request-Study`; + - `401` when not signed in; + - `403` when the user may not read the study, or the study is unknown. +2. On `2xx`, the proxy copies `X-Auth-Request-User` and + `X-Auth-Request-Study` from the auth response onto the forwarded request, + **replacing any copy the client sent**. With ingress-nginx + `auth-response-headers` and nginx `auth_request_set` + `proxy_set_header`, + a header the portal did not return is sent empty, which drops the + client's copy too. + +The companion then requires, on every route: + +- `X-Auth-Request-Study` present and well formed, else `401`; +- `studyId` in the query string exactly once (names matched + case-insensitively, as nginx does) and equal to `X-Auth-Request-Study`, + else `403`; +- any study the request body names, and the stored row's study for an update + or delete, equal to `X-Auth-Request-Study`, else `403`; +- `X-Auth-Request-User` present, else `401`. Only when + `ANNOTATION_ALLOW_ANONYMOUS=true` (development stacks whose portal has no + login) does a request without it act as `ANNOTATION_ANONYMOUS_USER`. + +An annotation's `created_by` is `X-Auth-Request-User`, and only that user may +update or delete it. + +**Trusted-proxy requirement.** Anyone who can reach the companion without +going through that proxy can claim any user. Deploy it: + +- on the pod network, never `hostNetwork`; +- behind a Service that a NetworkPolicy opens to the ingress controller's + namespace only (no other namespaces, no node ports); +- with no Ingress rule that reaches it without the auth subrequest. Probe + routes (`/health`, `/ready`) read no identity and may be routed without + auth. + +A client that holds another credential the portal accepts in the auth +subrequest (HTTP basic, a data-access token) can use the companion as that +user; that is the portal's own authorization. + +### Browser request rules + +The portal's session cookie authorizes companion requests, so unsafe methods +(`POST`, `PUT`, `PATCH`, `DELETE`) must also: + +- send `X-Requested-With: XMLHttpRequest`, else `403`; +- send `Content-Type: application/json` when there is a body, else `415`; +- send no `Origin`, or one that is the request's own host or is listed in + `COMPANION_ALLOWED_ORIGINS`, else `403`. + +The companion sends no CORS headers, so a page on another site cannot send +the custom header. Request bodies are capped at `COMPANION_MAX_BODY_BYTES` +(`413` above it), and every response is `Cache-Control: private, no-store`. + +### Companion routes + +Every route except `/health` and `/ready` takes `?studyId=`. + +| Method | Path | Description | +|--------|------|-------------| +| GET | `/annotations?studyId=&slide_id=` | The slide's annotations in the study that the user may see | +| POST | `/annotations?studyId=` | Create; the body's `study_id` must be `studyId` | +| PUT | `/annotations/{id}?studyId=` | Update (creator only; `version` is an optimistic lock) | +| DELETE | `/annotations/{id}?studyId=` | Delete (creator only) | +| GET | `/health` | Liveness | +| GET | `/ready` | Readiness: annotation storage reachable | + +### Companion configuration + +| Variable | Default | Purpose | +|----------|---------|---------| +| `ANNOTATION_DATABASE_URL` | — | Postgres/Lakebase DSN; SQLite at `ANNOTATION_DB_PATH` when unset | +| `ANNOTATION_DB_PATH` | `/data/annotations.db` | SQLite path | +| `ANNOTATION_DB_POOL_MIN_SIZE` / `ANNOTATION_DB_POOL_MAX_SIZE` | `1` / `8` | Postgres pool size per worker | +| `ANNOTATION_DB_COMMAND_TIMEOUT` | `30` | Postgres statement timeout, seconds | +| `ANNOTATION_ALLOW_ANONYMOUS` | `false` | Development only: accept requests without `X-Auth-Request-User` | +| `ANNOTATION_ANONYMOUS_USER` | `anonymous` | The user those requests act as | +| `COMPANION_ALLOWED_ORIGINS` | — | Comma-separated origins, besides the request's own host, allowed to send unsafe requests | +| `COMPANION_MAX_BODY_BYTES` | `4194304` | Largest accepted request body | +| `N_WORKERS` | `4` | Gunicorn workers; use `1` for the first start on an empty SQLite database | + +The companion needs none of the pixel settings (seal key, object storage, +Redis). + +### ingress-nginx + +The `$wsi_study` map from [Ingress](#ingress) matches `studyId` on any path, +so the companion Ingress uses it unchanged: + +```yaml +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: wsi-companion + annotations: + nginx.ingress.kubernetes.io/auth-url: "http://cbioportal..svc.cluster.local:8080/api/studies/$wsi_study/access" + nginx.ingress.kubernetes.io/auth-method: GET + nginx.ingress.kubernetes.io/auth-response-headers: "X-Auth-Request-User,X-Auth-Request-Study" + # No auth cache: a write or logout must take effect at once. + nginx.ingress.kubernetes.io/proxy-body-size: "4m" + nginx.ingress.kubernetes.io/enable-access-log: "false" +spec: + ingressClassName: nginx + rules: + - host: cbioportal.example.org + http: + paths: + - path: /wsi/annotations + pathType: Prefix + backend: {service: {name: wsi-companion, port: {number: 8080}}} +--- +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: wsi-companion +spec: + podSelector: + matchLabels: {app: wsi-companion} + policyTypes: [Ingress] + ingress: + - from: + - namespaceSelector: + matchLabels: {kubernetes.io/metadata.name: ingress-nginx} + ports: + - port: 8080 +``` + +Keep `underscores_in_headers` off (the controller default), so +`X_Auth_Request_User` cannot stand in for the real header. + +### Plain nginx + +```nginx +location ~ ^/wsi/annotations(/.*)?$ { + if ($wsi_study = "!") { + return 400; + } + auth_request /_wsi_companion_access; + auth_request_set $wsi_auth_user $upstream_http_x_auth_request_user; + auth_request_set $wsi_auth_study $upstream_http_x_auth_request_study; + proxy_pass http://companion:8080; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $remote_addr; + # Always set both, so a client's copy never passes through. + proxy_set_header X-Auth-Request-User $wsi_auth_user; + proxy_set_header X-Auth-Request-Study $wsi_auth_study; + proxy_set_header Cookie ""; + client_max_body_size 4m; +} + +location = /_wsi_companion_access { + internal; + proxy_pass http://portal/api/studies/$wsi_study/access; + proxy_pass_request_body off; + proxy_set_header Content-Length ""; + proxy_set_header Cookie $http_cookie; + proxy_set_header Host $http_host; +} +``` + +A location that sets any `proxy_set_header` inherits none from the server +block, so each companion location sets both identity headers itself. + ## Runtime configuration The service needs only pixel storage, the source seal key, and an optional @@ -402,9 +590,6 @@ Redis cache: | `GUNICORN_TIMEOUT` | `180` | Worker request timeout for long cold-slide reads | | `BLOCKCACHE_PATH` | — | Optional local range-read cache, namespaced by each source's ETag so a slide rewritten in place never reuses old blocks | | `CORS_ORIGINS` | internal cBioPortal origins | Origins allowed uncredentialed cross-origin reads; pixel requests are same-origin, so this is not an access path | -| `ANNOTATION_DATABASE_URL` | — | Optional Postgres/Lakebase DSN for annotation storage | -| `ANNOTATION_DB_PATH` | `/data/annotations.db` | SQLite path used when `ANNOTATION_DATABASE_URL` is unset | -| `ANNOTATION_AUTH_ENABLED` | `true` | Require cBioPortal-issued annotation study tokens | Thumbnail artifacts are generated offline (see [Offline preparation](#offline-preparation)); their dimensions, content @@ -447,7 +632,9 @@ docker compose up --build ``` The compose file is a local rehearsal with no ingress in front of the -service, so it performs no study authorization; do not expose it. Use the +service, so it performs no study authorization; do not expose it. Its +`companion` service listens on `127.0.0.1:${COMPANION_PORT:-8081}` and expects +the identity headers a proxy would set; send them yourself to try it. Use the same `WSI_SOURCE_SEAL_KEY` here and wherever the study's sealed sources were produced. diff --git a/app/annotations.py b/app/annotations.py index f8a9971..0a6dac0 100644 --- a/app/annotations.py +++ b/app/annotations.py @@ -1,14 +1,16 @@ """ Annotation CRUD with pluggable SQLite or Postgres storage. -Routes: - GET /annotations list annotations for a slide/study +Routes (each with ``?studyId=``): + GET /annotations?slide_id= list a slide's annotations in the study POST /annotations create a new annotation PUT /annotations/{id} update (optimistic concurrency via version) DELETE /annotations/{id} delete (creator only) -Auth: all routes require a short-lived, study-scoped capability issued by -cBioPortal via ``require_user()``. +Auth: ``require_user()`` takes the user and study the authenticating proxy +asserted (``app.request_identity``). The body's study, and the stored +row's study for an update or delete, must be that study; ``created_by`` is +the proxy's user. These routes are served by ``app.companion`` only. ``slide_id`` carries the opaque slide key, never a pathology image ID; any other value is rejected so image IDs cannot reach annotation storage. @@ -23,7 +25,7 @@ from fastapi import APIRouter, Depends, HTTPException, Query, status from pydantic import BaseModel, Field -from .study_auth import require_user +from .request_identity import require_same_study, require_user from .sealed_source import SLIDE_KEY_PATTERN from .config import settings from .annotation_db import close_pool, connection, migrate, open_pool @@ -46,6 +48,21 @@ def _storage_kind() -> str: return "postgres" if (_db_url or _settings_db_url()) else "sqlite" +def storage_kind() -> str: + """``postgres`` or ``sqlite``: where annotations are stored.""" + return _storage_kind() + + +async def ping() -> None: + """Run a trivial query against annotation storage; raises if unreachable.""" + if _storage_kind() == "postgres": + async with connection(_get_db_url()) as conn: + await conn.fetchval("SELECT 1") + else: + async with aiosqlite.connect(_get_db_path()) as db: + await db.execute("SELECT 1 FROM annotations LIMIT 1") + + def _get_db_path() -> str: return _db_path or settings.annotation_db_path @@ -389,13 +406,9 @@ async def _delete_postgres(annotation_id: str) -> None: @router.get("", response_model=list[AnnotationOut]) async def list_annotations( slide_id: str = Query(..., pattern=SLIDE_KEY_REGEX, description="Opaque slide key"), - study_id: str = Query(..., description="cBioPortal study ID"), user: dict = Depends(require_user), ) -> list[AnnotationOut]: - if user.get("study_id") and user["study_id"] != study_id: - raise HTTPException( - status_code=403, detail="Token study scope does not match request" - ) + study_id: str = user["study_id"] user_sub: str = user["sub"] user_groups: set[str] = set(user["groups"]) if _storage_kind() == "postgres": @@ -410,10 +423,7 @@ async def create_annotation( data: AnnotationIn, user: dict = Depends(require_user), ) -> AnnotationOut: - if user.get("study_id") and user["study_id"] != data.study_id: - raise HTTPException( - status_code=403, detail="Token study scope does not match request" - ) + require_same_study(user, data.study_id, "the annotation's study") if _storage_kind() == "postgres": row = await _create_postgres(data, user["sub"]) else: @@ -434,10 +444,7 @@ async def update_annotation( ) if not existing: raise HTTPException(status_code=404, detail="Annotation not found") - if user.get("study_id") and user["study_id"] != existing["study_id"]: - raise HTTPException( - status_code=403, detail="Token study scope does not match annotation" - ) + require_same_study(user, existing["study_id"], "the annotation's study") if existing["created_by"] != user["sub"]: raise HTTPException( status_code=403, detail="Only the creator may update this annotation" @@ -513,10 +520,7 @@ async def delete_annotation( ) if not existing: raise HTTPException(status_code=404, detail="Annotation not found") - if user.get("study_id") and user["study_id"] != existing["study_id"]: - raise HTTPException( - status_code=403, detail="Token study scope does not match annotation" - ) + require_same_study(user, existing["study_id"], "the annotation's study") if existing["created_by"] != user["sub"]: raise HTTPException( status_code=403, detail="Only the creator may delete this annotation" diff --git a/app/companion.py b/app/companion.py new file mode 100644 index 0000000..035e761 --- /dev/null +++ b/app/companion.py @@ -0,0 +1,179 @@ +"""Companion service: the annotation API, separate from pixel serving. + +Run it from the same image as the tile server:: + + gunicorn -c python:app.gunicorn_conf app.companion:app + +It trusts ``X-Auth-Request-User`` and ``X-Auth-Request-Study`` +(``app.request_identity``), so it must only be reachable through the +authenticating reverse proxy: a pod-network Service admitted by a +NetworkPolicy from the ingress controller alone, never ``hostNetwork``. +The pixel app (``app.main``) serves none of these routes. + +Every request may carry at most ``COMPANION_MAX_BODY_BYTES``. Unsafe +methods (POST, PUT, PATCH, DELETE) must send ``X-Requested-With: +XMLHttpRequest``, a JSON ``Content-Type`` when there is a body, and either +no ``Origin`` or one that is the request's own host or listed in +``COMPANION_ALLOWED_ORIGINS``. The service sends no CORS headers, so a +cross-site page cannot send the custom header. +""" + +import json +import logging +from contextlib import asynccontextmanager +from urllib.parse import urlsplit + +from fastapi import FastAPI, Response +from starlette.exceptions import HTTPException +from starlette.responses import JSONResponse +from starlette.types import ASGIApp, Message, Receive, Scope, Send + +from . import annotations +from .config import settings + +logger = logging.getLogger(__name__) + +UNSAFE_METHODS = frozenset({"POST", "PUT", "PATCH", "DELETE"}) +REQUESTED_WITH = "XMLHttpRequest" +NO_STORE = {"Cache-Control": "private, no-store"} + + +def _header(scope: Scope, name: bytes) -> str | None: + for key, value in scope.get("headers", ()): + if key == name: + return value.decode("latin-1") + return None + + +def _origin_allowed(origin: str, host: str | None) -> bool: + normalized = origin.strip().rstrip("/").lower() + allowed = {item.strip().rstrip("/").lower() for item in settings.companion_allowed_origins} + if normalized in allowed: + return True + parsed = urlsplit(normalized) + if parsed.scheme not in ("http", "https") or not parsed.netloc: + return False + return host is not None and parsed.netloc == host.strip().lower() + + +def csrf_refusal(scope: Scope) -> tuple[int, str] | None: + """Why an unsafe request must be refused, or None when it may proceed.""" + if scope["method"] not in UNSAFE_METHODS: + return None + if _header(scope, b"x-requested-with") != REQUESTED_WITH: + return 403, f"X-Requested-With: {REQUESTED_WITH} is required" + origin = _header(scope, b"origin") + if origin is not None and not _origin_allowed(origin, _header(scope, b"host")): + return 403, "Cross-origin request refused" + if _header(scope, b"sec-fetch-site") == "cross-site" and origin is None: + return 403, "Cross-origin request refused" + length = _header(scope, b"content-length") + has_body = _header(scope, b"transfer-encoding") is not None or ( + length is not None and length.strip() not in ("", "0") + ) + if has_body: + media_type = (_header(scope, b"content-type") or "").split(";", 1)[0].strip().lower() + if media_type != "application/json": + return 415, "Content-Type must be application/json" + return None + + +class CompanionGuard: + """Strip ``/wsi``, apply the CSRF rules and cap the request body.""" + + def __init__(self, app: ASGIApp) -> None: + self.app = app + + async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: + if scope["type"] != "http": + await self.app(scope, receive, send) + return + path = scope["path"] + if path == "/wsi" or path.startswith("/wsi/"): + scope = dict(scope) + scope["path"] = path[4:] or "/" + + refusal = csrf_refusal(scope) + if refusal is not None: + status_code, detail = refusal + await JSONResponse({"detail": detail}, status_code=status_code, headers=NO_STORE)( + scope, receive, send + ) + return + + limit = settings.companion_max_body_bytes + length = _header(scope, b"content-length") + if length is not None: + try: + too_large = int(length) > limit + except ValueError: + too_large = True + if too_large: + await JSONResponse( + {"detail": "Request body too large"}, status_code=413, headers=NO_STORE + )(scope, receive, send) + return + + received = 0 + + async def limited_receive() -> Message: + nonlocal received + message = await receive() + if message["type"] == "http.request": + received += len(message.get("body", b"")) + if received > limit: + raise HTTPException(status_code=413, detail="Request body too large") + return message + + async def send_no_store(message: Message) -> None: + if message["type"] == "http.response.start": + headers = list(message.get("headers", [])) + if not any(key.lower() == b"cache-control" for key, _ in headers): + headers.append((b"cache-control", NO_STORE["Cache-Control"].encode())) + message = {**message, "headers": headers} + await send(message) + + await self.app(scope, limited_receive, send_no_store) + + +@asynccontextmanager +async def lifespan(app: FastAPI): + await annotations.init_db() + logger.info("Annotation DB ready (%s)", annotations.storage_kind()) + try: + yield + finally: + await annotations.close_db() + + +app = FastAPI( + title="WSI companion service", + description="Slide annotations for cBioPortal, behind an authenticating proxy.", + version="1.0.0", + lifespan=lifespan, +) +app.add_middleware(CompanionGuard) +app.include_router(annotations.router) + + +@app.get("/health") +def health(): + return {"status": "ok", "service": "companion"} + + +@app.get("/ready") +async def ready(): + payload = { + "status": "ready", + "service": "companion", + "annotation_storage": annotations.storage_kind(), + "anonymous_allowed": settings.annotation_allow_anonymous, + } + try: + await annotations.ping() + except Exception as exc: # readiness reports any storage failure + logger.warning("Annotation storage is not reachable: %s", type(exc).__name__) + payload["status"] = "unavailable" + payload["reason"] = "annotation storage is not reachable" + return Response(json.dumps(payload), status_code=503, media_type="application/json") + return payload diff --git a/app/config.py b/app/config.py index 32207e7..c8743f7 100644 --- a/app/config.py +++ b/app/config.py @@ -168,18 +168,23 @@ class Settings: annotation_database_url: str = field(default_factory=lambda: _env_str("ANNOTATION_DATABASE_URL")) annotation_db_path: str = field(default_factory=lambda: _env_str("ANNOTATION_DB_PATH", "/data/annotations.db")) - annotation_auth_enabled: bool = field(default_factory=lambda: _env_bool("ANNOTATION_AUTH_ENABLED", True)) - # Study tokens for /annotations (app.study_auth): the HS256 secret - # cBioPortal signs them with (at least 32 bytes), an optional previous - # secret accepted during rotation, and their audience. - wsi_auth_secret: str = field( - default_factory=lambda: _env_str("WSI_AUTH_SECRET"), repr=False - ) - wsi_auth_previous_secret: str = field( - default_factory=lambda: _env_str("WSI_AUTH_PREVIOUS_SECRET"), repr=False - ) - wsi_auth_audience: str = field( - default_factory=lambda: _env_str("WSI_AUTH_AUDIENCE", "cbioportal-wsi") + # Companion service (app.companion). The authenticating proxy sends + # X-Auth-Request-User; without it a request is refused unless anonymous + # use is allowed (development only), when it acts as this user. + annotation_allow_anonymous: bool = field( + default_factory=lambda: _env_bool("ANNOTATION_ALLOW_ANONYMOUS", False) + ) + annotation_anonymous_user: str = field( + default_factory=lambda: _env_str("ANNOTATION_ANONYMOUS_USER", "anonymous") + ) + # Origins (scheme://host[:port]) besides the request's own host that may + # send unsafe requests to the companion service. + companion_allowed_origins: list[str] = field( + default_factory=lambda: _env_csv("COMPANION_ALLOWED_ORIGINS", "") + ) + # Largest request body the companion service accepts. + companion_max_body_bytes: int = field( + default_factory=lambda: _env_int("COMPANION_MAX_BODY_BYTES", 4 * 1024 * 1024) ) # CORS diff --git a/app/main.py b/app/main.py index 3feb9c7..c9ace53 100644 --- a/app/main.py +++ b/app/main.py @@ -70,9 +70,6 @@ track_image_operation, track_thumbnail_fetch, ) -from .annotations import init_db as init_annotation_db -from .annotations import close_db as close_annotation_db -from .annotations import router as annotation_router from .slide_store import UnsafeSourceUri, check_source_uri, is_source_changed_error from .slides import SlideCache from .thumbnail_store import ( @@ -364,8 +361,6 @@ async def _prune_loop(): settings.max_open_slides, settings.aws_endpoint_url or "AWS default", ) - await init_annotation_db() - logger.info("Annotation DB ready: %s", settings.annotation_db_path) try: yield finally: @@ -374,7 +369,6 @@ async def _prune_loop(): with suppress(asyncio.CancelledError): await blockcache_task _slides.close_all() - await close_annotation_db() await _in_thread(close_runtime_store) await tile_cache.close_cache() @@ -397,7 +391,7 @@ async def wsi_namespace(request, call_next): app.add_middleware( CORSMiddleware, allow_origins=settings.cors_origins, - allow_methods=["GET", "POST", "PUT", "DELETE"], + allow_methods=["GET"], allow_headers=["*"], allow_private_network=True, expose_headers=["X-Thumbnail-Status", "X-Thumbnail-Reason", "Retry-After"], @@ -409,7 +403,6 @@ async def wsi_namespace(request, call_next): TILE_CACHE_HEADERS = {"Cache-Control": "private, max-age=3600", "Vary": "Cookie"} THUMB_CACHE_HEADERS = {"Cache-Control": "private, max-age=300", "Vary": "Cookie"} PHI_CACHE_HEADERS = {"Cache-Control": "private, no-store"} -app.include_router(annotation_router) async def _in_thread(fn, *args): diff --git a/app/request_identity.py b/app/request_identity.py new file mode 100644 index 0000000..bde6c00 --- /dev/null +++ b/app/request_identity.py @@ -0,0 +1,99 @@ +"""Request identity for the companion routes, taken from a trusted proxy. + +The companion service (``app.companion``) sits behind a reverse proxy that +authorizes every request against cBioPortal's +``GET /api/studies/{studyId}/access`` with the browser's session cookie. +The portal answers 204 with ``X-Auth-Request-User`` (absent when anonymous) +and ``X-Auth-Request-Study``, 401 when not signed in, and 403 when the user +may not read the study. The proxy copies those two headers onto the +request, replacing any the client sent. + +This module trusts those headers and nothing else, so the service must only +be reachable through that proxy. ``require_user`` returns +``{"sub", "groups", "study_id"}``: + +- no ``X-Auth-Request-Study``: 401; +- ``studyId`` missing, repeated (in any letter case) or different from + ``X-Auth-Request-Study``: 403; +- no ``X-Auth-Request-User``: the configured anonymous identity when + ``ANNOTATION_ALLOW_ANONYMOUS=true`` (development only), else 401. + +Handlers compare any study a body, path or stored row names with +``require_same_study``. +""" + +import re +from typing import Any + +from fastapi import HTTPException, Request, status + +from .config import settings + +USER_HEADER = "X-Auth-Request-User" +STUDY_HEADER = "X-Auth-Request-Study" +STUDY_QUERY_PARAM = "studyId" + +# The same study ID rule the pixel routes apply to `studyId`. +STUDY_ID_PATTERN = re.compile(r"^(?!\.+$)[A-Za-z0-9_.-]{1,128}$") +# A user name the portal forwards: printable, no control characters. +USER_PATTERN = re.compile(r"^[^\x00-\x1f\x7f]{1,256}$") + + +def _unauthorized(detail: str) -> HTTPException: + return HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail=detail) + + +def _forbidden(detail: str) -> HTTPException: + return HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=detail) + + +def _query_values(request: Request, name: str) -> list[str]: + """Every value of ``name`` in the query string, matched case-insensitively. + + nginx ``$arg_`` lookups ignore case, so ``StudyID=a&studyId=b`` could be + authorized for one study at the proxy and read as another here. + """ + wanted = name.lower() + return [ + value + for param, value in request.query_params.multi_items() + if param.lower() == wanted + ] + + +def _anonymous_user() -> str: + user = settings.annotation_anonymous_user.strip() + if not USER_PATTERN.fullmatch(user): + raise _unauthorized("Not signed in") + return user + + +def trusted_identity(request: Request) -> dict[str, Any]: + """Return the proxy-asserted user and study for ``request``.""" + study = request.headers.get(STUDY_HEADER, "").strip() + if not study or not STUDY_ID_PATTERN.fullmatch(study): + raise _unauthorized("Request was not authorized for a study") + + if _query_values(request, STUDY_QUERY_PARAM) != [study]: + raise _forbidden("studyId must be given once and match the authorized study") + + user = request.headers.get(USER_HEADER, "").strip() + if not user: + if not settings.annotation_allow_anonymous: + raise _unauthorized("Not signed in") + user = _anonymous_user() + elif not USER_PATTERN.fullmatch(user): + raise _unauthorized("Malformed user") + + return {"sub": user, "groups": [], "study_id": study} + + +async def require_user(request: Request) -> dict[str, Any]: + """FastAPI dependency: the request's user and authorized study.""" + return trusted_identity(request) + + +def require_same_study(user: dict[str, Any], study_id: Any, what: str = "request") -> None: + """403 unless ``study_id`` is the study the proxy authorized.""" + if not isinstance(study_id, str) or study_id != user["study_id"]: + raise _forbidden(f"Authorized study does not match {what}") diff --git a/app/study_auth.py b/app/study_auth.py deleted file mode 100644 index c06be75..0000000 --- a/app/study_auth.py +++ /dev/null @@ -1,206 +0,0 @@ -"""Study-scoped bearer tokens for the annotation, assistant and research routes. - -cBioPortal signs these with ``WSI_AUTH_SECRET`` (HS256, ``typ: JWT``) from -``/api/wsi/access-token?purpose=...``: ``sub``, a string ``aud``, a -space-separated ``scope``, ``study_id`` and ``iat``/``exp`` at most -``STUDY_TOKEN_MAX_TTL`` seconds apart. They grant study capabilities only. -Tiles and thumbnails never read them: pixels are served from the sealed -source alone, behind the ingress's study check. -""" - -import hashlib -import hmac -import json -import time - -from fastapi import Depends, HTTPException, Request, status -from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer - -from app.config import settings -from app.sealed_source import b64url_decode - -STUDY_TOKEN_MAX_TTL = 300 -STUDY_TOKEN_MIN_SECRET_BYTES = 32 -# Claims that bind a token to one slide or resource row. A study token -# carries none of them, so it can never stand in for a slide binding. -_SLIDE_CLAIMS = ( - "slide_key", - "resource_id", - "enc", - "wsi_auth_version", - "image_id", - "tile_source", - "thumbnail_source", -) - - -class InvalidStudyToken(ValueError): - """Raised when a study token is malformed, unsigned, expired or foreign.""" - - -class InsufficientStudyScope(InvalidStudyToken): - """Raised when a valid study token lacks a scope the route requires.""" - - -def study_token_auth_configured() -> bool: - """Whether ``WSI_AUTH_SECRET`` can verify study tokens.""" - return ( - len(settings.wsi_auth_secret.encode()) >= STUDY_TOKEN_MIN_SECRET_BYTES - and bool(settings.wsi_auth_audience.strip()) - ) - - -def study_token_auth_status() -> str: - """``disabled`` (dev flag), ``configured`` or ``unconfigured``.""" - if not settings.annotation_auth_enabled: - return "disabled" - return "configured" if study_token_auth_configured() else "unconfigured" - - -def _b64decode(value: str) -> bytes: - try: - return b64url_decode(value) - except Exception as exc: - raise InvalidStudyToken("invalid token encoding") from exc - - -def _verified_payload(token: str, secret: str) -> dict: - """Return the payload of an HS256 JWT after checking its signature.""" - parts = token.split(".") - if len(parts) != 3: - raise InvalidStudyToken("invalid token") - encoded_header, encoded_payload, encoded_signature = parts - try: - header = json.loads(_b64decode(encoded_header)) - payload = json.loads(_b64decode(encoded_payload)) - except (UnicodeDecodeError, json.JSONDecodeError) as exc: - raise InvalidStudyToken("invalid token payload") from exc - if not isinstance(header, dict) or not isinstance(payload, dict): - raise InvalidStudyToken("invalid token structure") - if header.get("alg") != "HS256" or header.get("typ") != "JWT": - raise InvalidStudyToken("unsupported token algorithm") - expected = hmac.new( - secret.encode(), - f"{encoded_header}.{encoded_payload}".encode(), - hashlib.sha256, - ).digest() - if not hmac.compare_digest(expected, _b64decode(encoded_signature)): - raise InvalidStudyToken("invalid token signature") - return payload - - -def validate_study_token( - token: str, - secret: str, - audience: str, - required_scopes: set[str], - max_ttl: int = STUDY_TOKEN_MAX_TTL, -) -> dict: - """Verify a study token and require every ``required_scopes`` entry. - - Raises ``InsufficientStudyScope`` only for an otherwise valid token, so - callers can answer 403 rather than 401. - """ - if not secret or len(secret.encode()) < STUDY_TOKEN_MIN_SECRET_BYTES: - raise InvalidStudyToken("study token authentication is not configured") - if not audience or not audience.strip() or not 1 <= max_ttl <= STUDY_TOKEN_MAX_TTL: - raise InvalidStudyToken("study token authentication is not configured") - payload = _verified_payload(token, secret) - - if payload.get("aud") != audience: - raise InvalidStudyToken("invalid token audience") - if not isinstance(payload.get("scope"), str): - raise InvalidStudyToken("invalid token scope") - if any(claim in payload for claim in _SLIDE_CLAIMS): - raise InvalidStudyToken("study token names a slide") - if not isinstance(payload.get("sub"), str) or not payload["sub"]: - raise InvalidStudyToken("invalid token subject") - if not isinstance(payload.get("study_id"), str) or not payload["study_id"].strip(): - raise InvalidStudyToken("invalid token study") - now = int(time.time()) - if type(payload.get("exp")) is not int or payload["exp"] <= now: - raise InvalidStudyToken("expired token") - if type(payload.get("iat")) is not int or payload["iat"] > now + 60: - raise InvalidStudyToken("invalid token issued-at") - if payload["exp"] <= payload["iat"] or payload["exp"] - payload["iat"] > max_ttl: - raise InvalidStudyToken("token lifetime exceeds configured maximum") - - scopes = payload["scope"].split() - if not required_scopes or not required_scopes.issubset(scopes): - raise InsufficientStudyScope("token lacks a required scope") - return payload - - -_bearer = HTTPBearer(auto_error=False) - - -def _unauthorized(detail: str) -> HTTPException: - return HTTPException( - status_code=status.HTTP_401_UNAUTHORIZED, - detail=detail, - headers={"WWW-Authenticate": "Bearer"}, - ) - - -def _authenticate_study( - creds: HTTPAuthorizationCredentials | None, required_scopes: set[str] -) -> dict: - if not settings.annotation_auth_enabled: - return {"sub": "dev-user", "groups": [], "study_id": None, "scopes": set(required_scopes)} - if not study_token_auth_configured(): - raise HTTPException( - status_code=status.HTTP_503_SERVICE_UNAVAILABLE, - detail="Study token authentication is not configured", - ) - if creds is None: - raise _unauthorized("Missing Authorization header") - insufficient_scope = False - for secret in (settings.wsi_auth_secret, settings.wsi_auth_previous_secret): - if not secret: - continue - try: - token = validate_study_token( - creds.credentials, secret, settings.wsi_auth_audience, required_scopes - ) - except InsufficientStudyScope: - insufficient_scope = True - break - except InvalidStudyToken: - continue - return { - "sub": token["sub"], - "groups": [], - "study_id": token["study_id"], - "scopes": set(token["scope"].split()), - } - if insufficient_scope: - raise HTTPException( - status_code=status.HTTP_403_FORBIDDEN, - detail="Study token lacks the required scope", - ) - raise _unauthorized("Invalid study token") - - -def study_scope_dependency(required_scopes: set[str]): - """FastAPI dependency requiring a study token with ``required_scopes``.""" - - async def dependency( - creds: HTTPAuthorizationCredentials | None = Depends(_bearer), - ) -> dict: - return _authenticate_study(creds, required_scopes) - - return dependency - - -async def require_user( - request: Request, - creds: HTTPAuthorizationCredentials | None = Depends(_bearer), -) -> dict: - """Return the subject and study of an annotation study token. - - Reads need ``annotations:read``; writes also need ``annotations:write``. - """ - required_scopes = {"annotations:read"} - if request.method in {"POST", "PUT", "DELETE"}: - required_scopes.add("annotations:write") - return _authenticate_study(creds, required_scopes) diff --git a/docker-compose.yml b/docker-compose.yml index 80ac84d..9015327 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -51,11 +51,6 @@ services: # ── CORS — add the viewer origin so the browser can reach tile APIs ─── CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:8080,http://localhost:3000,https://cbioportal.mskcc.org,https://triage.cbioportal.mskcc.org} - # ── Annotation API ──────────────────────────────────────────────────── - ANNOTATION_DATABASE_URL: ${ANNOTATION_DATABASE_URL:-} - ANNOTATION_DB_PATH: /data/annotations.db - ANNOTATION_AUTH_ENABLED: ${ANNOTATION_AUTH_ENABLED:-true} - # ── Capacity (tune to host RAM; each open SVS ≈ 50–200 MB) ─────────── MAX_OPEN_SLIDES: ${MAX_OPEN_SLIDES:-1} N_WORKERS: ${N_WORKERS:-2} @@ -71,7 +66,6 @@ services: PROMETHEUS_MULTIPROC_DIR: ${PROMETHEUS_MULTIPROC_DIR:-/cache/prometheus} volumes: - slide_blocks:/cache/slide-blocks - - annotation_data:/data - ./tests/testdata:/app/testdata:ro depends_on: redis: @@ -88,6 +82,32 @@ services: retries: 3 start_period: 15s + # Annotation API (app.companion), from the same image. It trusts the + # X-Auth-Request-User / X-Auth-Request-Study headers an authenticating + # proxy sets, so it is published on loopback only; put the proxy described + # in the README in front of it. + companion: + build: . + command: ["gunicorn", "-c", "python:app.gunicorn_conf", "app.companion:app"] + ports: + - "127.0.0.1:${COMPANION_PORT:-8081}:8080" + environment: + ANNOTATION_DATABASE_URL: ${ANNOTATION_DATABASE_URL:-} + ANNOTATION_DB_PATH: /data/annotations.db + ANNOTATION_ALLOW_ANONYMOUS: ${ANNOTATION_ALLOW_ANONYMOUS:-false} + COMPANION_ALLOWED_ORIGINS: ${COMPANION_ALLOWED_ORIGINS:-} + # One worker creates the SQLite schema safely on first start. + N_WORKERS: ${COMPANION_WORKERS:-1} + volumes: + - annotation_data:/data + restart: unless-stopped + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8080/ready"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 15s + redis: image: redis:7.4.5-alpine command: > diff --git a/tests/test_annotations.py b/tests/test_annotations.py index 0f55004..d67900d 100644 --- a/tests/test_annotations.py +++ b/tests/test_annotations.py @@ -23,7 +23,7 @@ def user( subject: str, *, groups: list[str] | None = None, - study_id: str | None = "study-1", + study_id: str = "study-1", ) -> dict: return { "sub": subject, @@ -74,7 +74,7 @@ async def test_annotation_crud_round_trip_and_privacy_reset(): assert created.created_at assert created.updated_at - listed = await annotations.list_annotations(SLIDE_KEY, "study-1", owner) + listed = await annotations.list_annotations(SLIDE_KEY, owner) assert [item.id for item in listed] == [created.id] updated = await annotations.update_annotation( @@ -92,7 +92,7 @@ async def test_annotation_crud_round_trip_and_privacy_reset(): assert updated.updated_at await annotations.delete_annotation(created.id, owner) - assert await annotations.list_annotations(SLIDE_KEY, "study-1", owner) == [] + assert await annotations.list_annotations(SLIDE_KEY, owner) == [] @pytest.mark.asyncio @@ -104,17 +104,15 @@ async def test_annotation_visibility_honors_creator_groups_and_public_rows(): ) public = await annotations.create_annotation(annotation_input(visible_to=[]), owner) - outsider_rows = await annotations.list_annotations( - SLIDE_KEY, "study-1", user("outsider") - ) + outsider_rows = await annotations.list_annotations(SLIDE_KEY, user("outsider")) assert [item.id for item in outsider_rows] == [public.id] group_rows = await annotations.list_annotations( - SLIDE_KEY, "study-1", user("reviewer", groups=["pathology"]) + SLIDE_KEY, user("reviewer", groups=["pathology"]) ) assert {item.id for item in group_rows} == {group.id, public.id} - owner_rows = await annotations.list_annotations(SLIDE_KEY, "study-1", owner) + owner_rows = await annotations.list_annotations(SLIDE_KEY, owner) assert {item.id for item in owner_rows} == {private.id, group.id, public.id} @@ -129,11 +127,15 @@ async def test_annotation_writes_require_creator_and_matching_study_scope(): ) assert wrong_study_create.value.status_code == 403 - with pytest.raises(HTTPException) as wrong_study_list: - await annotations.list_annotations( - SLIDE_KEY, "study-1", user("owner", study_id="study-2") + with pytest.raises(HTTPException) as wrong_study_update: + await annotations.update_annotation( + created.id, AnnotationUpdate(version=1), user("owner", study_id="study-2") ) - assert wrong_study_list.value.status_code == 403 + assert wrong_study_update.value.status_code == 403 + + with pytest.raises(HTTPException) as wrong_study_delete: + await annotations.delete_annotation(created.id, user("owner", study_id="study-2")) + assert wrong_study_delete.value.status_code == 403 with pytest.raises(HTTPException) as non_creator_update: await annotations.update_annotation( @@ -189,7 +191,7 @@ def test_annotations_accept_only_opaque_slide_keys(slide_id): app.include_router(annotations.router) app.dependency_overrides[annotations.require_user] = lambda: user("owner") response = TestClient(app).get( - "/annotations", params={"slide_id": slide_id, "study_id": "study-1"} + "/annotations", params={"slide_id": slide_id, "studyId": "study-1"} ) assert response.status_code == 422 diff --git a/tests/test_companion.py b/tests/test_companion.py new file mode 100644 index 0000000..1185d2f --- /dev/null +++ b/tests/test_companion.py @@ -0,0 +1,402 @@ +"""The companion service: proxy-asserted identity, CSRF guard and routing.""" + +import pytest +from fastapi import HTTPException +from fastapi.testclient import TestClient +from starlette.requests import Request + +from app import annotations, companion, request_identity +from app.request_identity import require_same_study, trusted_identity + +SLIDE_KEY = "0123456789ab" +XHR = {"X-Requested-With": "XMLHttpRequest"} + + +def headers(user: str | None = "alice@example.org", study: str | None = "study-a", **extra) -> dict: + result = dict(XHR) + if user is not None: + result["X-Auth-Request-User"] = user + if study is not None: + result["X-Auth-Request-Study"] = study + result.update(extra) + return result + + +def annotation_body(study: str = "study-a", label: str = "Tumor") -> dict: + return { + "slide_id": SLIDE_KEY, + "study_id": study, + "body": {"label": label, "comment": "", "type": "Polygon"}, + "target": { + "selector": {"type": "SvgSelector", "value": ""} + }, + "visible_to": [], + } + + +def make_request(query: str = "studyId=study-a", **header_values: str) -> Request: + raw = [(name.lower().encode(), value.encode()) for name, value in header_values.items()] + return Request( + {"type": "http", "method": "GET", "path": "/annotations", "query_string": query.encode(), "headers": raw} + ) + + +@pytest.fixture +def settings_env(monkeypatch, tmp_path): + monkeypatch.setattr(companion.settings, "annotation_database_url", "") + monkeypatch.setattr(companion.settings, "annotation_db_path", str(tmp_path / "annotations.db")) + monkeypatch.setattr(companion.settings, "annotation_allow_anonymous", False) + monkeypatch.setattr(companion.settings, "annotation_anonymous_user", "anonymous") + monkeypatch.setattr(companion.settings, "companion_allowed_origins", []) + monkeypatch.setattr(companion.settings, "companion_max_body_bytes", 4 * 1024 * 1024) + yield companion.settings + annotations._db_path = "" + annotations._db_url = "" + + +@pytest.fixture +def client(settings_env): + with TestClient(companion.app) as test_client: + yield test_client + + +# --- trusted_identity ------------------------------------------------------- + + +class TestTrustedIdentity: + def test_headers_give_the_user_and_study(self, settings_env): + identity = trusted_identity( + make_request(**{"X-Auth-Request-User": "alice", "X-Auth-Request-Study": "study-a"}) + ) + assert identity == {"sub": "alice", "groups": [], "study_id": "study-a"} + + def test_missing_study_header_is_401(self, settings_env): + with pytest.raises(HTTPException) as exc: + trusted_identity(make_request(**{"X-Auth-Request-User": "alice"})) + assert exc.value.status_code == 401 + + def test_malformed_study_header_is_401(self, settings_env): + with pytest.raises(HTTPException) as exc: + trusted_identity( + make_request(**{"X-Auth-Request-User": "alice", "X-Auth-Request-Study": "../x"}) + ) + assert exc.value.status_code == 401 + + @pytest.mark.parametrize( + "query", + ["", "studyId=study-b", "studyId=study-a&studyId=study-a", "studyId=study-a&StudyID=study-b", "study_id=study-a"], + ) + def test_studyid_must_be_given_once_and_match(self, settings_env, query): + with pytest.raises(HTTPException) as exc: + trusted_identity( + make_request(query, **{"X-Auth-Request-User": "alice", "X-Auth-Request-Study": "study-a"}) + ) + assert exc.value.status_code == 403 + + def test_missing_user_is_401_unless_anonymous_is_allowed(self, settings_env, monkeypatch): + request = make_request(**{"X-Auth-Request-Study": "study-a"}) + with pytest.raises(HTTPException) as exc: + trusted_identity(request) + assert exc.value.status_code == 401 + + monkeypatch.setattr(settings_env, "annotation_allow_anonymous", True) + monkeypatch.setattr(settings_env, "annotation_anonymous_user", "local-development") + assert trusted_identity(request)["sub"] == "local-development" + + def test_anonymous_never_replaces_a_forwarded_user(self, settings_env, monkeypatch): + monkeypatch.setattr(settings_env, "annotation_allow_anonymous", True) + identity = trusted_identity( + make_request(**{"X-Auth-Request-User": "alice", "X-Auth-Request-Study": "study-a"}) + ) + assert identity["sub"] == "alice" + + def test_a_user_with_control_characters_is_refused(self, settings_env): + with pytest.raises(HTTPException) as exc: + trusted_identity( + make_request(**{"X-Auth-Request-User": "al\x01ice", "X-Auth-Request-Study": "study-a"}) + ) + assert exc.value.status_code == 401 + + def test_the_study_is_never_none(self, settings_env): + user = {"sub": "alice", "groups": [], "study_id": "study-a"} + require_same_study(user, "study-a") + for other in ("study-b", None, ""): + with pytest.raises(HTTPException) as exc: + require_same_study(user, other) + assert exc.value.status_code == 403 + + def test_no_token_settings_remain(self): + for name in ("wsi_auth_secret", "wsi_auth_audience", "annotation_auth_enabled"): + assert not hasattr(companion.settings, name) + + +# --- annotation routes over HTTP ------------------------------------------- + + +class TestAnnotationRoutes: + def test_crud_records_the_forwarded_user(self, client): + created = client.post("/annotations?studyId=study-a", json=annotation_body(), headers=headers()) + assert created.status_code == 201, created.text + row = created.json() + assert row["created_by"] == "alice@example.org" + assert row["study_id"] == "study-a" + assert created.headers["cache-control"] == "private, no-store" + + listed = client.get( + "/annotations", params={"studyId": "study-a", "slide_id": SLIDE_KEY}, headers=headers() + ) + assert listed.status_code == 200 + assert [item["id"] for item in listed.json()] == [row["id"]] + + updated = client.put( + f"/annotations/{row['id']}?studyId=study-a", + json={"body": {"label": "Stroma", "comment": "", "type": "Polygon"}, "version": 1}, + headers=headers(), + ) + assert updated.status_code == 200, updated.text + assert updated.json()["version"] == 2 + assert updated.json()["created_by"] == "alice@example.org" + + deleted = client.delete(f"/annotations/{row['id']}?studyId=study-a", headers=headers()) + assert deleted.status_code == 204 + listed = client.get( + "/annotations", params={"studyId": "study-a", "slide_id": SLIDE_KEY}, headers=headers() + ) + assert listed.json() == [] + + def test_wsi_prefix_is_accepted(self, client): + response = client.get( + "/wsi/annotations", params={"studyId": "study-a", "slide_id": SLIDE_KEY}, headers=headers() + ) + assert response.status_code == 200 + + def test_list_only_returns_the_authorized_studys_rows(self, client): + client.post("/annotations?studyId=study-a", json=annotation_body("study-a"), headers=headers()) + response = client.get( + "/annotations", + params={"studyId": "study-b", "slide_id": SLIDE_KEY}, + headers=headers(study="study-b"), + ) + assert response.status_code == 200 + assert response.json() == [] + + def test_requests_without_proxy_headers_are_refused(self, client): + params = {"studyId": "study-a", "slide_id": SLIDE_KEY} + assert client.get("/annotations", params=params, headers=XHR).status_code == 401 + assert client.get("/annotations", params=params, headers=headers(user=None)).status_code == 401 + + def test_anonymous_writes_use_the_configured_identity(self, client, settings_env, monkeypatch): + monkeypatch.setattr(settings_env, "annotation_allow_anonymous", True) + monkeypatch.setattr(settings_env, "annotation_anonymous_user", "local-development") + created = client.post( + "/annotations?studyId=study-a", json=annotation_body(), headers=headers(user=None) + ) + assert created.status_code == 201 + assert created.json()["created_by"] == "local-development" + + def test_body_study_must_match_the_authorized_study(self, client): + response = client.post( + "/annotations?studyId=study-a", json=annotation_body("study-b"), headers=headers() + ) + assert response.status_code == 403 + + def test_studyid_must_match_the_authorized_study(self, client): + response = client.post( + "/annotations?studyId=study-b", json=annotation_body("study-a"), headers=headers() + ) + assert response.status_code == 403 + response = client.post("/annotations", json=annotation_body("study-a"), headers=headers()) + assert response.status_code == 403 + + def test_a_forged_header_cannot_reach_another_studys_row(self, client): + row = client.post( + "/annotations?studyId=study-a", json=annotation_body(), headers=headers() + ).json() + # Authorized for study-b (the user's own study), aiming at study-a's row. + forged = headers(study="study-b") + update = client.put( + f"/annotations/{row['id']}?studyId=study-b", json={"version": 1}, headers=forged + ) + assert update.status_code == 403 + delete = client.delete(f"/annotations/{row['id']}?studyId=study-b", headers=forged) + assert delete.status_code == 403 + # Naming study-a in the query while authorized for study-b is refused too. + delete = client.delete(f"/annotations/{row['id']}?studyId=study-a", headers=forged) + assert delete.status_code == 403 + still_there = client.get( + "/annotations", params={"studyId": "study-a", "slide_id": SLIDE_KEY}, headers=headers() + ) + assert [item["id"] for item in still_there.json()] == [row["id"]] + + def test_only_the_creator_may_change_a_row(self, client): + row = client.post( + "/annotations?studyId=study-a", json=annotation_body(), headers=headers() + ).json() + other = headers(user="bob@example.org") + assert ( + client.put(f"/annotations/{row['id']}?studyId=study-a", json={"version": 1}, headers=other).status_code + == 403 + ) + assert client.delete(f"/annotations/{row['id']}?studyId=study-a", headers=other).status_code == 403 + + +# --- CSRF guard --------------------------------------------------------------- + + +class TestCsrfGuard: + def test_unsafe_requests_need_x_requested_with(self, client): + no_xhr = {k: v for k, v in headers().items() if k != "X-Requested-With"} + response = client.post("/annotations?studyId=study-a", json=annotation_body(), headers=no_xhr) + assert response.status_code == 403 + wrong = headers(**{"X-Requested-With": "fetch"}) + response = client.post("/annotations?studyId=study-a", json=annotation_body(), headers=wrong) + assert response.status_code == 403 + response = client.delete("/annotations/x?studyId=study-a", headers=no_xhr) + assert response.status_code == 403 + + def test_reads_do_not_need_x_requested_with(self, client): + no_xhr = {k: v for k, v in headers().items() if k != "X-Requested-With"} + response = client.get( + "/annotations", params={"studyId": "study-a", "slide_id": SLIDE_KEY}, headers=no_xhr + ) + assert response.status_code == 200 + + @pytest.mark.parametrize("content_type", ["text/plain", "application/x-www-form-urlencoded", "multipart/form-data; boundary=x"]) + def test_a_body_must_be_json(self, client, content_type): + response = client.post( + "/annotations?studyId=study-a", + content=b'{"slide_id": "0123456789ab"}', + headers=headers(**{"Content-Type": content_type}), + ) + assert response.status_code == 415 + + def test_json_with_charset_is_accepted(self, client): + import json + + response = client.post( + "/annotations?studyId=study-a", + content=json.dumps(annotation_body()).encode(), + headers=headers(**{"Content-Type": "application/json; charset=utf-8"}), + ) + assert response.status_code == 201 + + @pytest.mark.parametrize("origin", ["https://evil.example", "null", "http://testserver.evil.example"]) + def test_a_foreign_origin_is_refused(self, client, origin): + response = client.post( + "/annotations?studyId=study-a", json=annotation_body(), headers=headers(Origin=origin) + ) + assert response.status_code == 403 + + def test_cross_site_fetch_metadata_is_refused(self, client): + response = client.post( + "/annotations?studyId=study-a", + json=annotation_body(), + headers=headers(**{"Sec-Fetch-Site": "cross-site"}), + ) + assert response.status_code == 403 + + def test_same_host_and_configured_origins_are_accepted(self, client, settings_env, monkeypatch): + same = client.post( + "/annotations?studyId=study-a", json=annotation_body(), headers=headers(Origin="http://testserver") + ) + assert same.status_code == 201 + monkeypatch.setattr(settings_env, "companion_allowed_origins", ["https://portal.example.org/"]) + listed = client.post( + "/annotations?studyId=study-a", + json=annotation_body(), + headers=headers(Origin="https://portal.example.org"), + ) + assert listed.status_code == 201 + + def test_no_cors_headers_are_sent(self, client): + preflight = client.options( + "/annotations?studyId=study-a", + headers={ + "Origin": "https://evil.example", + "Access-Control-Request-Method": "POST", + "Access-Control-Request-Headers": "x-requested-with, content-type", + }, + ) + assert "access-control-allow-origin" not in preflight.headers + response = client.get( + "/annotations", + params={"studyId": "study-a", "slide_id": SLIDE_KEY}, + headers=headers(Origin="https://evil.example"), + ) + assert "access-control-allow-origin" not in response.headers + + +# --- request size ------------------------------------------------------------- + + +class TestBodyLimit: + def test_declared_oversized_body_is_413(self, client, settings_env, monkeypatch): + monkeypatch.setattr(settings_env, "companion_max_body_bytes", 1024) + body = annotation_body() + body["body"]["comment"] = "x" * 2048 + response = client.post("/annotations?studyId=study-a", json=body, headers=headers()) + assert response.status_code == 413 + + def test_streamed_oversized_body_is_413(self, client, settings_env, monkeypatch): + monkeypatch.setattr(settings_env, "companion_max_body_bytes", 1024) + + def chunks(): + yield b'{"comment": "' + for _ in range(8): + yield b"x" * 256 + yield b'"}' + + response = client.post( + "/annotations?studyId=study-a", + content=chunks(), + headers=headers(**{"Content-Type": "application/json"}), + ) + assert response.status_code == 413 + + def test_default_limit_fits_a_viewport_image(self): + assert companion.settings.companion_max_body_bytes >= 3 * 1024 * 1024 + + +# --- health and separation from the pixel app -------------------------------- + + +def test_health_and_ready(client): + assert client.get("/health").json()["status"] == "ok" + ready = client.get("/ready") + assert ready.status_code == 200 + assert ready.json()["annotation_storage"] == "sqlite" + assert ready.json()["anonymous_allowed"] is False + + +def _paths(app) -> set[str]: + return {getattr(route, "path", "") for route in app.routes} + + +def test_the_companion_serves_no_pixels(): + paths = _paths(companion.app) + assert not any(path.startswith(("/tiles", "/thumbnails")) for path in paths) + assert "/annotations" in paths + + +def test_the_pixel_app_serves_no_companion_routes(): + from app import main + + paths = _paths(main.app) + assert not any(path.startswith(("/annotations", "/agent", "/research")) for path in paths) + + +def test_the_pixel_app_does_not_answer_annotation_requests(): + from app import main + + client = TestClient(main.app) + response = client.get( + "/wsi/annotations", + params={"studyId": "study-a", "slide_id": SLIDE_KEY}, + headers=headers(), + ) + assert response.status_code == 404 + + +def test_request_identity_reads_only_the_documented_headers(): + assert request_identity.USER_HEADER == "X-Auth-Request-User" + assert request_identity.STUDY_HEADER == "X-Auth-Request-Study" diff --git a/tests/test_config.py b/tests/test_config.py index ae6c52a..435679b 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -20,7 +20,7 @@ def make_settings(**env): "JPEG_", "MAX_", "N_WORKERS", "BLOCKCACHE", "THUMBNAIL_", "METADATA_", "PATH_", "CORS_", "CACHE_", "PATIENT_", "WSI_", - "IMAGE_", "SLIDE_S3_", "ANNOTATION_", + "IMAGE_", "SLIDE_S3_", "ANNOTATION_", "COMPANION_", "KEYCLOAK_"))} clean.update(env) with patch.dict(os.environ, clean, clear=True): diff --git a/tools/write_dev_env.py b/tools/write_dev_env.py index e66dc48..886a537 100644 --- a/tools/write_dev_env.py +++ b/tools/write_dev_env.py @@ -84,7 +84,9 @@ def main(argv: list[str] | None = None) -> None: "ANNOTATION_DB_PATH=/data/annotations.db", "# Optional: point annotations at Lakebase/Postgres instead of local SQLite.", "# ANNOTATION_DATABASE_URL=postgresql://:@:5432/?sslmode=require", - "ANNOTATION_AUTH_ENABLED=true", + "# The companion service trusts X-Auth-Request-User/-Study from the proxy;", + "# set true only on a development stack whose proxy forwards no user.", + "ANNOTATION_ALLOW_ANONYMOUS=false", ] output = args.output.expanduser().resolve() _write_secure(output, "\n".join(lines) + "\n") From c7774c6df8cee1307de3ddca6919b543855b7aa2 Mon Sep 17 00:00:00 2001 From: Raymond Lim Date: Thu, 12 Nov 2026 17:06:56 -0500 Subject: [PATCH 33/33] Log in to Lakebase with a refreshed OAuth credential ANNOTATION_DATABASE_PASSWORD_PROVIDER=databricks makes the annotation pool ask app.lakebase_credentials for the password of every new connection: a Lakebase database credential for ANNOTATION_LAKEBASE_INSTANCE, generated through POST /api/2.0/database/credentials as a service principal (DATABRICKS_HOST, DATABRICKS_CLIENT_ID, DATABRICKS_CLIENT_SECRET; or DATABRICKS_TOKEN) and cached until five minutes before it expires. Only the standard library is used, and no token or secret is logged. The pool closes connections idle for ANNOTATION_DB_MAX_INACTIVE_CONNECTION_LIFETIME (300 s) and replaces all of them every ANNOTATION_DB_MAX_CONNECTION_AGE_SECONDS (1800 s), below the token's hour. A static password in ANNOTATION_DATABASE_URL still works when no provider is set. Co-Authored-By: Claude Opus 5.5 (1M context) --- README.md | 13 ++ app/annotation_db.py | 45 ++++++- app/lakebase_credentials.py | 188 ++++++++++++++++++++++++++ docker-compose.yml | 6 + tests/test_lakebase_credentials.py | 207 +++++++++++++++++++++++++++++ tests/test_no_databricks_code.py | 14 +- 6 files changed, 470 insertions(+), 3 deletions(-) create mode 100644 app/lakebase_credentials.py create mode 100644 tests/test_lakebase_credentials.py diff --git a/README.md b/README.md index 0d3691d..cf3c7c7 100644 --- a/README.md +++ b/README.md @@ -465,6 +465,11 @@ Every route except `/health` and `/ready` takes `?studyId=`. | `ANNOTATION_DB_PATH` | `/data/annotations.db` | SQLite path | | `ANNOTATION_DB_POOL_MIN_SIZE` / `ANNOTATION_DB_POOL_MAX_SIZE` | `1` / `8` | Postgres pool size per worker | | `ANNOTATION_DB_COMMAND_TIMEOUT` | `30` | Postgres statement timeout, seconds | +| `ANNOTATION_DB_MAX_INACTIVE_CONNECTION_LIFETIME` | `300` | Close a pooled Postgres connection idle this many seconds | +| `ANNOTATION_DB_MAX_CONNECTION_AGE_SECONDS` | `1800` | Replace every pooled connection once the pool's connections are this old (`0` = never); keep it below the credential lifetime | +| `ANNOTATION_DATABASE_PASSWORD_PROVIDER` | — | `databricks`: log in with a Lakebase database credential (an OAuth token, about 1 h) fetched for each new connection instead of the DSN's password | +| `ANNOTATION_LAKEBASE_INSTANCE` | — | Lakebase database instance name(s), comma-separated, for that credential | +| `DATABRICKS_HOST`, `DATABRICKS_CLIENT_ID`, `DATABRICKS_CLIENT_SECRET` | — | Workspace and service principal that request the credential (OAuth machine-to-machine); `DATABRICKS_TOKEN` instead of the client pair is accepted | | `ANNOTATION_ALLOW_ANONYMOUS` | `false` | Development only: accept requests without `X-Auth-Request-User` | | `ANNOTATION_ANONYMOUS_USER` | `anonymous` | The user those requests act as | | `COMPANION_ALLOWED_ORIGINS` | — | Comma-separated origins, besides the request's own host, allowed to send unsafe requests | @@ -474,6 +479,14 @@ Every route except `/health` and `/ready` takes `?studyId=`. The companion needs none of the pixel settings (seal key, object storage, Redis). +With the Lakebase provider, `ANNOTATION_DATABASE_URL` names the host, +database and the service principal's Postgres role (its client ID) with no +password, for example +`postgresql://@:5432/?sslmode=require`. +The credential is generated through the workspace REST API +(`POST /api/2.0/database/credentials`) and cached until five minutes before it +expires; neither it nor the client secret is logged. + ### ingress-nginx The `$wsi_study` map from [Ingress](#ingress) matches `studyId` on any path, diff --git a/app/annotation_db.py b/app/annotation_db.py index 2e16d2a..cf3c444 100644 --- a/app/annotation_db.py +++ b/app/annotation_db.py @@ -1,15 +1,28 @@ -"""Shared annotation database lifecycle and versioned schema migrations.""" +"""Shared annotation database lifecycle and versioned schema migrations. + +The Postgres/Lakebase pool takes its password from the DSN, or, with +a password provider (``ANNOTATION_DATABASE_PASSWORD_PROVIDER``), from a short-lived +Lakebase credential fetched for each new connection +(``app.lakebase_credentials``). Idle connections close after +``ANNOTATION_DB_MAX_INACTIVE_CONNECTION_LIFETIME`` seconds and every +connection is replaced once it is ``ANNOTATION_DB_MAX_CONNECTION_AGE_SECONDS`` +old, so none outlives the credential it logged in with by much. +""" from __future__ import annotations import os +import time from contextlib import asynccontextmanager from typing import AsyncIterator import asyncpg +from . import lakebase_credentials + _pool: asyncpg.Pool | None = None _pool_dsn = "" +_pool_generation_started = 0.0 def _pool_size(name: str, default: int) -> int: @@ -19,24 +32,51 @@ def _pool_size(name: str, default: int) -> int: return default +def _seconds(name: str, default: float) -> float: + try: + return max(0.0, float(os.environ.get(name, str(default)))) + except ValueError: + return default + + +def max_connection_age() -> float: + """Seconds after which every pooled connection is replaced (0 = never).""" + return _seconds("ANNOTATION_DB_MAX_CONNECTION_AGE_SECONDS", 1800) + + async def open_pool(dsn: str) -> asyncpg.Pool: """Open one process-local pool for the shared Postgres/Lakebase database.""" - global _pool, _pool_dsn + global _pool, _pool_dsn, _pool_generation_started if _pool is not None and _pool_dsn == dsn: return _pool await close_pool() _pool = await asyncpg.create_pool( dsn, + password=lakebase_credentials.password_option(), min_size=_pool_size("ANNOTATION_DB_POOL_MIN_SIZE", 1), max_size=_pool_size("ANNOTATION_DB_POOL_MAX_SIZE", 8), + max_inactive_connection_lifetime=_seconds( + "ANNOTATION_DB_MAX_INACTIVE_CONNECTION_LIFETIME", 300 + ), command_timeout=float( os.environ.get("ANNOTATION_DB_COMMAND_TIMEOUT", "30") ), ) _pool_dsn = dsn + _pool_generation_started = time.monotonic() return _pool +async def _expire_aged_connections(pool: asyncpg.Pool) -> None: + """Replace every pooled connection once the current set is too old.""" + global _pool_generation_started + age = max_connection_age() + now = time.monotonic() + if age and now - _pool_generation_started >= age: + _pool_generation_started = now + await pool.expire_connections() + + async def close_pool() -> None: global _pool, _pool_dsn if _pool is not None: @@ -48,6 +88,7 @@ async def close_pool() -> None: @asynccontextmanager async def connection(dsn: str) -> AsyncIterator[asyncpg.Connection]: pool = await open_pool(dsn) + await _expire_aged_connections(pool) async with pool.acquire() as conn: yield conn diff --git a/app/lakebase_credentials.py b/app/lakebase_credentials.py new file mode 100644 index 0000000..d7a3245 --- /dev/null +++ b/app/lakebase_credentials.py @@ -0,0 +1,188 @@ +"""Short-lived Lakebase passwords for the annotation database pool. + +With ``ANNOTATION_DATABASE_PASSWORD_PROVIDER=databricks`` the annotation pool +does not keep a static password. Each new connection asks +``database_password()``, which returns a Lakebase database credential (an +OAuth token valid for about an hour) generated for +``ANNOTATION_LAKEBASE_INSTANCE`` and cached until shortly before it expires. + +The credential is requested from the workspace REST API +(``POST /api/2.0/database/credentials``) as a service principal: +``DATABRICKS_HOST`` with ``DATABRICKS_CLIENT_ID`` and +``DATABRICKS_CLIENT_SECRET`` (OAuth machine-to-machine), or +``DATABRICKS_TOKEN`` when no client is configured. Only the standard library +is used. Tokens and secrets are never logged. +""" + +from __future__ import annotations + +import asyncio +import base64 +import json +import logging +import os +import time +import urllib.error +import urllib.parse +import urllib.request +import uuid +from dataclasses import dataclass +from datetime import datetime + +logger = logging.getLogger(__name__) + +PROVIDER_ENV = "ANNOTATION_DATABASE_PASSWORD_PROVIDER" +INSTANCE_ENV = "ANNOTATION_LAKEBASE_INSTANCE" +# Refresh a cached token this long before it expires. +REFRESH_MARGIN_SECONDS = 300 +# Assumed lifetime when a response gives no expiry. +DEFAULT_LIFETIME_SECONDS = 3600 +HTTP_TIMEOUT_SECONDS = 30 + + +class CredentialError(RuntimeError): + """The Lakebase credential could not be obtained.""" + + +@dataclass +class _Cached: + value: str = "" + expires_at: float = 0.0 + + def fresh(self, now: float) -> bool: + return bool(self.value) and now < self.expires_at - REFRESH_MARGIN_SECONDS + + +_workspace_token = _Cached() +_database_token = _Cached() +_lock = asyncio.Lock() + + +def provider() -> str: + """The configured password provider: ``""`` (static DSN) or ``databricks``.""" + return os.environ.get(PROVIDER_ENV, "").strip().lower() + + +def validate_provider() -> None: + """Raise ``CredentialError`` for an unknown provider or missing settings.""" + name = provider() + if not name: + return + if name != "databricks": + raise CredentialError(f"unsupported {PROVIDER_ENV}") + if not _instances(): + raise CredentialError(f"{INSTANCE_ENV} is required") + if not _host(): + raise CredentialError("DATABRICKS_HOST is required") + client_id = os.environ.get("DATABRICKS_CLIENT_ID", "").strip() + client_secret = os.environ.get("DATABRICKS_CLIENT_SECRET", "").strip() + if not (client_id and client_secret) and not os.environ.get("DATABRICKS_TOKEN", "").strip(): + raise CredentialError( + "DATABRICKS_CLIENT_ID and DATABRICKS_CLIENT_SECRET (or DATABRICKS_TOKEN) are required" + ) + + +def _instances() -> list[str]: + return [item.strip() for item in os.environ.get(INSTANCE_ENV, "").split(",") if item.strip()] + + +def _host() -> str: + host = os.environ.get("DATABRICKS_HOST", "").strip().rstrip("/") + if host and not host.startswith(("https://", "http://")): + host = "https://" + host + return host + + +def _post(url: str, data: bytes, headers: dict[str, str]) -> dict: + """POST and decode a JSON response (blocking; run in a thread).""" + request = urllib.request.Request(url, data=data, headers=headers, method="POST") + try: + with urllib.request.urlopen(request, timeout=HTTP_TIMEOUT_SECONDS) as response: + return json.loads(response.read().decode("utf-8")) + except urllib.error.HTTPError as exc: + raise CredentialError(f"credential request failed with HTTP {exc.code}") from None + except (urllib.error.URLError, TimeoutError, ValueError) as exc: + raise CredentialError(f"credential request failed: {type(exc).__name__}") from None + + +def _expiry(value: object, now: float) -> float: + if isinstance(value, str) and value: + try: + return datetime.fromisoformat(value.replace("Z", "+00:00")).timestamp() + except ValueError: + pass + return now + DEFAULT_LIFETIME_SECONDS + + +async def _workspace_bearer(now: float) -> str: + client_id = os.environ.get("DATABRICKS_CLIENT_ID", "").strip() + client_secret = os.environ.get("DATABRICKS_CLIENT_SECRET", "").strip() + if not (client_id and client_secret): + token = os.environ.get("DATABRICKS_TOKEN", "").strip() + if not token: + raise CredentialError("no Databricks credentials configured") + return token + if _workspace_token.fresh(now): + return _workspace_token.value + basic = base64.b64encode(f"{client_id}:{client_secret}".encode()).decode() + payload = await asyncio.to_thread( + _post, + f"{_host()}/oidc/v1/token", + urllib.parse.urlencode({"grant_type": "client_credentials", "scope": "all-apis"}).encode(), + { + "Authorization": f"Basic {basic}", + "Content-Type": "application/x-www-form-urlencoded", + "Accept": "application/json", + }, + ) + token = payload.get("access_token") + if not isinstance(token, str) or not token: + raise CredentialError("workspace token response has no access_token") + lifetime = payload.get("expires_in") + lifetime = lifetime if isinstance(lifetime, (int, float)) and lifetime > 0 else DEFAULT_LIFETIME_SECONDS + _workspace_token.value = token + _workspace_token.expires_at = now + float(lifetime) + return token + + +async def database_password() -> str: + """A current Lakebase credential; asyncpg calls this for each new connection.""" + async with _lock: + now = time.time() + if _database_token.fresh(now): + return _database_token.value + bearer = await _workspace_bearer(now) + payload = await asyncio.to_thread( + _post, + f"{_host()}/api/2.0/database/credentials", + json.dumps({"instance_names": _instances(), "request_id": str(uuid.uuid4())}).encode(), + { + "Authorization": f"Bearer {bearer}", + "Content-Type": "application/json", + "Accept": "application/json", + }, + ) + token = payload.get("token") + if not isinstance(token, str) or not token: + raise CredentialError("database credential response has no token") + _database_token.value = token + _database_token.expires_at = _expiry(payload.get("expiration_time"), now) + logger.info( + "Generated a Lakebase database credential valid for %d s", + max(0, int(_database_token.expires_at - now)), + ) + return token + + +def password_option(): + """The ``password`` argument for asyncpg: a provider callable, or None.""" + validate_provider() + return database_password if provider() else None + + +def reset() -> None: + """Forget cached tokens (tests).""" + global _lock + _lock = asyncio.Lock() + _workspace_token.value, _workspace_token.expires_at = "", 0.0 + _database_token.value, _database_token.expires_at = "", 0.0 diff --git a/docker-compose.yml b/docker-compose.yml index 9015327..54c5697 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -94,6 +94,12 @@ services: environment: ANNOTATION_DATABASE_URL: ${ANNOTATION_DATABASE_URL:-} ANNOTATION_DB_PATH: /data/annotations.db + # Optional Lakebase OAuth login (see README, Companion configuration). + ANNOTATION_DATABASE_PASSWORD_PROVIDER: ${ANNOTATION_DATABASE_PASSWORD_PROVIDER:-} + ANNOTATION_LAKEBASE_INSTANCE: ${ANNOTATION_LAKEBASE_INSTANCE:-} + DATABRICKS_HOST: ${DATABRICKS_HOST:-} + DATABRICKS_CLIENT_ID: ${DATABRICKS_CLIENT_ID:-} + DATABRICKS_CLIENT_SECRET: ${DATABRICKS_CLIENT_SECRET:-} ANNOTATION_ALLOW_ANONYMOUS: ${ANNOTATION_ALLOW_ANONYMOUS:-false} COMPANION_ALLOWED_ORIGINS: ${COMPANION_ALLOWED_ORIGINS:-} # One worker creates the SQLite schema safely on first start. diff --git a/tests/test_lakebase_credentials.py b/tests/test_lakebase_credentials.py new file mode 100644 index 0000000..d57cdb6 --- /dev/null +++ b/tests/test_lakebase_credentials.py @@ -0,0 +1,207 @@ +"""Lakebase password provider and annotation pool wiring (no network).""" + +import json +import time +import urllib.parse +from datetime import datetime, timedelta, timezone + +import pytest + +from app import annotation_db, lakebase_credentials as creds + +ENV = { + "ANNOTATION_DATABASE_PASSWORD_PROVIDER": "databricks", + "ANNOTATION_LAKEBASE_INSTANCE": "annotations-instance", + "DATABRICKS_HOST": "example.cloud.databricks.com", + "DATABRICKS_CLIENT_ID": "sp-client", + "DATABRICKS_CLIENT_SECRET": "sp-secret", +} + + +@pytest.fixture +def provider_env(monkeypatch): + for name in (*ENV, "DATABRICKS_TOKEN"): + monkeypatch.delenv(name, raising=False) + for name, value in ENV.items(): + monkeypatch.setenv(name, value) + creds.reset() + yield + creds.reset() + + +@pytest.fixture +def fake_post(monkeypatch): + calls = [] + state = {"db_lifetime": timedelta(hours=1), "db_counter": 0} + + def post(url, data, headers): + calls.append((url, data, headers)) + if url.endswith("/oidc/v1/token"): + return {"access_token": "workspace-token", "expires_in": 3600} + if url.endswith("/api/2.0/database/credentials"): + state["db_counter"] += 1 + expires = datetime.now(timezone.utc) + state["db_lifetime"] + return { + "token": f"db-token-{state['db_counter']}", + "expiration_time": expires.isoformat().replace("+00:00", "Z"), + } + raise AssertionError(url) + + monkeypatch.setattr(creds, "_post", post) + return calls, state + + +@pytest.mark.asyncio +async def test_password_comes_from_a_service_principal_credential(provider_env, fake_post): + calls, _ = fake_post + assert await creds.database_password() == "db-token-1" + + token_url, token_body, token_headers = calls[0] + assert token_url == "https://example.cloud.databricks.com/oidc/v1/token" + assert urllib.parse.parse_qs(token_body.decode()) == { + "grant_type": ["client_credentials"], + "scope": ["all-apis"], + } + assert token_headers["Authorization"].startswith("Basic ") + + db_url, db_body, db_headers = calls[1] + assert db_url == "https://example.cloud.databricks.com/api/2.0/database/credentials" + body = json.loads(db_body) + assert body["instance_names"] == ["annotations-instance"] + assert body["request_id"] + assert db_headers["Authorization"] == "Bearer workspace-token" + + +@pytest.mark.asyncio +async def test_password_is_cached_until_shortly_before_expiry(provider_env, fake_post, monkeypatch): + calls, _ = fake_post + assert await creds.database_password() == "db-token-1" + assert await creds.database_password() == "db-token-1" + assert len(calls) == 2 + + # Within the refresh margin of expiry, a new credential is generated. + later = time.time() + 3600 - creds.REFRESH_MARGIN_SECONDS + 5 + monkeypatch.setattr(creds.time, "time", lambda: later) + assert await creds.database_password() == "db-token-2" + + +@pytest.mark.asyncio +async def test_a_personal_token_is_used_without_a_client(provider_env, fake_post, monkeypatch): + calls, _ = fake_post + monkeypatch.delenv("DATABRICKS_CLIENT_ID") + monkeypatch.delenv("DATABRICKS_CLIENT_SECRET") + monkeypatch.setenv("DATABRICKS_TOKEN", "pat-token") + assert await creds.database_password() == "db-token-1" + assert [url for url, _, _ in calls] == [ + "https://example.cloud.databricks.com/api/2.0/database/credentials" + ] + assert calls[0][2]["Authorization"] == "Bearer pat-token" + + +@pytest.mark.asyncio +async def test_a_response_without_a_token_fails(provider_env, monkeypatch): + monkeypatch.setattr( + creds, + "_post", + lambda url, data, headers: {"access_token": "t", "expires_in": 60} + if url.endswith("/token") + else {"expiration_time": "2030-01-01T00:00:00Z"}, + ) + with pytest.raises(creds.CredentialError): + await creds.database_password() + + +def test_static_dsn_needs_no_provider(monkeypatch): + monkeypatch.delenv("ANNOTATION_DATABASE_PASSWORD_PROVIDER", raising=False) + assert creds.password_option() is None + + +@pytest.mark.parametrize( + "missing", ["ANNOTATION_LAKEBASE_INSTANCE", "DATABRICKS_HOST", "DATABRICKS_CLIENT_SECRET"] +) +def test_provider_settings_are_validated(provider_env, monkeypatch, missing): + monkeypatch.delenv(missing) + with pytest.raises(creds.CredentialError): + creds.password_option() + + +def test_unknown_provider_is_refused(monkeypatch): + monkeypatch.setenv("ANNOTATION_DATABASE_PASSWORD_PROVIDER", "vault") + with pytest.raises(creds.CredentialError): + creds.password_option() + + +class FakePool: + def __init__(self): + self.expired = 0 + self.closed = False + + async def expire_connections(self): + self.expired += 1 + + async def close(self): + self.closed = True + + def acquire(self): + pool = self + + class Acquire: + async def __aenter__(self): + return pool + + async def __aexit__(self, *exc): + return False + + return Acquire() + + +@pytest.fixture +def fake_pool(monkeypatch): + captured = {} + pool = FakePool() + + async def create_pool(dsn, **kwargs): + captured["dsn"] = dsn + captured.update(kwargs) + return pool + + monkeypatch.setattr(annotation_db.asyncpg, "create_pool", create_pool) + yield pool, captured + annotation_db._pool = None + annotation_db._pool_dsn = "" + + +@pytest.mark.asyncio +async def test_pool_uses_the_provider_and_recycles_connections(provider_env, fake_pool, monkeypatch): + pool, captured = fake_pool + monkeypatch.setenv("ANNOTATION_DB_MAX_CONNECTION_AGE_SECONDS", "1800") + await annotation_db.open_pool("postgresql://sp-client@lakebase:5432/annotations?sslmode=require") + assert captured["password"] is creds.database_password + assert 0 < captured["max_inactive_connection_lifetime"] < 3600 + + async with annotation_db.connection("postgresql://sp-client@lakebase:5432/annotations?sslmode=require"): + pass + assert pool.expired == 0 + + started = annotation_db._pool_generation_started + monkeypatch.setattr(annotation_db.time, "monotonic", lambda: started + 1801) + async with annotation_db.connection("postgresql://sp-client@lakebase:5432/annotations?sslmode=require"): + pass + assert pool.expired == 1 + async with annotation_db.connection("postgresql://sp-client@lakebase:5432/annotations?sslmode=require"): + pass + assert pool.expired == 1 + + +@pytest.mark.asyncio +async def test_pool_keeps_the_static_dsn_password(fake_pool, monkeypatch): + _, captured = fake_pool + monkeypatch.delenv("ANNOTATION_DATABASE_PASSWORD_PROVIDER", raising=False) + await annotation_db.open_pool("postgresql://user:static@db:5432/annotations") + assert captured["password"] is None + assert captured["dsn"] == "postgresql://user:static@db:5432/annotations" + + +def test_default_connection_age_is_below_the_token_lifetime(monkeypatch): + monkeypatch.delenv("ANNOTATION_DB_MAX_CONNECTION_AGE_SECONDS", raising=False) + assert 0 < annotation_db.max_connection_age() < creds.DEFAULT_LIFETIME_SECONDS diff --git a/tests/test_no_databricks_code.py b/tests/test_no_databricks_code.py index de8f1e9..4cc3f88 100644 --- a/tests/test_no_databricks_code.py +++ b/tests/test_no_databricks_code.py @@ -1,3 +1,4 @@ +import re from pathlib import Path @@ -21,5 +22,16 @@ def test_tile_server_has_no_databricks_code(): "materialize_dev_wsi_snapshot.py", ): assert not (ROOT / "tools" / filename).exists() + # The annotation pool may fetch a Lakebase database credential from the + # workspace REST API (app/lakebase_credentials.py); no module may use a + # Databricks SDK, connector or REST job/SQL API. + forbidden = re.compile( + r"^\s*(?:from|import)\s+(?:databricks|pyspark|dbutils)\b|/api/2\.\d/(?:jobs|sql)", + re.MULTILINE, + ) + provider_modules = {"lakebase_credentials.py"} for path in (ROOT / "app").glob("*.py"): - assert "databricks" not in path.read_text(encoding="utf-8").lower(), path.name + text = path.read_text(encoding="utf-8") + assert not forbidden.search(text), path.name + if path.name not in provider_modules: + assert "databricks" not in text.lower(), path.name