From a68476e5effed96296a04aad11f48cf7434f02cb Mon Sep 17 00:00:00 2001 From: JeyBee Date: Sun, 19 Apr 2026 20:40:05 +0200 Subject: [PATCH 1/9] refactor: unify CLI, kill Settings hack, dedup queue init - Add pipegate/cli.py: single typer entry point with token/client/server subcommands. Replaces three separate python -m invocations. - auth.py: replace make_jwt_bearer() + Settings(_cli_parse_args=True) hack with pure generate_token(connection_id, settings) -> tuple[str, str]. - client.py: strip typer app wiring; keep handle_request/main as pure async. - server.py: extract _get_or_create_queue() to remove duplicated init logic in handle_http_request and handle_websocket; drop __main__ block. - pyproject.toml: add [project.scripts] pipegate = "pipegate.cli:app". - Tests: add TestGenerateToken (5 cases) and test_cli.py (7 cases); remove all Settings(_cli_parse_args=False) noise from fixtures. - README: update all python -m pipegate.* to pipegate token/client/server. --- README.md | 24 +++- pipegate/auth.py | 39 +++---- pipegate/cli.py | 51 ++++++++ pipegate/client.py | 28 ++--- pipegate/schemas.py | 1 + pipegate/server.py | 26 ++--- pyproject.toml | 3 + tests/conftest.py | 4 +- tests/test_auth.py | 39 ++++++- tests/test_cli.py | 66 +++++++++++ tests/test_server.py | 4 +- uv.lock | 270 ++++++++++++++++++++++--------------------- 12 files changed, 355 insertions(+), 200 deletions(-) create mode 100644 pipegate/cli.py create mode 100644 tests/test_cli.py diff --git a/README.md b/README.md index 298c846..6b9b3cc 100644 --- a/README.md +++ b/README.md @@ -24,19 +24,33 @@ export PIPEGATE_JWT_SECRET="change-me-to-something-secret" export PIPEGATE_JWT_ALGORITHMS='["HS256"]' # Generate a tunnel token (21-day expiry) -python -m pipegate.auth +pipegate token # Connection-id: a1b2c3d4... # JWT Bearer: eyJhbGci... # Run the server (on your public VPS) -python -m pipegate.server +pipegate server # Run the client (on your local machine, another terminal) -python -m pipegate.client http://localhost:3000 "ws://yourserver:8000/?token=" +pipegate client http://localhost:3000 "ws://yourserver:8000/?token=" ``` Requests to `http://yourserver:8000/a1b2c3d4/anything` now reach `http://localhost:3000/anything`. +## CLI + +``` +pipegate token [--connection-id ID] Generate a JWT bearer token +pipegate client TARGET_URL SERVER_URL Start the tunnel client +pipegate server [--host HOST] [--port N] Start the server (default: 0.0.0.0:8000) +``` + +Pin a specific connection ID so your public URL stays stable across token renewals: + +```bash +pipegate token --connection-id my-app +``` + ## How It Works A caller hits the server at `/{connection_id}/{path}`. The server wraps the request into a JSON message (method, path, headers, base64-encoded body) tagged with a `correlation_id` (UUID4), and pushes it into an in-memory `asyncio.Queue` for that connection. A background task drains the queue over the WebSocket to the tunnel client. @@ -67,10 +81,10 @@ export PIPEGATE_JWT_SECRET="my-secret" export PIPEGATE_JWT_ALGORITHMS='["HS256"]' # Generate token -python -m pipegate.auth +pipegate token # Client connects with the token -python -m pipegate.client http://localhost:3000 "ws://server/?token=" +pipegate client http://localhost:3000 "ws://server/?token=" ``` External HTTP callers don't need the JWT. They only need the connection ID in the URL path. The server rejects WebSocket connections with missing, expired, or invalid tokens (close code 1008). diff --git a/pipegate/auth.py b/pipegate/auth.py index 6f0c031..4a51b2a 100644 --- a/pipegate/auth.py +++ b/pipegate/auth.py @@ -8,6 +8,21 @@ from .schemas import JWTPayload, Settings +def generate_token(connection_id: str | None, settings: Settings) -> tuple[str, str]: + """Create a connection ID and signed JWT. Returns (connection_id, bearer_token).""" + cid = connection_id or uuid.uuid4().hex + payload = JWTPayload( + sub=cid, + exp=int((datetime.now(UTC) + timedelta(days=21)).timestamp()), + ) + token = jwt.encode( + payload.model_dump(mode="json"), + key=settings.jwt_secret.get_secret_value(), + algorithm=settings.jwt_algorithms[0], + ) + return cid, token + + def verify_token(token: str, settings: Settings) -> JWTPayload: """Decode and verify a JWT, returning the payload (connection ID in ``sub``).""" decoded = jwt.decode( @@ -16,27 +31,3 @@ def verify_token(token: str, settings: Settings) -> JWTPayload: algorithms=settings.jwt_algorithms, ) return JWTPayload.model_validate(decoded) - - -def make_jwt_bearer() -> None: - """CLI helper: generate a connection ID and JWT token.""" - settings = Settings(_cli_parse_args=True) # #10: only here do we want CLI parsing - connection_id = settings.connection_id or uuid.uuid4().hex - - jwt_payload = JWTPayload( - sub=connection_id, - exp=int((datetime.now(UTC) + timedelta(days=21)).timestamp()), - ) - - jwt_bearer = jwt.encode( - jwt_payload.model_dump(mode="json"), - key=settings.jwt_secret.get_secret_value(), - algorithm=settings.jwt_algorithms[0], - ) - - print(f"Connection-id: {connection_id}") - print(f"JWT Bearer: {jwt_bearer}") - - -if __name__ == "__main__": - make_jwt_bearer() diff --git a/pipegate/cli.py b/pipegate/cli.py new file mode 100644 index 0000000..5068e9e --- /dev/null +++ b/pipegate/cli.py @@ -0,0 +1,51 @@ +from __future__ import annotations + +import asyncio + +import typer +import uvicorn + +from .auth import generate_token +from .client import main as run_client +from .schemas import Settings +from .server import create_app + +app = typer.Typer(help="PipeGate — self-hosted HTTP tunnel.") + + +@app.command("token") +def token_cmd( + connection_id: str | None = typer.Option( + None, + "--connection-id", + "-c", + help="Pin a specific connection ID (default: random UUID).", + ), +) -> None: + """Generate a JWT bearer token for a tunnel connection.""" + settings = Settings() + cid, token = generate_token(connection_id, settings) + typer.echo(f"Connection-id: {cid}") + typer.echo(f"JWT Bearer: {token}") + + +@app.command("client") +def client_cmd( + target_url: str = typer.Argument(..., help="Local server to forward requests to."), + server_url: str = typer.Argument(..., help="PipeGate server WebSocket URL (include ?token=…)."), +) -> None: + """Start the tunnel client.""" + asyncio.run(run_client(target_url, server_url)) + + +@app.command("server") +def server_cmd( + host: str = typer.Option("0.0.0.0", "--host", help="Host to bind to."), + port: int = typer.Option(8000, "--port", "-p", help="Port to listen on."), +) -> None: + """Start the PipeGate server.""" + uvicorn.run(create_app(), host=host, port=port) + + +if __name__ == "__main__": + app() diff --git a/pipegate/client.py b/pipegate/client.py index 97dcdd9..03c581f 100644 --- a/pipegate/client.py +++ b/pipegate/client.py @@ -2,26 +2,18 @@ import asyncio import base64 +import sys import httpx import orjson -import typer from websockets.asyncio.client import ClientConnection, connect from .schemas import BufferGateRequest, BufferGateResponse -app = typer.Typer() - _BACKOFF_BASE: float = 1.0 _BACKOFF_MAX: float = 60.0 -@app.command() -def start_client(target_url: str, server_url: str) -> None: - """Start the PipeGate client to expose a local server.""" - asyncio.run(main(target_url, server_url)) - - async def handle_request( target: str, request: BufferGateRequest, @@ -43,7 +35,7 @@ async def handle_request( status_code=response.status_code, ) except Exception as e: - typer.echo(f"Error processing request {request.correlation_id}: {e}", err=True) + print(f"Error processing request {request.correlation_id}: {e}", file=sys.stderr) payload = BufferGateResponse( correlation_id=request.correlation_id, headers="{}", @@ -61,17 +53,17 @@ async def main(target_url: str, server_url: str) -> None: delay = min(_BACKOFF_BASE * (2**attempt), _BACKOFF_MAX) if attempt > 0: - typer.echo(f"Reconnecting in {delay:.0f}s (attempt {attempt + 1})...") + print(f"Reconnecting in {delay:.0f}s (attempt {attempt + 1})...", file=sys.stderr) await asyncio.sleep(delay) - typer.echo(f"Connecting to {server_url}...") + print(f"Connecting to {server_url}...") try: async with ( connect(server_url) as ws_client, httpx.AsyncClient() as http_client, ): - typer.echo("Connected.") + print("Connected.") attempt = 0 async with asyncio.TaskGroup() as tg: while True: @@ -86,16 +78,12 @@ async def main(target_url: str, server_url: str) -> None: except asyncio.CancelledError: raise except Exception as e: - typer.echo(f"Error receiving message: {e}", err=True) + print(f"Error receiving message: {e}", file=sys.stderr) except asyncio.CancelledError: raise except (ConnectionRefusedError, OSError) as e: - typer.echo(f"Connection failed: {e}", err=True) + print(f"Connection failed: {e}", file=sys.stderr) except Exception as e: - typer.echo(f"Unexpected error: {e}", err=True) + print(f"Unexpected error: {e}", file=sys.stderr) attempt += 1 - - -if __name__ == "__main__": - app() diff --git a/pipegate/schemas.py b/pipegate/schemas.py index 9f62570..ffc7d97 100644 --- a/pipegate/schemas.py +++ b/pipegate/schemas.py @@ -40,6 +40,7 @@ class JWTPayload(BaseModel): class Settings(BaseSettings): model_config = SettingsConfigDict(cli_parse_args=False) + connection_id: str | None = Field(alias="PIPEGATE_CONNECTION_ID", default=None) jwt_secret: SecretStr = Field(alias="PIPEGATE_JWT_SECRET") jwt_algorithms: list[str] = Field(alias="PIPEGATE_JWT_ALGORITHMS") diff --git a/pipegate/server.py b/pipegate/server.py index 8057abb..243c251 100644 --- a/pipegate/server.py +++ b/pipegate/server.py @@ -10,7 +10,6 @@ from typing import cast, get_args import orjson -import uvicorn from fastapi import ( FastAPI, HTTPException, @@ -32,13 +31,23 @@ logger = logging.getLogger(__name__) +def _get_or_create_queue( + connection_id: str, + buffers: dict[str, asyncio.Queue[BufferGateRequest]], + max_queue_depth: int, +) -> asyncio.Queue[BufferGateRequest]: + if connection_id not in buffers: + buffers[connection_id] = asyncio.Queue(maxsize=max_queue_depth) + return buffers[connection_id] + + def create_app() -> FastAPI: buffers: dict[str, asyncio.Queue[BufferGateRequest]] = {} futures: dict[uuid.UUID, asyncio.Future[BufferGateResponse]] = {} @asynccontextmanager async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]: - app.extra["settings"] = Settings(_cli_parse_args=False) + app.extra["settings"] = Settings() app.extra["buffers"] = buffers try: yield @@ -78,9 +87,7 @@ async def handle_http_request( future: asyncio.Future[BufferGateResponse] = asyncio.Future() futures[correlation_id] = future - if connection_id not in buffers: - buffers[connection_id] = asyncio.Queue(maxsize=settings.max_queue_depth) - queue = buffers[connection_id] + queue = _get_or_create_queue(connection_id, buffers, settings.max_queue_depth) try: queue.put_nowait( @@ -147,9 +154,7 @@ async def handle_websocket( await websocket.accept() logger.info("WebSocket connected: %s", connection_id) - if connection_id not in buffers: - buffers[connection_id] = asyncio.Queue(maxsize=settings.max_queue_depth) - queue = buffers[connection_id] + queue = _get_or_create_queue(connection_id, buffers, settings.max_queue_depth) async def receive() -> None: try: @@ -201,8 +206,3 @@ async def send() -> None: buffers.pop(connection_id, None) return app - - -if __name__ == "__main__": - app = create_app() - uvicorn.run(app, host="0.0.0.0", port=8000) diff --git a/pyproject.toml b/pyproject.toml index 3e5a137..47187d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,9 @@ dependencies = [ "httpx>=0.27", ] +[project.scripts] +pipegate = "pipegate.cli:app" + [dependency-groups] dev = [ "pytest>=9.0.3", diff --git a/tests/conftest.py b/tests/conftest.py index 2875550..128ea96 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -25,7 +25,7 @@ def _set_env(monkeypatch: pytest.MonkeyPatch) -> None: @pytest.fixture def settings() -> Settings: - return Settings(_cli_parse_args=False) + return Settings() @pytest.fixture @@ -50,7 +50,7 @@ def make_token( @pytest.fixture def app() -> FastAPI: application = create_app() - application.extra["settings"] = Settings(_cli_parse_args=False) + application.extra["settings"] = Settings() return application diff --git a/tests/test_auth.py b/tests/test_auth.py index d0960ed..fb9e3e0 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -5,7 +5,7 @@ import jwt import pytest -from pipegate.auth import verify_token +from pipegate.auth import generate_token, verify_token from pipegate.schemas import JWTPayload, Settings from .conftest import make_token @@ -38,3 +38,40 @@ def test_malformed_token(self, settings: Settings) -> None: def test_empty_token(self, settings: Settings) -> None: with pytest.raises(jwt.DecodeError): verify_token("", settings) + + +class TestGenerateToken: + def test_returns_tuple(self, settings: Settings) -> None: + cid, token = generate_token(None, settings) + assert isinstance(cid, str) + assert isinstance(token, str) + + def test_generated_token_is_valid(self, settings: Settings) -> None: + cid, token = generate_token(None, settings) + payload = verify_token(token, settings) + assert payload.sub == cid + + def test_pinned_connection_id(self, settings: Settings) -> None: + cid, token = generate_token("myconn", settings) + assert cid == "myconn" + payload = verify_token(token, settings) + assert payload.sub == "myconn" + + def test_random_connection_id_when_none(self, settings: Settings) -> None: + cid1, _ = generate_token(None, settings) + cid2, _ = generate_token(None, settings) + assert cid1 != cid2 + + def test_token_expires_in_21_days(self, settings: Settings) -> None: + import time + + _, token = generate_token(None, settings) + decoded = jwt.decode( + token, + settings.jwt_secret.get_secret_value(), + algorithms=settings.jwt_algorithms, + ) + now = int(time.time()) + days_21 = 21 * 24 * 3600 + # Allow ±60s for test execution time + assert abs(decoded["exp"] - (now + days_21)) < 60 diff --git a/tests/test_cli.py b/tests/test_cli.py new file mode 100644 index 0000000..8e7e836 --- /dev/null +++ b/tests/test_cli.py @@ -0,0 +1,66 @@ +from __future__ import annotations + +import os +from unittest.mock import patch + +from typer.testing import CliRunner + +from pipegate.auth import verify_token +from pipegate.cli import app +from pipegate.schemas import Settings + +from .conftest import JWT_ALGORITHM, JWT_SECRET + +runner = CliRunner() + +ENV = { + "PIPEGATE_JWT_SECRET": JWT_SECRET, + "PIPEGATE_JWT_ALGORITHMS": '["HS256"]', +} + + +class TestTokenCommand: + def test_exits_zero(self) -> None: + result = runner.invoke(app, ["token"], env=ENV) + assert result.exit_code == 0, result.output + + def test_output_has_connection_id_and_bearer(self) -> None: + result = runner.invoke(app, ["token"], env=ENV) + assert "Connection-id:" in result.output + assert "JWT Bearer:" in result.output + + def test_pinned_connection_id(self) -> None: + result = runner.invoke(app, ["token", "--connection-id", "myconn123"], env=ENV) + assert result.exit_code == 0 + assert "Connection-id: myconn123" in result.output + + def test_short_flag_connection_id(self) -> None: + result = runner.invoke(app, ["token", "-c", "short123"], env=ENV) + assert result.exit_code == 0 + assert "Connection-id: short123" in result.output + + def test_generated_token_is_verifiable(self) -> None: + result = runner.invoke(app, ["token", "--connection-id", "verifyme"], env=ENV) + assert result.exit_code == 0 + + import jwt as pyjwt + + token_line = [l for l in result.output.splitlines() if "JWT Bearer:" in l][0] + token = token_line.split("JWT Bearer:")[1].strip() + + decoded = pyjwt.decode(token, JWT_SECRET, algorithms=[JWT_ALGORITHM]) + assert decoded["sub"] == "verifyme" + + def test_random_ids_differ(self) -> None: + r1 = runner.invoke(app, ["token"], env=ENV) + r2 = runner.invoke(app, ["token"], env=ENV) + id1 = [l for l in r1.output.splitlines() if "Connection-id:" in l][0] + id2 = [l for l in r2.output.splitlines() if "Connection-id:" in l][0] + assert id1 != id2 + + def test_missing_jwt_secret_exits_nonzero(self) -> None: + # Remove PIPEGATE_JWT_SECRET from the actual environment (autouse fixture set it) + clean = {k: v for k, v in os.environ.items() if k != "PIPEGATE_JWT_SECRET"} + with patch.dict(os.environ, clean, clear=True): + result = runner.invoke(app, ["token"]) + assert result.exit_code != 0 diff --git a/tests/test_server.py b/tests/test_server.py index 61fd31f..0fd5cb0 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -23,7 +23,7 @@ def _make_app() -> FastAPI: app = create_app() - app.extra["settings"] = Settings(_cli_parse_args=False) + app.extra["settings"] = Settings() return app @@ -345,7 +345,7 @@ async def test_oversized_body_rejected_with_413(self, connection_id: str) -> Non class TestQueueBackpressure: async def test_503_when_queue_full(self, connection_id: str) -> None: app = create_app() - settings = Settings(_cli_parse_args=False) + settings = Settings() settings.max_queue_depth = 1 app.extra["settings"] = settings diff --git a/uv.lock b/uv.lock index 4a1523e..d190140 100644 --- a/uv.lock +++ b/uv.lock @@ -22,15 +22,15 @@ wheels = [ [[package]] name = "anyio" -version = "4.12.1" +version = "4.13.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "idna" }, { name = "typing-extensions", marker = "python_full_version < '3.13'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/96/f0/5eb65b2bb0d09ac6776f2eb54adee6abe8228ea05b20a5ad0e4945de8aac/anyio-4.12.1.tar.gz", hash = "sha256:41cfcc3a4c85d3f05c932da7c26d0201ac36f72abd4435ba90d0464a3ffed703", size = 228685, upload-time = "2026-01-06T11:45:21.246Z" } +sdist = { url = "https://files.pythonhosted.org/packages/19/14/2c5dd9f512b66549ae92767a9c7b330ae88e1932ca57876909410251fe13/anyio-4.13.0.tar.gz", hash = "sha256:334b70e641fd2221c1505b3890c69882fe4a2df910cba14d97019b90b24439dc", size = 231622, upload-time = "2026-03-24T12:59:09.671Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/38/0e/27be9fdef66e72d64c0cdc3cc2823101b80585f8119b5c112c2e8f5f7dab/anyio-4.12.1-py3-none-any.whl", hash = "sha256:d405828884fc140aa80a3c667b8beed277f1dfedec42ba031bd6ac3db606ab6c", size = 113592, upload-time = "2026-01-06T11:45:19.497Z" }, + { url = "https://files.pythonhosted.org/packages/da/42/e921fccf5015463e32a3cf6ee7f980a6ed0f395ceeaa45060b61d86486c2/anyio-4.13.0-py3-none-any.whl", hash = "sha256:08b310f9e24a9594186fd75b4f73f4a4152069e3853f1ed8bfbf58369f4ad708", size = 114353, upload-time = "2026-03-24T12:59:08.246Z" }, ] [[package]] @@ -44,14 +44,14 @@ wheels = [ [[package]] name = "click" -version = "8.3.1" +version = "8.3.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "colorama", marker = "sys_platform == 'win32'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/3d/fa/656b739db8587d7b5dfa22e22ed02566950fbfbcdc20311993483657a5c0/click-8.3.1.tar.gz", hash = "sha256:12ff4785d337a1bb490bb7e9c2b1ee5da3112e94a8622f26a6c77f5d2fc6842a", size = 295065, upload-time = "2025-11-15T20:45:42.706Z" } +sdist = { url = "https://files.pythonhosted.org/packages/57/75/31212c6bf2503fdf920d87fee5d7a86a2e3bcf444984126f13d8e4016804/click-8.3.2.tar.gz", hash = "sha256:14162b8b3b3550a7d479eafa77dfd3c38d9dc8951f6f69c78913a8f9a7540fd5", size = 302856, upload-time = "2026-04-03T19:14:45.118Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/98/78/01c019cdb5d6498122777c1a43056ebb3ebfeef2076d9d026bfe15583b2b/click-8.3.1-py3-none-any.whl", hash = "sha256:981153a64e25f12d547d3426c367a4857371575ee7ad18df2a6183ab0545b2a6", size = 108274, upload-time = "2025-11-15T20:45:41.139Z" }, + { url = "https://files.pythonhosted.org/packages/e4/20/71885d8b97d4f3dde17b1fdb92dbd4908b00541c5a3379787137285f602e/click-8.3.2-py3-none-any.whl", hash = "sha256:1924d2c27c5653561cd2cae4548d1406039cb79b858b747cfea24924bbc1616d", size = 108379, upload-time = "2026-04-03T19:14:43.505Z" }, ] [[package]] @@ -149,7 +149,7 @@ wheels = [ [[package]] name = "fastapi" -version = "0.135.1" +version = "0.136.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "annotated-doc" }, @@ -158,9 +158,9 @@ dependencies = [ { name = "typing-extensions" }, { name = "typing-inspection" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e7/7b/f8e0211e9380f7195ba3f3d40c292594fd81ba8ec4629e3854c353aaca45/fastapi-0.135.1.tar.gz", hash = "sha256:d04115b508d936d254cea545b7312ecaa58a7b3a0f84952535b4c9afae7668cd", size = 394962, upload-time = "2026-03-01T18:18:29.369Z" } +sdist = { url = "https://files.pythonhosted.org/packages/4e/d9/e66315807e41e69e7f6a1b42a162dada2f249c5f06ad3f1a95f84ab336ef/fastapi-0.136.0.tar.gz", hash = "sha256:cf08e067cc66e106e102d9ba659463abfac245200752f8a5b7b1e813de4ff73e", size = 396607, upload-time = "2026-04-16T11:47:13.623Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e4/72/42e900510195b23a56bde950d26a51f8b723846bfcaa0286e90287f0422b/fastapi-0.135.1-py3-none-any.whl", hash = "sha256:46e2fc5745924b7c840f71ddd277382af29ce1cdb7d5eab5bf697e3fb9999c9e", size = 116999, upload-time = "2026-03-01T18:18:30.831Z" }, + { url = "https://files.pythonhosted.org/packages/26/a3/0bd5f0cdb0bbc92650e8dc457e9250358411ee5d1b65e42b6632387daf81/fastapi-0.136.0-py3-none-any.whl", hash = "sha256:8793d44ec7378e2be07f8a013cf7f7aa47d6327d0dfe9804862688ec4541a6b4", size = 117556, upload-time = "2026-04-16T11:47:11.922Z" }, ] [[package]] @@ -343,55 +343,55 @@ wheels = [ [[package]] name = "orjson" -version = "3.11.7" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/53/45/b268004f745ede84e5798b48ee12b05129d19235d0e15267aa57dcdb400b/orjson-3.11.7.tar.gz", hash = "sha256:9b1a67243945819ce55d24a30b59d6a168e86220452d2c96f4d1f093e71c0c49", size = 6144992, upload-time = "2026-02-02T15:38:49.29Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/80/bf/76f4f1665f6983385938f0e2a5d7efa12a58171b8456c252f3bae8a4cf75/orjson-3.11.7-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:bd03ea7606833655048dab1a00734a2875e3e86c276e1d772b2a02556f0d895f", size = 228545, upload-time = "2026-02-02T15:37:46.376Z" }, - { url = "https://files.pythonhosted.org/packages/79/53/6c72c002cb13b5a978a068add59b25a8bdf2800ac1c9c8ecdb26d6d97064/orjson-3.11.7-cp312-cp312-macosx_15_0_arm64.whl", hash = "sha256:89e440ebc74ce8ab5c7bc4ce6757b4a6b1041becb127df818f6997b5c71aa60b", size = 125224, upload-time = "2026-02-02T15:37:47.697Z" }, - { url = "https://files.pythonhosted.org/packages/2c/83/10e48852865e5dd151bdfe652c06f7da484578ed02c5fca938e3632cb0b8/orjson-3.11.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5ede977b5fe5ac91b1dffc0a517ca4542d2ec8a6a4ff7b2652d94f640796342a", size = 128154, upload-time = "2026-02-02T15:37:48.954Z" }, - { url = "https://files.pythonhosted.org/packages/6e/52/a66e22a2b9abaa374b4a081d410edab6d1e30024707b87eab7c734afe28d/orjson-3.11.7-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b7b1dae39230a393df353827c855a5f176271c23434cfd2db74e0e424e693e10", size = 123548, upload-time = "2026-02-02T15:37:50.187Z" }, - { url = "https://files.pythonhosted.org/packages/de/38/605d371417021359f4910c496f764c48ceb8997605f8c25bf1dfe58c0ebe/orjson-3.11.7-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ed46f17096e28fb28d2975834836a639af7278aa87c84f68ab08fbe5b8bd75fa", size = 129000, upload-time = "2026-02-02T15:37:51.426Z" }, - { url = "https://files.pythonhosted.org/packages/44/98/af32e842b0ffd2335c89714d48ca4e3917b42f5d6ee5537832e069a4b3ac/orjson-3.11.7-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3726be79e36e526e3d9c1aceaadbfb4a04ee80a72ab47b3f3c17fefb9812e7b8", size = 141686, upload-time = "2026-02-02T15:37:52.607Z" }, - { url = "https://files.pythonhosted.org/packages/96/0b/fc793858dfa54be6feee940c1463370ece34b3c39c1ca0aa3845f5ba9892/orjson-3.11.7-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0724e265bc548af1dedebd9cb3d24b4e1c1e685a343be43e87ba922a5c5fff2f", size = 130812, upload-time = "2026-02-02T15:37:53.944Z" }, - { url = "https://files.pythonhosted.org/packages/dc/91/98a52415059db3f374757d0b7f0f16e3b5cd5976c90d1c2b56acaea039e6/orjson-3.11.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e7745312efa9e11c17fbd3cb3097262d079da26930ae9ae7ba28fb738367cbad", size = 133440, upload-time = "2026-02-02T15:37:55.615Z" }, - { url = "https://files.pythonhosted.org/packages/dc/b6/cb540117bda61791f46381f8c26c8f93e802892830a6055748d3bb1925ab/orjson-3.11.7-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f904c24bdeabd4298f7a977ef14ca2a022ca921ed670b92ecd16ab6f3d01f867", size = 138386, upload-time = "2026-02-02T15:37:56.814Z" }, - { url = "https://files.pythonhosted.org/packages/63/1a/50a3201c334a7f17c231eee5f841342190723794e3b06293f26e7cf87d31/orjson-3.11.7-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:b9fc4d0f81f394689e0814617aadc4f2ea0e8025f38c226cbf22d3b5ddbf025d", size = 408853, upload-time = "2026-02-02T15:37:58.291Z" }, - { url = "https://files.pythonhosted.org/packages/87/cd/8de1c67d0be44fdc22701e5989c0d015a2adf391498ad42c4dc589cd3013/orjson-3.11.7-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:849e38203e5be40b776ed2718e587faf204d184fc9a008ae441f9442320c0cab", size = 144130, upload-time = "2026-02-02T15:38:00.163Z" }, - { url = "https://files.pythonhosted.org/packages/0f/fe/d605d700c35dd55f51710d159fc54516a280923cd1b7e47508982fbb387d/orjson-3.11.7-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:4682d1db3bcebd2b64757e0ddf9e87ae5f00d29d16c5cdf3a62f561d08cc3dd2", size = 134818, upload-time = "2026-02-02T15:38:01.507Z" }, - { url = "https://files.pythonhosted.org/packages/e4/e4/15ecc67edb3ddb3e2f46ae04475f2d294e8b60c1825fbe28a428b93b3fbd/orjson-3.11.7-cp312-cp312-win32.whl", hash = "sha256:f4f7c956b5215d949a1f65334cf9d7612dde38f20a95f2315deef167def91a6f", size = 127923, upload-time = "2026-02-02T15:38:02.75Z" }, - { url = "https://files.pythonhosted.org/packages/34/70/2e0855361f76198a3965273048c8e50a9695d88cd75811a5b46444895845/orjson-3.11.7-cp312-cp312-win_amd64.whl", hash = "sha256:bf742e149121dc5648ba0a08ea0871e87b660467ef168a3a5e53bc1fbd64bb74", size = 125007, upload-time = "2026-02-02T15:38:04.032Z" }, - { url = "https://files.pythonhosted.org/packages/68/40/c2051bd19fc467610fed469dc29e43ac65891571138f476834ca192bc290/orjson-3.11.7-cp312-cp312-win_arm64.whl", hash = "sha256:26c3b9132f783b7d7903bf1efb095fed8d4a3a85ec0d334ee8beff3d7a4749d5", size = 126089, upload-time = "2026-02-02T15:38:05.297Z" }, - { url = "https://files.pythonhosted.org/packages/89/25/6e0e52cac5aab51d7b6dcd257e855e1dec1c2060f6b28566c509b4665f62/orjson-3.11.7-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:1d98b30cc1313d52d4af17d9c3d307b08389752ec5f2e5febdfada70b0f8c733", size = 228390, upload-time = "2026-02-02T15:38:06.8Z" }, - { url = "https://files.pythonhosted.org/packages/a5/29/a77f48d2fc8a05bbc529e5ff481fb43d914f9e383ea2469d4f3d51df3d00/orjson-3.11.7-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:d897e81f8d0cbd2abb82226d1860ad2e1ab3ff16d7b08c96ca00df9d45409ef4", size = 125189, upload-time = "2026-02-02T15:38:08.181Z" }, - { url = "https://files.pythonhosted.org/packages/89/25/0a16e0729a0e6a1504f9d1a13cdd365f030068aab64cec6958396b9969d7/orjson-3.11.7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:814be4b49b228cfc0b3c565acf642dd7d13538f966e3ccde61f4f55be3e20785", size = 128106, upload-time = "2026-02-02T15:38:09.41Z" }, - { url = "https://files.pythonhosted.org/packages/66/da/a2e505469d60666a05ab373f1a6322eb671cb2ba3a0ccfc7d4bc97196787/orjson-3.11.7-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d06e5c5fed5caedd2e540d62e5b1c25e8c82431b9e577c33537e5fa4aa909539", size = 123363, upload-time = "2026-02-02T15:38:10.73Z" }, - { url = "https://files.pythonhosted.org/packages/23/bf/ed73f88396ea35c71b38961734ea4a4746f7ca0768bf28fd551d37e48dd0/orjson-3.11.7-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:31c80ce534ac4ea3739c5ee751270646cbc46e45aea7576a38ffec040b4029a1", size = 129007, upload-time = "2026-02-02T15:38:12.138Z" }, - { url = "https://files.pythonhosted.org/packages/73/3c/b05d80716f0225fc9008fbf8ab22841dcc268a626aa550561743714ce3bf/orjson-3.11.7-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f50979824bde13d32b4320eedd513431c921102796d86be3eee0b58e58a3ecd1", size = 141667, upload-time = "2026-02-02T15:38:13.398Z" }, - { url = "https://files.pythonhosted.org/packages/61/e8/0be9b0addd9bf86abfc938e97441dcd0375d494594b1c8ad10fe57479617/orjson-3.11.7-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9e54f3808e2b6b945078c41aa8d9b5834b28c50843846e97807e5adb75fa9705", size = 130832, upload-time = "2026-02-02T15:38:14.698Z" }, - { url = "https://files.pythonhosted.org/packages/c9/ec/c68e3b9021a31d9ec15a94931db1410136af862955854ed5dd7e7e4f5bff/orjson-3.11.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a12b80df61aab7b98b490fe9e4879925ba666fccdfcd175252ce4d9035865ace", size = 133373, upload-time = "2026-02-02T15:38:16.109Z" }, - { url = "https://files.pythonhosted.org/packages/d2/45/f3466739aaafa570cc8e77c6dbb853c48bf56e3b43738020e2661e08b0ac/orjson-3.11.7-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:996b65230271f1a97026fd0e6a753f51fbc0c335d2ad0c6201f711b0da32693b", size = 138307, upload-time = "2026-02-02T15:38:17.453Z" }, - { url = "https://files.pythonhosted.org/packages/e1/84/9f7f02288da1ffb31405c1be07657afd1eecbcb4b64ee2817b6fe0f785fa/orjson-3.11.7-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:ab49d4b2a6a1d415ddb9f37a21e02e0d5dbfe10b7870b21bf779fc21e9156157", size = 408695, upload-time = "2026-02-02T15:38:18.831Z" }, - { url = "https://files.pythonhosted.org/packages/18/07/9dd2f0c0104f1a0295ffbe912bc8d63307a539b900dd9e2c48ef7810d971/orjson-3.11.7-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:390a1dce0c055ddf8adb6aa94a73b45a4a7d7177b5c584b8d1c1947f2ba60fb3", size = 144099, upload-time = "2026-02-02T15:38:20.28Z" }, - { url = "https://files.pythonhosted.org/packages/a5/66/857a8e4a3292e1f7b1b202883bcdeb43a91566cf59a93f97c53b44bd6801/orjson-3.11.7-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:1eb80451a9c351a71dfaf5b7ccc13ad065405217726b59fdbeadbcc544f9d223", size = 134806, upload-time = "2026-02-02T15:38:22.186Z" }, - { url = "https://files.pythonhosted.org/packages/0a/5b/6ebcf3defc1aab3a338ca777214966851e92efb1f30dc7fc8285216e6d1b/orjson-3.11.7-cp313-cp313-win32.whl", hash = "sha256:7477aa6a6ec6139c5cb1cc7b214643592169a5494d200397c7fc95d740d5fcf3", size = 127914, upload-time = "2026-02-02T15:38:23.511Z" }, - { url = "https://files.pythonhosted.org/packages/00/04/c6f72daca5092e3117840a1b1e88dfc809cc1470cf0734890d0366b684a1/orjson-3.11.7-cp313-cp313-win_amd64.whl", hash = "sha256:b9f95dcdea9d4f805daa9ddf02617a89e484c6985fa03055459f90e87d7a0757", size = 124986, upload-time = "2026-02-02T15:38:24.836Z" }, - { url = "https://files.pythonhosted.org/packages/03/ba/077a0f6f1085d6b806937246860fafbd5b17f3919c70ee3f3d8d9c713f38/orjson-3.11.7-cp313-cp313-win_arm64.whl", hash = "sha256:800988273a014a0541483dc81021247d7eacb0c845a9d1a34a422bc718f41539", size = 126045, upload-time = "2026-02-02T15:38:26.216Z" }, - { url = "https://files.pythonhosted.org/packages/e9/1e/745565dca749813db9a093c5ebc4bac1a9475c64d54b95654336ac3ed961/orjson-3.11.7-cp314-cp314-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:de0a37f21d0d364954ad5de1970491d7fbd0fb1ef7417d4d56a36dc01ba0c0a0", size = 228391, upload-time = "2026-02-02T15:38:27.757Z" }, - { url = "https://files.pythonhosted.org/packages/46/19/e40f6225da4d3aa0c8dc6e5219c5e87c2063a560fe0d72a88deb59776794/orjson-3.11.7-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:c2428d358d85e8da9d37cba18b8c4047c55222007a84f97156a5b22028dfbfc0", size = 125188, upload-time = "2026-02-02T15:38:29.241Z" }, - { url = "https://files.pythonhosted.org/packages/9d/7e/c4de2babef2c0817fd1f048fd176aa48c37bec8aef53d2fa932983032cce/orjson-3.11.7-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3c4bc6c6ac52cdaa267552544c73e486fecbd710b7ac09bc024d5a78555a22f6", size = 128097, upload-time = "2026-02-02T15:38:30.618Z" }, - { url = "https://files.pythonhosted.org/packages/eb/74/233d360632bafd2197f217eee7fb9c9d0229eac0c18128aee5b35b0014fe/orjson-3.11.7-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bd0d68edd7dfca1b2eca9361a44ac9f24b078de3481003159929a0573f21a6bf", size = 123364, upload-time = "2026-02-02T15:38:32.363Z" }, - { url = "https://files.pythonhosted.org/packages/79/51/af79504981dd31efe20a9e360eb49c15f06df2b40e7f25a0a52d9ae888e8/orjson-3.11.7-cp314-cp314-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:623ad1b9548ef63886319c16fa317848e465a21513b31a6ad7b57443c3e0dcf5", size = 129076, upload-time = "2026-02-02T15:38:33.68Z" }, - { url = "https://files.pythonhosted.org/packages/67/e2/da898eb68b72304f8de05ca6715870d09d603ee98d30a27e8a9629abc64b/orjson-3.11.7-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6e776b998ac37c0396093d10290e60283f59cfe0fc3fccbd0ccc4bd04dd19892", size = 141705, upload-time = "2026-02-02T15:38:34.989Z" }, - { url = "https://files.pythonhosted.org/packages/c5/89/15364d92acb3d903b029e28d834edb8780c2b97404cbf7929aa6b9abdb24/orjson-3.11.7-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:652c6c3af76716f4a9c290371ba2e390ede06f6603edb277b481daf37f6f464e", size = 130855, upload-time = "2026-02-02T15:38:36.379Z" }, - { url = "https://files.pythonhosted.org/packages/c2/8b/ecdad52d0b38d4b8f514be603e69ccd5eacf4e7241f972e37e79792212ec/orjson-3.11.7-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a56df3239294ea5964adf074c54bcc4f0ccd21636049a2cf3ca9cf03b5d03cf1", size = 133386, upload-time = "2026-02-02T15:38:37.704Z" }, - { url = "https://files.pythonhosted.org/packages/b9/0e/45e1dcf10e17d0924b7c9162f87ec7b4ca79e28a0548acf6a71788d3e108/orjson-3.11.7-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:bda117c4148e81f746655d5a3239ae9bd00cb7bc3ca178b5fc5a5997e9744183", size = 138295, upload-time = "2026-02-02T15:38:39.096Z" }, - { url = "https://files.pythonhosted.org/packages/63/d7/4d2e8b03561257af0450f2845b91fbd111d7e526ccdf737267108075e0ba/orjson-3.11.7-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:23d6c20517a97a9daf1d48b580fcdc6f0516c6f4b5038823426033690b4d2650", size = 408720, upload-time = "2026-02-02T15:38:40.634Z" }, - { url = "https://files.pythonhosted.org/packages/78/cf/d45343518282108b29c12a65892445fc51f9319dc3c552ceb51bb5905ed2/orjson-3.11.7-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:8ff206156006da5b847c9304b6308a01e8cdbc8cce824e2779a5ba71c3def141", size = 144152, upload-time = "2026-02-02T15:38:42.262Z" }, - { url = "https://files.pythonhosted.org/packages/a9/3a/d6001f51a7275aacd342e77b735c71fa04125a3f93c36fee4526bc8c654e/orjson-3.11.7-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:962d046ee1765f74a1da723f4b33e3b228fe3a48bd307acce5021dfefe0e29b2", size = 134814, upload-time = "2026-02-02T15:38:43.627Z" }, - { url = "https://files.pythonhosted.org/packages/1d/d3/f19b47ce16820cc2c480f7f1723e17f6d411b3a295c60c8ad3aa9ff1c96a/orjson-3.11.7-cp314-cp314-win32.whl", hash = "sha256:89e13dd3f89f1c38a9c9eba5fbf7cdc2d1feca82f5f290864b4b7a6aac704576", size = 127997, upload-time = "2026-02-02T15:38:45.06Z" }, - { url = "https://files.pythonhosted.org/packages/12/df/172771902943af54bf661a8d102bdf2e7f932127968080632bda6054b62c/orjson-3.11.7-cp314-cp314-win_amd64.whl", hash = "sha256:845c3e0d8ded9c9271cd79596b9b552448b885b97110f628fb687aee2eed11c1", size = 124985, upload-time = "2026-02-02T15:38:46.388Z" }, - { url = "https://files.pythonhosted.org/packages/6f/1c/f2a8d8a1b17514660a614ce5f7aac74b934e69f5abc2700cc7ced882a009/orjson-3.11.7-cp314-cp314-win_arm64.whl", hash = "sha256:4a2e9c5be347b937a2e0203866f12bba36082e89b402ddb9e927d5822e43088d", size = 126038, upload-time = "2026-02-02T15:38:47.703Z" }, +version = "3.11.8" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/9d/1b/2024d06792d0779f9dbc51531b61c24f76c75b9f4ce05e6f3377a1814cea/orjson-3.11.8.tar.gz", hash = "sha256:96163d9cdc5a202703e9ad1b9ae757d5f0ca62f4fa0cc93d1f27b0e180cc404e", size = 5603832, upload-time = "2026-03-31T16:16:27.878Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/01/f6/8d58b32ab32d9215973a1688aebd098252ee8af1766c0e4e36e7831f0295/orjson-3.11.8-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:1cd0b77e77c95758f8e1100139844e99f3ccc87e71e6fc8e1c027e55807c549f", size = 229233, upload-time = "2026-03-31T16:15:12.762Z" }, + { url = "https://files.pythonhosted.org/packages/a9/8b/2ffe35e71f6b92622e8ea4607bf33ecf7dfb51b3619dcfabfd36cbe2d0a5/orjson-3.11.8-cp312-cp312-macosx_15_0_arm64.whl", hash = "sha256:6a3d159d5ffa0e3961f353c4b036540996bf8b9697ccc38261c0eac1fd3347a6", size = 128772, upload-time = "2026-03-31T16:15:14.237Z" }, + { url = "https://files.pythonhosted.org/packages/27/d2/1f8682ae50d5c6897a563cb96bc106da8c9cb5b7b6e81a52e4cc086679b9/orjson-3.11.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:76070a76e9c5ae661e2d9848f216980d8d533e0f8143e6ed462807b242e3c5e8", size = 131946, upload-time = "2026-03-31T16:15:15.607Z" }, + { url = "https://files.pythonhosted.org/packages/52/4b/5500f76f0eece84226e0689cb48dcde081104c2fa6e2483d17ca13685ffb/orjson-3.11.8-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:54153d21520a71a4c82a0dbb4523e468941d549d221dc173de0f019678cf3813", size = 130368, upload-time = "2026-03-31T16:15:17.066Z" }, + { url = "https://files.pythonhosted.org/packages/da/4e/58b927e08fbe9840e6c920d9e299b051ea667463b1f39a56e668669f8508/orjson-3.11.8-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:469ac2125611b7c5741a0b3798cd9e5786cbad6345f9f400c77212be89563bec", size = 135540, upload-time = "2026-03-31T16:15:18.404Z" }, + { url = "https://files.pythonhosted.org/packages/56/7c/ba7cb871cba1bcd5cd02ee34f98d894c6cea96353ad87466e5aef2429c60/orjson-3.11.8-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:14778ffd0f6896aa613951a7fbf4690229aa7a543cb2bfbe9f358e08aafa9546", size = 146877, upload-time = "2026-03-31T16:15:19.833Z" }, + { url = "https://files.pythonhosted.org/packages/0b/5d/eb9c25fc1386696c6a342cd361c306452c75e0b55e86ad602dd4827a7fd7/orjson-3.11.8-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ea56a955056a6d6c550cf18b3348656a9d9a4f02e2d0c02cabf3c73f1055d506", size = 132837, upload-time = "2026-03-31T16:15:21.282Z" }, + { url = "https://files.pythonhosted.org/packages/37/87/5ddeb7fc1fbd9004aeccab08426f34c81a5b4c25c7061281862b015fce2b/orjson-3.11.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:53a0f57e59a530d18a142f4d4ba6dfc708dc5fdedce45e98ff06b44930a2a48f", size = 133624, upload-time = "2026-03-31T16:15:22.641Z" }, + { url = "https://files.pythonhosted.org/packages/22/09/90048793db94ee4b2fcec4ac8e5ddb077367637d6650be896b3494b79bb7/orjson-3.11.8-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:9b48e274f8824567d74e2158199e269597edf00823a1b12b63d48462bbf5123e", size = 141904, upload-time = "2026-03-31T16:15:24.435Z" }, + { url = "https://files.pythonhosted.org/packages/c0/cf/eb284847487821a5d415e54149a6449ba9bfc5872ce63ab7be41b8ec401c/orjson-3.11.8-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:3f262401086a3960586af06c054609365e98407151f5ea24a62893a40d80dbbb", size = 423742, upload-time = "2026-03-31T16:15:26.155Z" }, + { url = "https://files.pythonhosted.org/packages/44/09/e12423d327071c851c13e76936f144a96adacfc037394dec35ac3fc8d1e8/orjson-3.11.8-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:8e8c6218b614badf8e229b697865df4301afa74b791b6c9ade01d19a9953a942", size = 147806, upload-time = "2026-03-31T16:15:27.909Z" }, + { url = "https://files.pythonhosted.org/packages/b3/6d/37c2589ba864e582ffe7611643314785c6afb1f83c701654ef05daa8fcc7/orjson-3.11.8-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:093d489fa039ddade2db541097dbb484999fcc65fc2b0ff9819141e2ab364f25", size = 136485, upload-time = "2026-03-31T16:15:29.749Z" }, + { url = "https://files.pythonhosted.org/packages/be/c9/135194a02ab76b04ed9a10f68624b7ebd238bbe55548878b11ff15a0f352/orjson-3.11.8-cp312-cp312-win32.whl", hash = "sha256:e0950ed1bcb9893f4293fd5c5a7ee10934fbf82c4101c70be360db23ce24b7d2", size = 131966, upload-time = "2026-03-31T16:15:31.687Z" }, + { url = "https://files.pythonhosted.org/packages/ed/9a/9796f8fbe3cf30ce9cb696748dbb535e5c87be4bf4fe2e9ca498ef1fa8cf/orjson-3.11.8-cp312-cp312-win_amd64.whl", hash = "sha256:3cf17c141617b88ced4536b2135c552490f07799f6ad565948ea07bef0dcb9a6", size = 127441, upload-time = "2026-03-31T16:15:33.333Z" }, + { url = "https://files.pythonhosted.org/packages/cc/47/5aaf54524a7a4a0dd09dd778f3fa65dd2108290615b652e23d944152bc8e/orjson-3.11.8-cp312-cp312-win_arm64.whl", hash = "sha256:48854463b0572cc87dac7d981aa72ed8bf6deedc0511853dc76b8bbd5482d36d", size = 127364, upload-time = "2026-03-31T16:15:34.748Z" }, + { url = "https://files.pythonhosted.org/packages/66/7f/95fba509bb2305fab0073558f1e8c3a2ec4b2afe58ed9fcb7d3b8beafe94/orjson-3.11.8-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:3f23426851d98478c8970da5991f84784a76682213cd50eb73a1da56b95239dc", size = 229180, upload-time = "2026-03-31T16:15:36.426Z" }, + { url = "https://files.pythonhosted.org/packages/f6/9d/b237215c743ca073697d759b5503abd2cb8a0d7b9c9e21f524bcf176ab66/orjson-3.11.8-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:ebaed4cef74a045b83e23537b52ef19a367c7e3f536751e355a2a394f8648559", size = 128754, upload-time = "2026-03-31T16:15:38.049Z" }, + { url = "https://files.pythonhosted.org/packages/42/3d/27d65b6d11e63f133781425f132807aef793ed25075fec686fc8e46dd528/orjson-3.11.8-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:97c8f5d3b62380b70c36ffacb2a356b7c6becec86099b177f73851ba095ef623", size = 131877, upload-time = "2026-03-31T16:15:39.484Z" }, + { url = "https://files.pythonhosted.org/packages/dd/cc/faee30cd8f00421999e40ef0eba7332e3a625ce91a58200a2f52c7fef235/orjson-3.11.8-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:436c4922968a619fb7fef1ccd4b8b3a76c13b67d607073914d675026e911a65c", size = 130361, upload-time = "2026-03-31T16:15:41.274Z" }, + { url = "https://files.pythonhosted.org/packages/5c/bb/a6c55896197f97b6d4b4e7c7fd77e7235517c34f5d6ad5aadd43c54c6d7c/orjson-3.11.8-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1ab359aff0436d80bfe8a23b46b5fea69f1e18aaf1760a709b4787f1318b317f", size = 135521, upload-time = "2026-03-31T16:15:42.758Z" }, + { url = "https://files.pythonhosted.org/packages/9c/7c/ca3a3525aa32ff636ebb1778e77e3587b016ab2edb1b618b36ba96f8f2c0/orjson-3.11.8-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f89b6d0b3a8d81e1929d3ab3d92bbc225688bd80a770c49432543928fe09ac55", size = 146862, upload-time = "2026-03-31T16:15:44.341Z" }, + { url = "https://files.pythonhosted.org/packages/3c/0c/18a9d7f18b5edd37344d1fd5be17e94dc652c67826ab749c6e5948a78112/orjson-3.11.8-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:29c009e7a2ca9ad0ed1376ce20dd692146a5d9fe4310848904b6b4fee5c5c137", size = 132847, upload-time = "2026-03-31T16:15:46.368Z" }, + { url = "https://files.pythonhosted.org/packages/23/91/7e722f352ad67ca573cee44de2a58fb810d0f4eb4e33276c6a557979fd8a/orjson-3.11.8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:705b895b781b3e395c067129d8551655642dfe9437273211d5404e87ac752b53", size = 133637, upload-time = "2026-03-31T16:15:48.123Z" }, + { url = "https://files.pythonhosted.org/packages/af/04/32845ce13ac5bd1046ddb02ac9432ba856cc35f6d74dde95864fe0ad5523/orjson-3.11.8-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:88006eda83858a9fdf73985ce3804e885c2befb2f506c9a3723cdeb5a2880e3e", size = 141906, upload-time = "2026-03-31T16:15:49.626Z" }, + { url = "https://files.pythonhosted.org/packages/02/5e/c551387ddf2d7106d9039369862245c85738b828844d13b99ccb8d61fd06/orjson-3.11.8-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:55120759e61309af7fcf9e961c6f6af3dde5921cdb3ee863ef63fd9db126cae6", size = 423722, upload-time = "2026-03-31T16:15:51.176Z" }, + { url = "https://files.pythonhosted.org/packages/00/a3/ecfe62434096f8a794d4976728cb59bcfc4a643977f21c2040545d37eb4c/orjson-3.11.8-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:98bdc6cb889d19bed01de46e67574a2eab61f5cc6b768ed50e8ac68e9d6ffab6", size = 147801, upload-time = "2026-03-31T16:15:52.939Z" }, + { url = "https://files.pythonhosted.org/packages/18/6d/0dce10b9f6643fdc59d99333871a38fa5a769d8e2fc34a18e5d2bfdee900/orjson-3.11.8-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:708c95f925a43ab9f34625e45dcdadf09ec8a6e7b664a938f2f8d5650f6c090b", size = 136460, upload-time = "2026-03-31T16:15:54.431Z" }, + { url = "https://files.pythonhosted.org/packages/01/d6/6dde4f31842d87099238f1f07b459d24edc1a774d20687187443ab044191/orjson-3.11.8-cp313-cp313-win32.whl", hash = "sha256:01c4e5a6695dc09098f2e6468a251bc4671c50922d4d745aff1a0a33a0cf5b8d", size = 131956, upload-time = "2026-03-31T16:15:56.081Z" }, + { url = "https://files.pythonhosted.org/packages/c1/f9/4e494a56e013db957fb77186b818b916d4695b8fa2aa612364974160e91b/orjson-3.11.8-cp313-cp313-win_amd64.whl", hash = "sha256:c154a35dd1330707450bb4d4e7dd1f17fa6f42267a40c1e8a1daa5e13719b4b8", size = 127410, upload-time = "2026-03-31T16:15:57.54Z" }, + { url = "https://files.pythonhosted.org/packages/57/7f/803203d00d6edb6e9e7eef421d4e1adbb5ea973e40b3533f3cfd9aeb374e/orjson-3.11.8-cp313-cp313-win_arm64.whl", hash = "sha256:4861bde57f4d253ab041e374f44023460e60e71efaa121f3c5f0ed457c3a701e", size = 127338, upload-time = "2026-03-31T16:15:59.106Z" }, + { url = "https://files.pythonhosted.org/packages/6d/35/b01910c3d6b85dc882442afe5060cbf719c7d1fc85749294beda23d17873/orjson-3.11.8-cp314-cp314-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:ec795530a73c269a55130498842aaa762e4a939f6ce481a7e986eeaa790e9da4", size = 229171, upload-time = "2026-03-31T16:16:00.651Z" }, + { url = "https://files.pythonhosted.org/packages/c2/56/c9ec97bd11240abef39b9e5d99a15462809c45f677420fd148a6c5e6295e/orjson-3.11.8-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:c492a0e011c0f9066e9ceaa896fbc5b068c54d365fea5f3444b697ee01bc8625", size = 128746, upload-time = "2026-03-31T16:16:02.673Z" }, + { url = "https://files.pythonhosted.org/packages/3b/e4/66d4f30a90de45e2f0cbd9623588e8ae71eef7679dbe2ae954ed6d66a41f/orjson-3.11.8-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:883206d55b1bd5f5679ad5e6ddd3d1a5e3cac5190482927fdb8c78fb699193b5", size = 131867, upload-time = "2026-03-31T16:16:04.342Z" }, + { url = "https://files.pythonhosted.org/packages/19/30/2a645fc9286b928675e43fa2a3a16fb7b6764aa78cc719dc82141e00f30b/orjson-3.11.8-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5774c1fdcc98b2259800b683b19599c133baeb11d60033e2095fd9d4667b82db", size = 124664, upload-time = "2026-03-31T16:16:05.837Z" }, + { url = "https://files.pythonhosted.org/packages/db/44/77b9a86d84a28d52ba3316d77737f6514e17118119ade3f91b639e859029/orjson-3.11.8-cp314-cp314-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8ac7381c83dd3d4a6347e6635950aa448f54e7b8406a27c7ecb4a37e9f1ae08b", size = 129701, upload-time = "2026-03-31T16:16:07.407Z" }, + { url = "https://files.pythonhosted.org/packages/b3/ea/eff3d9bfe47e9bc6969c9181c58d9f71237f923f9c86a2d2f490cd898c82/orjson-3.11.8-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:14439063aebcb92401c11afc68ee4e407258d2752e62d748b6942dad20d2a70d", size = 141202, upload-time = "2026-03-31T16:16:09.48Z" }, + { url = "https://files.pythonhosted.org/packages/52/c8/90d4b4c60c84d62068d0cf9e4d8f0a4e05e76971d133ac0c60d818d4db20/orjson-3.11.8-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fa72e71977bff96567b0f500fc5bfd2fdf915f34052c782a4c6ebbdaa97aa858", size = 127194, upload-time = "2026-03-31T16:16:11.02Z" }, + { url = "https://files.pythonhosted.org/packages/8d/c7/ea9e08d1f0ba981adffb629811148b44774d935171e7b3d780ae43c4c254/orjson-3.11.8-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7679bc2f01bb0d219758f1a5f87bb7c8a81c0a186824a393b366876b4948e14f", size = 133639, upload-time = "2026-03-31T16:16:13.434Z" }, + { url = "https://files.pythonhosted.org/packages/6c/8c/ddbbfd6ba59453c8fc7fe1d0e5983895864e264c37481b2a791db635f046/orjson-3.11.8-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:14f7b8fcb35ef403b42fa5ecfa4ed032332a91f3dc7368fbce4184d59e1eae0d", size = 141914, upload-time = "2026-03-31T16:16:14.955Z" }, + { url = "https://files.pythonhosted.org/packages/4e/31/dbfbefec9df060d34ef4962cd0afcb6fa7a9ec65884cb78f04a7859526c3/orjson-3.11.8-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:c2bdf7b2facc80b5e34f48a2d557727d5c5c57a8a450de122ae81fa26a81c1bc", size = 423800, upload-time = "2026-03-31T16:16:16.594Z" }, + { url = "https://files.pythonhosted.org/packages/87/cf/f74e9ae9803d4ab46b163494adba636c6d7ea955af5cc23b8aaa94cfd528/orjson-3.11.8-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ccd7ba1b0605813a0715171d39ec4c314cb97a9c85893c2c5c0c3a3729df38bf", size = 147837, upload-time = "2026-03-31T16:16:18.585Z" }, + { url = "https://files.pythonhosted.org/packages/64/e6/9214f017b5db85e84e68602792f742e5dc5249e963503d1b356bee611e01/orjson-3.11.8-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:cdbc8c9c02463fef4d3c53a9ba3336d05496ec8e1f1c53326a1e4acc11f5c600", size = 136441, upload-time = "2026-03-31T16:16:20.151Z" }, + { url = "https://files.pythonhosted.org/packages/24/dd/3590348818f58f837a75fb969b04cdf187ae197e14d60b5e5a794a38b79d/orjson-3.11.8-cp314-cp314-win32.whl", hash = "sha256:0b57f67710a8cd459e4e54eb96d5f77f3624eba0c661ba19a525807e42eccade", size = 131983, upload-time = "2026-03-31T16:16:21.823Z" }, + { url = "https://files.pythonhosted.org/packages/3f/0f/b6cb692116e05d058f31ceee819c70f097fa9167c82f67fabe7516289abc/orjson-3.11.8-cp314-cp314-win_amd64.whl", hash = "sha256:735e2262363dcbe05c35e3a8869898022af78f89dde9e256924dc02e99fe69ca", size = 127396, upload-time = "2026-03-31T16:16:23.685Z" }, + { url = "https://files.pythonhosted.org/packages/c0/d1/facb5b5051fabb0ef9d26c6544d87ef19a939a9a001198655d0d891062dd/orjson-3.11.8-cp314-cp314-win_arm64.whl", hash = "sha256:6ccdea2c213cf9f3d9490cbd5d427693c870753df41e6cb375bd79bcbafc8817", size = 127330, upload-time = "2026-03-31T16:16:25.496Z" }, ] [[package]] @@ -470,7 +470,7 @@ wheels = [ [[package]] name = "pydantic" -version = "2.12.5" +version = "2.13.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "annotated-types" }, @@ -478,80 +478,84 @@ dependencies = [ { name = "typing-extensions" }, { name = "typing-inspection" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/69/44/36f1a6e523abc58ae5f928898e4aca2e0ea509b5aa6f6f392a5d882be928/pydantic-2.12.5.tar.gz", hash = "sha256:4d351024c75c0f085a9febbb665ce8c0c6ec5d30e903bdb6394b7ede26aebb49", size = 821591, upload-time = "2025-11-26T15:11:46.471Z" } +sdist = { url = "https://files.pythonhosted.org/packages/09/e5/06d23afac9973109d1e3c8ad38e1547a12e860610e327c05ee686827dc37/pydantic-2.13.2.tar.gz", hash = "sha256:b418196607e61081c3226dcd4f0672f2a194828abb9109e9cfb84026564df2d1", size = 843836, upload-time = "2026-04-17T09:31:59.636Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/5a/87/b70ad306ebb6f9b585f114d0ac2137d792b48be34d732d60e597c2f8465a/pydantic-2.12.5-py3-none-any.whl", hash = "sha256:e561593fccf61e8a20fc46dfc2dfe075b8be7d0188df33f221ad1f0139180f9d", size = 463580, upload-time = "2025-11-26T15:11:44.605Z" }, + { url = "https://files.pythonhosted.org/packages/77/ca/b45c378e6e8d0b90577288b533e04e95b7afd61bb1d51b6c263176435489/pydantic-2.13.2-py3-none-any.whl", hash = "sha256:a525087f4c03d7e7456a3de89b64cd693d2229933bb1068b9af6befd5563694e", size = 471947, upload-time = "2026-04-17T09:31:57.541Z" }, ] [[package]] name = "pydantic-core" -version = "2.41.5" +version = "2.46.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/71/70/23b021c950c2addd24ec408e9ab05d59b035b39d97cdc1130e1bce647bb6/pydantic_core-2.41.5.tar.gz", hash = "sha256:08daa51ea16ad373ffd5e7606252cc32f07bc72b28284b6bc9c6df804816476e", size = 460952, upload-time = "2025-11-04T13:43:49.098Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/5f/5d/5f6c63eebb5afee93bcaae4ce9a898f3373ca23df3ccaef086d0233a35a7/pydantic_core-2.41.5-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:f41a7489d32336dbf2199c8c0a215390a751c5b014c2c1c5366e817202e9cdf7", size = 2110990, upload-time = "2025-11-04T13:39:58.079Z" }, - { url = "https://files.pythonhosted.org/packages/aa/32/9c2e8ccb57c01111e0fd091f236c7b371c1bccea0fa85247ac55b1e2b6b6/pydantic_core-2.41.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:070259a8818988b9a84a449a2a7337c7f430a22acc0859c6b110aa7212a6d9c0", size = 1896003, upload-time = "2025-11-04T13:39:59.956Z" }, - { url = "https://files.pythonhosted.org/packages/68/b8/a01b53cb0e59139fbc9e4fda3e9724ede8de279097179be4ff31f1abb65a/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e96cea19e34778f8d59fe40775a7a574d95816eb150850a85a7a4c8f4b94ac69", size = 1919200, upload-time = "2025-11-04T13:40:02.241Z" }, - { url = "https://files.pythonhosted.org/packages/38/de/8c36b5198a29bdaade07b5985e80a233a5ac27137846f3bc2d3b40a47360/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ed2e99c456e3fadd05c991f8f437ef902e00eedf34320ba2b0842bd1c3ca3a75", size = 2052578, upload-time = "2025-11-04T13:40:04.401Z" }, - { url = "https://files.pythonhosted.org/packages/00/b5/0e8e4b5b081eac6cb3dbb7e60a65907549a1ce035a724368c330112adfdd/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:65840751b72fbfd82c3c640cff9284545342a4f1eb1586ad0636955b261b0b05", size = 2208504, upload-time = "2025-11-04T13:40:06.072Z" }, - { url = "https://files.pythonhosted.org/packages/77/56/87a61aad59c7c5b9dc8caad5a41a5545cba3810c3e828708b3d7404f6cef/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e536c98a7626a98feb2d3eaf75944ef6f3dbee447e1f841eae16f2f0a72d8ddc", size = 2335816, upload-time = "2025-11-04T13:40:07.835Z" }, - { url = "https://files.pythonhosted.org/packages/0d/76/941cc9f73529988688a665a5c0ecff1112b3d95ab48f81db5f7606f522d3/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eceb81a8d74f9267ef4081e246ffd6d129da5d87e37a77c9bde550cb04870c1c", size = 2075366, upload-time = "2025-11-04T13:40:09.804Z" }, - { url = "https://files.pythonhosted.org/packages/d3/43/ebef01f69baa07a482844faaa0a591bad1ef129253ffd0cdaa9d8a7f72d3/pydantic_core-2.41.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d38548150c39b74aeeb0ce8ee1d8e82696f4a4e16ddc6de7b1d8823f7de4b9b5", size = 2171698, upload-time = "2025-11-04T13:40:12.004Z" }, - { url = "https://files.pythonhosted.org/packages/b1/87/41f3202e4193e3bacfc2c065fab7706ebe81af46a83d3e27605029c1f5a6/pydantic_core-2.41.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:c23e27686783f60290e36827f9c626e63154b82b116d7fe9adba1fda36da706c", size = 2132603, upload-time = "2025-11-04T13:40:13.868Z" }, - { url = "https://files.pythonhosted.org/packages/49/7d/4c00df99cb12070b6bccdef4a195255e6020a550d572768d92cc54dba91a/pydantic_core-2.41.5-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:482c982f814460eabe1d3bb0adfdc583387bd4691ef00b90575ca0d2b6fe2294", size = 2329591, upload-time = "2025-11-04T13:40:15.672Z" }, - { url = "https://files.pythonhosted.org/packages/cc/6a/ebf4b1d65d458f3cda6a7335d141305dfa19bdc61140a884d165a8a1bbc7/pydantic_core-2.41.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:bfea2a5f0b4d8d43adf9d7b8bf019fb46fdd10a2e5cde477fbcb9d1fa08c68e1", size = 2319068, upload-time = "2025-11-04T13:40:17.532Z" }, - { url = "https://files.pythonhosted.org/packages/49/3b/774f2b5cd4192d5ab75870ce4381fd89cf218af999515baf07e7206753f0/pydantic_core-2.41.5-cp312-cp312-win32.whl", hash = "sha256:b74557b16e390ec12dca509bce9264c3bbd128f8a2c376eaa68003d7f327276d", size = 1985908, upload-time = "2025-11-04T13:40:19.309Z" }, - { url = "https://files.pythonhosted.org/packages/86/45/00173a033c801cacf67c190fef088789394feaf88a98a7035b0e40d53dc9/pydantic_core-2.41.5-cp312-cp312-win_amd64.whl", hash = "sha256:1962293292865bca8e54702b08a4f26da73adc83dd1fcf26fbc875b35d81c815", size = 2020145, upload-time = "2025-11-04T13:40:21.548Z" }, - { url = "https://files.pythonhosted.org/packages/f9/22/91fbc821fa6d261b376a3f73809f907cec5ca6025642c463d3488aad22fb/pydantic_core-2.41.5-cp312-cp312-win_arm64.whl", hash = "sha256:1746d4a3d9a794cacae06a5eaaccb4b8643a131d45fbc9af23e353dc0a5ba5c3", size = 1976179, upload-time = "2025-11-04T13:40:23.393Z" }, - { url = "https://files.pythonhosted.org/packages/87/06/8806241ff1f70d9939f9af039c6c35f2360cf16e93c2ca76f184e76b1564/pydantic_core-2.41.5-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:941103c9be18ac8daf7b7adca8228f8ed6bb7a1849020f643b3a14d15b1924d9", size = 2120403, upload-time = "2025-11-04T13:40:25.248Z" }, - { url = "https://files.pythonhosted.org/packages/94/02/abfa0e0bda67faa65fef1c84971c7e45928e108fe24333c81f3bfe35d5f5/pydantic_core-2.41.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:112e305c3314f40c93998e567879e887a3160bb8689ef3d2c04b6cc62c33ac34", size = 1896206, upload-time = "2025-11-04T13:40:27.099Z" }, - { url = "https://files.pythonhosted.org/packages/15/df/a4c740c0943e93e6500f9eb23f4ca7ec9bf71b19e608ae5b579678c8d02f/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cbaad15cb0c90aa221d43c00e77bb33c93e8d36e0bf74760cd00e732d10a6a0", size = 1919307, upload-time = "2025-11-04T13:40:29.806Z" }, - { url = "https://files.pythonhosted.org/packages/9a/e3/6324802931ae1d123528988e0e86587c2072ac2e5394b4bc2bc34b61ff6e/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:03ca43e12fab6023fc79d28ca6b39b05f794ad08ec2feccc59a339b02f2b3d33", size = 2063258, upload-time = "2025-11-04T13:40:33.544Z" }, - { url = "https://files.pythonhosted.org/packages/c9/d4/2230d7151d4957dd79c3044ea26346c148c98fbf0ee6ebd41056f2d62ab5/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dc799088c08fa04e43144b164feb0c13f9a0bc40503f8df3e9fde58a3c0c101e", size = 2214917, upload-time = "2025-11-04T13:40:35.479Z" }, - { url = "https://files.pythonhosted.org/packages/e6/9f/eaac5df17a3672fef0081b6c1bb0b82b33ee89aa5cec0d7b05f52fd4a1fa/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:97aeba56665b4c3235a0e52b2c2f5ae9cd071b8a8310ad27bddb3f7fb30e9aa2", size = 2332186, upload-time = "2025-11-04T13:40:37.436Z" }, - { url = "https://files.pythonhosted.org/packages/cf/4e/35a80cae583a37cf15604b44240e45c05e04e86f9cfd766623149297e971/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:406bf18d345822d6c21366031003612b9c77b3e29ffdb0f612367352aab7d586", size = 2073164, upload-time = "2025-11-04T13:40:40.289Z" }, - { url = "https://files.pythonhosted.org/packages/bf/e3/f6e262673c6140dd3305d144d032f7bd5f7497d3871c1428521f19f9efa2/pydantic_core-2.41.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b93590ae81f7010dbe380cdeab6f515902ebcbefe0b9327cc4804d74e93ae69d", size = 2179146, upload-time = "2025-11-04T13:40:42.809Z" }, - { url = "https://files.pythonhosted.org/packages/75/c7/20bd7fc05f0c6ea2056a4565c6f36f8968c0924f19b7d97bbfea55780e73/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:01a3d0ab748ee531f4ea6c3e48ad9dac84ddba4b0d82291f87248f2f9de8d740", size = 2137788, upload-time = "2025-11-04T13:40:44.752Z" }, - { url = "https://files.pythonhosted.org/packages/3a/8d/34318ef985c45196e004bc46c6eab2eda437e744c124ef0dbe1ff2c9d06b/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:6561e94ba9dacc9c61bce40e2d6bdc3bfaa0259d3ff36ace3b1e6901936d2e3e", size = 2340133, upload-time = "2025-11-04T13:40:46.66Z" }, - { url = "https://files.pythonhosted.org/packages/9c/59/013626bf8c78a5a5d9350d12e7697d3d4de951a75565496abd40ccd46bee/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:915c3d10f81bec3a74fbd4faebe8391013ba61e5a1a8d48c4455b923bdda7858", size = 2324852, upload-time = "2025-11-04T13:40:48.575Z" }, - { url = "https://files.pythonhosted.org/packages/1a/d9/c248c103856f807ef70c18a4f986693a46a8ffe1602e5d361485da502d20/pydantic_core-2.41.5-cp313-cp313-win32.whl", hash = "sha256:650ae77860b45cfa6e2cdafc42618ceafab3a2d9a3811fcfbd3bbf8ac3c40d36", size = 1994679, upload-time = "2025-11-04T13:40:50.619Z" }, - { url = "https://files.pythonhosted.org/packages/9e/8b/341991b158ddab181cff136acd2552c9f35bd30380422a639c0671e99a91/pydantic_core-2.41.5-cp313-cp313-win_amd64.whl", hash = "sha256:79ec52ec461e99e13791ec6508c722742ad745571f234ea6255bed38c6480f11", size = 2019766, upload-time = "2025-11-04T13:40:52.631Z" }, - { url = "https://files.pythonhosted.org/packages/73/7d/f2f9db34af103bea3e09735bb40b021788a5e834c81eedb541991badf8f5/pydantic_core-2.41.5-cp313-cp313-win_arm64.whl", hash = "sha256:3f84d5c1b4ab906093bdc1ff10484838aca54ef08de4afa9de0f5f14d69639cd", size = 1981005, upload-time = "2025-11-04T13:40:54.734Z" }, - { url = "https://files.pythonhosted.org/packages/ea/28/46b7c5c9635ae96ea0fbb779e271a38129df2550f763937659ee6c5dbc65/pydantic_core-2.41.5-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:3f37a19d7ebcdd20b96485056ba9e8b304e27d9904d233d7b1015db320e51f0a", size = 2119622, upload-time = "2025-11-04T13:40:56.68Z" }, - { url = "https://files.pythonhosted.org/packages/74/1a/145646e5687e8d9a1e8d09acb278c8535ebe9e972e1f162ed338a622f193/pydantic_core-2.41.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1d1d9764366c73f996edd17abb6d9d7649a7eb690006ab6adbda117717099b14", size = 1891725, upload-time = "2025-11-04T13:40:58.807Z" }, - { url = "https://files.pythonhosted.org/packages/23/04/e89c29e267b8060b40dca97bfc64a19b2a3cf99018167ea1677d96368273/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:25e1c2af0fce638d5f1988b686f3b3ea8cd7de5f244ca147c777769e798a9cd1", size = 1915040, upload-time = "2025-11-04T13:41:00.853Z" }, - { url = "https://files.pythonhosted.org/packages/84/a3/15a82ac7bd97992a82257f777b3583d3e84bdb06ba6858f745daa2ec8a85/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:506d766a8727beef16b7adaeb8ee6217c64fc813646b424d0804d67c16eddb66", size = 2063691, upload-time = "2025-11-04T13:41:03.504Z" }, - { url = "https://files.pythonhosted.org/packages/74/9b/0046701313c6ef08c0c1cf0e028c67c770a4e1275ca73131563c5f2a310a/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4819fa52133c9aa3c387b3328f25c1facc356491e6135b459f1de698ff64d869", size = 2213897, upload-time = "2025-11-04T13:41:05.804Z" }, - { url = "https://files.pythonhosted.org/packages/8a/cd/6bac76ecd1b27e75a95ca3a9a559c643b3afcd2dd62086d4b7a32a18b169/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2b761d210c9ea91feda40d25b4efe82a1707da2ef62901466a42492c028553a2", size = 2333302, upload-time = "2025-11-04T13:41:07.809Z" }, - { url = "https://files.pythonhosted.org/packages/4c/d2/ef2074dc020dd6e109611a8be4449b98cd25e1b9b8a303c2f0fca2f2bcf7/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:22f0fb8c1c583a3b6f24df2470833b40207e907b90c928cc8d3594b76f874375", size = 2064877, upload-time = "2025-11-04T13:41:09.827Z" }, - { url = "https://files.pythonhosted.org/packages/18/66/e9db17a9a763d72f03de903883c057b2592c09509ccfe468187f2a2eef29/pydantic_core-2.41.5-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2782c870e99878c634505236d81e5443092fba820f0373997ff75f90f68cd553", size = 2180680, upload-time = "2025-11-04T13:41:12.379Z" }, - { url = "https://files.pythonhosted.org/packages/d3/9e/3ce66cebb929f3ced22be85d4c2399b8e85b622db77dad36b73c5387f8f8/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:0177272f88ab8312479336e1d777f6b124537d47f2123f89cb37e0accea97f90", size = 2138960, upload-time = "2025-11-04T13:41:14.627Z" }, - { url = "https://files.pythonhosted.org/packages/a6/62/205a998f4327d2079326b01abee48e502ea739d174f0a89295c481a2272e/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:63510af5e38f8955b8ee5687740d6ebf7c2a0886d15a6d65c32814613681bc07", size = 2339102, upload-time = "2025-11-04T13:41:16.868Z" }, - { url = "https://files.pythonhosted.org/packages/3c/0d/f05e79471e889d74d3d88f5bd20d0ed189ad94c2423d81ff8d0000aab4ff/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:e56ba91f47764cc14f1daacd723e3e82d1a89d783f0f5afe9c364b8bb491ccdb", size = 2326039, upload-time = "2025-11-04T13:41:18.934Z" }, - { url = "https://files.pythonhosted.org/packages/ec/e1/e08a6208bb100da7e0c4b288eed624a703f4d129bde2da475721a80cab32/pydantic_core-2.41.5-cp314-cp314-win32.whl", hash = "sha256:aec5cf2fd867b4ff45b9959f8b20ea3993fc93e63c7363fe6851424c8a7e7c23", size = 1995126, upload-time = "2025-11-04T13:41:21.418Z" }, - { url = "https://files.pythonhosted.org/packages/48/5d/56ba7b24e9557f99c9237e29f5c09913c81eeb2f3217e40e922353668092/pydantic_core-2.41.5-cp314-cp314-win_amd64.whl", hash = "sha256:8e7c86f27c585ef37c35e56a96363ab8de4e549a95512445b85c96d3e2f7c1bf", size = 2015489, upload-time = "2025-11-04T13:41:24.076Z" }, - { url = "https://files.pythonhosted.org/packages/4e/bb/f7a190991ec9e3e0ba22e4993d8755bbc4a32925c0b5b42775c03e8148f9/pydantic_core-2.41.5-cp314-cp314-win_arm64.whl", hash = "sha256:e672ba74fbc2dc8eea59fb6d4aed6845e6905fc2a8afe93175d94a83ba2a01a0", size = 1977288, upload-time = "2025-11-04T13:41:26.33Z" }, - { url = "https://files.pythonhosted.org/packages/92/ed/77542d0c51538e32e15afe7899d79efce4b81eee631d99850edc2f5e9349/pydantic_core-2.41.5-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:8566def80554c3faa0e65ac30ab0932b9e3a5cd7f8323764303d468e5c37595a", size = 2120255, upload-time = "2025-11-04T13:41:28.569Z" }, - { url = "https://files.pythonhosted.org/packages/bb/3d/6913dde84d5be21e284439676168b28d8bbba5600d838b9dca99de0fad71/pydantic_core-2.41.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b80aa5095cd3109962a298ce14110ae16b8c1aece8b72f9dafe81cf597ad80b3", size = 1863760, upload-time = "2025-11-04T13:41:31.055Z" }, - { url = "https://files.pythonhosted.org/packages/5a/f0/e5e6b99d4191da102f2b0eb9687aaa7f5bea5d9964071a84effc3e40f997/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3006c3dd9ba34b0c094c544c6006cc79e87d8612999f1a5d43b769b89181f23c", size = 1878092, upload-time = "2025-11-04T13:41:33.21Z" }, - { url = "https://files.pythonhosted.org/packages/71/48/36fb760642d568925953bcc8116455513d6e34c4beaa37544118c36aba6d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:72f6c8b11857a856bcfa48c86f5368439f74453563f951e473514579d44aa612", size = 2053385, upload-time = "2025-11-04T13:41:35.508Z" }, - { url = "https://files.pythonhosted.org/packages/20/25/92dc684dd8eb75a234bc1c764b4210cf2646479d54b47bf46061657292a8/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5cb1b2f9742240e4bb26b652a5aeb840aa4b417c7748b6f8387927bc6e45e40d", size = 2218832, upload-time = "2025-11-04T13:41:37.732Z" }, - { url = "https://files.pythonhosted.org/packages/e2/09/f53e0b05023d3e30357d82eb35835d0f6340ca344720a4599cd663dca599/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bd3d54f38609ff308209bd43acea66061494157703364ae40c951f83ba99a1a9", size = 2327585, upload-time = "2025-11-04T13:41:40Z" }, - { url = "https://files.pythonhosted.org/packages/aa/4e/2ae1aa85d6af35a39b236b1b1641de73f5a6ac4d5a7509f77b814885760c/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2ff4321e56e879ee8d2a879501c8e469414d948f4aba74a2d4593184eb326660", size = 2041078, upload-time = "2025-11-04T13:41:42.323Z" }, - { url = "https://files.pythonhosted.org/packages/cd/13/2e215f17f0ef326fc72afe94776edb77525142c693767fc347ed6288728d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d0d2568a8c11bf8225044aa94409e21da0cb09dcdafe9ecd10250b2baad531a9", size = 2173914, upload-time = "2025-11-04T13:41:45.221Z" }, - { url = "https://files.pythonhosted.org/packages/02/7a/f999a6dcbcd0e5660bc348a3991c8915ce6599f4f2c6ac22f01d7a10816c/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:a39455728aabd58ceabb03c90e12f71fd30fa69615760a075b9fec596456ccc3", size = 2129560, upload-time = "2025-11-04T13:41:47.474Z" }, - { url = "https://files.pythonhosted.org/packages/3a/b1/6c990ac65e3b4c079a4fb9f5b05f5b013afa0f4ed6780a3dd236d2cbdc64/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:239edca560d05757817c13dc17c50766136d21f7cd0fac50295499ae24f90fdf", size = 2329244, upload-time = "2025-11-04T13:41:49.992Z" }, - { url = "https://files.pythonhosted.org/packages/d9/02/3c562f3a51afd4d88fff8dffb1771b30cfdfd79befd9883ee094f5b6c0d8/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:2a5e06546e19f24c6a96a129142a75cee553cc018ffee48a460059b1185f4470", size = 2331955, upload-time = "2025-11-04T13:41:54.079Z" }, - { url = "https://files.pythonhosted.org/packages/5c/96/5fb7d8c3c17bc8c62fdb031c47d77a1af698f1d7a406b0f79aaa1338f9ad/pydantic_core-2.41.5-cp314-cp314t-win32.whl", hash = "sha256:b4ececa40ac28afa90871c2cc2b9ffd2ff0bf749380fbdf57d165fd23da353aa", size = 1988906, upload-time = "2025-11-04T13:41:56.606Z" }, - { url = "https://files.pythonhosted.org/packages/22/ed/182129d83032702912c2e2d8bbe33c036f342cc735737064668585dac28f/pydantic_core-2.41.5-cp314-cp314t-win_amd64.whl", hash = "sha256:80aa89cad80b32a912a65332f64a4450ed00966111b6615ca6816153d3585a8c", size = 1981607, upload-time = "2025-11-04T13:41:58.889Z" }, - { url = "https://files.pythonhosted.org/packages/9f/ed/068e41660b832bb0b1aa5b58011dea2a3fe0ba7861ff38c4d4904c1c1a99/pydantic_core-2.41.5-cp314-cp314t-win_arm64.whl", hash = "sha256:35b44f37a3199f771c3eaa53051bc8a70cd7b54f333531c59e29fd4db5d15008", size = 1974769, upload-time = "2025-11-04T13:42:01.186Z" }, - { url = "https://files.pythonhosted.org/packages/09/32/59b0c7e63e277fa7911c2fc70ccfb45ce4b98991e7ef37110663437005af/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:7da7087d756b19037bc2c06edc6c170eeef3c3bafcb8f532ff17d64dc427adfd", size = 2110495, upload-time = "2025-11-04T13:42:49.689Z" }, - { url = "https://files.pythonhosted.org/packages/aa/81/05e400037eaf55ad400bcd318c05bb345b57e708887f07ddb2d20e3f0e98/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:aabf5777b5c8ca26f7824cb4a120a740c9588ed58df9b2d196ce92fba42ff8dc", size = 1915388, upload-time = "2025-11-04T13:42:52.215Z" }, - { url = "https://files.pythonhosted.org/packages/6e/0d/e3549b2399f71d56476b77dbf3cf8937cec5cd70536bdc0e374a421d0599/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c007fe8a43d43b3969e8469004e9845944f1a80e6acd47c150856bb87f230c56", size = 1942879, upload-time = "2025-11-04T13:42:56.483Z" }, - { url = "https://files.pythonhosted.org/packages/f7/07/34573da085946b6a313d7c42f82f16e8920bfd730665de2d11c0c37a74b5/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:76d0819de158cd855d1cbb8fcafdf6f5cf1eb8e470abe056d5d161106e38062b", size = 2139017, upload-time = "2025-11-04T13:42:59.471Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/43/bb/4742f05b739b2478459bb16fa8470549518c802e06ddcf3f106c5081315e/pydantic_core-2.46.2.tar.gz", hash = "sha256:37bb079f9ee3f1a519392b73fda2a96379b31f2013c6b467fe693e7f2987f596", size = 471269, upload-time = "2026-04-17T09:10:07.017Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/97/ec/2fafa4c86f5d2a69372c7cddef30925fd0e370b1efaf556609c1a0196d8a/pydantic_core-2.46.2-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:ea1ad8c89da31512fe2d249cf0638fb666925bda341901541bc5f3311c6fcc9e", size = 2101729, upload-time = "2026-04-17T09:12:30.042Z" }, + { url = "https://files.pythonhosted.org/packages/cf/55/be5386c2c4b49af346e8a26b748194ff25757bbb6cf544130854e997af7a/pydantic_core-2.46.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b308da17b92481e0587244631c5529e5d91d04cb2b08194825627b1eca28e21e", size = 1951546, upload-time = "2026-04-17T09:10:10.585Z" }, + { url = "https://files.pythonhosted.org/packages/29/92/89e273a055ce440e6636c756379af35ad86da9d336a560049c3ba5e41c80/pydantic_core-2.46.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d333a50bdd814a917d8d6a7ee35ba2395d53ddaa882613bc24e54a9d8b129095", size = 1976178, upload-time = "2026-04-17T09:11:49.619Z" }, + { url = "https://files.pythonhosted.org/packages/91/b3/e4664469cf70c0cb0f7b2f5719d64e5968bb6f38217042c2afa3d3c4ba17/pydantic_core-2.46.2-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1d00b99590c5bd1fabbc5d28b170923e32c1b1071b1f1de1851a4d14d89eb192", size = 2051697, upload-time = "2026-04-17T09:12:04.917Z" }, + { url = "https://files.pythonhosted.org/packages/98/58/dbf68213ee06ce51cdd6d8c95f97980e646858c45bd96bd2dfb40433be73/pydantic_core-2.46.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9f0e686960ffe9e65066395af856ac2d52c159043144433602c50c221d81c1ba", size = 2233160, upload-time = "2026-04-17T09:12:00.956Z" }, + { url = "https://files.pythonhosted.org/packages/f5/d3/68092aa0ee6c60ff4de4740eb82db3d4ce338ec89b3cecb978c532472f12/pydantic_core-2.46.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2d1128da41c9cb474e0a4701f9c363ec645c9d1a02229904c76bf4e0a194fde2", size = 2298398, upload-time = "2026-04-17T09:10:29.694Z" }, + { url = "https://files.pythonhosted.org/packages/e4/51/5d6155eb737db55b0ad354ca5f333ef009f75feb67df2d79a84bace45af6/pydantic_core-2.46.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:48649cf2d8c358d79586e9fb2f8235902fcaa2d969ec1c5301f2d1873b2f8321", size = 2094058, upload-time = "2026-04-17T09:12:10.995Z" }, + { url = "https://files.pythonhosted.org/packages/6b/f3/eb4a986197d71319430464ff181226c95adc8f06d932189b158bae5a82f5/pydantic_core-2.46.2-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:b902f0fc7c2cf503865a05718b68147c6cd5d0a3867af38c527be574a9fa6e9d", size = 2130388, upload-time = "2026-04-17T09:12:41.159Z" }, + { url = "https://files.pythonhosted.org/packages/56/00/44a9c4fe6d0f64b5786d6a8c649d6f0e34ba6c89b3663add1066e54451a2/pydantic_core-2.46.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e80011f808b03d1d87a8f1e76ae3da19a18eb706c823e17981dcf1fae43744fc", size = 2184245, upload-time = "2026-04-17T09:12:36.532Z" }, + { url = "https://files.pythonhosted.org/packages/78/6b/685b98a834d5e3d1c34a1bde1627525559dd223b75075bc7490cdb24eb33/pydantic_core-2.46.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:b839d5c802e31348b949b6473f8190cddbf7d47475856d8ac995a373ee16ec59", size = 2186842, upload-time = "2026-04-17T09:13:04.054Z" }, + { url = "https://files.pythonhosted.org/packages/22/64/caa2f5a2ac8b6113adaa410ccdf31ba7f54897a6e54cd0d726fc7e780c88/pydantic_core-2.46.2-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:c6b1064f3f9cf9072e1d59dd2936f9f3b668bec1c37039708c9222db703c0d5b", size = 2336066, upload-time = "2026-04-17T09:12:13.006Z" }, + { url = "https://files.pythonhosted.org/packages/ee/f9/7d2701bf82945b5b9e7df8347be97ef6a36da2846bfe5b4afec299ffe27b/pydantic_core-2.46.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:37a68e6f2ac95578ce3c0564802404b27b24988649616e556c07e77111ed3f1d", size = 2363691, upload-time = "2026-04-17T09:13:42.972Z" }, + { url = "https://files.pythonhosted.org/packages/3b/65/0dab11574101522941055109419db3cc09db871643dc3fc74e2413215e5b/pydantic_core-2.46.2-cp312-cp312-win32.whl", hash = "sha256:d9ffa75a7ef4b97d6e5e205fabd4304ef01fec09e6f1bdde04b9ad1b07d20289", size = 1958801, upload-time = "2026-04-17T09:11:31.981Z" }, + { url = "https://files.pythonhosted.org/packages/13/2b/df84baa609c676f6450b8ecad44ea59146c805e3371b7b52443c0899f989/pydantic_core-2.46.2-cp312-cp312-win_amd64.whl", hash = "sha256:0551f2d2ddb68af5a00e26497f8025c538f73ef3cb698f8e5a487042cd2792a8", size = 2072634, upload-time = "2026-04-17T09:11:02.407Z" }, + { url = "https://files.pythonhosted.org/packages/d1/4e/e1ce8029fc438086a946739bf9d596f70ff470aad4a8345555920618cabe/pydantic_core-2.46.2-cp312-cp312-win_arm64.whl", hash = "sha256:83aef30f106edcc21a6a4cc44b82d3169a1dbe255508db788e778f3c804d3583", size = 2026188, upload-time = "2026-04-17T09:13:11.083Z" }, + { url = "https://files.pythonhosted.org/packages/07/2b/662e48254479a2d3450ba24b1e25061108b64339794232f503990c519144/pydantic_core-2.46.2-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:d26e9eea3715008a09a74585fe9becd0c67fbb145dc4df9756d597d7230a652c", size = 2101762, upload-time = "2026-04-17T09:10:13.87Z" }, + { url = "https://files.pythonhosted.org/packages/73/ab/bafd7c7503757ccc8ec4d1911e106fe474c629443648c51a88f08b0fe91a/pydantic_core-2.46.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:48b36e3235140510dc7861f0cd58b714b1cdd3d48f75e10ce52e69866b746f10", size = 1951814, upload-time = "2026-04-17T09:12:25.934Z" }, + { url = "https://files.pythonhosted.org/packages/92/cc/7549c2d57ba2e9a42caa5861a2d398dbe31c02c6aca783253ace59ce84f8/pydantic_core-2.46.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:36b1f99dc451f1a3981f236151465bcf995bbe712d0727c9f7b236fe228a8133", size = 1977329, upload-time = "2026-04-17T09:13:37.605Z" }, + { url = "https://files.pythonhosted.org/packages/18/50/7ed4a8a0d478a4dca8f0134a5efa7193f03cc8520dd4c9509339fb2e5002/pydantic_core-2.46.2-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8641c8d535c2d95b45c2e19b646ecd23ebba35d461e0ae48a3498277006250ab", size = 2051832, upload-time = "2026-04-17T09:12:49.771Z" }, + { url = "https://files.pythonhosted.org/packages/dc/16/bb35b193741c0298ddc5f5e4234269efdc0c65e2bcd198aa0de9b68845e4/pydantic_core-2.46.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:20fb194788a0a50993e87013e693494ba183a2af5b44e99cf060bbae10912b11", size = 2233127, upload-time = "2026-04-17T09:11:04.449Z" }, + { url = "https://files.pythonhosted.org/packages/91/a5/98f4b637149185addea19e1785ea20c373cca31b202f589111d8209d9873/pydantic_core-2.46.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9262d11d0cd11ee3303a95156939402bed6cedfe5ed0e331b95a283a4da6eb8b", size = 2297418, upload-time = "2026-04-17T09:11:25.929Z" }, + { url = "https://files.pythonhosted.org/packages/36/90/93a5d21990b152da7b7507b7fddb0b935f6a0984d57ac3ec45a6e17777a2/pydantic_core-2.46.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ac204542736aa295fa25f713b7fad6fc50b46ab7764d16087575c85f085174f3", size = 2093735, upload-time = "2026-04-17T09:12:06.908Z" }, + { url = "https://files.pythonhosted.org/packages/14/22/b8b1ffdddf08b4e84380bcb67f41dbbf4c171377c1d36fc6290794bb2094/pydantic_core-2.46.2-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:9a7c43a0584742dface3ca0daf6f719d46c1ac2f87cf080050f9ae052c75e1b2", size = 2127570, upload-time = "2026-04-17T09:11:53.906Z" }, + { url = "https://files.pythonhosted.org/packages/c6/26/e60d72b4e2d0ce1fa811044a974412ac1c567fe067d97b3e6b290530786e/pydantic_core-2.46.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fd05e1edb6a90ad446fa268ab09e59202766b837597b714b2492db11ee87fab9", size = 2183524, upload-time = "2026-04-17T09:11:30.092Z" }, + { url = "https://files.pythonhosted.org/packages/35/32/36bec7584a1eefb17dec4dfa1c946d3fe4440f466c5705b8adfda69c9a9f/pydantic_core-2.46.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:91155b110788b5501abc7ea954f1d08606219e4e28e3c73a94124307c06efb80", size = 2185408, upload-time = "2026-04-17T09:10:57.228Z" }, + { url = "https://files.pythonhosted.org/packages/fc/d6/1a5689d873620efd67d6b163db0c444c056adb0849b5bc33e2b9f09665a6/pydantic_core-2.46.2-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:e4e2c72a529fa03ff228be1d2b76944013f428220b764e03cc50ada67e17a42c", size = 2335171, upload-time = "2026-04-17T09:11:43.369Z" }, + { url = "https://files.pythonhosted.org/packages/3e/8e/675104802abe8ef502b072050ee5f2e915251aa1a3af87e1015ce31ec42d/pydantic_core-2.46.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:56291ec1a11c3499890c99a8fd9053b47e60fe837a77ec72c0671b1b8b3dce24", size = 2362743, upload-time = "2026-04-17T09:10:18.333Z" }, + { url = "https://files.pythonhosted.org/packages/8d/bc/86c5dde4fa6e24467680eef5047da3c1a19be0a527d0d8e14aa76b39307c/pydantic_core-2.46.2-cp313-cp313-win32.whl", hash = "sha256:b50f9c5f826ddca1246f055148df939f5f3f2d0d96db73de28e2233f22210d4c", size = 1958074, upload-time = "2026-04-17T09:12:38.622Z" }, + { url = "https://files.pythonhosted.org/packages/2a/97/2537e8c1282b2c4eb062580c0d7a4339e10b072b803d1ee0b7f1f0a5c22c/pydantic_core-2.46.2-cp313-cp313-win_amd64.whl", hash = "sha256:251a57788823230ca8cbc99e6245d1a2ed6e180ec4864f251c94182c580c7f2e", size = 2071741, upload-time = "2026-04-17T09:13:32.405Z" }, + { url = "https://files.pythonhosted.org/packages/da/aa/2ee75798706f9dbc4e76dbe59e41a396c5c311e3d6223b9cf6a5fa7780be/pydantic_core-2.46.2-cp313-cp313-win_arm64.whl", hash = "sha256:315d32d1a71494d6b4e1e14a9fa7a4329597b4c4340088ad7e1a9dafbeed92a9", size = 2025955, upload-time = "2026-04-17T09:10:15.567Z" }, + { url = "https://files.pythonhosted.org/packages/d0/96/a50ccb6b539ae780f73cea74905468777680e30c6c3bdf714b9d4c116ea0/pydantic_core-2.46.2-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:4f59b45f3ef8650c0c736a57f59031d47ed9df4c0a64e83796849d7d14863a2d", size = 2097111, upload-time = "2026-04-17T09:10:49.617Z" }, + { url = "https://files.pythonhosted.org/packages/34/5f/fdead7b3afa822ab6e5a18ee0ecffd54937de1877c01ed13a342e0fb3f07/pydantic_core-2.46.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3a075a29ebef752784a91532a1a85be6b234ccffec0a9d7978a92696387c3da6", size = 1951904, upload-time = "2026-04-17T09:12:32.062Z" }, + { url = "https://files.pythonhosted.org/packages/95/e0/1c5d547e550cdab1bec737492aa08865337af6fe7fc9b96f7f45f17d9519/pydantic_core-2.46.2-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d12d786e30c04a9d307c5d7080bf720d9bac7f1668191d8e37633a9562749e2", size = 1978667, upload-time = "2026-04-17T09:11:35.589Z" }, + { url = "https://files.pythonhosted.org/packages/0e/cb/665ce629e218c8228302cb94beff4f6531082a2c87d3ecc3d5e63a26f392/pydantic_core-2.46.2-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0d5e6d6343b0b5dcacb3503b5de90022968da8ed0ab9ab39d3eda71c20cbf84e", size = 2046721, upload-time = "2026-04-17T09:11:47.725Z" }, + { url = "https://files.pythonhosted.org/packages/77/e9/6cb2cf60f54c1472bbdfce19d957553b43dbba79d1d7b2930a195c594785/pydantic_core-2.46.2-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:233eebac0999b6b9ba76eb56f3ec8fce13164aa16b6d2225a36a79e0f95b5973", size = 2228483, upload-time = "2026-04-17T09:12:08.837Z" }, + { url = "https://files.pythonhosted.org/packages/0d/2a/93e018dd5571f781ebaeda8c0cf65398489d5bee9b1f484df0b6149b43b9/pydantic_core-2.46.2-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9cc0eee720dd2f14f3b7c349469402b99ad81a174ab49d3533974529e9d93992", size = 2294663, upload-time = "2026-04-17T09:12:52.053Z" }, + { url = "https://files.pythonhosted.org/packages/5e/4f/49e57ca55c770c93d9bb046666a54949b42e3c9099a0c5fe94557873fe30/pydantic_core-2.46.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:83ee76bf2c9910513dbc19e7d82367131fa7508dedd6186a462393071cc11059", size = 2098742, upload-time = "2026-04-17T09:13:45.472Z" }, + { url = "https://files.pythonhosted.org/packages/c6/b0/6e46b5cd3332af665f794b8cdeea206618a8630bd9e7bcc36864518fce81/pydantic_core-2.46.2-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:d61db38eb4ee5192f0c261b7f2d38e420b554df8912245e3546aee5c45e2fd78", size = 2125922, upload-time = "2026-04-17T09:12:54.304Z" }, + { url = "https://files.pythonhosted.org/packages/06/d1/40850c81585be443a2abfdf7f795f8fae831baf8e2f9b2133c8246ac671c/pydantic_core-2.46.2-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8f09a713d17bcd55da8ab02ebd9110c5246a49c44182af213b5212800af8bc83", size = 2183000, upload-time = "2026-04-17T09:10:59.027Z" }, + { url = "https://files.pythonhosted.org/packages/04/af/8493d7dfa03ebb7866909e577c6aa65ea0de7377b86023cc51d0c8e11db3/pydantic_core-2.46.2-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:30cacc5fb696e64b8ef6fd31d9549d394dd7d52760db072eecb98e37e3af1677", size = 2180335, upload-time = "2026-04-17T09:12:57.01Z" }, + { url = "https://files.pythonhosted.org/packages/72/5b/1f6a344c4ffdf284da41c6067b82d5ebcbd11ce1b515ae4b662d4adb6f61/pydantic_core-2.46.2-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:7ccfb105fcfe91a22bbb5563ad3dc124bc1aa75bfd2e53a780ab05f78cdf6108", size = 2330002, upload-time = "2026-04-17T09:12:02.958Z" }, + { url = "https://files.pythonhosted.org/packages/25/ff/9a694126c12d6d2f48a0cafa6f8eef88ef0d8825600e18d03ff2e896c3b2/pydantic_core-2.46.2-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:13ffef637dc8370c249e5b26bd18e9a80a4fca3d809618c44e18ec834a7ca7a8", size = 2359920, upload-time = "2026-04-17T09:10:27.764Z" }, + { url = "https://files.pythonhosted.org/packages/51/c8/3a35c763d68a9cb2675eb10ef242cf66c5d4701b28ae12e688d67d2c180e/pydantic_core-2.46.2-cp314-cp314-win32.whl", hash = "sha256:1b0ab6d756ca2704a938e6c31b53f290c2f9c10d3914235410302a149de1a83e", size = 1953701, upload-time = "2026-04-17T09:13:30.021Z" }, + { url = "https://files.pythonhosted.org/packages/1a/6a/f2726a780365f7dfd89d62036f984f7acb99978c60c5e1fa7c0cb898ed11/pydantic_core-2.46.2-cp314-cp314-win_amd64.whl", hash = "sha256:99ebade8c9ada4df975372d8dd25883daa0e379a05f1cd0c99aa0c04368d01a6", size = 2071867, upload-time = "2026-04-17T09:10:39.205Z" }, + { url = "https://files.pythonhosted.org/packages/e1/79/76baacb9feba3d7c399b245ca1a29c74ea0db04ea693811374827eec2290/pydantic_core-2.46.2-cp314-cp314-win_arm64.whl", hash = "sha256:de87422197cf7f83db91d89c86a21660d749b3cd76cd8a45d115b8e675670f02", size = 2017252, upload-time = "2026-04-17T09:10:26.175Z" }, + { url = "https://files.pythonhosted.org/packages/f1/3b/77c26938f817668d9ad9bab1a905cb23f11d9a3d4bf724d429b3e55a8eaf/pydantic_core-2.46.2-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:236f22b4a206b5b61db955396b7cf9e2e1ff77f372efe9570128ccfcd6a525eb", size = 2094545, upload-time = "2026-04-17T09:12:19.339Z" }, + { url = "https://files.pythonhosted.org/packages/fe/de/42c13f590e3c260966aa49bcdb1674774f975467c49abd51191e502bea28/pydantic_core-2.46.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c2012f64d2cd7cca50f49f22445aa5a88691ac2b4498ee0a9a977f8ca4f7289f", size = 1933953, upload-time = "2026-04-17T09:09:55.889Z" }, + { url = "https://files.pythonhosted.org/packages/4e/84/ebe3ebb3e2d8db656937cfa6f97f544cb7132f2307a4a7dfdcd0ea102a12/pydantic_core-2.46.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d07d6c63106d3a9c9a333e2636f9c82c703b1a9e3b079299e58747964e4fdb72", size = 1974435, upload-time = "2026-04-17T09:10:12.371Z" }, + { url = "https://files.pythonhosted.org/packages/b9/15/0bf51ca6709477cd4ef86148b6d7844f3308f029eac361dd0383f1e17b1a/pydantic_core-2.46.2-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c326a2b4b85e959d9a1fc3a11f32f84611b6ec07c053e1828a860edf8d068208", size = 2031113, upload-time = "2026-04-17T09:10:00.752Z" }, + { url = "https://files.pythonhosted.org/packages/02/ae/b7b5af9b79db036d9e61a44c481c17a213dc8fc4b8b71fe6875a72fc778b/pydantic_core-2.46.2-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ac8a65e798f2462552c00d2e013d532c94d646729dda98458beaf51f9ec7b120", size = 2236325, upload-time = "2026-04-17T09:10:33.227Z" }, + { url = "https://files.pythonhosted.org/packages/a6/ae/ecef7477b5a03d4a499708f7e75d2836452ebb70b776c2d64612b334f57a/pydantic_core-2.46.2-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5a3c2bc1cc8164bedbc160b7bb1e8cc1e8b9c27f69ae4f9ae2b976cdae02b2dd", size = 2278135, upload-time = "2026-04-17T09:10:23.287Z" }, + { url = "https://files.pythonhosted.org/packages/db/e4/2f9d82faa47af6c39fc3f120145fd915971e1e0cb6b55b494fad9fdf8275/pydantic_core-2.46.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e69aa5e10b7e8b1bb4a6888650fd12fcbf11d396ca11d4a44de1450875702830", size = 2109071, upload-time = "2026-04-17T09:11:06.149Z" }, + { url = "https://files.pythonhosted.org/packages/f1/9c/677cf10873fbd0b116575ab7b97c90482b21564f8a8040beb18edef7a577/pydantic_core-2.46.2-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:4e6df5c3301e65fb42bc5338bf9a1027a02b0a31dc7f54c33775229af474daf0", size = 2106028, upload-time = "2026-04-17T09:10:51.525Z" }, + { url = "https://files.pythonhosted.org/packages/d6/53/6a06183544daba51c059123a2064a99039df25f115a06bdb26f2ea177038/pydantic_core-2.46.2-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2c2f6e32548ac8d559b47944effcf8ae4d81c161f6b6c885edc53bc08b8f192d", size = 2164816, upload-time = "2026-04-17T09:11:56.187Z" }, + { url = "https://files.pythonhosted.org/packages/57/6f/10fcdd9e3eca66fc828eef0f6f5850f2dd3bca2c59e6e041fb8bc3da39be/pydantic_core-2.46.2-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:b089a81c58e6ea0485562bbbbbca4f65c0549521606d5ef27fba217aac9b665a", size = 2166130, upload-time = "2026-04-17T09:10:03.804Z" }, + { url = "https://files.pythonhosted.org/packages/29/83/92d3fd0e0156cad2e3cb5c26de73794af78ac9fa0c22ab666e566dd67061/pydantic_core-2.46.2-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:7f700a6d6f64112ae9193709b84303bbab84424ad4b47d0253301aabce9dfc70", size = 2316605, upload-time = "2026-04-17T09:12:45.249Z" }, + { url = "https://files.pythonhosted.org/packages/97/f1/facffdb970981068219582e499b8d0871ed163ffcc6b347de5c412669e4c/pydantic_core-2.46.2-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:67db6814beaa5fefe91101ec7eb9efda613795767be96f7cf58b1ca8c9ca9972", size = 2358385, upload-time = "2026-04-17T09:09:54.657Z" }, + { url = "https://files.pythonhosted.org/packages/8b/a1/b8160b2f22b2199467bc68581a4ed380643c16b348a27d6165c6c242d694/pydantic_core-2.46.2-cp314-cp314t-win32.whl", hash = "sha256:32fbc7447be8e3be99bf7869f7066308f16be55b61f9882c2cefc7931f5c7664", size = 1942373, upload-time = "2026-04-17T09:12:59.594Z" }, + { url = "https://files.pythonhosted.org/packages/0d/90/db89acabe5b150e11d1b59fe3d947dda2ef6abbfef5c82f056ff63802f5d/pydantic_core-2.46.2-cp314-cp314t-win_amd64.whl", hash = "sha256:b317a2b97019c0b95ce99f4f901ae383f40132da6706cdf1731066a73394c25c", size = 2052078, upload-time = "2026-04-17T09:10:19.96Z" }, + { url = "https://files.pythonhosted.org/packages/97/32/e19b83ceb07a3f1bb21798407790bbc9a31740158fd132b94139cb84e16c/pydantic_core-2.46.2-cp314-cp314t-win_arm64.whl", hash = "sha256:7dcb9d40930dfad7ab6b20bcc6ca9d2b030b0f347a0cd9909b54bd53ead521b1", size = 2016941, upload-time = "2026-04-17T09:12:34.447Z" }, + { url = "https://files.pythonhosted.org/packages/f3/d2/66c146f421178641bda880b0267c0d57dd84f5fec9ecc8e46be17b480742/pydantic_core-2.46.2-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:e9fcabd1857492b5bf16f90258babde50f618f55d046b1309972da2396321ff9", size = 2091621, upload-time = "2026-04-17T09:12:47.501Z" }, + { url = "https://files.pythonhosted.org/packages/ee/b2/c28419aa9fc8055f4ac8e801d1d11c6357351bfa4321ed9bafab3eb98087/pydantic_core-2.46.2-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:fb3ec2c7f54c07b30d89983ce78dc32c37dd06a972448b8716d609493802d628", size = 1937059, upload-time = "2026-04-17T09:10:53.554Z" }, + { url = "https://files.pythonhosted.org/packages/30/ce/cd0824a2db213dc17113291b7a09b9b0ccd9fbf97daa4b81548703341baf/pydantic_core-2.46.2-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:130a6c837d819ef33e8c2bf702ed2c3429237ea69807f1140943d6f4bdaf52fa", size = 1997278, upload-time = "2026-04-17T09:12:23.784Z" }, + { url = "https://files.pythonhosted.org/packages/c9/69/47283fe3c0c967d3e9e9cd6c42b70907610c8a6f8d6e8381f1bb55f8006c/pydantic_core-2.46.2-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c2e25417cec5cd9bddb151e33cb08c50160f317479ecc02b22a95ec18f8fe004", size = 2147096, upload-time = "2026-04-17T09:12:43.124Z" }, ] [[package]] @@ -640,15 +644,15 @@ wheels = [ [[package]] name = "rich" -version = "14.3.3" +version = "15.0.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "markdown-it-py" }, { name = "pygments" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/b3/c6/f3b320c27991c46f43ee9d856302c70dc2d0fb2dba4842ff739d5f46b393/rich-14.3.3.tar.gz", hash = "sha256:b8daa0b9e4eef54dd8cf7c86c03713f53241884e814f4e2f5fb342fe520f639b", size = 230582, upload-time = "2026-02-19T17:23:12.474Z" } +sdist = { url = "https://files.pythonhosted.org/packages/c0/8f/0722ca900cc807c13a6a0c696dacf35430f72e0ec571c4275d2371fca3e9/rich-15.0.0.tar.gz", hash = "sha256:edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36", size = 230680, upload-time = "2026-04-12T08:24:00.75Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/14/25/b208c5683343959b670dc001595f2f3737e051da617f66c31f7c4fa93abc/rich-14.3.3-py3-none-any.whl", hash = "sha256:793431c1f8619afa7d3b52b2cdec859562b950ea0d4b6b505397612db8d5362d", size = 310458, upload-time = "2026-02-19T17:23:13.732Z" }, + { 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]] @@ -687,15 +691,15 @@ wheels = [ [[package]] name = "starlette" -version = "0.52.1" +version = "1.0.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "anyio" }, { name = "typing-extensions", marker = "python_full_version < '3.13'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/c4/68/79977123bb7be889ad680d79a40f339082c1978b5cfcf62c2d8d196873ac/starlette-0.52.1.tar.gz", hash = "sha256:834edd1b0a23167694292e94f597773bc3f89f362be6effee198165a35d62933", size = 2653702, upload-time = "2026-01-18T13:34:11.062Z" } +sdist = { url = "https://files.pythonhosted.org/packages/81/69/17425771797c36cded50b7fe44e850315d039f28b15901ab44839e70b593/starlette-1.0.0.tar.gz", hash = "sha256:6a4beaf1f81bb472fd19ea9b918b50dc3a77a6f2e190a12954b25e6ed5eea149", size = 2655289, upload-time = "2026-03-22T18:29:46.779Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/81/0d/13d1d239a25cbfb19e740db83143e95c772a1fe10202dda4b76792b114dd/starlette-0.52.1-py3-none-any.whl", hash = "sha256:0029d43eb3d273bc4f83a08720b4912ea4b071087a3b48db01b7c839f7954d74", size = 74272, upload-time = "2026-01-18T13:34:09.188Z" }, + { url = "https://files.pythonhosted.org/packages/0b/c9/584bc9651441b4ba60cc4d557d8a547b5aff901af35bda3a4ee30c819b82/starlette-1.0.0-py3-none-any.whl", hash = "sha256:d3ec55e0bb321692d275455ddfd3df75fff145d009685eb40dc91fc66b03d38b", size = 72651, upload-time = "2026-03-22T18:29:45.111Z" }, ] [[package]] @@ -736,15 +740,15 @@ wheels = [ [[package]] name = "uvicorn" -version = "0.41.0" +version = "0.44.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "click" }, { name = "h11" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/32/ce/eeb58ae4ac36fe09e3842eb02e0eb676bf2c53ae062b98f1b2531673efdd/uvicorn-0.41.0.tar.gz", hash = "sha256:09d11cf7008da33113824ee5a1c6422d89fbc2ff476540d69a34c87fab8b571a", size = 82633, upload-time = "2026-02-16T23:07:24.1Z" } +sdist = { url = "https://files.pythonhosted.org/packages/5e/da/6eee1ff8b6cbeed47eeb5229749168e81eb4b7b999a1a15a7176e51410c9/uvicorn-0.44.0.tar.gz", hash = "sha256:6c942071b68f07e178264b9152f1f16dfac5da85880c4ce06366a96d70d4f31e", size = 86947, upload-time = "2026-04-06T09:23:22.826Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/83/e4/d04a086285c20886c0daad0e026f250869201013d18f81d9ff5eada73a88/uvicorn-0.41.0-py3-none-any.whl", hash = "sha256:29e35b1d2c36a04b9e180d4007ede3bcb32a85fbdfd6c6aeb3f26839de088187", size = 68783, upload-time = "2026-02-16T23:07:22.357Z" }, + { url = "https://files.pythonhosted.org/packages/b7/23/a5bbd9600dd607411fa644c06ff4951bec3a4d82c4b852374024359c19c0/uvicorn-0.44.0-py3-none-any.whl", hash = "sha256:ce937c99a2cc70279556967274414c087888e8cec9f9c94644dfca11bd3ced89", size = 69425, upload-time = "2026-04-06T09:23:21.524Z" }, ] [[package]] From 96e6069dd7e2f3792081b915e11eea3e52c3a85f Mon Sep 17 00:00:00 2001 From: JeyBee Date: Sun, 19 Apr 2026 20:49:59 +0200 Subject: [PATCH 2/9] refactor: drop --connection-id flag, use PIPEGATE_CONNECTION_ID env var only --- pipegate/auth.py | 4 ++-- pipegate/cli.py | 11 ++--------- tests/test_auth.py | 30 ++++++++++++++---------------- tests/test_cli.py | 37 ++++++++++++------------------------- 4 files changed, 30 insertions(+), 52 deletions(-) diff --git a/pipegate/auth.py b/pipegate/auth.py index 4a51b2a..1b411bf 100644 --- a/pipegate/auth.py +++ b/pipegate/auth.py @@ -8,9 +8,9 @@ from .schemas import JWTPayload, Settings -def generate_token(connection_id: str | None, settings: Settings) -> tuple[str, str]: +def generate_token(settings: Settings) -> tuple[str, str]: """Create a connection ID and signed JWT. Returns (connection_id, bearer_token).""" - cid = connection_id or uuid.uuid4().hex + cid = settings.connection_id or uuid.uuid4().hex payload = JWTPayload( sub=cid, exp=int((datetime.now(UTC) + timedelta(days=21)).timestamp()), diff --git a/pipegate/cli.py b/pipegate/cli.py index 5068e9e..8dad5c9 100644 --- a/pipegate/cli.py +++ b/pipegate/cli.py @@ -14,17 +14,10 @@ @app.command("token") -def token_cmd( - connection_id: str | None = typer.Option( - None, - "--connection-id", - "-c", - help="Pin a specific connection ID (default: random UUID).", - ), -) -> None: +def token_cmd() -> None: """Generate a JWT bearer token for a tunnel connection.""" settings = Settings() - cid, token = generate_token(connection_id, settings) + cid, token = generate_token(settings) typer.echo(f"Connection-id: {cid}") typer.echo(f"JWT Bearer: {token}") diff --git a/tests/test_auth.py b/tests/test_auth.py index fb9e3e0..d6ac156 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -1,5 +1,6 @@ from __future__ import annotations +import time from datetime import timedelta import jwt @@ -42,36 +43,33 @@ def test_empty_token(self, settings: Settings) -> None: class TestGenerateToken: def test_returns_tuple(self, settings: Settings) -> None: - cid, token = generate_token(None, settings) + cid, token = generate_token(settings) assert isinstance(cid, str) assert isinstance(token, str) def test_generated_token_is_valid(self, settings: Settings) -> None: - cid, token = generate_token(None, settings) + cid, token = generate_token(settings) payload = verify_token(token, settings) assert payload.sub == cid - def test_pinned_connection_id(self, settings: Settings) -> None: - cid, token = generate_token("myconn", settings) - assert cid == "myconn" - payload = verify_token(token, settings) - assert payload.sub == "myconn" + def test_uses_pinned_connection_id(self, settings: Settings, monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.setenv("PIPEGATE_CONNECTION_ID", "pinned-id") + s = Settings() + cid, token = generate_token(s) + assert cid == "pinned-id" + assert verify_token(token, s).sub == "pinned-id" - def test_random_connection_id_when_none(self, settings: Settings) -> None: - cid1, _ = generate_token(None, settings) - cid2, _ = generate_token(None, settings) + def test_random_connection_id_when_unset(self, settings: Settings) -> None: + cid1, _ = generate_token(settings) + cid2, _ = generate_token(settings) assert cid1 != cid2 def test_token_expires_in_21_days(self, settings: Settings) -> None: - import time - - _, token = generate_token(None, settings) + _, token = generate_token(settings) decoded = jwt.decode( token, settings.jwt_secret.get_secret_value(), algorithms=settings.jwt_algorithms, ) - now = int(time.time()) days_21 = 21 * 24 * 3600 - # Allow ±60s for test execution time - assert abs(decoded["exp"] - (now + days_21)) < 60 + assert abs(decoded["exp"] - (int(time.time()) + days_21)) < 60 diff --git a/tests/test_cli.py b/tests/test_cli.py index 8e7e836..46f4ad9 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -3,11 +3,10 @@ import os from unittest.mock import patch +import jwt as pyjwt from typer.testing import CliRunner -from pipegate.auth import verify_token from pipegate.cli import app -from pipegate.schemas import Settings from .conftest import JWT_ALGORITHM, JWT_SECRET @@ -29,37 +28,25 @@ def test_output_has_connection_id_and_bearer(self) -> None: assert "Connection-id:" in result.output assert "JWT Bearer:" in result.output - def test_pinned_connection_id(self) -> None: - result = runner.invoke(app, ["token", "--connection-id", "myconn123"], env=ENV) - assert result.exit_code == 0 - assert "Connection-id: myconn123" in result.output + def test_random_ids_differ(self) -> None: + r1 = runner.invoke(app, ["token"], env=ENV) + r2 = runner.invoke(app, ["token"], env=ENV) + id1 = next(l for l in r1.output.splitlines() if "Connection-id:" in l) + id2 = next(l for l in r2.output.splitlines() if "Connection-id:" in l) + assert id1 != id2 - def test_short_flag_connection_id(self) -> None: - result = runner.invoke(app, ["token", "-c", "short123"], env=ENV) - assert result.exit_code == 0 - assert "Connection-id: short123" in result.output + def test_pinned_via_env_var(self) -> None: + result = runner.invoke(app, ["token"], env={**ENV, "PIPEGATE_CONNECTION_ID": "pinned"}) + assert "Connection-id: pinned" in result.output def test_generated_token_is_verifiable(self) -> None: - result = runner.invoke(app, ["token", "--connection-id", "verifyme"], env=ENV) + result = runner.invoke(app, ["token"], env={**ENV, "PIPEGATE_CONNECTION_ID": "verifyme"}) assert result.exit_code == 0 - - import jwt as pyjwt - - token_line = [l for l in result.output.splitlines() if "JWT Bearer:" in l][0] - token = token_line.split("JWT Bearer:")[1].strip() - + token = next(l for l in result.output.splitlines() if "JWT Bearer:" in l).split("JWT Bearer:")[1].strip() decoded = pyjwt.decode(token, JWT_SECRET, algorithms=[JWT_ALGORITHM]) assert decoded["sub"] == "verifyme" - def test_random_ids_differ(self) -> None: - r1 = runner.invoke(app, ["token"], env=ENV) - r2 = runner.invoke(app, ["token"], env=ENV) - id1 = [l for l in r1.output.splitlines() if "Connection-id:" in l][0] - id2 = [l for l in r2.output.splitlines() if "Connection-id:" in l][0] - assert id1 != id2 - def test_missing_jwt_secret_exits_nonzero(self) -> None: - # Remove PIPEGATE_JWT_SECRET from the actual environment (autouse fixture set it) clean = {k: v for k, v in os.environ.items() if k != "PIPEGATE_JWT_SECRET"} with patch.dict(os.environ, clean, clear=True): result = runner.invoke(app, ["token"]) From 3f229e65520101e90b979b3d0c2e781a700e6f6b Mon Sep 17 00:00:00 2001 From: JeyBee Date: Sun, 19 Apr 2026 20:54:49 +0200 Subject: [PATCH 3/9] refactor: replace _get_or_create_queue helper with setdefault --- pipegate/server.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/pipegate/server.py b/pipegate/server.py index 243c251..c9c7543 100644 --- a/pipegate/server.py +++ b/pipegate/server.py @@ -31,16 +31,6 @@ logger = logging.getLogger(__name__) -def _get_or_create_queue( - connection_id: str, - buffers: dict[str, asyncio.Queue[BufferGateRequest]], - max_queue_depth: int, -) -> asyncio.Queue[BufferGateRequest]: - if connection_id not in buffers: - buffers[connection_id] = asyncio.Queue(maxsize=max_queue_depth) - return buffers[connection_id] - - def create_app() -> FastAPI: buffers: dict[str, asyncio.Queue[BufferGateRequest]] = {} futures: dict[uuid.UUID, asyncio.Future[BufferGateResponse]] = {} @@ -87,7 +77,7 @@ async def handle_http_request( future: asyncio.Future[BufferGateResponse] = asyncio.Future() futures[correlation_id] = future - queue = _get_or_create_queue(connection_id, buffers, settings.max_queue_depth) + queue = buffers.setdefault(connection_id, asyncio.Queue(maxsize=settings.max_queue_depth)) try: queue.put_nowait( @@ -154,7 +144,7 @@ async def handle_websocket( await websocket.accept() logger.info("WebSocket connected: %s", connection_id) - queue = _get_or_create_queue(connection_id, buffers, settings.max_queue_depth) + queue = buffers.setdefault(connection_id, asyncio.Queue(maxsize=settings.max_queue_depth)) async def receive() -> None: try: From 4a831b25959fed1b63dd7ccbac1a130cb9c7356c Mon Sep 17 00:00:00 2001 From: JeyBee Date: Sun, 19 Apr 2026 20:59:18 +0200 Subject: [PATCH 4/9] fix: E501 line length and E741 ambiguous var in cli/client/server/tests --- pipegate/cli.py | 4 +++- pipegate/client.py | 10 ++++++++-- pipegate/server.py | 8 ++++++-- tests/test_auth.py | 4 +++- tests/test_cli.py | 18 ++++++++++++------ 5 files changed, 32 insertions(+), 12 deletions(-) diff --git a/pipegate/cli.py b/pipegate/cli.py index 8dad5c9..752fb88 100644 --- a/pipegate/cli.py +++ b/pipegate/cli.py @@ -25,7 +25,9 @@ def token_cmd() -> None: @app.command("client") def client_cmd( target_url: str = typer.Argument(..., help="Local server to forward requests to."), - server_url: str = typer.Argument(..., help="PipeGate server WebSocket URL (include ?token=…)."), + server_url: str = typer.Argument( + ..., help="PipeGate server WebSocket URL (include ?token=…)" + ), ) -> None: """Start the tunnel client.""" asyncio.run(run_client(target_url, server_url)) diff --git a/pipegate/client.py b/pipegate/client.py index 03c581f..bc7556e 100644 --- a/pipegate/client.py +++ b/pipegate/client.py @@ -35,7 +35,10 @@ async def handle_request( status_code=response.status_code, ) except Exception as e: - print(f"Error processing request {request.correlation_id}: {e}", file=sys.stderr) + print( + f"Error processing request {request.correlation_id}: {e}", + file=sys.stderr, + ) payload = BufferGateResponse( correlation_id=request.correlation_id, headers="{}", @@ -53,7 +56,10 @@ async def main(target_url: str, server_url: str) -> None: delay = min(_BACKOFF_BASE * (2**attempt), _BACKOFF_MAX) if attempt > 0: - print(f"Reconnecting in {delay:.0f}s (attempt {attempt + 1})...", file=sys.stderr) + print( + f"Reconnecting in {delay:.0f}s (attempt {attempt + 1})...", + file=sys.stderr, + ) await asyncio.sleep(delay) print(f"Connecting to {server_url}...") diff --git a/pipegate/server.py b/pipegate/server.py index c9c7543..6fea70b 100644 --- a/pipegate/server.py +++ b/pipegate/server.py @@ -77,7 +77,9 @@ async def handle_http_request( future: asyncio.Future[BufferGateResponse] = asyncio.Future() futures[correlation_id] = future - queue = buffers.setdefault(connection_id, asyncio.Queue(maxsize=settings.max_queue_depth)) + queue = buffers.setdefault( + connection_id, asyncio.Queue(maxsize=settings.max_queue_depth) + ) try: queue.put_nowait( @@ -144,7 +146,9 @@ async def handle_websocket( await websocket.accept() logger.info("WebSocket connected: %s", connection_id) - queue = buffers.setdefault(connection_id, asyncio.Queue(maxsize=settings.max_queue_depth)) + queue = buffers.setdefault( + connection_id, asyncio.Queue(maxsize=settings.max_queue_depth) + ) async def receive() -> None: try: diff --git a/tests/test_auth.py b/tests/test_auth.py index d6ac156..34a8807 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -52,7 +52,9 @@ def test_generated_token_is_valid(self, settings: Settings) -> None: payload = verify_token(token, settings) assert payload.sub == cid - def test_uses_pinned_connection_id(self, settings: Settings, monkeypatch: pytest.MonkeyPatch) -> None: + def test_uses_pinned_connection_id( + self, settings: Settings, monkeypatch: pytest.MonkeyPatch + ) -> None: monkeypatch.setenv("PIPEGATE_CONNECTION_ID", "pinned-id") s = Settings() cid, token = generate_token(s) diff --git a/tests/test_cli.py b/tests/test_cli.py index 46f4ad9..23dce0d 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -18,6 +18,10 @@ } +def _find_line(output: str, prefix: str) -> str: + return next(line for line in output.splitlines() if prefix in line) + + class TestTokenCommand: def test_exits_zero(self) -> None: result = runner.invoke(app, ["token"], env=ENV) @@ -31,19 +35,21 @@ def test_output_has_connection_id_and_bearer(self) -> None: def test_random_ids_differ(self) -> None: r1 = runner.invoke(app, ["token"], env=ENV) r2 = runner.invoke(app, ["token"], env=ENV) - id1 = next(l for l in r1.output.splitlines() if "Connection-id:" in l) - id2 = next(l for l in r2.output.splitlines() if "Connection-id:" in l) + id1 = _find_line(r1.output, "Connection-id:") + id2 = _find_line(r2.output, "Connection-id:") assert id1 != id2 def test_pinned_via_env_var(self) -> None: - result = runner.invoke(app, ["token"], env={**ENV, "PIPEGATE_CONNECTION_ID": "pinned"}) + env = {**ENV, "PIPEGATE_CONNECTION_ID": "pinned"} + result = runner.invoke(app, ["token"], env=env) assert "Connection-id: pinned" in result.output def test_generated_token_is_verifiable(self) -> None: - result = runner.invoke(app, ["token"], env={**ENV, "PIPEGATE_CONNECTION_ID": "verifyme"}) + env = {**ENV, "PIPEGATE_CONNECTION_ID": "verifyme"} + result = runner.invoke(app, ["token"], env=env) assert result.exit_code == 0 - token = next(l for l in result.output.splitlines() if "JWT Bearer:" in l).split("JWT Bearer:")[1].strip() - decoded = pyjwt.decode(token, JWT_SECRET, algorithms=[JWT_ALGORITHM]) + raw = _find_line(result.output, "JWT Bearer:").split("JWT Bearer:")[1].strip() + decoded = pyjwt.decode(raw, JWT_SECRET, algorithms=[JWT_ALGORITHM]) assert decoded["sub"] == "verifyme" def test_missing_jwt_secret_exits_nonzero(self) -> None: From 44ee7d2e6ebd4999453d746461194ae9c290adcd Mon Sep 17 00:00:00 2001 From: JeyBee Date: Sun, 19 Apr 2026 21:11:22 +0200 Subject: [PATCH 5/9] refactor: restore --connection-id flag with proper precedence, revert setdefault MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - generate_token(settings, connection_id=None): explicit arg > env var > random UUID. Removes the Settings(_cli_parse_args=True) hack while keeping the UX. - token_cmd: add --connection-id / -c Typer option. - server.py: revert setdefault back to explicit check — setdefault eagerly constructs asyncio.Queue on every request even when key exists (hot path). - README: document both --connection-id flag and PIPEGATE_CONNECTION_ID env var. - Tests: cover flag, env var, and flag-over-env precedence. --- README.md | 15 +++++++++++---- pipegate/auth.py | 6 ++++-- pipegate/cli.py | 8 ++++++-- pipegate/server.py | 12 ++++++------ tests/test_auth.py | 26 ++++++++++++++++++-------- tests/test_cli.py | 13 +++++++++++++ 6 files changed, 58 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 6b9b3cc..5729ea6 100644 --- a/README.md +++ b/README.md @@ -40,17 +40,24 @@ Requests to `http://yourserver:8000/a1b2c3d4/anything` now reach `http://localho ## CLI ``` -pipegate token [--connection-id ID] Generate a JWT bearer token -pipegate client TARGET_URL SERVER_URL Start the tunnel client -pipegate server [--host HOST] [--port N] Start the server (default: 0.0.0.0:8000) +pipegate token [-c ID] Generate a JWT bearer token +pipegate client TARGET_URL WS_URL Start the tunnel client +pipegate server [--host H] [-p N] Start the server (default: 0.0.0.0:8000) ``` -Pin a specific connection ID so your public URL stays stable across token renewals: +Pin a connection ID so your public URL stays stable across token renewals: ```bash +# via flag (one-off) pipegate token --connection-id my-app + +# via env var (persistent) +export PIPEGATE_CONNECTION_ID=my-app +pipegate token ``` +Flag takes precedence over the env var. + ## How It Works A caller hits the server at `/{connection_id}/{path}`. The server wraps the request into a JSON message (method, path, headers, base64-encoded body) tagged with a `correlation_id` (UUID4), and pushes it into an in-memory `asyncio.Queue` for that connection. A background task drains the queue over the WebSocket to the tunnel client. diff --git a/pipegate/auth.py b/pipegate/auth.py index 1b411bf..684a3a8 100644 --- a/pipegate/auth.py +++ b/pipegate/auth.py @@ -8,9 +8,11 @@ from .schemas import JWTPayload, Settings -def generate_token(settings: Settings) -> tuple[str, str]: +def generate_token( + settings: Settings, connection_id: str | None = None +) -> tuple[str, str]: """Create a connection ID and signed JWT. Returns (connection_id, bearer_token).""" - cid = settings.connection_id or uuid.uuid4().hex + cid = connection_id or settings.connection_id or uuid.uuid4().hex payload = JWTPayload( sub=cid, exp=int((datetime.now(UTC) + timedelta(days=21)).timestamp()), diff --git a/pipegate/cli.py b/pipegate/cli.py index 752fb88..5bc496b 100644 --- a/pipegate/cli.py +++ b/pipegate/cli.py @@ -14,10 +14,14 @@ @app.command("token") -def token_cmd() -> None: +def token_cmd( + connection_id: str | None = typer.Option( + None, "--connection-id", "-c", help="Pin a connection ID (overrides env var)." + ), +) -> None: """Generate a JWT bearer token for a tunnel connection.""" settings = Settings() - cid, token = generate_token(settings) + cid, token = generate_token(settings, connection_id) typer.echo(f"Connection-id: {cid}") typer.echo(f"JWT Bearer: {token}") diff --git a/pipegate/server.py b/pipegate/server.py index 6fea70b..4f8bf3b 100644 --- a/pipegate/server.py +++ b/pipegate/server.py @@ -77,9 +77,9 @@ async def handle_http_request( future: asyncio.Future[BufferGateResponse] = asyncio.Future() futures[correlation_id] = future - queue = buffers.setdefault( - connection_id, asyncio.Queue(maxsize=settings.max_queue_depth) - ) + if connection_id not in buffers: + buffers[connection_id] = asyncio.Queue(maxsize=settings.max_queue_depth) + queue = buffers[connection_id] try: queue.put_nowait( @@ -146,9 +146,9 @@ async def handle_websocket( await websocket.accept() logger.info("WebSocket connected: %s", connection_id) - queue = buffers.setdefault( - connection_id, asyncio.Queue(maxsize=settings.max_queue_depth) - ) + if connection_id not in buffers: + buffers[connection_id] = asyncio.Queue(maxsize=settings.max_queue_depth) + queue = buffers[connection_id] async def receive() -> None: try: diff --git a/tests/test_auth.py b/tests/test_auth.py index 34a8807..14ce800 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -52,16 +52,26 @@ def test_generated_token_is_valid(self, settings: Settings) -> None: payload = verify_token(token, settings) assert payload.sub == cid - def test_uses_pinned_connection_id( - self, settings: Settings, monkeypatch: pytest.MonkeyPatch + def test_explicit_id_takes_precedence(self, settings: Settings) -> None: + cid, token = generate_token(settings, connection_id="explicit") + assert cid == "explicit" + assert verify_token(token, settings).sub == "explicit" + + def test_falls_back_to_settings_connection_id( + self, monkeypatch: pytest.MonkeyPatch + ) -> None: + monkeypatch.setenv("PIPEGATE_CONNECTION_ID", "from-env") + cid, _ = generate_token(Settings()) + assert cid == "from-env" + + def test_explicit_overrides_settings_connection_id( + self, monkeypatch: pytest.MonkeyPatch ) -> None: - monkeypatch.setenv("PIPEGATE_CONNECTION_ID", "pinned-id") - s = Settings() - cid, token = generate_token(s) - assert cid == "pinned-id" - assert verify_token(token, s).sub == "pinned-id" + monkeypatch.setenv("PIPEGATE_CONNECTION_ID", "from-env") + cid, _ = generate_token(Settings(), connection_id="explicit") + assert cid == "explicit" - def test_random_connection_id_when_unset(self, settings: Settings) -> None: + def test_random_when_nothing_pinned(self, settings: Settings) -> None: cid1, _ = generate_token(settings) cid2, _ = generate_token(settings) assert cid1 != cid2 diff --git a/tests/test_cli.py b/tests/test_cli.py index 23dce0d..f9d78b2 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -39,11 +39,24 @@ def test_random_ids_differ(self) -> None: id2 = _find_line(r2.output, "Connection-id:") assert id1 != id2 + def test_pinned_via_flag(self) -> None: + result = runner.invoke(app, ["token", "--connection-id", "flagged"], env=ENV) + assert "Connection-id: flagged" in result.output + + def test_short_flag(self) -> None: + result = runner.invoke(app, ["token", "-c", "short"], env=ENV) + assert "Connection-id: short" in result.output + def test_pinned_via_env_var(self) -> None: env = {**ENV, "PIPEGATE_CONNECTION_ID": "pinned"} result = runner.invoke(app, ["token"], env=env) assert "Connection-id: pinned" in result.output + def test_flag_overrides_env_var(self) -> None: + env = {**ENV, "PIPEGATE_CONNECTION_ID": "from-env"} + result = runner.invoke(app, ["token", "-c", "from-flag"], env=env) + assert "Connection-id: from-flag" in result.output + def test_generated_token_is_verifiable(self) -> None: env = {**ENV, "PIPEGATE_CONNECTION_ID": "verifyme"} result = runner.invoke(app, ["token"], env=env) From 27a3eebf13c0402909980ba09689fb8610c935a2 Mon Sep 17 00:00:00 2001 From: JeyBee Date: Sun, 19 Apr 2026 21:14:56 +0200 Subject: [PATCH 6/9] refactor: return TokenResult NamedTuple from generate_token --- pipegate/auth.py | 12 +++++++++--- pipegate/cli.py | 6 +++--- tests/test_auth.py | 38 +++++++++++++++++++------------------- 3 files changed, 31 insertions(+), 25 deletions(-) diff --git a/pipegate/auth.py b/pipegate/auth.py index 684a3a8..3fb41d2 100644 --- a/pipegate/auth.py +++ b/pipegate/auth.py @@ -2,16 +2,22 @@ import uuid from datetime import UTC, datetime, timedelta +from typing import NamedTuple import jwt from .schemas import JWTPayload, Settings +class TokenResult(NamedTuple): + connection_id: str + bearer: str + + def generate_token( settings: Settings, connection_id: str | None = None -) -> tuple[str, str]: - """Create a connection ID and signed JWT. Returns (connection_id, bearer_token).""" +) -> TokenResult: + """Create a connection ID and signed JWT.""" cid = connection_id or settings.connection_id or uuid.uuid4().hex payload = JWTPayload( sub=cid, @@ -22,7 +28,7 @@ def generate_token( key=settings.jwt_secret.get_secret_value(), algorithm=settings.jwt_algorithms[0], ) - return cid, token + return TokenResult(connection_id=cid, bearer=token) def verify_token(token: str, settings: Settings) -> JWTPayload: diff --git a/pipegate/cli.py b/pipegate/cli.py index 5bc496b..a475107 100644 --- a/pipegate/cli.py +++ b/pipegate/cli.py @@ -21,9 +21,9 @@ def token_cmd( ) -> None: """Generate a JWT bearer token for a tunnel connection.""" settings = Settings() - cid, token = generate_token(settings, connection_id) - typer.echo(f"Connection-id: {cid}") - typer.echo(f"JWT Bearer: {token}") + result = generate_token(settings, connection_id) + typer.echo(f"Connection-id: {result.connection_id}") + typer.echo(f"JWT Bearer: {result.bearer}") @app.command("client") diff --git a/tests/test_auth.py b/tests/test_auth.py index 14ce800..3073940 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -6,7 +6,7 @@ import jwt import pytest -from pipegate.auth import generate_token, verify_token +from pipegate.auth import TokenResult, generate_token, verify_token from pipegate.schemas import JWTPayload, Settings from .conftest import make_token @@ -42,44 +42,44 @@ def test_empty_token(self, settings: Settings) -> None: class TestGenerateToken: - def test_returns_tuple(self, settings: Settings) -> None: - cid, token = generate_token(settings) - assert isinstance(cid, str) - assert isinstance(token, str) + def test_returns_token_result(self, settings: Settings) -> None: + result = generate_token(settings) + assert isinstance(result, TokenResult) + assert isinstance(result.connection_id, str) + assert isinstance(result.bearer, str) def test_generated_token_is_valid(self, settings: Settings) -> None: - cid, token = generate_token(settings) - payload = verify_token(token, settings) - assert payload.sub == cid + result = generate_token(settings) + payload = verify_token(result.bearer, settings) + assert payload.sub == result.connection_id def test_explicit_id_takes_precedence(self, settings: Settings) -> None: - cid, token = generate_token(settings, connection_id="explicit") - assert cid == "explicit" - assert verify_token(token, settings).sub == "explicit" + result = generate_token(settings, connection_id="explicit") + assert result.connection_id == "explicit" + assert verify_token(result.bearer, settings).sub == "explicit" def test_falls_back_to_settings_connection_id( self, monkeypatch: pytest.MonkeyPatch ) -> None: monkeypatch.setenv("PIPEGATE_CONNECTION_ID", "from-env") - cid, _ = generate_token(Settings()) - assert cid == "from-env" + assert generate_token(Settings()).connection_id == "from-env" def test_explicit_overrides_settings_connection_id( self, monkeypatch: pytest.MonkeyPatch ) -> None: monkeypatch.setenv("PIPEGATE_CONNECTION_ID", "from-env") - cid, _ = generate_token(Settings(), connection_id="explicit") - assert cid == "explicit" + result = generate_token(Settings(), connection_id="explicit") + assert result.connection_id == "explicit" def test_random_when_nothing_pinned(self, settings: Settings) -> None: - cid1, _ = generate_token(settings) - cid2, _ = generate_token(settings) + cid1 = generate_token(settings).connection_id + cid2 = generate_token(settings).connection_id assert cid1 != cid2 def test_token_expires_in_21_days(self, settings: Settings) -> None: - _, token = generate_token(settings) + result = generate_token(settings) decoded = jwt.decode( - token, + result.bearer, settings.jwt_secret.get_secret_value(), algorithms=settings.jwt_algorithms, ) From e0aef79be4d2520fa9866964337512c46bed23ff Mon Sep 17 00:00:00 2001 From: JeyBee Date: Sun, 19 Apr 2026 21:20:38 +0200 Subject: [PATCH 7/9] feat: harden JWT with iss, aud, nbf, iat, jti claims --- pipegate/auth.py | 19 ++++++++++++++++--- pipegate/schemas.py | 9 +++++++-- tests/conftest.py | 10 +++++++++- tests/test_auth.py | 35 +++++++++++++++++++++++++++-------- tests/test_cli.py | 6 +++++- tests/test_schemas.py | 5 ++++- 6 files changed, 68 insertions(+), 16 deletions(-) diff --git a/pipegate/auth.py b/pipegate/auth.py index 3fb41d2..3980607 100644 --- a/pipegate/auth.py +++ b/pipegate/auth.py @@ -8,6 +8,10 @@ from .schemas import JWTPayload, Settings +ISSUER = "pipegate" +AUDIENCE = "pipegate" +_TOKEN_TTL = timedelta(days=21) + class TokenResult(NamedTuple): connection_id: str @@ -17,11 +21,18 @@ class TokenResult(NamedTuple): def generate_token( settings: Settings, connection_id: str | None = None ) -> TokenResult: - """Create a connection ID and signed JWT.""" + """Create a connection ID and signed JWT with full standard claims.""" cid = connection_id or settings.connection_id or uuid.uuid4().hex + now = datetime.now(UTC) + ts = int(now.timestamp()) payload = JWTPayload( sub=cid, - exp=int((datetime.now(UTC) + timedelta(days=21)).timestamp()), + exp=int((now + _TOKEN_TTL).timestamp()), + nbf=ts, + iat=ts, + iss=ISSUER, + aud=AUDIENCE, + jti=uuid.uuid4().hex, ) token = jwt.encode( payload.model_dump(mode="json"), @@ -32,10 +43,12 @@ def generate_token( def verify_token(token: str, settings: Settings) -> JWTPayload: - """Decode and verify a JWT, returning the payload (connection ID in ``sub``).""" + """Decode and verify a JWT, validating all standard claims.""" decoded = jwt.decode( token, settings.jwt_secret.get_secret_value(), algorithms=settings.jwt_algorithms, + audience=AUDIENCE, + issuer=ISSUER, ) return JWTPayload.model_validate(decoded) diff --git a/pipegate/schemas.py b/pipegate/schemas.py index ffc7d97..a1754b2 100644 --- a/pipegate/schemas.py +++ b/pipegate/schemas.py @@ -34,8 +34,13 @@ class BufferGateResponse(BaseModel): class JWTPayload(BaseModel): - sub: str - exp: int + sub: str # connection_id + exp: int # expiry (unix) + nbf: int # not before (unix) + iat: int # issued at (unix) + iss: str # issuer + aud: str # audience + jti: str # unique token id class Settings(BaseSettings): diff --git a/tests/conftest.py b/tests/conftest.py index 128ea96..6200ea1 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,6 +10,7 @@ from fastapi import FastAPI from httpx import ASGITransport, AsyncClient +from pipegate.auth import AUDIENCE, ISSUER from pipegate.schemas import Settings from pipegate.server import create_app @@ -40,9 +41,16 @@ def make_token( algorithm: str = JWT_ALGORITHM, expires_in: timedelta = timedelta(days=1), ) -> str: + now = datetime.now(UTC) + ts = int(now.timestamp()) payload = { "sub": connection_id, - "exp": int((datetime.now(UTC) + expires_in).timestamp()), + "exp": int((now + expires_in).timestamp()), + "nbf": ts, + "iat": ts, + "iss": ISSUER, + "aud": AUDIENCE, + "jti": uuid.uuid4().hex, } return jwt.encode(payload, secret, algorithm=algorithm) diff --git a/tests/test_auth.py b/tests/test_auth.py index 3073940..a359569 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -6,10 +6,10 @@ import jwt import pytest -from pipegate.auth import TokenResult, generate_token, verify_token +from pipegate.auth import AUDIENCE, ISSUER, TokenResult, generate_token, verify_token from pipegate.schemas import JWTPayload, Settings -from .conftest import make_token +from .conftest import JWT_ALGORITHM, JWT_SECRET, make_token class TestVerifyToken: @@ -40,6 +40,29 @@ def test_empty_token(self, settings: Settings) -> None: with pytest.raises(jwt.DecodeError): verify_token("", settings) + def test_wrong_audience_rejected( + self, connection_id: str, settings: Settings + ) -> None: + token = jwt.encode( + {"sub": connection_id, "exp": 9999999999, "aud": "other", "iss": ISSUER}, + JWT_SECRET, + algorithm=JWT_ALGORITHM, + ) + with pytest.raises(jwt.InvalidAudienceError): + verify_token(token, settings) + + def test_wrong_issuer_rejected( + self, connection_id: str, settings: Settings + ) -> None: + token = jwt.encode( + {"sub": connection_id, "exp": 9999999999, "aud": AUDIENCE, "iss": "other"}, + JWT_SECRET, + algorithm=JWT_ALGORITHM, + ) + with pytest.raises(jwt.InvalidIssuerError): + verify_token(token, settings) + + class TestGenerateToken: def test_returns_token_result(self, settings: Settings) -> None: @@ -78,10 +101,6 @@ def test_random_when_nothing_pinned(self, settings: Settings) -> None: def test_token_expires_in_21_days(self, settings: Settings) -> None: result = generate_token(settings) - decoded = jwt.decode( - result.bearer, - settings.jwt_secret.get_secret_value(), - algorithms=settings.jwt_algorithms, - ) + payload = verify_token(result.bearer, settings) days_21 = 21 * 24 * 3600 - assert abs(decoded["exp"] - (int(time.time()) + days_21)) < 60 + assert abs(payload.exp - (int(time.time()) + days_21)) < 60 diff --git a/tests/test_cli.py b/tests/test_cli.py index f9d78b2..7e79c38 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -6,6 +6,7 @@ import jwt as pyjwt from typer.testing import CliRunner +from pipegate.auth import AUDIENCE, ISSUER from pipegate.cli import app from .conftest import JWT_ALGORITHM, JWT_SECRET @@ -62,7 +63,10 @@ def test_generated_token_is_verifiable(self) -> None: result = runner.invoke(app, ["token"], env=env) assert result.exit_code == 0 raw = _find_line(result.output, "JWT Bearer:").split("JWT Bearer:")[1].strip() - decoded = pyjwt.decode(raw, JWT_SECRET, algorithms=[JWT_ALGORITHM]) + decoded = pyjwt.decode( + raw, JWT_SECRET, algorithms=[JWT_ALGORITHM], + audience=AUDIENCE, issuer=ISSUER, + ) assert decoded["sub"] == "verifyme" def test_missing_jwt_secret_exits_nonzero(self) -> None: diff --git a/tests/test_schemas.py b/tests/test_schemas.py index e88286b..c73c4c5 100644 --- a/tests/test_schemas.py +++ b/tests/test_schemas.py @@ -53,7 +53,10 @@ def test_missing_status_code(self) -> None: class TestJWTPayload: def test_valid(self) -> None: - p = JWTPayload(sub="abc", exp=9999999999) + p = JWTPayload( + sub="abc", exp=9999999999, nbf=0, iat=0, + iss="pipegate", aud="pipegate", jti="x", + ) assert p.sub == "abc" def test_missing_sub(self) -> None: From ebb7cc266e825275a759564e6a3d3c89a90df020 Mon Sep 17 00:00:00 2001 From: JeyBee Date: Sun, 19 Apr 2026 21:23:05 +0200 Subject: [PATCH 8/9] feat: make JWT issuer, audience, and TTL configurable via env vars --- README.md | 3 +++ pipegate/auth.py | 16 ++++++---------- pipegate/schemas.py | 3 +++ tests/conftest.py | 9 ++++++--- tests/test_auth.py | 38 +++++++++++++++++++++++--------------- tests/test_cli.py | 5 ++--- 6 files changed, 43 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 5729ea6..28c6efa 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,9 @@ Environment variables via pydantic-settings: |---|---|---|---| | `PIPEGATE_JWT_SECRET` | Yes | -- | Shared secret for JWT signing/verification | | `PIPEGATE_JWT_ALGORITHMS` | Yes | -- | Algorithm list, e.g. `'["HS256"]'` | +| `PIPEGATE_JWT_ISSUER` | No | `pipegate` | JWT `iss` claim — must match on both sides | +| `PIPEGATE_JWT_AUDIENCE` | No | `pipegate` | JWT `aud` claim — must match on both sides | +| `PIPEGATE_JWT_TTL_DAYS` | No | `21` | Token lifetime in days | | `PIPEGATE_CONNECTION_ID` | No | random UUID | Pin a specific connection ID when generating tokens | | `PIPEGATE_MAX_BODY_BYTES` | No | 10 MB | Reject requests larger than this (413) | | `PIPEGATE_MAX_QUEUE_DEPTH` | No | 100 | Per-tunnel queue size before returning 503 | diff --git a/pipegate/auth.py b/pipegate/auth.py index 3980607..292e1df 100644 --- a/pipegate/auth.py +++ b/pipegate/auth.py @@ -8,10 +8,6 @@ from .schemas import JWTPayload, Settings -ISSUER = "pipegate" -AUDIENCE = "pipegate" -_TOKEN_TTL = timedelta(days=21) - class TokenResult(NamedTuple): connection_id: str @@ -21,17 +17,17 @@ class TokenResult(NamedTuple): def generate_token( settings: Settings, connection_id: str | None = None ) -> TokenResult: - """Create a connection ID and signed JWT with full standard claims.""" + """Create a connection ID and signed JWT.""" cid = connection_id or settings.connection_id or uuid.uuid4().hex now = datetime.now(UTC) ts = int(now.timestamp()) payload = JWTPayload( sub=cid, - exp=int((now + _TOKEN_TTL).timestamp()), + exp=int((now + timedelta(days=settings.jwt_ttl_days)).timestamp()), nbf=ts, iat=ts, - iss=ISSUER, - aud=AUDIENCE, + iss=settings.jwt_issuer, + aud=settings.jwt_audience, jti=uuid.uuid4().hex, ) token = jwt.encode( @@ -48,7 +44,7 @@ def verify_token(token: str, settings: Settings) -> JWTPayload: token, settings.jwt_secret.get_secret_value(), algorithms=settings.jwt_algorithms, - audience=AUDIENCE, - issuer=ISSUER, + audience=settings.jwt_audience, + issuer=settings.jwt_issuer, ) return JWTPayload.model_validate(decoded) diff --git a/pipegate/schemas.py b/pipegate/schemas.py index a1754b2..4322951 100644 --- a/pipegate/schemas.py +++ b/pipegate/schemas.py @@ -49,6 +49,9 @@ class Settings(BaseSettings): connection_id: str | None = Field(alias="PIPEGATE_CONNECTION_ID", default=None) jwt_secret: SecretStr = Field(alias="PIPEGATE_JWT_SECRET") jwt_algorithms: list[str] = Field(alias="PIPEGATE_JWT_ALGORITHMS") + jwt_issuer: str = Field(alias="PIPEGATE_JWT_ISSUER", default="pipegate") + jwt_audience: str = Field(alias="PIPEGATE_JWT_AUDIENCE", default="pipegate") + jwt_ttl_days: int = Field(alias="PIPEGATE_JWT_TTL_DAYS", default=21) max_body_bytes: int = Field( alias="PIPEGATE_MAX_BODY_BYTES", default=10 * 1024 * 1024, diff --git a/tests/conftest.py b/tests/conftest.py index 6200ea1..9062d32 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,12 +10,13 @@ from fastapi import FastAPI from httpx import ASGITransport, AsyncClient -from pipegate.auth import AUDIENCE, ISSUER from pipegate.schemas import Settings from pipegate.server import create_app JWT_SECRET = "test-secret-that-is-long-enough-for-hs256!" JWT_ALGORITHM = "HS256" +JWT_ISSUER = "pipegate" +JWT_AUDIENCE = "pipegate" @pytest.fixture(autouse=True) @@ -39,6 +40,8 @@ def make_token( *, secret: str = JWT_SECRET, algorithm: str = JWT_ALGORITHM, + issuer: str = JWT_ISSUER, + audience: str = JWT_AUDIENCE, expires_in: timedelta = timedelta(days=1), ) -> str: now = datetime.now(UTC) @@ -48,8 +51,8 @@ def make_token( "exp": int((now + expires_in).timestamp()), "nbf": ts, "iat": ts, - "iss": ISSUER, - "aud": AUDIENCE, + "iss": issuer, + "aud": audience, "jti": uuid.uuid4().hex, } return jwt.encode(payload, secret, algorithm=algorithm) diff --git a/tests/test_auth.py b/tests/test_auth.py index a359569..7f5316a 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -6,10 +6,10 @@ import jwt import pytest -from pipegate.auth import AUDIENCE, ISSUER, TokenResult, generate_token, verify_token +from pipegate.auth import TokenResult, generate_token, verify_token from pipegate.schemas import JWTPayload, Settings -from .conftest import JWT_ALGORITHM, JWT_SECRET, make_token +from .conftest import make_token class TestVerifyToken: @@ -43,25 +43,27 @@ def test_empty_token(self, settings: Settings) -> None: def test_wrong_audience_rejected( self, connection_id: str, settings: Settings ) -> None: - token = jwt.encode( - {"sub": connection_id, "exp": 9999999999, "aud": "other", "iss": ISSUER}, - JWT_SECRET, - algorithm=JWT_ALGORITHM, - ) + token = make_token(connection_id, audience="other") with pytest.raises(jwt.InvalidAudienceError): verify_token(token, settings) def test_wrong_issuer_rejected( self, connection_id: str, settings: Settings ) -> None: - token = jwt.encode( - {"sub": connection_id, "exp": 9999999999, "aud": AUDIENCE, "iss": "other"}, - JWT_SECRET, - algorithm=JWT_ALGORITHM, - ) + token = make_token(connection_id, issuer="other") with pytest.raises(jwt.InvalidIssuerError): verify_token(token, settings) + def test_custom_issuer_and_audience( + self, connection_id: str, monkeypatch: pytest.MonkeyPatch + ) -> None: + monkeypatch.setenv("PIPEGATE_JWT_ISSUER", "my-issuer") + monkeypatch.setenv("PIPEGATE_JWT_AUDIENCE", "my-audience") + s = Settings() + result = generate_token(s, connection_id=connection_id) + payload = verify_token(result.bearer, s) + assert payload.iss == "my-issuer" + assert payload.aud == "my-audience" class TestGenerateToken: @@ -99,8 +101,14 @@ def test_random_when_nothing_pinned(self, settings: Settings) -> None: cid2 = generate_token(settings).connection_id assert cid1 != cid2 - def test_token_expires_in_21_days(self, settings: Settings) -> None: + def test_custom_ttl(self, monkeypatch: pytest.MonkeyPatch) -> None: + monkeypatch.setenv("PIPEGATE_JWT_TTL_DAYS", "7") + s = Settings() + result = generate_token(s) + payload = verify_token(result.bearer, s) + assert abs(payload.exp - (int(time.time()) + 7 * 24 * 3600)) < 60 + + def test_default_ttl_is_21_days(self, settings: Settings) -> None: result = generate_token(settings) payload = verify_token(result.bearer, settings) - days_21 = 21 * 24 * 3600 - assert abs(payload.exp - (int(time.time()) + days_21)) < 60 + assert abs(payload.exp - (int(time.time()) + 21 * 24 * 3600)) < 60 diff --git a/tests/test_cli.py b/tests/test_cli.py index 7e79c38..cc42536 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -6,10 +6,9 @@ import jwt as pyjwt from typer.testing import CliRunner -from pipegate.auth import AUDIENCE, ISSUER from pipegate.cli import app -from .conftest import JWT_ALGORITHM, JWT_SECRET +from .conftest import JWT_ALGORITHM, JWT_AUDIENCE, JWT_ISSUER, JWT_SECRET runner = CliRunner() @@ -65,7 +64,7 @@ def test_generated_token_is_verifiable(self) -> None: raw = _find_line(result.output, "JWT Bearer:").split("JWT Bearer:")[1].strip() decoded = pyjwt.decode( raw, JWT_SECRET, algorithms=[JWT_ALGORITHM], - audience=AUDIENCE, issuer=ISSUER, + audience=JWT_AUDIENCE, issuer=JWT_ISSUER, ) assert decoded["sub"] == "verifyme" From 20c7fd2a44ee0c69110d1853e580871dc09a0a94 Mon Sep 17 00:00:00 2001 From: JeyBee Date: Sun, 19 Apr 2026 21:31:22 +0200 Subject: [PATCH 9/9] style: ruff format --- pipegate/auth.py | 4 +--- pipegate/schemas.py | 14 +++++++------- tests/test_cli.py | 7 +++++-- tests/test_schemas.py | 9 +++++++-- 4 files changed, 20 insertions(+), 14 deletions(-) diff --git a/pipegate/auth.py b/pipegate/auth.py index 292e1df..837d6fc 100644 --- a/pipegate/auth.py +++ b/pipegate/auth.py @@ -14,9 +14,7 @@ class TokenResult(NamedTuple): bearer: str -def generate_token( - settings: Settings, connection_id: str | None = None -) -> TokenResult: +def generate_token(settings: Settings, connection_id: str | None = None) -> TokenResult: """Create a connection ID and signed JWT.""" cid = connection_id or settings.connection_id or uuid.uuid4().hex now = datetime.now(UTC) diff --git a/pipegate/schemas.py b/pipegate/schemas.py index 4322951..f3da7e2 100644 --- a/pipegate/schemas.py +++ b/pipegate/schemas.py @@ -34,13 +34,13 @@ class BufferGateResponse(BaseModel): class JWTPayload(BaseModel): - sub: str # connection_id - exp: int # expiry (unix) - nbf: int # not before (unix) - iat: int # issued at (unix) - iss: str # issuer - aud: str # audience - jti: str # unique token id + sub: str # connection_id + exp: int # expiry (unix) + nbf: int # not before (unix) + iat: int # issued at (unix) + iss: str # issuer + aud: str # audience + jti: str # unique token id class Settings(BaseSettings): diff --git a/tests/test_cli.py b/tests/test_cli.py index cc42536..512b719 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -63,8 +63,11 @@ def test_generated_token_is_verifiable(self) -> None: assert result.exit_code == 0 raw = _find_line(result.output, "JWT Bearer:").split("JWT Bearer:")[1].strip() decoded = pyjwt.decode( - raw, JWT_SECRET, algorithms=[JWT_ALGORITHM], - audience=JWT_AUDIENCE, issuer=JWT_ISSUER, + raw, + JWT_SECRET, + algorithms=[JWT_ALGORITHM], + audience=JWT_AUDIENCE, + issuer=JWT_ISSUER, ) assert decoded["sub"] == "verifyme" diff --git a/tests/test_schemas.py b/tests/test_schemas.py index c73c4c5..b3e9bda 100644 --- a/tests/test_schemas.py +++ b/tests/test_schemas.py @@ -54,8 +54,13 @@ def test_missing_status_code(self) -> None: class TestJWTPayload: def test_valid(self) -> None: p = JWTPayload( - sub="abc", exp=9999999999, nbf=0, iat=0, - iss="pipegate", aud="pipegate", jti="x", + sub="abc", + exp=9999999999, + nbf=0, + iat=0, + iss="pipegate", + aud="pipegate", + jti="x", ) assert p.sub == "abc"