From 0466f34f99f196cba1d277e9ab359b81c62cf3a6 Mon Sep 17 00:00:00 2001 From: Ruben Juarez Perez Date: Wed, 10 Jun 2026 22:59:46 +0200 Subject: [PATCH 1/3] working version squash --- README.md | 92 + api/.DS_Store | Bin 0 -> 6148 bytes api/.dockerignore | 10 + api/.env.example | 21 + api/Dockerfile | 20 + api/Makefile | 18 + api/README.md | 83 + api/cmd/.DS_Store | Bin 0 -> 6148 bytes api/cmd/api/main.go | 98 ++ api/cmd/migrate/main.go | 143 ++ api/docker-compose.yml | 35 + api/go.mod | 17 + api/go.sum | 83 + api/internal/config/config.go | 71 + api/internal/config/config_test.go | 90 + api/internal/handler/auth.go | 44 + api/internal/handler/auth_test.go | 83 + api/internal/handler/error.go | 68 + api/internal/handler/health.go | 54 + api/internal/handler/health_test.go | 52 + api/internal/handler/subscription.go | 351 ++++ api/internal/handler/subscription_test.go | 687 ++++++++ api/internal/postgres/subscription.go | 217 +++ .../postgres/subscription_integration_test.go | 178 ++ api/internal/server/server.go | 54 + api/internal/server/server_test.go | 130 ++ api/internal/subscription/errors.go | 45 + api/internal/subscription/service.go | 283 +++ api/internal/subscription/service_test.go | 468 +++++ api/internal/subscription/subscription.go | 67 + api/internal/subscription/summary.go | 152 ++ api/internal/subscription/summary_test.go | 261 +++ .../000001_create_subscriptions.down.sql | 1 + .../000001_create_subscriptions.up.sql | 12 + api/scripts/demo.sh | 64 + docs/.DS_Store | Bin 0 -> 6148 bytes mcp/.DS_Store | Bin 0 -> 6148 bytes mcp/README.md | 66 + mcp/pyproject.toml | 35 + mcp/subtrack_mcp/__init__.py | 0 mcp/subtrack_mcp/api_client.py | 32 + mcp/subtrack_mcp/config.py | 21 + mcp/subtrack_mcp/models.py | 41 + mcp/subtrack_mcp/server.py | 103 ++ mcp/tests/conftest.py | 7 + mcp/tests/test_read_tools.py | 52 + mcp/tests/test_write_tools.py | 87 + mcp/uv.lock | 1566 +++++++++++++++++ 48 files changed, 6062 insertions(+) create mode 100644 README.md create mode 100644 api/.DS_Store create mode 100644 api/.dockerignore create mode 100644 api/.env.example create mode 100644 api/Dockerfile create mode 100644 api/Makefile create mode 100644 api/README.md create mode 100644 api/cmd/.DS_Store create mode 100644 api/cmd/api/main.go create mode 100644 api/cmd/migrate/main.go create mode 100644 api/docker-compose.yml create mode 100644 api/go.mod create mode 100644 api/go.sum create mode 100644 api/internal/config/config.go create mode 100644 api/internal/config/config_test.go create mode 100644 api/internal/handler/auth.go create mode 100644 api/internal/handler/auth_test.go create mode 100644 api/internal/handler/error.go create mode 100644 api/internal/handler/health.go create mode 100644 api/internal/handler/health_test.go create mode 100644 api/internal/handler/subscription.go create mode 100644 api/internal/handler/subscription_test.go create mode 100644 api/internal/postgres/subscription.go create mode 100644 api/internal/postgres/subscription_integration_test.go create mode 100644 api/internal/server/server.go create mode 100644 api/internal/server/server_test.go create mode 100644 api/internal/subscription/errors.go create mode 100644 api/internal/subscription/service.go create mode 100644 api/internal/subscription/service_test.go create mode 100644 api/internal/subscription/subscription.go create mode 100644 api/internal/subscription/summary.go create mode 100644 api/internal/subscription/summary_test.go create mode 100644 api/migrations/000001_create_subscriptions.down.sql create mode 100644 api/migrations/000001_create_subscriptions.up.sql create mode 100755 api/scripts/demo.sh create mode 100644 docs/.DS_Store create mode 100644 mcp/.DS_Store create mode 100644 mcp/README.md create mode 100644 mcp/pyproject.toml create mode 100644 mcp/subtrack_mcp/__init__.py create mode 100644 mcp/subtrack_mcp/api_client.py create mode 100644 mcp/subtrack_mcp/config.py create mode 100644 mcp/subtrack_mcp/models.py create mode 100644 mcp/subtrack_mcp/server.py create mode 100644 mcp/tests/conftest.py create mode 100644 mcp/tests/test_read_tools.py create mode 100644 mcp/tests/test_write_tools.py create mode 100644 mcp/uv.lock diff --git a/README.md b/README.md new file mode 100644 index 0000000..8f1bc5e --- /dev/null +++ b/README.md @@ -0,0 +1,92 @@ +# SubTrack + +Track recurring subscriptions from an LLM agent — a thin MCP server over a Go backend. + +![SubTrack demo](docs/demo.gif) + +SubTrack is a small monorepo: a Go HTTP backend (`api/`) that owns all subscription data and +business logic, and a Python [FastMCP](https://gofastmcp.com/) server (`mcp/`) that exposes a +curated set of tools to MCP clients such as Claude Desktop. The MCP layer holds no business logic +of its own — it only speaks REST to the backend, so it's language-agnostic and the same backend +could sit behind any other client. + +## Architecture + +```mermaid +flowchart TD + A["Claude Desktop / MCP client"] -->|"MCP · stdio"| B["mcp
FastMCP · 7 curated tools"] + B -->|"REST · X-API-Key"| C["api
Go · net/http"] + C -->|pgxpool| D[("PostgreSQL 16")] +``` + +## Tools + +| Tool | Kind | Backend call | +|---|---|---| +| `list_subscriptions` | read | `GET /v1/subscriptions` | +| `get_subscription` | read | `GET /v1/subscriptions/{id}` | +| `spending_summary` | read | `GET /v1/subscriptions/summary` | +| `upcoming_charges` | read | `GET /v1/subscriptions/summary` (filtered client-side) | +| `add_subscription` | write | `POST /v1/subscriptions` | +| `update_subscription` | write | `PATCH /v1/subscriptions/{id}` | +| `cancel_subscription` | write | `POST /v1/subscriptions/{id}/cancel` | + +The surface is curated, not auto-generated from the REST API: tools are task-shaped +(`upcoming_charges`, `spending_summary`) rather than a 1:1 endpoint mirror, which keeps the +agent's choices small and unambiguous. + +## Quickstart + +Requires [Docker](https://docs.docker.com/), Go (see `api/go.mod`), and +[uv](https://docs.astral.sh/uv/). + +```sh +# 1. Start the backend: Postgres 16 (5432) and the API (8080). +cd api +cp .env.example .env # optional — compose ships working dev defaults +docker compose up -d +make migrate-up + +# 2. Sanity check. +curl http://localhost:8080/healthz +curl -H "X-API-Key: dev-local-key" http://localhost:8080/v1/subscriptions + +# 3. Run the MCP server. +cd ../mcp +uv sync +export SUBTRACK_API_URL=http://localhost:8080 +export SUBTRACK_API_KEY=dev-local-key # matches api/.env.example +uv run subtrack-mcp +``` + +`SUBTRACK_API_URL` and `SUBTRACK_API_KEY` are mandatory — the MCP server fails fast at startup if +either is missing. Point your MCP client at `uv run subtrack-mcp` with the same two variables set, +and it connects over stdio. + +## Key design decisions + +- **Logic in the backend, not the MCP.** The MCP server is stateless and thin; all validation, + spending-total and next-charge calculations live in Go. +- **Curated tool surface.** Seven task-shaped tools instead of an auto-exposed endpoint mirror. +- **Money as integer cents.** No floats anywhere in the wire shapes — enforced by a + `CHECK (cost_cents > 0)` constraint in the schema. +- **Schema only in migrations.** The database is defined in `api/migrations/`, never created from + application code. +- **Constant-time API-key auth.** Every `/v1/*` route requires a shared secret via `X-API-Key`, + compared with `crypto/subtle`. + +## Repo structure + +``` +. +├── api/ # Go backend: handler -> service -> repository -> model, Postgres, migrations +├── mcp/ # Python FastMCP server: thin REST client, curated tools +└── docs/ # demo.gif for this README +``` + +- [`api/README.md`](api/README.md) — backend layering, data model, endpoints, auth, migrations. +- [`mcp/README.md`](mcp/README.md) — MCP tools, auth against the backend, dev gates. + +## License + +MIT. diff --git a/api/.DS_Store b/api/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..78eb56cc0757dd2d10535bfdd427d28bd70ec220 GIT binary patch literal 6148 zcmeHKJ5Iw;5S%3`B4|=lzAJD8D+(vz0zfPwqy$TZ^sYD;M`QK_BC;&e(4bjq-|SoO zyeCiL^#ZWXslNf%09JHIy!$dWf9^i9i^@2fpRwCN4#S=yE+@q^3Fj`b!vTGN{K-Gy z8Bch{1Kt=7c){_jVCE>LrGONW0#ZNEIG00CCB57~_~Fh|Lqku5e6bhGt16Ce>=hu%t8Js;(;>6O#^$n|V&%Y&D@++|GQ9 za#)wBRSHOfa|IT;U3>q(rO(X&=Opc6{CgHF`Xfa@ZY0)MT*CtdIwIRF3v literal 0 HcmV?d00001 diff --git a/api/.dockerignore b/api/.dockerignore new file mode 100644 index 0000000..e6e316e --- /dev/null +++ b/api/.dockerignore @@ -0,0 +1,10 @@ +.git +.gitignore +*.md +.env +.env.* +!.env.example +docker-compose.yml +Dockerfile +.dockerignore +progress diff --git a/api/.env.example b/api/.env.example new file mode 100644 index 0000000..d0d4141 --- /dev/null +++ b/api/.env.example @@ -0,0 +1,21 @@ +# Copy this file to .env and adjust values for your local setup. +# These are DEV placeholder values only — never commit real credentials. + +# Port the HTTP server listens on. +PORT=8080 + +# Shared secret callers must present via the X-API-Key header on every +# /v1/* route (see internal/handler.RequireAPIKey). Required — the server +# fails to start without it. This is a DEV placeholder only. +API_KEY=dev-local-key + +# Either set DATABASE_URL directly... +# DATABASE_URL=postgres://subtrack:devpassword@localhost:5432/subtrack?sslmode=disable + +# ...or provide the discrete POSTGRES_* parts (used to build the DSN +# automatically when DATABASE_URL is unset). +POSTGRES_HOST=localhost +POSTGRES_PORT=5432 +POSTGRES_USER=subtrack +POSTGRES_PASSWORD=devpassword +POSTGRES_DB=subtrack diff --git a/api/Dockerfile b/api/Dockerfile new file mode 100644 index 0000000..324a314 --- /dev/null +++ b/api/Dockerfile @@ -0,0 +1,20 @@ +# Stage 1: build a static binary +FROM golang:1.26 AS build + +WORKDIR /src + +COPY go.mod go.sum ./ +RUN go mod download + +COPY . . + +RUN CGO_ENABLED=0 GOOS=linux go build -o /out/api ./cmd/api + +# Stage 2: minimal runtime image +FROM gcr.io/distroless/static-debian12:nonroot + +COPY --from=build /out/api /api + +EXPOSE 8080 + +ENTRYPOINT ["/api"] diff --git a/api/Makefile b/api/Makefile new file mode 100644 index 0000000..daaccea --- /dev/null +++ b/api/Makefile @@ -0,0 +1,18 @@ +.PHONY: migrate-up migrate-down demo + +# Apply all pending migrations against the configured database (DATABASE_URL +# or POSTGRES_* environment variables — see internal/config). +migrate-up: + go run ./cmd/migrate up + +# Fully revert all applied migrations against the configured database. +migrate-down: + go run ./cmd/migrate down + +# Seed 3 sample subscriptions and print the spending summary. +# Prerequisite: the stack must already be up and migrated: +# docker compose up -d && make migrate-up +# Respects BASE_URL (default http://localhost:8080) and API_KEY +# (default dev-local-key). +demo: + ./scripts/demo.sh diff --git a/api/README.md b/api/README.md new file mode 100644 index 0000000..afb342e --- /dev/null +++ b/api/README.md @@ -0,0 +1,83 @@ +# api + +The Go backend for SubTrack — system of record for recurring subscriptions and spending totals. +See the [root README](../README.md) for the architecture and full quickstart. + +## Layering + +Strict one-direction dependency chain: + +- **handler** (`internal/handler`) — decodes HTTP requests, maps domain errors to status codes, + encodes JSON wire shapes. No business logic. +- **service** (`internal/subscription`) — the domain: validation, create/update/cancel/list, + and the spending-total and next-charge calculations. No HTTP or SQL. +- **repository** (`internal/postgres`) — persistence via `pgxpool`. No domain rules. +- **model** (`internal/subscription`) — the `Subscription` domain type and its input shapes. + +Entry points are `cmd/api` (the server) and `cmd/migrate` (schema migrations). + +## Data model + +One table, `subscriptions`, defined in `migrations/`: + +| Column | Type | Notes | +|---|---|---| +| `id` | `uuid` | server-generated (`gen_random_uuid()`) | +| `name` | `text` | non-empty | +| `cost_cents` | `int` | `> 0` — money is integer cents, never floats | +| `currency` | `char(3)` | e.g. `EUR` | +| `cycle` | `text` | `monthly` or `yearly` | +| `billing_day` | `int` | `1`–`28` | +| `start_date` | `date` | | +| `active` | `bool` | defaults `true`; cleared by cancel | +| `created_at` / `updated_at` | `timestamptz` | server-managed | + +All monetary fields on the wire are integer cents. + +## Endpoints + +| Method | Path | Auth | Returns | +|---|---|---|---| +| GET | `/healthz` | none | `{"status":"ok"}` when the DB is reachable | +| POST | `/v1/subscriptions` | `X-API-Key` | 201 + created subscription | +| GET | `/v1/subscriptions?active=` | `X-API-Key` | `{"subscriptions": [...]}` (all, or active only) | +| GET | `/v1/subscriptions/summary` | `X-API-Key` | monthly/annual totals + per-subscription breakdown | +| GET | `/v1/subscriptions/{id}` | `X-API-Key` | the subscription, or 404 | +| PATCH | `/v1/subscriptions/{id}` | `X-API-Key` | updated subscription (partial update) | +| POST | `/v1/subscriptions/{id}/cancel` | `X-API-Key` | subscription with `active=false` (idempotent) | + +`/healthz` is registered unwrapped so monitoring can reach it without a key. Every `/v1/*` route is +wrapped by the API-key middleware. + +## Auth + +Every `/v1/*` route requires a shared secret in the `X-API-Key` header, compared in constant time +(`crypto/subtle`) so response timing cannot be used to probe the key. A missing or wrong key both +return a generic 401. This is a deliberately minimal scheme for a single trusted client; OAuth is +the production follow-up. + +## Quickstart + +```sh +cp .env.example .env # optional — compose ships working dev defaults +docker compose up -d # Postgres 16 (5432) + API (8080) +make migrate-up # apply migrations +curl http://localhost:8080/healthz +``` + +`make migrate-down` reverts all migrations. `make demo` seeds three subscriptions and prints the +spending summary (requires the stack up and migrated first). + +Key env vars: `PORT` (default `8080`), `API_KEY` (required — the server won't start without it; +dev default `dev-local-key`), and either `DATABASE_URL` or the discrete `POSTGRES_*` parts. + +## Migrations + +Schema lives only in `migrations/`, applied with [golang-migrate](https://github.com/golang-migrate/migrate) +via `cmd/migrate`, which reuses the server's config loader so both target the same database. No +schema is created from application code. + +## See also + +- [Root README](../README.md) — architecture, MCP tools, full quickstart. +- [`mcp/README.md`](../mcp/README.md) — the FastMCP server exposing this backend to LLM agents. diff --git a/api/cmd/.DS_Store b/api/cmd/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..023038ddf4a7896496b05e20b14486baba0faa88 GIT binary patch literal 6148 zcmeHKOG-mQ5Ue%<1KDKha<1SFh7eDX3;2mhAQJJje=E=B(X9R;36BSE+(hMPq!uxQdkN|0VyB_q<|Fol>%ORxc&of#I3y+=7B};py4k8jvACV_7U{5_ zs8I??fpZ0Bxm$9b)7^jo^;e9_%F4+@7U l$HXYdTzEOYiloeIKIeWf91?@hc+iRZ8E{=>QsA!@_y&-g80G)~ literal 0 HcmV?d00001 diff --git a/api/cmd/api/main.go b/api/cmd/api/main.go new file mode 100644 index 0000000..dcd60ed --- /dev/null +++ b/api/cmd/api/main.go @@ -0,0 +1,98 @@ +// Command api boots the subtrack-api HTTP server: it loads configuration, +// connects to PostgreSQL via pgxpool (failing fast if unreachable), and +// serves the HTTP API. +package main + +import ( + "context" + "errors" + "log" + "net/http" + "time" + + "github.com/jackc/pgx/v5/pgxpool" + + "github.com/rubenjpdev/subtrack-mcp/subtrack-api/internal/config" + "github.com/rubenjpdev/subtrack-mcp/subtrack-api/internal/postgres" + "github.com/rubenjpdev/subtrack-mcp/subtrack-api/internal/server" + "github.com/rubenjpdev/subtrack-mcp/subtrack-api/internal/subscription" +) + +const startupPingTimeout = 5 * time.Second + +func main() { + if err := run(); err != nil { + log.Fatalf("subtrack-api: %v", err) + } +} + +// run wires configuration, the database pool and the HTTP server together. +// It returns an error rather than calling os.Exit directly so it stays +// testable in isolation from process-level concerns. +func run() error { + cfg, err := config.Load() + if err != nil { + return err + } + + pool, err := connectToDatabase(cfg.DatabaseURL) + if err != nil { + return err + } + defer pool.Close() + + subscriptionRepo := postgres.NewSubscriptionRepository(pool) + subscriptionService := subscription.NewService(subscriptionRepo) + + addr := ":" + cfg.Port + srv := server.New(addr, pool, subscriptionService, cfg.APIKey) + + log.Printf("subtrack-api listening on %s", addr) + if err := srv.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) { + return err + } + return nil +} + +// connectToDatabase creates a pgx connection pool and pings it once with a +// timeout so that startup fails fast (with a clear error) when Postgres is +// unreachable, rather than serving traffic against a broken dependency. +func connectToDatabase(databaseURL string) (*pgxpool.Pool, error) { + pool, err := pgxpool.New(context.Background(), databaseURL) + if err != nil { + return nil, errFailedToCreatePool(err) + } + + ctx, cancel := context.WithTimeout(context.Background(), startupPingTimeout) + defer cancel() + + if err := pool.Ping(ctx); err != nil { + pool.Close() + return nil, errFailedToReachDatabase(err) + } + + return pool, nil +} + +func errFailedToCreatePool(err error) error { + return &startupError{stage: "creating database pool", cause: err} +} + +func errFailedToReachDatabase(err error) error { + return &startupError{stage: "pinging database", cause: err} +} + +// startupError wraps a failure that occurred during startup with a stage +// label, producing a clear, actionable message for operators. +type startupError struct { + stage string + cause error +} + +func (e *startupError) Error() string { + return e.stage + ": " + e.cause.Error() +} + +func (e *startupError) Unwrap() error { + return e.cause +} diff --git a/api/cmd/migrate/main.go b/api/cmd/migrate/main.go new file mode 100644 index 0000000..afa278b --- /dev/null +++ b/api/cmd/migrate/main.go @@ -0,0 +1,143 @@ +// Command migrate applies or reverts database schema migrations using the +// golang-migrate library against the project's migrations/ directory. It +// reuses the same configuration loader as the API server so it always talks +// to the same database. +// +// Usage: +// +// go run ./cmd/migrate up +// go run ./cmd/migrate down +package main + +import ( + "errors" + "fmt" + "log" + "os" + "strings" + + "github.com/golang-migrate/migrate/v4" + _ "github.com/golang-migrate/migrate/v4/database/pgx/v5" + _ "github.com/golang-migrate/migrate/v4/source/file" + + "github.com/rubenjpdev/subtrack-mcp/subtrack-api/internal/config" +) + +const ( + migrationsSource = "file://migrations" + + // pgxDriverScheme is the scheme golang-migrate's pgx/v5 database driver + // registers itself under. The application's DSN uses the standard + // "postgres://" scheme, so it must be rewritten before being handed to + // migrate.New. + pgxDriverScheme = "pgx5" +) + +// postgresSchemes lists the URL schemes produced by internal/config that +// must be translated to the pgx5 driver scheme golang-migrate expects. +var postgresSchemes = []string{"postgres://", "postgresql://"} + +func main() { + if err := run(os.Args); err != nil { + log.Fatalf("migrate: %v", err) + } +} + +// run parses the requested direction, loads configuration, opens a migrate +// instance against the configured database and applies the corresponding +// operation. It returns an error rather than calling os.Exit directly so it +// stays testable in isolation from process-level concerns. +func run(args []string) error { + direction, err := parseDirection(args) + if err != nil { + return err + } + + cfg, err := config.Load() + if err != nil { + return err + } + + m, err := migrate.New(migrationsSource, toPgxDriverURL(cfg.DatabaseURL)) + if err != nil { + return fmt.Errorf("opening migrator: %w", err) + } + defer closeMigrator(m) + + return applyDirection(m, direction) +} + +// toPgxDriverURL rewrites a standard "postgres://" / "postgresql://" DSN, as +// produced by internal/config, into the "pgx5://" form golang-migrate's +// pgx/v5 database driver expects to select itself by scheme. URLs that +// already use a different scheme are returned unchanged. +func toPgxDriverURL(dsn string) string { + for _, scheme := range postgresSchemes { + if strings.HasPrefix(dsn, scheme) { + return pgxDriverScheme + "://" + strings.TrimPrefix(dsn, scheme) + } + } + return dsn +} + +// direction identifies which migration operation to run. +type direction string + +const ( + directionUp direction = "up" + directionDown direction = "down" +) + +// parseDirection extracts and validates the subcommand from CLI arguments. +func parseDirection(args []string) (direction, error) { + if len(args) < 2 { + return "", errors.New("missing subcommand: expected \"up\" or \"down\"") + } + + switch direction(args[1]) { + case directionUp: + return directionUp, nil + case directionDown: + return directionDown, nil + default: + return "", fmt.Errorf("unknown subcommand %q: expected \"up\" or \"down\"", args[1]) + } +} + +// applyDirection runs the migration operation matching direction, treating +// migrate.ErrNoChange as a successful no-op rather than a failure. +func applyDirection(m *migrate.Migrate, d direction) error { + var err error + switch d { + case directionUp: + err = m.Up() + case directionDown: + err = m.Down() + default: + return fmt.Errorf("unsupported direction %q", d) + } + + if err == nil { + log.Printf("migrate: %s completed", d) + return nil + } + + if errors.Is(err, migrate.ErrNoChange) { + log.Printf("migrate: %s: no change", d) + return nil + } + + return fmt.Errorf("running %s: %w", d, err) +} + +// closeMigrator releases the source and database connections held by m, +// logging (rather than swallowing) any error encountered while doing so. +func closeMigrator(m *migrate.Migrate) { + srcErr, dbErr := m.Close() + if srcErr != nil { + log.Printf("migrate: closing source: %v", srcErr) + } + if dbErr != nil { + log.Printf("migrate: closing database: %v", dbErr) + } +} diff --git a/api/docker-compose.yml b/api/docker-compose.yml new file mode 100644 index 0000000..f0696f1 --- /dev/null +++ b/api/docker-compose.yml @@ -0,0 +1,35 @@ +services: + postgres: + image: postgres:16 + environment: + POSTGRES_USER: subtrack + POSTGRES_PASSWORD: devpassword + POSTGRES_DB: subtrack + volumes: + - postgres-data:/var/lib/postgresql/data + ports: + - "5432:5432" + healthcheck: + test: ["CMD-SHELL", "pg_isready -U subtrack -d subtrack"] + interval: 5s + timeout: 5s + retries: 5 + + api: + build: . + depends_on: + postgres: + condition: service_healthy + environment: + PORT: "8080" + API_KEY: "dev-local-key" + POSTGRES_HOST: postgres + POSTGRES_PORT: "5432" + POSTGRES_USER: subtrack + POSTGRES_PASSWORD: devpassword + POSTGRES_DB: subtrack + ports: + - "8080:8080" + +volumes: + postgres-data: diff --git a/api/go.mod b/api/go.mod new file mode 100644 index 0000000..12d9433 --- /dev/null +++ b/api/go.mod @@ -0,0 +1,17 @@ +module github.com/rubenjpdev/subtrack-mcp/subtrack-api + +go 1.26.4 + +require ( + github.com/golang-migrate/migrate/v4 v4.19.1 + github.com/jackc/pgx/v5 v5.10.0 +) + +require ( + github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa // indirect + github.com/jackc/pgpassfile v1.0.0 // indirect + github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect + github.com/jackc/puddle/v2 v2.2.2 // indirect + golang.org/x/sync v0.18.0 // indirect + golang.org/x/text v0.31.0 // indirect +) diff --git a/api/go.sum b/api/go.sum new file mode 100644 index 0000000..2718037 --- /dev/null +++ b/api/go.sum @@ -0,0 +1,83 @@ +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= +github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= +github.com/containerd/errdefs v1.0.0 h1:tg5yIfIlQIrxYtu9ajqY42W3lpS19XqdxRQeEwYG8PI= +github.com/containerd/errdefs v1.0.0/go.mod h1:+YBYIdtsnF4Iw6nWZhJcqGSg/dwvV7tyJ/kCkyJ2k+M= +github.com/containerd/errdefs/pkg v0.3.0 h1:9IKJ06FvyNlexW690DXuQNx2KA2cUJXx151Xdx3ZPPE= +github.com/containerd/errdefs/pkg v0.3.0/go.mod h1:NJw6s9HwNuRhnjJhM7pylWwMyAkmCQvQ4GpJHEqRLVk= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dhui/dktest v0.4.6 h1:+DPKyScKSEp3VLtbMDHcUq6V5Lm5zfZZVb0Sk7Ahom4= +github.com/dhui/dktest v0.4.6/go.mod h1:JHTSYDtKkvFNFHJKqCzVzqXecyv+tKt8EzceOmQOgbU= +github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk= +github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= +github.com/docker/docker v28.3.3+incompatible h1:Dypm25kh4rmk49v1eiVbsAtpAsYURjYkaKubwuBdxEI= +github.com/docker/docker v28.3.3+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c= +github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang-migrate/migrate/v4 v4.19.1 h1:OCyb44lFuQfYXYLx1SCxPZQGU7mcaZ7gH9yH4jSFbBA= +github.com/golang-migrate/migrate/v4 v4.19.1/go.mod h1:CTcgfjxhaUtsLipnLoQRWCrjYXycRz/g5+RWDuYgPrE= +github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa h1:s+4MhCQ6YrzisK6hFJUX53drDT4UsSW3DEhKn0ifuHw= +github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa/go.mod h1:a/s9Lp5W7n/DD0VrVoyJ00FbP2ytTPDVOivvn2bMlds= +github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= +github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= +github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo= +github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM= +github.com/jackc/pgx/v5 v5.10.0 h1:VhSvgU2jSli8o3AqIEOTJr7rZwAEUVo4E4XhR94Zfr0= +github.com/jackc/pgx/v5 v5.10.0/go.mod h1:mal1tBGAFfLHvZzaYh77YS/eC6IX9OWbRV1QIIM0Jn4= +github.com/jackc/puddle/v2 v2.2.2 h1:PR8nw+E/1w0GLuRFSmiioY6UooMp6KJv0/61nB7icHo= +github.com/jackc/puddle/v2 v2.2.2/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4= +github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= +github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0= +github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo= +github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0= +github.com/moby/term v0.5.0/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= +github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= +github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= +github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug= +github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 h1:F7Jx+6hwnZ41NSFTO5q4LYDtJRXBf2PD0rNBkeB/lus= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0/go.mod h1:UHB22Z8QsdRDrnAtX4PntOl36ajSxcdUMt1sF7Y6E7Q= +go.opentelemetry.io/otel v1.37.0 h1:9zhNfelUvx0KBfu/gb+ZgeAfAgtWrfHJZcAqFC228wQ= +go.opentelemetry.io/otel v1.37.0/go.mod h1:ehE/umFRLnuLa/vSccNq9oS1ErUlkkK71gMcN34UG8I= +go.opentelemetry.io/otel/metric v1.37.0 h1:mvwbQS5m0tbmqML4NqK+e3aDiO02vsf/WgbsdpcPoZE= +go.opentelemetry.io/otel/metric v1.37.0/go.mod h1:04wGrZurHYKOc+RKeye86GwKiTb9FKm1WHtO+4EVr2E= +go.opentelemetry.io/otel/trace v1.37.0 h1:HLdcFNbRQBE2imdSEgm/kwqmQj1Or1l/7bW6mxVK7z4= +go.opentelemetry.io/otel/trace v1.37.0/go.mod h1:TlgrlQ+PtQO5XFerSPUYG0JSgGyryXewPGyayAWSBS0= +golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I= +golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= +golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM= +golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/api/internal/config/config.go b/api/internal/config/config.go new file mode 100644 index 0000000..900734e --- /dev/null +++ b/api/internal/config/config.go @@ -0,0 +1,71 @@ +// Package config loads runtime configuration from environment variables. +package config + +import ( + "fmt" + "os" +) + +// Config holds all runtime configuration for the API process. +type Config struct { + // Port is the TCP port the HTTP server listens on. + Port string + // DatabaseURL is the connection string used to reach PostgreSQL. + DatabaseURL string + // APIKey is the shared secret that callers must present via the + // X-API-Key header on every /v1/* route (see internal/handler.RequireAPIKey). + // It is required: an empty key would make auth meaningless, so Load fails + // fast rather than ever running with an empty/guessable key. + APIKey string +} + +const defaultPort = "8080" + +// Load reads configuration from environment variables, applying defaults +// where appropriate, and returns an error if required values are missing. +func Load() (Config, error) { + cfg := Config{ + Port: envOrDefault("PORT", defaultPort), + DatabaseURL: os.Getenv("DATABASE_URL"), + APIKey: os.Getenv("API_KEY"), + } + + if cfg.DatabaseURL == "" { + dsn, err := databaseURLFromParts() + if err != nil { + return Config{}, err + } + cfg.DatabaseURL = dsn + } + + if cfg.APIKey == "" { + return Config{}, fmt.Errorf("config: missing required API_KEY: set it to the shared secret callers must present via X-API-Key") + } + + return cfg, nil +} + +// databaseURLFromParts builds a Postgres DSN from discrete POSTGRES_* env +// vars when DATABASE_URL is not set directly. +func databaseURLFromParts() (string, error) { + host := os.Getenv("POSTGRES_HOST") + port := envOrDefault("POSTGRES_PORT", "5432") + user := os.Getenv("POSTGRES_USER") + password := os.Getenv("POSTGRES_PASSWORD") + dbName := os.Getenv("POSTGRES_DB") + + if host == "" || user == "" || dbName == "" { + return "", fmt.Errorf("config: missing database configuration: set DATABASE_URL or POSTGRES_HOST/POSTGRES_USER/POSTGRES_DB (and optionally POSTGRES_PASSWORD/POSTGRES_PORT)") + } + + return fmt.Sprintf("postgres://%s:%s@%s:%s/%s?sslmode=disable", user, password, host, port, dbName), nil +} + +// envOrDefault returns the environment variable value for key, or fallback +// if it is unset or empty. +func envOrDefault(key, fallback string) string { + if v := os.Getenv(key); v != "" { + return v + } + return fallback +} diff --git a/api/internal/config/config_test.go b/api/internal/config/config_test.go new file mode 100644 index 0000000..5744050 --- /dev/null +++ b/api/internal/config/config_test.go @@ -0,0 +1,90 @@ +package config + +import "testing" + +func TestLoad_DefaultsPort(t *testing.T) { + t.Setenv("PORT", "") + t.Setenv("DATABASE_URL", "postgres://user:pass@localhost:5432/db?sslmode=disable") + t.Setenv("API_KEY", "test-key") + + cfg, err := Load() + if err != nil { + t.Fatalf("Load() returned unexpected error: %v", err) + } + if cfg.Port != defaultPort { + t.Errorf("Port = %q, want %q", cfg.Port, defaultPort) + } + if cfg.DatabaseURL == "" { + t.Error("DatabaseURL should not be empty") + } +} + +func TestLoad_UsesExplicitPort(t *testing.T) { + t.Setenv("PORT", "9090") + t.Setenv("DATABASE_URL", "postgres://user:pass@localhost:5432/db?sslmode=disable") + t.Setenv("API_KEY", "test-key") + + cfg, err := Load() + if err != nil { + t.Fatalf("Load() returned unexpected error: %v", err) + } + if cfg.Port != "9090" { + t.Errorf("Port = %q, want %q", cfg.Port, "9090") + } +} + +func TestLoad_BuildsDSNFromParts(t *testing.T) { + t.Setenv("DATABASE_URL", "") + t.Setenv("POSTGRES_HOST", "db") + t.Setenv("POSTGRES_PORT", "5432") + t.Setenv("POSTGRES_USER", "subtrack") + t.Setenv("POSTGRES_PASSWORD", "secret") + t.Setenv("POSTGRES_DB", "subtrack") + t.Setenv("API_KEY", "test-key") + + cfg, err := Load() + if err != nil { + t.Fatalf("Load() returned unexpected error: %v", err) + } + want := "postgres://subtrack:secret@db:5432/subtrack?sslmode=disable" + if cfg.DatabaseURL != want { + t.Errorf("DatabaseURL = %q, want %q", cfg.DatabaseURL, want) + } +} + +func TestLoad_ErrorsWhenDatabaseConfigMissing(t *testing.T) { + t.Setenv("DATABASE_URL", "") + t.Setenv("POSTGRES_HOST", "") + t.Setenv("POSTGRES_USER", "") + t.Setenv("POSTGRES_PASSWORD", "") + t.Setenv("POSTGRES_DB", "") + t.Setenv("API_KEY", "test-key") + + _, err := Load() + if err == nil { + t.Fatal("Load() expected an error when database config is missing, got nil") + } +} + +func TestLoad_ErrorsWhenAPIKeyMissing(t *testing.T) { + t.Setenv("DATABASE_URL", "postgres://user:pass@localhost:5432/db?sslmode=disable") + t.Setenv("API_KEY", "") + + _, err := Load() + if err == nil { + t.Fatal("Load() expected an error when API_KEY is unset, got nil") + } +} + +func TestLoad_SucceedsWhenAPIKeySet(t *testing.T) { + t.Setenv("DATABASE_URL", "postgres://user:pass@localhost:5432/db?sslmode=disable") + t.Setenv("API_KEY", "a-real-looking-key") + + cfg, err := Load() + if err != nil { + t.Fatalf("Load() returned unexpected error: %v", err) + } + if cfg.APIKey != "a-real-looking-key" { + t.Errorf("APIKey = %q, want %q", cfg.APIKey, "a-real-looking-key") + } +} diff --git a/api/internal/handler/auth.go b/api/internal/handler/auth.go new file mode 100644 index 0000000..e5c0709 --- /dev/null +++ b/api/internal/handler/auth.go @@ -0,0 +1,44 @@ +package handler + +import ( + "crypto/subtle" + "net/http" +) + +// apiKeyHeader is the request header carrying the shared-secret API key. +const apiKeyHeader = "X-API-Key" + +// RequireAPIKey wraps next with a check that the request carries a valid +// X-API-Key header, comparing it to apiKey using a constant-time comparison +// so response timing cannot be used to probe the key byte by byte. A missing +// header or a mismatch both yield a generic 401 — the response intentionally +// does not distinguish "missing" from "wrong" so callers cannot use it as an +// oracle to enumerate valid keys. +// +// This is a deliberately-minimal shared-secret scheme (KD-5) suitable for a +// single trusted MCP client talking to its own backend. OAuth (per-client +// credentials, token expiry, scopes) is the production follow-up and is out +// of scope here. +func RequireAPIKey(apiKey string, next http.HandlerFunc) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + provided := r.Header.Get(apiKeyHeader) + + if !constantTimeEqual(provided, apiKey) { + writeUnauthorizedError(w) + return + } + + next(w, r) + } +} + +// constantTimeEqual reports whether a and b are equal using +// subtle.ConstantTimeCompare. It first checks length — which is not secret — +// and only feeds equal-length byte slices to ConstantTimeCompare, since that +// function requires its inputs to be the same length. +func constantTimeEqual(a, b string) bool { + if len(a) != len(b) { + return false + } + return subtle.ConstantTimeCompare([]byte(a), []byte(b)) == 1 +} diff --git a/api/internal/handler/auth_test.go b/api/internal/handler/auth_test.go new file mode 100644 index 0000000..21f33cb --- /dev/null +++ b/api/internal/handler/auth_test.go @@ -0,0 +1,83 @@ +package handler + +import ( + "encoding/json" + "net/http" + "net/http/httptest" + "testing" +) + +const testAPIKey = "test-api-key-12345" + +// sentinelNext records whether it was invoked, letting tests assert that the +// middleware short-circuits on rejection and delegates on success. +func sentinelNext(called *bool) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + *called = true + w.WriteHeader(http.StatusOK) + } +} + +func TestRequireAPIKey_MissingHeaderReturnsUnauthorized(t *testing.T) { + var called bool + req := httptest.NewRequest(http.MethodGet, "/v1/subscriptions", nil) + rec := httptest.NewRecorder() + + RequireAPIKey(testAPIKey, sentinelNext(&called)).ServeHTTP(rec, req) + + if called { + t.Error("next was called, want it to be skipped when the API key header is missing") + } + assertUnauthorized(t, rec) +} + +func TestRequireAPIKey_WrongKeyReturnsUnauthorized(t *testing.T) { + var called bool + req := httptest.NewRequest(http.MethodGet, "/v1/subscriptions", nil) + req.Header.Set(apiKeyHeader, "wrong-key") + rec := httptest.NewRecorder() + + RequireAPIKey(testAPIKey, sentinelNext(&called)).ServeHTTP(rec, req) + + if called { + t.Error("next was called, want it to be skipped when the API key is wrong") + } + assertUnauthorized(t, rec) +} + +func TestRequireAPIKey_CorrectKeyCallsNext(t *testing.T) { + var called bool + req := httptest.NewRequest(http.MethodGet, "/v1/subscriptions", nil) + req.Header.Set(apiKeyHeader, testAPIKey) + rec := httptest.NewRecorder() + + RequireAPIKey(testAPIKey, sentinelNext(&called)).ServeHTTP(rec, req) + + if !called { + t.Error("next was not called, want it to be invoked when the API key matches") + } + if rec.Code != http.StatusOK { + t.Fatalf("status = %d, want %d", rec.Code, http.StatusOK) + } +} + +// assertUnauthorized checks that rec carries a 401 with the structured +// errorResponse shape and the "unauthorized" code. +func assertUnauthorized(t *testing.T, rec *httptest.ResponseRecorder) { + t.Helper() + + if rec.Code != http.StatusUnauthorized { + t.Fatalf("status = %d, want %d", rec.Code, http.StatusUnauthorized) + } + + var body errorResponse + if err := json.NewDecoder(rec.Body).Decode(&body); err != nil { + t.Fatalf("failed to decode response body: %v", err) + } + if body.Error.Code != errCodeUnauthorized { + t.Errorf("error code = %q, want %q", body.Error.Code, errCodeUnauthorized) + } + if body.Error.Message == "" { + t.Error("error message should not be empty") + } +} diff --git a/api/internal/handler/error.go b/api/internal/handler/error.go new file mode 100644 index 0000000..0676669 --- /dev/null +++ b/api/internal/handler/error.go @@ -0,0 +1,68 @@ +package handler + +import ( + "encoding/json" + "net/http" +) + +// errorResponse is the single structured JSON error shape used across all +// edge handlers. It is reused for 400 (validation, malformed body) and 404 +// (not found) outcomes, and is intended to be reused by future features +// (update/cancel/auth) so clients have one error contract to parse. +// +// Shape: {"error": {"code": "...", "message": "...", "fields": {...}}} +// "fields" is omitted when there is no per-field detail. +type errorResponse struct { + Error errorBody `json:"error"` +} + +type errorBody struct { + Code string `json:"code"` + Message string `json:"message"` + Fields map[string]string `json:"fields,omitempty"` +} + +// Error codes shared across handlers. Keep these stable — clients may match +// on them. +const ( + errCodeValidation = "validation_error" + errCodeMalformedBody = "malformed_body" + errCodeNotFound = "not_found" + errCodeUnauthorized = "unauthorized" +) + +// writeError encodes a structured error response with the given HTTP status. +func writeError(w http.ResponseWriter, statusCode int, code, message string, fields map[string]string) { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(statusCode) + _ = json.NewEncoder(w).Encode(errorResponse{ + Error: errorBody{ + Code: code, + Message: message, + Fields: fields, + }, + }) +} + +// writeValidationError renders a 400 with per-field validation detail. +func writeValidationError(w http.ResponseWriter, fields map[string]string) { + writeError(w, http.StatusBadRequest, errCodeValidation, "validation failed", fields) +} + +// writeMalformedBodyError renders a 400 for a request body that could not be +// decoded as the expected JSON shape. +func writeMalformedBodyError(w http.ResponseWriter) { + writeError(w, http.StatusBadRequest, errCodeMalformedBody, "request body is malformed or missing required JSON fields", nil) +} + +// writeNotFoundError renders a 404 for a missing resource. +func writeNotFoundError(w http.ResponseWriter, message string) { + writeError(w, http.StatusNotFound, errCodeNotFound, message, nil) +} + +// writeUnauthorizedError renders a 401 for a missing or invalid API key. The +// message is deliberately generic — it must not reveal whether the key was +// absent or simply wrong (see RequireAPIKey in auth.go). +func writeUnauthorizedError(w http.ResponseWriter) { + writeError(w, http.StatusUnauthorized, errCodeUnauthorized, "missing or invalid API key", nil) +} diff --git a/api/internal/handler/health.go b/api/internal/handler/health.go new file mode 100644 index 0000000..847abb5 --- /dev/null +++ b/api/internal/handler/health.go @@ -0,0 +1,54 @@ +// Package handler contains HTTP edge handlers. They decode/encode JSON, +// delegate to services or pingers, and shape responses. No business logic. +package handler + +import ( + "context" + "encoding/json" + "net/http" + "time" +) + +// Pinger checks connectivity to a dependency (e.g. the database). It is the +// seam that lets health handlers be unit-tested without a live database. +type Pinger interface { + Ping(ctx context.Context) error +} + +// PingerFunc adapts a plain function to the Pinger interface. +type PingerFunc func(ctx context.Context) error + +// Ping calls f(ctx). +func (f PingerFunc) Ping(ctx context.Context) error { + return f(ctx) +} + +const healthCheckTimeout = 2 * time.Second + +type healthResponse struct { + Status string `json:"status"` +} + +// Health returns an http.HandlerFunc that responds 200 {"status":"ok"} when +// the pinger reports a healthy dependency, and 503 otherwise. +func Health(pinger Pinger) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + ctx, cancel := context.WithTimeout(r.Context(), healthCheckTimeout) + defer cancel() + + if err := pinger.Ping(ctx); err != nil { + writeHealthResponse(w, http.StatusServiceUnavailable, "unavailable") + return + } + + writeHealthResponse(w, http.StatusOK, "ok") + } +} + +// writeHealthResponse encodes the health status as JSON with the given +// HTTP status code. +func writeHealthResponse(w http.ResponseWriter, statusCode int, status string) { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(statusCode) + _ = json.NewEncoder(w).Encode(healthResponse{Status: status}) +} diff --git a/api/internal/handler/health_test.go b/api/internal/handler/health_test.go new file mode 100644 index 0000000..3d4d2c2 --- /dev/null +++ b/api/internal/handler/health_test.go @@ -0,0 +1,52 @@ +package handler + +import ( + "context" + "encoding/json" + "errors" + "net/http" + "net/http/httptest" + "testing" +) + +func TestHealth_ReturnsOKWhenPingerSucceeds(t *testing.T) { + healthyPinger := PingerFunc(func(ctx context.Context) error { return nil }) + + req := httptest.NewRequest(http.MethodGet, "/healthz", nil) + rec := httptest.NewRecorder() + + Health(healthyPinger).ServeHTTP(rec, req) + + if rec.Code != http.StatusOK { + t.Fatalf("status = %d, want %d", rec.Code, http.StatusOK) + } + + var body healthResponse + if err := json.NewDecoder(rec.Body).Decode(&body); err != nil { + t.Fatalf("failed to decode response body: %v", err) + } + if body.Status != "ok" { + t.Errorf("status field = %q, want %q", body.Status, "ok") + } +} + +func TestHealth_ReturnsServiceUnavailableWhenPingerFails(t *testing.T) { + failingPinger := PingerFunc(func(ctx context.Context) error { return errors.New("db unreachable") }) + + req := httptest.NewRequest(http.MethodGet, "/healthz", nil) + rec := httptest.NewRecorder() + + Health(failingPinger).ServeHTTP(rec, req) + + if rec.Code != http.StatusServiceUnavailable { + t.Fatalf("status = %d, want %d", rec.Code, http.StatusServiceUnavailable) + } + + var body healthResponse + if err := json.NewDecoder(rec.Body).Decode(&body); err != nil { + t.Fatalf("failed to decode response body: %v", err) + } + if body.Status != "unavailable" { + t.Errorf("status field = %q, want %q", body.Status, "unavailable") + } +} diff --git a/api/internal/handler/subscription.go b/api/internal/handler/subscription.go new file mode 100644 index 0000000..62378cf --- /dev/null +++ b/api/internal/handler/subscription.go @@ -0,0 +1,351 @@ +package handler + +import ( + "context" + "encoding/json" + "errors" + "net/http" + "time" + + "github.com/rubenjpdev/subtrack-mcp/subtrack-api/internal/subscription" +) + +// SubscriptionService is the seam this handler depends on. It is a small, +// consumer-defined interface satisfied by *subscription.Service, which lets +// tests substitute a fake and stay DB-free. +type SubscriptionService interface { + Create(ctx context.Context, input subscription.CreateInput) (subscription.Subscription, error) + Get(ctx context.Context, id string) (subscription.Subscription, error) + List(ctx context.Context, activeOnly bool) ([]subscription.Subscription, error) + Update(ctx context.Context, id string, patch subscription.SubscriptionPatch) (subscription.Subscription, error) + Cancel(ctx context.Context, id string) (subscription.Subscription, error) + Summary(ctx context.Context) (subscription.Summary, error) +} + +// dateLayout is the wire format for dates (YYYY-MM-DD), matching the SQL +// `date` column and keeping the JSON contract independent of time-of-day. +const dateLayout = "2006-01-02" + +// createSubscriptionRequest is the explicit wire shape for POST /v1/subscriptions. +// It intentionally omits id/active/created_at/updated_at — those are +// server/DB-managed (see subscription.CreateInput). +type createSubscriptionRequest struct { + Name string `json:"name"` + CostCents int `json:"cost_cents"` + Currency string `json:"currency"` + Cycle string `json:"cycle"` + BillingDay int `json:"billing_day"` + StartDate string `json:"start_date"` +} + +// subscriptionResponse is the explicit wire shape returned for a single +// subscription. It is local to the handler so the internal domain model never +// leaks across the HTTP boundary. +type subscriptionResponse struct { + ID string `json:"id"` + Name string `json:"name"` + CostCents int `json:"cost_cents"` + Currency string `json:"currency"` + Cycle string `json:"cycle"` + BillingDay int `json:"billing_day"` + StartDate string `json:"start_date"` + Active bool `json:"active"` + CreatedAt string `json:"created_at"` + UpdatedAt string `json:"updated_at"` +} + +// listSubscriptionsResponse is the explicit wire shape for GET /v1/subscriptions. +type listSubscriptionsResponse struct { + Subscriptions []subscriptionResponse `json:"subscriptions"` +} + +// subscriptionSummaryResponse is the explicit per-subscription wire shape +// nested in summaryResponse. It is local to the handler so the domain model +// (subscription.SubscriptionSummary) never leaks across the HTTP boundary. +type subscriptionSummaryResponse struct { + ID string `json:"id"` + Name string `json:"name"` + PaidToDateCents int `json:"paid_to_date_cents"` + NextChargeDate string `json:"next_charge_date"` +} + +// summaryResponse is the explicit wire shape for GET /v1/subscriptions/summary. +type summaryResponse struct { + MonthlyTotalCents int `json:"monthly_total_cents"` + AnnualTotalCents int `json:"annual_total_cents"` + Subscriptions []subscriptionSummaryResponse `json:"subscriptions"` +} + +// CreateSubscription returns a handler for POST /v1/subscriptions. It decodes +// the request, delegates validation+persistence to the service, and maps the +// outcome to 201 + body, 400 (malformed body / validation), or a wrapped 500. +func CreateSubscription(svc SubscriptionService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + var req createSubscriptionRequest + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + writeMalformedBodyError(w) + return + } + + input, err := toCreateInput(req) + if err != nil { + writeValidationError(w, map[string]string{"start_date": "must be a valid date in YYYY-MM-DD format"}) + return + } + + sub, err := svc.Create(r.Context(), input) + if err != nil { + writeCreateError(w, err) + return + } + + writeJSON(w, http.StatusCreated, toSubscriptionResponse(sub)) + } +} + +// writeCreateError maps a Create error to its HTTP representation: validation +// failures become a structured 400, anything else a 500. +func writeCreateError(w http.ResponseWriter, err error) { + var verr *subscription.ValidationError + if errors.As(err, &verr) { + writeValidationError(w, verr.Fields) + return + } + writeError(w, http.StatusInternalServerError, "internal_error", "failed to create subscription", nil) +} + +// toCreateInput converts the wire request to the service's CreateInput, +// parsing the date field. A parse failure is reported as a validation error +// on start_date so the client gets consistent, structured feedback. +func toCreateInput(req createSubscriptionRequest) (subscription.CreateInput, error) { + startDate, err := time.Parse(dateLayout, req.StartDate) + if err != nil { + return subscription.CreateInput{}, err + } + + return subscription.CreateInput{ + Name: req.Name, + CostCents: req.CostCents, + Currency: req.Currency, + Cycle: req.Cycle, + BillingDay: req.BillingDay, + StartDate: startDate, + }, nil +} + +// GetSubscription returns a handler for GET /v1/subscriptions/{id}. It maps +// outcomes to 200 + body or 404. +func GetSubscription(svc SubscriptionService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + id := r.PathValue("id") + + sub, err := svc.Get(r.Context(), id) + if err != nil { + if errors.Is(err, subscription.ErrNotFound) { + writeNotFoundError(w, "subscription not found") + return + } + writeError(w, http.StatusInternalServerError, "internal_error", "failed to fetch subscription", nil) + return + } + + writeJSON(w, http.StatusOK, toSubscriptionResponse(sub)) + } +} + +// updateSubscriptionRequest is the explicit wire shape for +// PATCH /v1/subscriptions/{id}. Every field is a pointer so absence ("not in +// the JSON body") is distinguishable from a provided zero value, which is +// what makes the update partial. id/active/created_at/updated_at are +// intentionally absent — they are not client-settable here (active changes +// only via the cancel endpoint). +type updateSubscriptionRequest struct { + Name *string `json:"name"` + CostCents *int `json:"cost_cents"` + Currency *string `json:"currency"` + Cycle *string `json:"cycle"` + BillingDay *int `json:"billing_day"` + StartDate *string `json:"start_date"` +} + +// UpdateSubscription returns a handler for PATCH /v1/subscriptions/{id}. It +// decodes a partial request, delegates merge+validation+persistence to the +// service, and maps the outcome to 200 + body, 400 (malformed body / +// validation), 404, or a wrapped 500. +func UpdateSubscription(svc SubscriptionService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + id := r.PathValue("id") + + var req updateSubscriptionRequest + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + writeMalformedBodyError(w) + return + } + + patch, err := toSubscriptionPatch(req) + if err != nil { + writeValidationError(w, map[string]string{"start_date": "must be a valid date in YYYY-MM-DD format"}) + return + } + + sub, err := svc.Update(r.Context(), id, patch) + if err != nil { + writeUpdateError(w, err) + return + } + + writeJSON(w, http.StatusOK, toSubscriptionResponse(sub)) + } +} + +// writeUpdateError maps an Update error to its HTTP representation: +// validation failures become a structured 400, not-found a 404, anything else +// a 500. +func writeUpdateError(w http.ResponseWriter, err error) { + var verr *subscription.ValidationError + if errors.As(err, &verr) { + writeValidationError(w, verr.Fields) + return + } + if errors.Is(err, subscription.ErrNotFound) { + writeNotFoundError(w, "subscription not found") + return + } + writeError(w, http.StatusInternalServerError, "internal_error", "failed to update subscription", nil) +} + +// toSubscriptionPatch converts the wire request to the service's +// SubscriptionPatch, parsing the date field when provided. A parse failure is +// reported as a validation error on start_date so the client gets consistent, +// structured feedback (mirroring toCreateInput). +func toSubscriptionPatch(req updateSubscriptionRequest) (subscription.SubscriptionPatch, error) { + patch := subscription.SubscriptionPatch{ + Name: req.Name, + CostCents: req.CostCents, + Currency: req.Currency, + Cycle: req.Cycle, + BillingDay: req.BillingDay, + } + + if req.StartDate != nil { + startDate, err := time.Parse(dateLayout, *req.StartDate) + if err != nil { + return subscription.SubscriptionPatch{}, err + } + patch.StartDate = &startDate + } + + return patch, nil +} + +// CancelSubscription returns a handler for POST /v1/subscriptions/{id}/cancel. +// It takes no request body and is idempotent: cancelling an already-cancelled +// subscription returns 200 with the unchanged resource (a no-op). Maps +// outcomes to 200 + body, 404, or a wrapped 500. +func CancelSubscription(svc SubscriptionService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + id := r.PathValue("id") + + sub, err := svc.Cancel(r.Context(), id) + if err != nil { + if errors.Is(err, subscription.ErrNotFound) { + writeNotFoundError(w, "subscription not found") + return + } + writeError(w, http.StatusInternalServerError, "internal_error", "failed to cancel subscription", nil) + return + } + + writeJSON(w, http.StatusOK, toSubscriptionResponse(sub)) + } +} + +// ListSubscriptions returns a handler for GET /v1/subscriptions?active=. +// +// Query contract: `active=true` restricts the list to active subscriptions +// only; an absent or any other value returns all subscriptions. This mirrors +// subscription.Service.List's activeOnly parameter directly. +func ListSubscriptions(svc SubscriptionService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + activeOnly := r.URL.Query().Get("active") == "true" + + subs, err := svc.List(r.Context(), activeOnly) + if err != nil { + writeError(w, http.StatusInternalServerError, "internal_error", "failed to list subscriptions", nil) + return + } + + writeJSON(w, http.StatusOK, toListResponse(subs)) + } +} + +// SummarySubscriptions returns a handler for GET /v1/subscriptions/summary. +// All computation (totals, per-subscription breakdown) happens in the service +// layer (KD-1) — this handler only invokes it and marshals the result to its +// explicit wire shape. Maps outcomes to 200 + body or a wrapped 500. +func SummarySubscriptions(svc SubscriptionService) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + summary, err := svc.Summary(r.Context()) + if err != nil { + writeError(w, http.StatusInternalServerError, "internal_error", "failed to compute subscription summary", nil) + return + } + + writeJSON(w, http.StatusOK, toSummaryResponse(summary)) + } +} + +// toSummaryResponse maps a domain Summary to its wire shape, formatting dates +// as strings (dateLayout) so the JSON contract is explicit and independent of +// the domain model's Go types. The per-subscription slice is always non-nil +// (an empty summary renders as `"subscriptions": []`, never null). +func toSummaryResponse(summary subscription.Summary) summaryResponse { + items := make([]subscriptionSummaryResponse, 0, len(summary.Subscriptions)) + for _, item := range summary.Subscriptions { + items = append(items, subscriptionSummaryResponse{ + ID: item.ID, + Name: item.Name, + PaidToDateCents: item.PaidToDateCents, + NextChargeDate: item.NextChargeDate.Format(dateLayout), + }) + } + + return summaryResponse{ + MonthlyTotalCents: summary.MonthlyTotalCents, + AnnualTotalCents: summary.AnnualTotalCents, + Subscriptions: items, + } +} + +// toSubscriptionResponse maps a domain Subscription to its wire shape, +// formatting dates/timestamps as strings so the JSON contract is explicit and +// independent of the domain model's Go types. +func toSubscriptionResponse(sub subscription.Subscription) subscriptionResponse { + return subscriptionResponse{ + ID: sub.ID, + Name: sub.Name, + CostCents: sub.CostCents, + Currency: sub.Currency, + Cycle: sub.Cycle, + BillingDay: sub.BillingDay, + StartDate: sub.StartDate.Format(dateLayout), + Active: sub.Active, + CreatedAt: sub.CreatedAt.Format(time.RFC3339), + UpdatedAt: sub.UpdatedAt.Format(time.RFC3339), + } +} + +func toListResponse(subs []subscription.Subscription) listSubscriptionsResponse { + items := make([]subscriptionResponse, 0, len(subs)) + for _, sub := range subs { + items = append(items, toSubscriptionResponse(sub)) + } + return listSubscriptionsResponse{Subscriptions: items} +} + +// writeJSON encodes body as JSON with the given status code. +func writeJSON(w http.ResponseWriter, statusCode int, body any) { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(statusCode) + _ = json.NewEncoder(w).Encode(body) +} diff --git a/api/internal/handler/subscription_test.go b/api/internal/handler/subscription_test.go new file mode 100644 index 0000000..08410fb --- /dev/null +++ b/api/internal/handler/subscription_test.go @@ -0,0 +1,687 @@ +package handler + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "net/http" + "net/http/httptest" + "strings" + "testing" + "time" + + "github.com/rubenjpdev/subtrack-mcp/subtrack-api/internal/subscription" +) + +// fakeSubscriptionService is an in-memory SubscriptionService used to test +// handlers without a database or the real service/validation layer. +type fakeSubscriptionService struct { + createFn func(ctx context.Context, input subscription.CreateInput) (subscription.Subscription, error) + getFn func(ctx context.Context, id string) (subscription.Subscription, error) + listFn func(ctx context.Context, activeOnly bool) ([]subscription.Subscription, error) + updateFn func(ctx context.Context, id string, patch subscription.SubscriptionPatch) (subscription.Subscription, error) + cancelFn func(ctx context.Context, id string) (subscription.Subscription, error) + summaryFn func(ctx context.Context) (subscription.Summary, error) +} + +func (f *fakeSubscriptionService) Create(ctx context.Context, input subscription.CreateInput) (subscription.Subscription, error) { + return f.createFn(ctx, input) +} + +func (f *fakeSubscriptionService) Get(ctx context.Context, id string) (subscription.Subscription, error) { + return f.getFn(ctx, id) +} + +func (f *fakeSubscriptionService) List(ctx context.Context, activeOnly bool) ([]subscription.Subscription, error) { + return f.listFn(ctx, activeOnly) +} + +func (f *fakeSubscriptionService) Update(ctx context.Context, id string, patch subscription.SubscriptionPatch) (subscription.Subscription, error) { + return f.updateFn(ctx, id, patch) +} + +func (f *fakeSubscriptionService) Cancel(ctx context.Context, id string) (subscription.Subscription, error) { + return f.cancelFn(ctx, id) +} + +func (f *fakeSubscriptionService) Summary(ctx context.Context) (subscription.Summary, error) { + return f.summaryFn(ctx) +} + +func sampleSubscription() subscription.Subscription { + t := time.Date(2024, 3, 15, 12, 0, 0, 0, time.UTC) + return subscription.Subscription{ + ID: "11111111-1111-1111-1111-111111111111", + Name: "Netflix", + CostCents: 1599, + Currency: "USD", + Cycle: subscription.CycleMonthly, + BillingDay: 15, + StartDate: time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC), + Active: true, + CreatedAt: t, + UpdatedAt: t, + } +} + +const validCreateBody = `{ + "name": "Netflix", + "cost_cents": 1599, + "currency": "USD", + "cycle": "monthly", + "billing_day": 15, + "start_date": "2024-01-01" +}` + +func TestCreateSubscription_Returns201AndBody(t *testing.T) { + want := sampleSubscription() + svc := &fakeSubscriptionService{ + createFn: func(ctx context.Context, input subscription.CreateInput) (subscription.Subscription, error) { + return want, nil + }, + } + + req := httptest.NewRequest(http.MethodPost, "/v1/subscriptions", strings.NewReader(validCreateBody)) + rec := httptest.NewRecorder() + + CreateSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusCreated { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusCreated, rec.Body.String()) + } + + var body subscriptionResponse + if err := json.NewDecoder(rec.Body).Decode(&body); err != nil { + t.Fatalf("decode response: %v", err) + } + if body.ID != want.ID { + t.Errorf("ID = %q, want %q", body.ID, want.ID) + } + if body.Name != want.Name { + t.Errorf("Name = %q, want %q", body.Name, want.Name) + } + if body.StartDate != "2024-01-01" { + t.Errorf("StartDate = %q, want %q", body.StartDate, "2024-01-01") + } +} + +func TestCreateSubscription_ValidationErrorReturns400(t *testing.T) { + svc := &fakeSubscriptionService{ + createFn: func(ctx context.Context, input subscription.CreateInput) (subscription.Subscription, error) { + return subscription.Subscription{}, &subscription.ValidationError{ + Fields: map[string]string{"name": "must not be empty"}, + } + }, + } + + req := httptest.NewRequest(http.MethodPost, "/v1/subscriptions", strings.NewReader(validCreateBody)) + rec := httptest.NewRecorder() + + CreateSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusBadRequest { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusBadRequest, rec.Body.String()) + } + + var body errorResponse + if err := json.NewDecoder(rec.Body).Decode(&body); err != nil { + t.Fatalf("decode response: %v", err) + } + if body.Error.Code != errCodeValidation { + t.Errorf("error.code = %q, want %q", body.Error.Code, errCodeValidation) + } + if msg, ok := body.Error.Fields["name"]; !ok || msg == "" { + t.Errorf("error.fields[name] = %q, want a non-empty message", msg) + } +} + +func TestCreateSubscription_MalformedBodyReturns400(t *testing.T) { + svc := &fakeSubscriptionService{ + createFn: func(ctx context.Context, input subscription.CreateInput) (subscription.Subscription, error) { + t.Fatal("service.Create should not be called for a malformed body") + return subscription.Subscription{}, nil + }, + } + + req := httptest.NewRequest(http.MethodPost, "/v1/subscriptions", bytes.NewReader([]byte(`{not-json`))) + rec := httptest.NewRecorder() + + CreateSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusBadRequest { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusBadRequest, rec.Body.String()) + } + + var body errorResponse + if err := json.NewDecoder(rec.Body).Decode(&body); err != nil { + t.Fatalf("decode response: %v", err) + } + if body.Error.Code != errCodeMalformedBody { + t.Errorf("error.code = %q, want %q", body.Error.Code, errCodeMalformedBody) + } +} + +func TestCreateSubscription_InvalidStartDateReturns400(t *testing.T) { + svc := &fakeSubscriptionService{ + createFn: func(ctx context.Context, input subscription.CreateInput) (subscription.Subscription, error) { + t.Fatal("service.Create should not be called when start_date fails to parse") + return subscription.Subscription{}, nil + }, + } + + body := `{"name":"Netflix","cost_cents":1599,"currency":"USD","cycle":"monthly","billing_day":15,"start_date":"not-a-date"}` + req := httptest.NewRequest(http.MethodPost, "/v1/subscriptions", strings.NewReader(body)) + rec := httptest.NewRecorder() + + CreateSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusBadRequest { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusBadRequest, rec.Body.String()) + } + + var resp errorResponse + if err := json.NewDecoder(rec.Body).Decode(&resp); err != nil { + t.Fatalf("decode response: %v", err) + } + if resp.Error.Code != errCodeValidation { + t.Errorf("error.code = %q, want %q", resp.Error.Code, errCodeValidation) + } + if _, ok := resp.Error.Fields["start_date"]; !ok { + t.Errorf("error.fields = %v, want a start_date entry", resp.Error.Fields) + } +} + +func TestGetSubscription_Returns200(t *testing.T) { + want := sampleSubscription() + svc := &fakeSubscriptionService{ + getFn: func(ctx context.Context, id string) (subscription.Subscription, error) { + if id != want.ID { + t.Fatalf("Get id = %q, want %q", id, want.ID) + } + return want, nil + }, + } + + req := httptest.NewRequest(http.MethodGet, "/v1/subscriptions/"+want.ID, nil) + req.SetPathValue("id", want.ID) + rec := httptest.NewRecorder() + + GetSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusOK { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusOK, rec.Body.String()) + } + + var body subscriptionResponse + if err := json.NewDecoder(rec.Body).Decode(&body); err != nil { + t.Fatalf("decode response: %v", err) + } + if body.ID != want.ID { + t.Errorf("ID = %q, want %q", body.ID, want.ID) + } +} + +func TestGetSubscription_MissingReturns404(t *testing.T) { + svc := &fakeSubscriptionService{ + getFn: func(ctx context.Context, id string) (subscription.Subscription, error) { + return subscription.Subscription{}, subscription.ErrNotFound + }, + } + + req := httptest.NewRequest(http.MethodGet, "/v1/subscriptions/missing", nil) + req.SetPathValue("id", "missing") + rec := httptest.NewRecorder() + + GetSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusNotFound { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusNotFound, rec.Body.String()) + } + + var body errorResponse + if err := json.NewDecoder(rec.Body).Decode(&body); err != nil { + t.Fatalf("decode response: %v", err) + } + if body.Error.Code != errCodeNotFound { + t.Errorf("error.code = %q, want %q", body.Error.Code, errCodeNotFound) + } +} + +func TestGetSubscription_OtherErrorReturns500(t *testing.T) { + svc := &fakeSubscriptionService{ + getFn: func(ctx context.Context, id string) (subscription.Subscription, error) { + return subscription.Subscription{}, errors.New("boom") + }, + } + + req := httptest.NewRequest(http.MethodGet, "/v1/subscriptions/x", nil) + req.SetPathValue("id", "x") + rec := httptest.NewRecorder() + + GetSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusInternalServerError { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusInternalServerError, rec.Body.String()) + } +} + +func TestListSubscriptions_Returns200(t *testing.T) { + want := []subscription.Subscription{sampleSubscription(), sampleSubscription()} + var gotActiveOnly bool + svc := &fakeSubscriptionService{ + listFn: func(ctx context.Context, activeOnly bool) ([]subscription.Subscription, error) { + gotActiveOnly = activeOnly + return want, nil + }, + } + + req := httptest.NewRequest(http.MethodGet, "/v1/subscriptions", nil) + rec := httptest.NewRecorder() + + ListSubscriptions(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusOK { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusOK, rec.Body.String()) + } + if gotActiveOnly != false { + t.Errorf("activeOnly = %v, want false when ?active is absent", gotActiveOnly) + } + + var body listSubscriptionsResponse + if err := json.NewDecoder(rec.Body).Decode(&body); err != nil { + t.Fatalf("decode response: %v", err) + } + if len(body.Subscriptions) != len(want) { + t.Errorf("len(subscriptions) = %d, want %d", len(body.Subscriptions), len(want)) + } +} + +func TestListSubscriptions_ActiveQueryParam(t *testing.T) { + tests := []struct { + name string + query string + wantActiveOnly bool + }{ + {name: "active=true filters to active only", query: "?active=true", wantActiveOnly: true}, + {name: "active=false returns all", query: "?active=false", wantActiveOnly: false}, + {name: "absent returns all", query: "", wantActiveOnly: false}, + {name: "garbage value returns all", query: "?active=banana", wantActiveOnly: false}, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + var gotActiveOnly bool + svc := &fakeSubscriptionService{ + listFn: func(ctx context.Context, activeOnly bool) ([]subscription.Subscription, error) { + gotActiveOnly = activeOnly + return nil, nil + }, + } + + req := httptest.NewRequest(http.MethodGet, "/v1/subscriptions"+tt.query, nil) + rec := httptest.NewRecorder() + + ListSubscriptions(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusOK { + t.Fatalf("status = %d, want %d", rec.Code, http.StatusOK) + } + if gotActiveOnly != tt.wantActiveOnly { + t.Errorf("activeOnly = %v, want %v", gotActiveOnly, tt.wantActiveOnly) + } + }) + } +} + +func TestUpdateSubscription_Returns200(t *testing.T) { + want := sampleSubscription() + want.Name = "Disney+" + + var gotPatch subscription.SubscriptionPatch + svc := &fakeSubscriptionService{ + updateFn: func(ctx context.Context, id string, patch subscription.SubscriptionPatch) (subscription.Subscription, error) { + if id != want.ID { + t.Fatalf("Update id = %q, want %q", id, want.ID) + } + gotPatch = patch + return want, nil + }, + } + + body := `{"name":"Disney+"}` + req := httptest.NewRequest(http.MethodPatch, "/v1/subscriptions/"+want.ID, strings.NewReader(body)) + req.SetPathValue("id", want.ID) + rec := httptest.NewRecorder() + + UpdateSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusOK { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusOK, rec.Body.String()) + } + + var respBody subscriptionResponse + if err := json.NewDecoder(rec.Body).Decode(&respBody); err != nil { + t.Fatalf("decode response: %v", err) + } + if respBody.Name != "Disney+" { + t.Errorf("Name = %q, want %q", respBody.Name, "Disney+") + } + if gotPatch.Name == nil || *gotPatch.Name != "Disney+" { + t.Errorf("service received patch.Name = %v, want pointer to %q", gotPatch.Name, "Disney+") + } + if gotPatch.CostCents != nil { + t.Errorf("service received patch.CostCents = %v, want nil (absent field)", gotPatch.CostCents) + } +} + +func TestUpdateSubscription_ValidationErrorReturns400(t *testing.T) { + svc := &fakeSubscriptionService{ + updateFn: func(ctx context.Context, id string, patch subscription.SubscriptionPatch) (subscription.Subscription, error) { + return subscription.Subscription{}, &subscription.ValidationError{ + Fields: map[string]string{"cost_cents": "must be greater than zero"}, + } + }, + } + + body := `{"cost_cents":0}` + req := httptest.NewRequest(http.MethodPatch, "/v1/subscriptions/sub-1", strings.NewReader(body)) + req.SetPathValue("id", "sub-1") + rec := httptest.NewRecorder() + + UpdateSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusBadRequest { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusBadRequest, rec.Body.String()) + } + + var respBody errorResponse + if err := json.NewDecoder(rec.Body).Decode(&respBody); err != nil { + t.Fatalf("decode response: %v", err) + } + if respBody.Error.Code != errCodeValidation { + t.Errorf("error.code = %q, want %q", respBody.Error.Code, errCodeValidation) + } + if _, ok := respBody.Error.Fields["cost_cents"]; !ok { + t.Errorf("error.fields = %v, want a cost_cents entry", respBody.Error.Fields) + } +} + +func TestUpdateSubscription_MissingReturns404(t *testing.T) { + svc := &fakeSubscriptionService{ + updateFn: func(ctx context.Context, id string, patch subscription.SubscriptionPatch) (subscription.Subscription, error) { + return subscription.Subscription{}, subscription.ErrNotFound + }, + } + + body := `{"name":"Disney+"}` + req := httptest.NewRequest(http.MethodPatch, "/v1/subscriptions/missing", strings.NewReader(body)) + req.SetPathValue("id", "missing") + rec := httptest.NewRecorder() + + UpdateSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusNotFound { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusNotFound, rec.Body.String()) + } + + var respBody errorResponse + if err := json.NewDecoder(rec.Body).Decode(&respBody); err != nil { + t.Fatalf("decode response: %v", err) + } + if respBody.Error.Code != errCodeNotFound { + t.Errorf("error.code = %q, want %q", respBody.Error.Code, errCodeNotFound) + } +} + +func TestUpdateSubscription_MalformedBodyReturns400(t *testing.T) { + svc := &fakeSubscriptionService{ + updateFn: func(ctx context.Context, id string, patch subscription.SubscriptionPatch) (subscription.Subscription, error) { + t.Fatal("service.Update should not be called for a malformed body") + return subscription.Subscription{}, nil + }, + } + + req := httptest.NewRequest(http.MethodPatch, "/v1/subscriptions/sub-1", bytes.NewReader([]byte(`{not-json`))) + req.SetPathValue("id", "sub-1") + rec := httptest.NewRecorder() + + UpdateSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusBadRequest { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusBadRequest, rec.Body.String()) + } + + var respBody errorResponse + if err := json.NewDecoder(rec.Body).Decode(&respBody); err != nil { + t.Fatalf("decode response: %v", err) + } + if respBody.Error.Code != errCodeMalformedBody { + t.Errorf("error.code = %q, want %q", respBody.Error.Code, errCodeMalformedBody) + } +} + +func TestUpdateSubscription_InvalidStartDateReturns400(t *testing.T) { + svc := &fakeSubscriptionService{ + updateFn: func(ctx context.Context, id string, patch subscription.SubscriptionPatch) (subscription.Subscription, error) { + t.Fatal("service.Update should not be called when start_date fails to parse") + return subscription.Subscription{}, nil + }, + } + + body := `{"start_date":"not-a-date"}` + req := httptest.NewRequest(http.MethodPatch, "/v1/subscriptions/sub-1", strings.NewReader(body)) + req.SetPathValue("id", "sub-1") + rec := httptest.NewRecorder() + + UpdateSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusBadRequest { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusBadRequest, rec.Body.String()) + } + + var respBody errorResponse + if err := json.NewDecoder(rec.Body).Decode(&respBody); err != nil { + t.Fatalf("decode response: %v", err) + } + if _, ok := respBody.Error.Fields["start_date"]; !ok { + t.Errorf("error.fields = %v, want a start_date entry", respBody.Error.Fields) + } +} + +func TestCancelSubscription_Returns200(t *testing.T) { + want := sampleSubscription() + want.Active = false + svc := &fakeSubscriptionService{ + cancelFn: func(ctx context.Context, id string) (subscription.Subscription, error) { + if id != want.ID { + t.Fatalf("Cancel id = %q, want %q", id, want.ID) + } + return want, nil + }, + } + + req := httptest.NewRequest(http.MethodPost, "/v1/subscriptions/"+want.ID+"/cancel", nil) + req.SetPathValue("id", want.ID) + rec := httptest.NewRecorder() + + CancelSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusOK { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusOK, rec.Body.String()) + } + + var respBody subscriptionResponse + if err := json.NewDecoder(rec.Body).Decode(&respBody); err != nil { + t.Fatalf("decode response: %v", err) + } + if respBody.Active { + t.Error("Active = true, want false after cancel") + } +} + +func TestCancelSubscription_IdempotentReturns200(t *testing.T) { + want := sampleSubscription() + want.Active = false + svc := &fakeSubscriptionService{ + cancelFn: func(ctx context.Context, id string) (subscription.Subscription, error) { + // Service-layer idempotency: already-cancelled is returned as-is. + return want, nil + }, + } + + req := httptest.NewRequest(http.MethodPost, "/v1/subscriptions/"+want.ID+"/cancel", nil) + req.SetPathValue("id", want.ID) + rec := httptest.NewRecorder() + + CancelSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusOK { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusOK, rec.Body.String()) + } + + var respBody subscriptionResponse + if err := json.NewDecoder(rec.Body).Decode(&respBody); err != nil { + t.Fatalf("decode response: %v", err) + } + if respBody.Active { + t.Error("Active = true, want false (idempotent re-cancel)") + } +} + +func TestCancelSubscription_MissingReturns404(t *testing.T) { + svc := &fakeSubscriptionService{ + cancelFn: func(ctx context.Context, id string) (subscription.Subscription, error) { + return subscription.Subscription{}, subscription.ErrNotFound + }, + } + + req := httptest.NewRequest(http.MethodPost, "/v1/subscriptions/missing/cancel", nil) + req.SetPathValue("id", "missing") + rec := httptest.NewRecorder() + + CancelSubscription(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusNotFound { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusNotFound, rec.Body.String()) + } + + var respBody errorResponse + if err := json.NewDecoder(rec.Body).Decode(&respBody); err != nil { + t.Fatalf("decode response: %v", err) + } + if respBody.Error.Code != errCodeNotFound { + t.Errorf("error.code = %q, want %q", respBody.Error.Code, errCodeNotFound) + } +} + +func TestListSubscriptions_ErrorReturns500(t *testing.T) { + svc := &fakeSubscriptionService{ + listFn: func(ctx context.Context, activeOnly bool) ([]subscription.Subscription, error) { + return nil, errors.New("boom") + }, + } + + req := httptest.NewRequest(http.MethodGet, "/v1/subscriptions", nil) + rec := httptest.NewRecorder() + + ListSubscriptions(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusInternalServerError { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusInternalServerError, rec.Body.String()) + } +} + +func TestSummarySubscriptions_Returns200AndExpectedShape(t *testing.T) { + want := subscription.Summary{ + MonthlyTotalCents: 2432, + AnnualTotalCents: 29187, + Subscriptions: []subscription.SubscriptionSummary{ + { + ID: "sub-1", + Name: "Netflix", + PaidToDateCents: 3198, + NextChargeDate: time.Date(2024, 4, 15, 0, 0, 0, 0, time.UTC), + }, + }, + } + svc := &fakeSubscriptionService{ + summaryFn: func(ctx context.Context) (subscription.Summary, error) { + return want, nil + }, + } + + req := httptest.NewRequest(http.MethodGet, "/v1/subscriptions/summary", nil) + rec := httptest.NewRecorder() + + SummarySubscriptions(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusOK { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusOK, rec.Body.String()) + } + + var body summaryResponse + if err := json.NewDecoder(rec.Body).Decode(&body); err != nil { + t.Fatalf("decode response: %v", err) + } + if body.MonthlyTotalCents != want.MonthlyTotalCents { + t.Errorf("MonthlyTotalCents = %d, want %d", body.MonthlyTotalCents, want.MonthlyTotalCents) + } + if body.AnnualTotalCents != want.AnnualTotalCents { + t.Errorf("AnnualTotalCents = %d, want %d", body.AnnualTotalCents, want.AnnualTotalCents) + } + if len(body.Subscriptions) != 1 { + t.Fatalf("len(subscriptions) = %d, want 1", len(body.Subscriptions)) + } + got := body.Subscriptions[0] + if got.ID != want.Subscriptions[0].ID { + t.Errorf("ID = %q, want %q", got.ID, want.Subscriptions[0].ID) + } + if got.Name != want.Subscriptions[0].Name { + t.Errorf("Name = %q, want %q", got.Name, want.Subscriptions[0].Name) + } + if got.PaidToDateCents != want.Subscriptions[0].PaidToDateCents { + t.Errorf("PaidToDateCents = %d, want %d", got.PaidToDateCents, want.Subscriptions[0].PaidToDateCents) + } + if got.NextChargeDate != "2024-04-15" { + t.Errorf("NextChargeDate = %q, want %q", got.NextChargeDate, "2024-04-15") + } +} + +func TestSummarySubscriptions_EmptyReturnsEmptyArrayNotNull(t *testing.T) { + svc := &fakeSubscriptionService{ + summaryFn: func(ctx context.Context) (subscription.Summary, error) { + return subscription.Summary{}, nil + }, + } + + req := httptest.NewRequest(http.MethodGet, "/v1/subscriptions/summary", nil) + rec := httptest.NewRecorder() + + SummarySubscriptions(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusOK { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusOK, rec.Body.String()) + } + + if !strings.Contains(rec.Body.String(), `"subscriptions":[]`) { + t.Errorf("body = %s, want subscriptions to render as an empty array, not null", rec.Body.String()) + } +} + +func TestSummarySubscriptions_ErrorReturns500(t *testing.T) { + svc := &fakeSubscriptionService{ + summaryFn: func(ctx context.Context) (subscription.Summary, error) { + return subscription.Summary{}, errors.New("boom") + }, + } + + req := httptest.NewRequest(http.MethodGet, "/v1/subscriptions/summary", nil) + rec := httptest.NewRecorder() + + SummarySubscriptions(svc).ServeHTTP(rec, req) + + if rec.Code != http.StatusInternalServerError { + t.Fatalf("status = %d, want %d; body = %s", rec.Code, http.StatusInternalServerError, rec.Body.String()) + } +} diff --git a/api/internal/postgres/subscription.go b/api/internal/postgres/subscription.go new file mode 100644 index 0000000..1381bef --- /dev/null +++ b/api/internal/postgres/subscription.go @@ -0,0 +1,217 @@ +// Package postgres contains pgx-backed implementations of the repository +// interfaces declared by domain packages (e.g. subscription.Repository). It +// owns SQL and row-mapping concerns; it never contains business rules or +// schema definitions (schema lives in /migrations — KD-4). +package postgres + +import ( + "context" + "errors" + "fmt" + + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgxpool" + + "github.com/rubenjpdev/subtrack-mcp/subtrack-api/internal/subscription" +) + +// SubscriptionRepository implements subscription.Repository against a pgx +// connection pool, using parameterized queries only. +type SubscriptionRepository struct { + pool *pgxpool.Pool +} + +// NewSubscriptionRepository builds a repository backed by the given pool. +func NewSubscriptionRepository(pool *pgxpool.Pool) *SubscriptionRepository { + return &SubscriptionRepository{pool: pool} +} + +const insertSubscriptionSQL = ` +INSERT INTO subscriptions (name, cost_cents, currency, cycle, billing_day, start_date) +VALUES ($1, $2, $3, $4, $5, $6) +RETURNING id, name, cost_cents, currency, cycle, billing_day, start_date, active, created_at, updated_at +` + +// Create inserts a new subscription row, letting the database assign id, +// active (default true), created_at and updated_at, and returns the +// resulting row mapped to the domain model. +func (r *SubscriptionRepository) Create(ctx context.Context, input subscription.CreateInput) (subscription.Subscription, error) { + row := r.pool.QueryRow(ctx, insertSubscriptionSQL, + input.Name, + input.CostCents, + input.Currency, + input.Cycle, + input.BillingDay, + input.StartDate, + ) + + sub, err := scanSubscription(row) + if err != nil { + return subscription.Subscription{}, fmt.Errorf("postgres: create subscription: %w", err) + } + return sub, nil +} + +const selectSubscriptionByIDSQL = ` +SELECT id, name, cost_cents, currency, cycle, billing_day, start_date, active, created_at, updated_at +FROM subscriptions +WHERE id = $1 +` + +// GetByID fetches a subscription by id. When no row matches, it returns +// subscription.ErrNotFound so the service can map it without depending on pgx. +func (r *SubscriptionRepository) GetByID(ctx context.Context, id string) (subscription.Subscription, error) { + row := r.pool.QueryRow(ctx, selectSubscriptionByIDSQL, id) + + sub, err := scanSubscription(row) + if err != nil { + if errors.Is(err, pgx.ErrNoRows) { + return subscription.Subscription{}, subscription.ErrNotFound + } + return subscription.Subscription{}, fmt.Errorf("postgres: get subscription: %w", err) + } + return sub, nil +} + +const ( + selectAllSubscriptionsSQL = ` +SELECT id, name, cost_cents, currency, cycle, billing_day, start_date, active, created_at, updated_at +FROM subscriptions +ORDER BY created_at DESC +` + selectActiveSubscriptionsSQL = ` +SELECT id, name, cost_cents, currency, cycle, billing_day, start_date, active, created_at, updated_at +FROM subscriptions +WHERE active = true +ORDER BY created_at DESC +` +) + +// List returns subscriptions ordered by most recently created first, +// optionally restricted to active rows only. +func (r *SubscriptionRepository) List(ctx context.Context, activeOnly bool) ([]subscription.Subscription, error) { + query := selectAllSubscriptionsSQL + if activeOnly { + query = selectActiveSubscriptionsSQL + } + + rows, err := r.pool.Query(ctx, query) + if err != nil { + return nil, fmt.Errorf("postgres: list subscriptions: %w", err) + } + defer rows.Close() + + subs, err := scanSubscriptions(rows) + if err != nil { + return nil, fmt.Errorf("postgres: list subscriptions: %w", err) + } + return subs, nil +} + +const updateSubscriptionSQL = ` +UPDATE subscriptions +SET name = $2, cost_cents = $3, currency = $4, cycle = $5, billing_day = $6, start_date = $7, updated_at = now() +WHERE id = $1 +RETURNING id, name, cost_cents, currency, cycle, billing_day, start_date, active, created_at, updated_at +` + +// Update performs a static full-field UPDATE of the mutable columns (name, +// cost_cents, currency, cycle, billing_day, start_date) for the row matching +// id, also bumping updated_at, and returns the resulting row mapped to the +// domain model. The service is responsible for resolving the full set of +// fields to write (merging any partial patch beforehand) — this repository +// method knows nothing about partial semantics. When no row matches, it +// returns subscription.ErrNotFound so the service can map it without +// depending on pgx. +func (r *SubscriptionRepository) Update(ctx context.Context, id string, input subscription.UpdateInput) (subscription.Subscription, error) { + row := r.pool.QueryRow(ctx, updateSubscriptionSQL, + id, + input.Name, + input.CostCents, + input.Currency, + input.Cycle, + input.BillingDay, + input.StartDate, + ) + + sub, err := scanSubscription(row) + if err != nil { + if errors.Is(err, pgx.ErrNoRows) { + return subscription.Subscription{}, subscription.ErrNotFound + } + return subscription.Subscription{}, fmt.Errorf("postgres: update subscription: %w", err) + } + return sub, nil +} + +const setActiveSubscriptionSQL = ` +UPDATE subscriptions +SET active = $2, updated_at = now() +WHERE id = $1 +RETURNING id, name, cost_cents, currency, cycle, billing_day, start_date, active, created_at, updated_at +` + +// SetActive is a thin primitive that flips the active flag for the row +// matching id, bumps updated_at, and returns the resulting row mapped to the +// domain model. Idempotency (e.g. no-op when already inactive) is a service +// concern — this method always performs the write. When no row matches, it +// returns subscription.ErrNotFound so the service can map it without +// depending on pgx. +func (r *SubscriptionRepository) SetActive(ctx context.Context, id string, active bool) (subscription.Subscription, error) { + row := r.pool.QueryRow(ctx, setActiveSubscriptionSQL, id, active) + + sub, err := scanSubscription(row) + if err != nil { + if errors.Is(err, pgx.ErrNoRows) { + return subscription.Subscription{}, subscription.ErrNotFound + } + return subscription.Subscription{}, fmt.Errorf("postgres: set active subscription: %w", err) + } + return sub, nil +} + +// rowScanner abstracts the subset of pgx.Row/pgx.Rows used for mapping a +// single row to a domain Subscription, so scanSubscription works for both +// QueryRow results and Rows iteration. +type rowScanner interface { + Scan(dest ...any) error +} + +// scanSubscription maps one database row to the domain model. +func scanSubscription(row rowScanner) (subscription.Subscription, error) { + var sub subscription.Subscription + + err := row.Scan( + &sub.ID, + &sub.Name, + &sub.CostCents, + &sub.Currency, + &sub.Cycle, + &sub.BillingDay, + &sub.StartDate, + &sub.Active, + &sub.CreatedAt, + &sub.UpdatedAt, + ) + if err != nil { + return subscription.Subscription{}, err + } + return sub, nil +} + +// scanSubscriptions maps every remaining row in rows to domain models. +func scanSubscriptions(rows pgx.Rows) ([]subscription.Subscription, error) { + subs := make([]subscription.Subscription, 0) + + for rows.Next() { + sub, err := scanSubscription(rows) + if err != nil { + return nil, err + } + subs = append(subs, sub) + } + if err := rows.Err(); err != nil { + return nil, err + } + return subs, nil +} diff --git a/api/internal/postgres/subscription_integration_test.go b/api/internal/postgres/subscription_integration_test.go new file mode 100644 index 0000000..ff4301b --- /dev/null +++ b/api/internal/postgres/subscription_integration_test.go @@ -0,0 +1,178 @@ +//go:build integration + +// This file requires a live Postgres reachable via DATABASE_URL (or +// POSTGRES_* parts, see internal/config) with migrations applied. Run with: +// +// go test -tags=integration ./internal/postgres/... +// +// It is excluded from the default `go test ./...` gate so the suite stays +// DB-free and deterministic. +package postgres + +import ( + "context" + "os" + "testing" + "time" + + "github.com/jackc/pgx/v5/pgxpool" + + "github.com/rubenjpdev/subtrack-mcp/subtrack-api/internal/subscription" +) + +func TestSubscriptionRepository_CreateGetList(t *testing.T) { + dsn := os.Getenv("DATABASE_URL") + if dsn == "" { + t.Skip("DATABASE_URL not set; skipping integration test") + } + + ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) + defer cancel() + + pool, err := pgxpool.New(ctx, dsn) + if err != nil { + t.Fatalf("pgxpool.New() error = %v", err) + } + defer pool.Close() + + if err := pool.Ping(ctx); err != nil { + t.Fatalf("pool.Ping() error = %v", err) + } + + repo := NewSubscriptionRepository(pool) + + input := subscription.CreateInput{ + Name: "Integration Test Sub", + CostCents: 999, + Currency: "USD", + Cycle: subscription.CycleMonthly, + BillingDay: 10, + StartDate: time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC), + } + + created, err := repo.Create(ctx, input) + if err != nil { + t.Fatalf("Create() error = %v", err) + } + if created.ID == "" { + t.Fatal("Create() returned empty ID") + } + if !created.Active { + t.Error("Create() returned Active = false, want true (DB default)") + } + + got, err := repo.GetByID(ctx, created.ID) + if err != nil { + t.Fatalf("GetByID() error = %v", err) + } + if got.Name != input.Name { + t.Errorf("GetByID() Name = %q, want %q", got.Name, input.Name) + } + + _, err = repo.GetByID(ctx, "00000000-0000-0000-0000-000000000000") + if err != subscription.ErrNotFound { + t.Errorf("GetByID(missing) error = %v, want subscription.ErrNotFound", err) + } + + all, err := repo.List(ctx, false) + if err != nil { + t.Fatalf("List(false) error = %v", err) + } + if len(all) == 0 { + t.Error("List(false) returned no rows, want at least the created one") + } + + activeOnly, err := repo.List(ctx, true) + if err != nil { + t.Fatalf("List(true) error = %v", err) + } + for _, s := range activeOnly { + if !s.Active { + t.Errorf("List(true) returned inactive subscription %q", s.ID) + } + } +} + +func TestSubscriptionRepository_UpdateAndSetActive(t *testing.T) { + dsn := os.Getenv("DATABASE_URL") + if dsn == "" { + t.Skip("DATABASE_URL not set; skipping integration test") + } + + ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) + defer cancel() + + pool, err := pgxpool.New(ctx, dsn) + if err != nil { + t.Fatalf("pgxpool.New() error = %v", err) + } + defer pool.Close() + + if err := pool.Ping(ctx); err != nil { + t.Fatalf("pool.Ping() error = %v", err) + } + + repo := NewSubscriptionRepository(pool) + + created, err := repo.Create(ctx, subscription.CreateInput{ + Name: "Update/Cancel Integration Sub", + CostCents: 500, + Currency: "USD", + Cycle: subscription.CycleMonthly, + BillingDay: 5, + StartDate: time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC), + }) + if err != nil { + t.Fatalf("Create() error = %v", err) + } + + // Update bumps updated_at and persists the new field values. + time.Sleep(10 * time.Millisecond) // ensure now() advances past created_at + updated, err := repo.Update(ctx, created.ID, subscription.UpdateInput{ + Name: "Renamed Sub", + CostCents: 750, + Currency: "EUR", + Cycle: subscription.CycleYearly, + BillingDay: 10, + StartDate: time.Date(2024, 2, 1, 0, 0, 0, 0, time.UTC), + }) + if err != nil { + t.Fatalf("Update() error = %v", err) + } + if updated.Name != "Renamed Sub" || updated.CostCents != 750 || updated.Currency != "EUR" { + t.Errorf("Update() did not persist new field values: %+v", updated) + } + if !updated.UpdatedAt.After(created.UpdatedAt) { + t.Errorf("Update() UpdatedAt = %v, want it to be after %v", updated.UpdatedAt, created.UpdatedAt) + } + + _, err = repo.Update(ctx, "00000000-0000-0000-0000-000000000000", subscription.UpdateInput{ + Name: "X", + CostCents: 100, + Currency: "USD", + Cycle: subscription.CycleMonthly, + BillingDay: 1, + StartDate: time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC), + }) + if err != subscription.ErrNotFound { + t.Errorf("Update(missing) error = %v, want subscription.ErrNotFound", err) + } + + // SetActive bumps updated_at and flips the flag. + time.Sleep(10 * time.Millisecond) + cancelled, err := repo.SetActive(ctx, created.ID, false) + if err != nil { + t.Fatalf("SetActive() error = %v", err) + } + if cancelled.Active { + t.Error("SetActive(false) returned Active = true, want false") + } + if !cancelled.UpdatedAt.After(updated.UpdatedAt) { + t.Errorf("SetActive() UpdatedAt = %v, want it to be after %v", cancelled.UpdatedAt, updated.UpdatedAt) + } + + _, err = repo.SetActive(ctx, "00000000-0000-0000-0000-000000000000", false) + if err != subscription.ErrNotFound { + t.Errorf("SetActive(missing) error = %v, want subscription.ErrNotFound", err) + } +} diff --git a/api/internal/server/server.go b/api/internal/server/server.go new file mode 100644 index 0000000..1c8e3f5 --- /dev/null +++ b/api/internal/server/server.go @@ -0,0 +1,54 @@ +// Package server wires HTTP routes to handlers and exposes a configured +// http.Server ready to run. +package server + +import ( + "net/http" + "time" + + "github.com/rubenjpdev/subtrack-mcp/subtrack-api/internal/handler" +) + +const ( + readHeaderTimeout = 5 * time.Second + readTimeout = 10 * time.Second + writeTimeout = 10 * time.Second +) + +// New builds an *http.Server listening on addr, with routes wired to their +// handlers. The pinger is used by the /healthz route to check DB connectivity, +// subscriptionService backs the /v1/subscriptions routes, and apiKey is the +// shared secret required (via X-API-Key) on every /v1/* route. /healthz is +// registered directly on the mux, unwrapped, so it stays reachable without a +// key for orchestration/monitoring. +func New(addr string, pinger handler.Pinger, subscriptionService handler.SubscriptionService, apiKey string) *http.Server { + mux := http.NewServeMux() + mux.HandleFunc("/healthz", handler.Health(pinger)) + + registerSubscriptionRoutes(mux, subscriptionService, apiKey) + + return &http.Server{ + Addr: addr, + Handler: mux, + ReadHeaderTimeout: readHeaderTimeout, + ReadTimeout: readTimeout, + WriteTimeout: writeTimeout, + } +} + +// registerSubscriptionRoutes wires the /v1/subscriptions routes to their +// handlers, using Go 1.22+ method+path patterns and PathValue for the id. +// Every route is wrapped with the X-API-Key middleware via protect, so it is +// obvious at a glance that none of the six routes is left unauthenticated. +func registerSubscriptionRoutes(mux *http.ServeMux, svc handler.SubscriptionService, apiKey string) { + protect := func(h http.HandlerFunc) http.HandlerFunc { + return handler.RequireAPIKey(apiKey, h) + } + + mux.HandleFunc("POST /v1/subscriptions", protect(handler.CreateSubscription(svc))) + mux.HandleFunc("GET /v1/subscriptions", protect(handler.ListSubscriptions(svc))) + mux.HandleFunc("GET /v1/subscriptions/summary", protect(handler.SummarySubscriptions(svc))) + mux.HandleFunc("GET /v1/subscriptions/{id}", protect(handler.GetSubscription(svc))) + mux.HandleFunc("PATCH /v1/subscriptions/{id}", protect(handler.UpdateSubscription(svc))) + mux.HandleFunc("POST /v1/subscriptions/{id}/cancel", protect(handler.CancelSubscription(svc))) +} diff --git a/api/internal/server/server_test.go b/api/internal/server/server_test.go new file mode 100644 index 0000000..c46018a --- /dev/null +++ b/api/internal/server/server_test.go @@ -0,0 +1,130 @@ +package server + +import ( + "context" + "net/http" + "net/http/httptest" + "strings" + "testing" + + "github.com/rubenjpdev/subtrack-mcp/subtrack-api/internal/handler" + "github.com/rubenjpdev/subtrack-mcp/subtrack-api/internal/subscription" +) + +// stubSubscriptionService is a no-op handler.SubscriptionService used only to +// satisfy server.New's wiring in tests that don't exercise subscription routes. +type stubSubscriptionService struct{} + +func (stubSubscriptionService) Create(ctx context.Context, input subscription.CreateInput) (subscription.Subscription, error) { + return subscription.Subscription{}, nil +} + +func (stubSubscriptionService) Get(ctx context.Context, id string) (subscription.Subscription, error) { + return subscription.Subscription{}, nil +} + +func (stubSubscriptionService) List(ctx context.Context, activeOnly bool) ([]subscription.Subscription, error) { + return nil, nil +} + +func (stubSubscriptionService) Update(ctx context.Context, id string, patch subscription.SubscriptionPatch) (subscription.Subscription, error) { + return subscription.Subscription{}, nil +} + +func (stubSubscriptionService) Cancel(ctx context.Context, id string) (subscription.Subscription, error) { + return subscription.Subscription{}, nil +} + +func (stubSubscriptionService) Summary(ctx context.Context) (subscription.Summary, error) { + return subscription.Summary{}, nil +} + +// testAPIKey is the shared secret used to build servers under test. Requests +// that should authenticate successfully set this on X-API-Key. +const testAPIKey = "test-server-api-key" + +// TestNew_SummaryRouteCoexistsWithIDRoute verifies that the literal +// "/v1/subscriptions/summary" segment is routed to SummarySubscriptions and +// does not get swallowed by the "/v1/subscriptions/{id}" wildcard pattern — +// Go 1.22+ ServeMux treats literal segments as more specific than wildcards, +// so both routes coexist without conflict. Both requests authenticate with a +// valid X-API-Key, since /v1/* routes now require it. +func TestNew_SummaryRouteCoexistsWithIDRoute(t *testing.T) { + srv := New(":0", handler.PingerFunc(func(ctx context.Context) error { return nil }), stubSubscriptionService{}, testAPIKey) + + summaryReq := httptest.NewRequest(http.MethodGet, "/v1/subscriptions/summary", nil) + summaryReq.Header.Set("X-API-Key", testAPIKey) + summaryRec := httptest.NewRecorder() + srv.Handler.ServeHTTP(summaryRec, summaryReq) + if summaryRec.Code != http.StatusOK { + t.Fatalf("GET /v1/subscriptions/summary status = %d, want %d; body = %s", summaryRec.Code, http.StatusOK, summaryRec.Body.String()) + } + if !strings.Contains(summaryRec.Body.String(), `"monthly_total_cents"`) { + t.Errorf("GET /v1/subscriptions/summary body = %s, want a summary shape (monthly_total_cents)", summaryRec.Body.String()) + } + + idReq := httptest.NewRequest(http.MethodGet, "/v1/subscriptions/some-id", nil) + idReq.Header.Set("X-API-Key", testAPIKey) + idRec := httptest.NewRecorder() + srv.Handler.ServeHTTP(idRec, idReq) + if idRec.Code != http.StatusOK { + t.Fatalf("GET /v1/subscriptions/{id} status = %d, want %d; body = %s", idRec.Code, http.StatusOK, idRec.Body.String()) + } + if strings.Contains(idRec.Body.String(), `"monthly_total_cents"`) { + t.Errorf("GET /v1/subscriptions/{id} was routed to the summary handler; body = %s", idRec.Body.String()) + } +} + +func TestNew_HealthzRouteReturnsOK(t *testing.T) { + healthyPinger := handler.PingerFunc(func(ctx context.Context) error { return nil }) + srv := New(":0", healthyPinger, stubSubscriptionService{}, testAPIKey) + + req := httptest.NewRequest(http.MethodGet, "/healthz", nil) + rec := httptest.NewRecorder() + + srv.Handler.ServeHTTP(rec, req) + + if rec.Code != http.StatusOK { + t.Fatalf("status = %d, want %d", rec.Code, http.StatusOK) + } +} + +// TestNew_HealthzExemptFromAPIKey re-asserts the /healthz exemption explicitly: +// the request carries no X-API-Key at all and must still succeed, proving +// /healthz is reachable for orchestration/monitoring without a key. +func TestNew_HealthzExemptFromAPIKey(t *testing.T) { + healthyPinger := handler.PingerFunc(func(ctx context.Context) error { return nil }) + srv := New(":0", healthyPinger, stubSubscriptionService{}, testAPIKey) + + req := httptest.NewRequest(http.MethodGet, "/healthz", nil) + rec := httptest.NewRecorder() + + srv.Handler.ServeHTTP(rec, req) + + if rec.Code != http.StatusOK { + t.Fatalf("status = %d, want %d (healthz must be exempt from API key auth)", rec.Code, http.StatusOK) + } +} + +// TestNew_V1RouteRequiresAPIKey checks the auth boundary on a representative +// /v1 route: rejected with 401 when no key is sent, and reachable (200) when +// the correct X-API-Key is sent. +func TestNew_V1RouteRequiresAPIKey(t *testing.T) { + healthyPinger := handler.PingerFunc(func(ctx context.Context) error { return nil }) + srv := New(":0", healthyPinger, stubSubscriptionService{}, testAPIKey) + + noKeyReq := httptest.NewRequest(http.MethodGet, "/v1/subscriptions/summary", nil) + noKeyRec := httptest.NewRecorder() + srv.Handler.ServeHTTP(noKeyRec, noKeyReq) + if noKeyRec.Code != http.StatusUnauthorized { + t.Fatalf("without X-API-Key: status = %d, want %d; body = %s", noKeyRec.Code, http.StatusUnauthorized, noKeyRec.Body.String()) + } + + validKeyReq := httptest.NewRequest(http.MethodGet, "/v1/subscriptions/summary", nil) + validKeyReq.Header.Set("X-API-Key", testAPIKey) + validKeyRec := httptest.NewRecorder() + srv.Handler.ServeHTTP(validKeyRec, validKeyReq) + if validKeyRec.Code != http.StatusOK { + t.Fatalf("with valid X-API-Key: status = %d, want %d; body = %s", validKeyRec.Code, http.StatusOK, validKeyRec.Body.String()) + } +} diff --git a/api/internal/subscription/errors.go b/api/internal/subscription/errors.go new file mode 100644 index 0000000..6bdba5d --- /dev/null +++ b/api/internal/subscription/errors.go @@ -0,0 +1,45 @@ +package subscription + +import ( + "errors" + "strings" +) + +// ErrNotFound is returned by the service (and expected from the repository) +// when a subscription does not exist. Handlers map it to HTTP 404. +var ErrNotFound = errors.New("subscription: not found") + +// ValidationError carries one or more per-field validation failures so the +// HTTP edge can render a structured 400 response with field-level detail. +type ValidationError struct { + // Fields maps a field name to a human-readable validation message. + Fields map[string]string +} + +// Error satisfies the error interface with a concise summary; callers that +// need per-field detail should use Fields directly (e.g. the HTTP handler). +func (e *ValidationError) Error() string { + if len(e.Fields) == 0 { + return "subscription: validation failed" + } + + parts := make([]string, 0, len(e.Fields)) + for field, msg := range e.Fields { + parts = append(parts, field+": "+msg) + } + return "subscription: validation failed: " + strings.Join(parts, "; ") +} + +// addField records a validation failure for the given field. It is a small +// helper used while building up a ValidationError across several checks. +func (e *ValidationError) addField(field, msg string) { + if e.Fields == nil { + e.Fields = make(map[string]string) + } + e.Fields[field] = msg +} + +// hasErrors reports whether any field failures have been recorded. +func (e *ValidationError) hasErrors() bool { + return len(e.Fields) > 0 +} diff --git a/api/internal/subscription/service.go b/api/internal/subscription/service.go new file mode 100644 index 0000000..e93bdf7 --- /dev/null +++ b/api/internal/subscription/service.go @@ -0,0 +1,283 @@ +package subscription + +import ( + "context" + "errors" + "fmt" + "time" +) + +const ( + minBillingDay = 1 + maxBillingDay = 28 + currencyLen = 3 +) + +// Repository is the persistence seam the service depends on. It is defined +// here (consumer-side) so the service can be tested against an in-memory fake +// without any database, and so internal/postgres can implement it without the +// subscription package depending on pgx. +type Repository interface { + Create(ctx context.Context, input CreateInput) (Subscription, error) + GetByID(ctx context.Context, id string) (Subscription, error) + List(ctx context.Context, activeOnly bool) ([]Subscription, error) + Update(ctx context.Context, id string, input UpdateInput) (Subscription, error) + SetActive(ctx context.Context, id string, active bool) (Subscription, error) +} + +// Service implements subscription business rules: validation on write, +// not-found mapping on read, and computed insights (e.g. Summary) on top of a +// Repository. now is a clock seam — defaulting to time.Now — so that +// time-dependent computations (Summary) can be tested deterministically with +// an injected fixed clock. +type Service struct { + repo Repository + now func() time.Time +} + +// Option configures optional Service behaviour. The zero set of options +// yields the production default (a real time.Now clock). +type Option func(*Service) + +// WithClock overrides the Service's clock. Intended for tests that need +// deterministic, time-dependent computations (e.g. Summary). +func WithClock(now func() time.Time) Option { + return func(s *Service) { + s.now = now + } +} + +// NewService builds a Service backed by the given repository. Its signature +// is intentionally unchanged from prior features so existing call sites (e.g. +// cmd/api) keep compiling; optional behaviour is layered on via opts. +func NewService(repo Repository, opts ...Option) *Service { + s := &Service{repo: repo, now: time.Now} + for _, opt := range opts { + opt(s) + } + return s +} + +// Create validates the input and, if valid, persists a new subscription via +// the repository. Validation failures are returned as *ValidationError. +func (s *Service) Create(ctx context.Context, input CreateInput) (Subscription, error) { + if err := validateCreateInput(input); err != nil { + return Subscription{}, err + } + + sub, err := s.repo.Create(ctx, input) + if err != nil { + return Subscription{}, fmt.Errorf("subscription: create: %w", err) + } + return sub, nil +} + +// Get fetches a subscription by id, mapping a repository "not found" outcome +// to the domain ErrNotFound sentinel so handlers can render 404 consistently. +func (s *Service) Get(ctx context.Context, id string) (Subscription, error) { + sub, err := s.repo.GetByID(ctx, id) + if err != nil { + if isNotFound(err) { + return Subscription{}, ErrNotFound + } + return Subscription{}, fmt.Errorf("subscription: get: %w", err) + } + return sub, nil +} + +// Update applies a partial patch to the subscription identified by id: it +// loads the existing record, merges only the caller-provided fields over it, +// validates the merged result, and persists the fully-resolved fields via the +// repository. A missing subscription yields ErrNotFound; a merged result that +// fails validation yields *ValidationError. Note: the load-then-update is not +// transactional (TOCTOU is possible under concurrent writers); that is an +// accepted tradeoff for this light-lane feature — no locking/transactions. +func (s *Service) Update(ctx context.Context, id string, patch SubscriptionPatch) (Subscription, error) { + existing, err := s.Get(ctx, id) + if err != nil { + return Subscription{}, err + } + + merged := mergePatch(existing, patch) + + verr := &ValidationError{} + validateFields(merged.Name, merged.CostCents, merged.Currency, merged.Cycle, merged.BillingDay, merged.StartDate, verr) + if verr.hasErrors() { + return Subscription{}, verr + } + + input := UpdateInput{ + Name: merged.Name, + CostCents: merged.CostCents, + Currency: merged.Currency, + Cycle: merged.Cycle, + BillingDay: merged.BillingDay, + StartDate: merged.StartDate, + } + + sub, err := s.repo.Update(ctx, id, input) + if err != nil { + if isNotFound(err) { + return Subscription{}, ErrNotFound + } + return Subscription{}, fmt.Errorf("subscription: update: %w", err) + } + return sub, nil +} + +// mergePatch returns a copy of existing with every non-nil field of patch +// applied over it. Absent (nil) fields leave the existing value untouched, +// which is what makes the resulting update partial. +func mergePatch(existing Subscription, patch SubscriptionPatch) Subscription { + merged := existing + + if patch.Name != nil { + merged.Name = *patch.Name + } + if patch.CostCents != nil { + merged.CostCents = *patch.CostCents + } + if patch.Currency != nil { + merged.Currency = *patch.Currency + } + if patch.Cycle != nil { + merged.Cycle = *patch.Cycle + } + if patch.BillingDay != nil { + merged.BillingDay = *patch.BillingDay + } + if patch.StartDate != nil { + merged.StartDate = *patch.StartDate + } + + return merged +} + +// Cancel deactivates the subscription identified by id. It is idempotent at +// the service layer: if the subscription is already inactive, it is returned +// as-is with no repository write and no updated_at bump (a true no-op). +// Otherwise the repository flips active to false (which also bumps +// updated_at). A missing subscription yields ErrNotFound. +func (s *Service) Cancel(ctx context.Context, id string) (Subscription, error) { + existing, err := s.Get(ctx, id) + if err != nil { + return Subscription{}, err + } + + if !existing.Active { + return existing, nil + } + + sub, err := s.repo.SetActive(ctx, id, false) + if err != nil { + if isNotFound(err) { + return Subscription{}, ErrNotFound + } + return Subscription{}, fmt.Errorf("subscription: cancel: %w", err) + } + return sub, nil +} + +// List returns subscriptions, optionally filtered to active ones only. +// +// activeOnly mirrors the HTTP `?active=` query parameter contract: true means +// "active subscriptions only"; false means "all subscriptions" (the handler +// is responsible for translating the raw query value to this bool). +func (s *Service) List(ctx context.Context, activeOnly bool) ([]Subscription, error) { + subs, err := s.repo.List(ctx, activeOnly) + if err != nil { + return nil, fmt.Errorf("subscription: list: %w", err) + } + return subs, nil +} + +// Summary computes the monthly/annual cent totals and per-subscription +// breakdown (KD-1) across active subscriptions only — cancelled subscriptions +// are excluded at the query (repo.List(activeOnly=true)) and therefore never +// reach, let alone influence, the pure computation helpers. All arithmetic +// lives in computeSummary and its helpers; this method only fetches data and +// supplies the clock. +func (s *Service) Summary(ctx context.Context) (Summary, error) { + subs, err := s.repo.List(ctx, true) + if err != nil { + return Summary{}, fmt.Errorf("subscription: summary: %w", err) + } + return computeSummary(s.now(), subs), nil +} + +// isNotFound reports whether err represents a "no such row" outcome from the +// repository. Repositories may return ErrNotFound directly or wrap it. +func isNotFound(err error) bool { + return errors.Is(err, ErrNotFound) +} + +// validateCreateInput checks all create-time business rules and returns a +// *ValidationError describing every failing field, or nil if input is valid. +func validateCreateInput(input CreateInput) error { + verr := &ValidationError{} + + validateFields(input.Name, input.CostCents, input.Currency, input.Cycle, input.BillingDay, input.StartDate, verr) + + if verr.hasErrors() { + return verr + } + return nil +} + +// validateFields runs every per-field business rule against the given values, +// recording failures on verr. It is the single shared validation path for both +// Create (via validateCreateInput) and Update (via the merged patch result), +// so the rules are defined exactly once. +func validateFields(name string, costCents int, currency, cycle string, billingDay int, startDate time.Time, verr *ValidationError) { + validateName(name, verr) + validateCostCents(costCents, verr) + validateCurrency(currency, verr) + validateCycle(cycle, verr) + validateBillingDay(billingDay, verr) + validateStartDate(startDate, verr) +} + +func validateName(name string, verr *ValidationError) { + if name == "" { + verr.addField("name", "must not be empty") + } +} + +func validateCostCents(costCents int, verr *ValidationError) { + if costCents <= 0 { + verr.addField("cost_cents", "must be greater than zero") + } +} + +func validateCurrency(currency string, verr *ValidationError) { + if len(currency) != currencyLen || !isASCIILetters(currency) { + verr.addField("currency", "must be exactly 3 ASCII letters") + } +} + +func isASCIILetters(s string) bool { + for _, r := range s { + if (r < 'A' || r > 'Z') && (r < 'a' || r > 'z') { + return false + } + } + return true +} + +func validateCycle(cycle string, verr *ValidationError) { + if cycle != CycleMonthly && cycle != CycleYearly { + verr.addField("cycle", "must be one of: monthly, yearly") + } +} + +func validateBillingDay(billingDay int, verr *ValidationError) { + if billingDay < minBillingDay || billingDay > maxBillingDay { + verr.addField("billing_day", "must be between 1 and 28") + } +} + +func validateStartDate(startDate time.Time, verr *ValidationError) { + if startDate.IsZero() { + verr.addField("start_date", "is required") + } +} diff --git a/api/internal/subscription/service_test.go b/api/internal/subscription/service_test.go new file mode 100644 index 0000000..863fd17 --- /dev/null +++ b/api/internal/subscription/service_test.go @@ -0,0 +1,468 @@ +package subscription + +import ( + "context" + "errors" + "testing" + "time" +) + +// fakeRepository is an in-memory Repository used to test the service without +// any database dependency. +type fakeRepository struct { + createFn func(ctx context.Context, input CreateInput) (Subscription, error) + getFn func(ctx context.Context, id string) (Subscription, error) + listFn func(ctx context.Context, activeOnly bool) ([]Subscription, error) + updateFn func(ctx context.Context, id string, input UpdateInput) (Subscription, error) + setActiveFn func(ctx context.Context, id string, active bool) (Subscription, error) + + // setActiveCalls counts SetActive invocations so idempotency tests can + // assert that a no-op Cancel performs NO repository write. + setActiveCalls int +} + +func (f *fakeRepository) Create(ctx context.Context, input CreateInput) (Subscription, error) { + return f.createFn(ctx, input) +} + +func (f *fakeRepository) GetByID(ctx context.Context, id string) (Subscription, error) { + return f.getFn(ctx, id) +} + +func (f *fakeRepository) List(ctx context.Context, activeOnly bool) ([]Subscription, error) { + return f.listFn(ctx, activeOnly) +} + +func (f *fakeRepository) Update(ctx context.Context, id string, input UpdateInput) (Subscription, error) { + return f.updateFn(ctx, id, input) +} + +func (f *fakeRepository) SetActive(ctx context.Context, id string, active bool) (Subscription, error) { + f.setActiveCalls++ + return f.setActiveFn(ctx, id, active) +} + +func validCreateInput() CreateInput { + return CreateInput{ + Name: "Netflix", + CostCents: 1599, + Currency: "USD", + Cycle: CycleMonthly, + BillingDay: 15, + StartDate: time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC), + } +} + +func TestValidateCreateInput(t *testing.T) { + tests := []struct { + name string + mutate func(in *CreateInput) + wantField string + wantInvalid bool + }{ + {name: "valid input passes", mutate: func(in *CreateInput) {}, wantInvalid: false}, + {name: "empty name", mutate: func(in *CreateInput) { in.Name = "" }, wantField: "name", wantInvalid: true}, + {name: "zero cost", mutate: func(in *CreateInput) { in.CostCents = 0 }, wantField: "cost_cents", wantInvalid: true}, + {name: "negative cost", mutate: func(in *CreateInput) { in.CostCents = -5 }, wantField: "cost_cents", wantInvalid: true}, + {name: "currency too short", mutate: func(in *CreateInput) { in.Currency = "US" }, wantField: "currency", wantInvalid: true}, + {name: "currency too long", mutate: func(in *CreateInput) { in.Currency = "USDX" }, wantField: "currency", wantInvalid: true}, + {name: "currency non-letters", mutate: func(in *CreateInput) { in.Currency = "U5D" }, wantField: "currency", wantInvalid: true}, + {name: "invalid cycle", mutate: func(in *CreateInput) { in.Cycle = "weekly" }, wantField: "cycle", wantInvalid: true}, + {name: "billing day too low", mutate: func(in *CreateInput) { in.BillingDay = 0 }, wantField: "billing_day", wantInvalid: true}, + {name: "billing day too high", mutate: func(in *CreateInput) { in.BillingDay = 29 }, wantField: "billing_day", wantInvalid: true}, + {name: "missing start date", mutate: func(in *CreateInput) { in.StartDate = time.Time{} }, wantField: "start_date", wantInvalid: true}, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + input := validCreateInput() + tt.mutate(&input) + + err := validateCreateInput(input) + + if !tt.wantInvalid { + if err != nil { + t.Fatalf("validateCreateInput() error = %v, want nil", err) + } + return + } + + var verr *ValidationError + if !errors.As(err, &verr) { + t.Fatalf("validateCreateInput() error type = %T, want *ValidationError", err) + } + if _, ok := verr.Fields[tt.wantField]; !ok { + t.Errorf("ValidationError.Fields = %v, want key %q", verr.Fields, tt.wantField) + } + }) + } +} + +func TestService_Create_ValidationError(t *testing.T) { + repo := &fakeRepository{ + createFn: func(ctx context.Context, input CreateInput) (Subscription, error) { + t.Fatal("repo.Create should not be called when validation fails") + return Subscription{}, nil + }, + } + svc := NewService(repo) + + _, err := svc.Create(context.Background(), CreateInput{}) + + var verr *ValidationError + if !errors.As(err, &verr) { + t.Fatalf("Create() error type = %T, want *ValidationError", err) + } +} + +func TestService_Create_DelegatesToRepository(t *testing.T) { + want := Subscription{ID: "sub-1", Name: "Netflix"} + var gotInput CreateInput + repo := &fakeRepository{ + createFn: func(ctx context.Context, input CreateInput) (Subscription, error) { + gotInput = input + return want, nil + }, + } + svc := NewService(repo) + + input := validCreateInput() + got, err := svc.Create(context.Background(), input) + if err != nil { + t.Fatalf("Create() error = %v, want nil", err) + } + if got != want { + t.Errorf("Create() = %+v, want %+v", got, want) + } + if gotInput != input { + t.Errorf("repo received input = %+v, want %+v", gotInput, input) + } +} + +func TestService_Create_WrapsRepositoryError(t *testing.T) { + repoErr := errors.New("connection refused") + repo := &fakeRepository{ + createFn: func(ctx context.Context, input CreateInput) (Subscription, error) { + return Subscription{}, repoErr + }, + } + svc := NewService(repo) + + _, err := svc.Create(context.Background(), validCreateInput()) + if err == nil { + t.Fatal("Create() error = nil, want non-nil") + } + if !errors.Is(err, repoErr) { + t.Errorf("Create() error = %v, want it to wrap %v", err, repoErr) + } +} + +func TestService_Get_Found(t *testing.T) { + want := Subscription{ID: "sub-1", Name: "Netflix"} + repo := &fakeRepository{ + getFn: func(ctx context.Context, id string) (Subscription, error) { + if id != "sub-1" { + t.Fatalf("GetByID id = %q, want %q", id, "sub-1") + } + return want, nil + }, + } + svc := NewService(repo) + + got, err := svc.Get(context.Background(), "sub-1") + if err != nil { + t.Fatalf("Get() error = %v, want nil", err) + } + if got != want { + t.Errorf("Get() = %+v, want %+v", got, want) + } +} + +func TestService_Get_NotFound(t *testing.T) { + repo := &fakeRepository{ + getFn: func(ctx context.Context, id string) (Subscription, error) { + return Subscription{}, ErrNotFound + }, + } + svc := NewService(repo) + + _, err := svc.Get(context.Background(), "missing") + if !errors.Is(err, ErrNotFound) { + t.Errorf("Get() error = %v, want ErrNotFound", err) + } +} + +func TestService_Get_NotFound_WrappedByRepo(t *testing.T) { + repo := &fakeRepository{ + getFn: func(ctx context.Context, id string) (Subscription, error) { + return Subscription{}, errors.Join(ErrNotFound, errors.New("pgx: no rows")) + }, + } + svc := NewService(repo) + + _, err := svc.Get(context.Background(), "missing") + if !errors.Is(err, ErrNotFound) { + t.Errorf("Get() error = %v, want it to be ErrNotFound", err) + } +} + +func TestService_Get_OtherError(t *testing.T) { + repoErr := errors.New("connection refused") + repo := &fakeRepository{ + getFn: func(ctx context.Context, id string) (Subscription, error) { + return Subscription{}, repoErr + }, + } + svc := NewService(repo) + + _, err := svc.Get(context.Background(), "sub-1") + if errors.Is(err, ErrNotFound) { + t.Fatal("Get() error = ErrNotFound, want a wrapped repo error instead") + } + if !errors.Is(err, repoErr) { + t.Errorf("Get() error = %v, want it to wrap %v", err, repoErr) + } +} + +func TestService_List(t *testing.T) { + tests := []struct { + name string + activeOnly bool + }{ + {name: "all", activeOnly: false}, + {name: "active only", activeOnly: true}, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + want := []Subscription{{ID: "sub-1"}, {ID: "sub-2"}} + var gotActiveOnly bool + repo := &fakeRepository{ + listFn: func(ctx context.Context, activeOnly bool) ([]Subscription, error) { + gotActiveOnly = activeOnly + return want, nil + }, + } + svc := NewService(repo) + + got, err := svc.List(context.Background(), tt.activeOnly) + if err != nil { + t.Fatalf("List() error = %v, want nil", err) + } + if len(got) != len(want) { + t.Fatalf("List() returned %d items, want %d", len(got), len(want)) + } + if gotActiveOnly != tt.activeOnly { + t.Errorf("repo received activeOnly = %v, want %v", gotActiveOnly, tt.activeOnly) + } + }) + } +} + +func sampleSubscription(id string) Subscription { + t := time.Date(2024, 3, 15, 12, 0, 0, 0, time.UTC) + return Subscription{ + ID: id, + Name: "Netflix", + CostCents: 1599, + Currency: "USD", + Cycle: CycleMonthly, + BillingDay: 15, + StartDate: time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC), + Active: true, + CreatedAt: t, + UpdatedAt: t, + } +} + +func strPtr(s string) *string { return &s } +func intPtr(i int) *int { return &i } + +func TestService_Update_MergesAndPersistsOnlyProvidedFields(t *testing.T) { + existing := sampleSubscription("sub-1") + want := existing + want.Name = "Disney+" + want.CostCents = 1299 + + var gotInput UpdateInput + repo := &fakeRepository{ + getFn: func(ctx context.Context, id string) (Subscription, error) { + return existing, nil + }, + updateFn: func(ctx context.Context, id string, input UpdateInput) (Subscription, error) { + gotInput = input + return want, nil + }, + } + svc := NewService(repo) + + patch := SubscriptionPatch{Name: strPtr("Disney+"), CostCents: intPtr(1299)} + got, err := svc.Update(context.Background(), "sub-1", patch) + if err != nil { + t.Fatalf("Update() error = %v, want nil", err) + } + if got != want { + t.Errorf("Update() = %+v, want %+v", got, want) + } + + // Provided fields changed... + if gotInput.Name != "Disney+" { + t.Errorf("repo received Name = %q, want %q", gotInput.Name, "Disney+") + } + if gotInput.CostCents != 1299 { + t.Errorf("repo received CostCents = %d, want %d", gotInput.CostCents, 1299) + } + // ...others preserved from the loaded record. + if gotInput.Currency != existing.Currency { + t.Errorf("repo received Currency = %q, want preserved %q", gotInput.Currency, existing.Currency) + } + if gotInput.Cycle != existing.Cycle { + t.Errorf("repo received Cycle = %q, want preserved %q", gotInput.Cycle, existing.Cycle) + } + if gotInput.BillingDay != existing.BillingDay { + t.Errorf("repo received BillingDay = %d, want preserved %d", gotInput.BillingDay, existing.BillingDay) + } + if !gotInput.StartDate.Equal(existing.StartDate) { + t.Errorf("repo received StartDate = %v, want preserved %v", gotInput.StartDate, existing.StartDate) + } +} + +func TestService_Update_ValidationErrorOnMergedResult(t *testing.T) { + existing := sampleSubscription("sub-1") + repo := &fakeRepository{ + getFn: func(ctx context.Context, id string) (Subscription, error) { + return existing, nil + }, + updateFn: func(ctx context.Context, id string, input UpdateInput) (Subscription, error) { + t.Fatal("repo.Update should not be called when the merged result fails validation") + return Subscription{}, nil + }, + } + svc := NewService(repo) + + patch := SubscriptionPatch{CostCents: intPtr(0)} + _, err := svc.Update(context.Background(), "sub-1", patch) + + var verr *ValidationError + if !errors.As(err, &verr) { + t.Fatalf("Update() error type = %T, want *ValidationError", err) + } + if _, ok := verr.Fields["cost_cents"]; !ok { + t.Errorf("ValidationError.Fields = %v, want key %q", verr.Fields, "cost_cents") + } +} + +func TestService_Update_NotFound(t *testing.T) { + repo := &fakeRepository{ + getFn: func(ctx context.Context, id string) (Subscription, error) { + return Subscription{}, ErrNotFound + }, + updateFn: func(ctx context.Context, id string, input UpdateInput) (Subscription, error) { + t.Fatal("repo.Update should not be called when the subscription does not exist") + return Subscription{}, nil + }, + } + svc := NewService(repo) + + _, err := svc.Update(context.Background(), "missing", SubscriptionPatch{Name: strPtr("X")}) + if !errors.Is(err, ErrNotFound) { + t.Errorf("Update() error = %v, want ErrNotFound", err) + } +} + +func TestService_Cancel_ActiveBecomesInactive(t *testing.T) { + existing := sampleSubscription("sub-1") + want := existing + want.Active = false + want.UpdatedAt = existing.UpdatedAt.Add(time.Hour) + + repo := &fakeRepository{ + getFn: func(ctx context.Context, id string) (Subscription, error) { + return existing, nil + }, + setActiveFn: func(ctx context.Context, id string, active bool) (Subscription, error) { + if active != false { + t.Errorf("SetActive active = %v, want false", active) + } + return want, nil + }, + } + svc := NewService(repo) + + got, err := svc.Cancel(context.Background(), "sub-1") + if err != nil { + t.Fatalf("Cancel() error = %v, want nil", err) + } + if got != want { + t.Errorf("Cancel() = %+v, want %+v", got, want) + } + if repo.setActiveCalls != 1 { + t.Errorf("SetActive call count = %d, want 1", repo.setActiveCalls) + } +} + +func TestService_Cancel_AlreadyCancelledIsNoOp(t *testing.T) { + existing := sampleSubscription("sub-1") + existing.Active = false + + repo := &fakeRepository{ + getFn: func(ctx context.Context, id string) (Subscription, error) { + return existing, nil + }, + setActiveFn: func(ctx context.Context, id string, active bool) (Subscription, error) { + t.Fatal("repo.SetActive should not be called when the subscription is already inactive") + return Subscription{}, nil + }, + } + svc := NewService(repo) + + got, err := svc.Cancel(context.Background(), "sub-1") + if err != nil { + t.Fatalf("Cancel() error = %v, want nil", err) + } + if got != existing { + t.Errorf("Cancel() = %+v, want unchanged %+v", got, existing) + } + if got.UpdatedAt != existing.UpdatedAt { + t.Errorf("Cancel() UpdatedAt = %v, want unchanged %v (no-op must not bump it)", got.UpdatedAt, existing.UpdatedAt) + } + if repo.setActiveCalls != 0 { + t.Errorf("SetActive call count = %d, want 0 (no write on no-op)", repo.setActiveCalls) + } +} + +func TestService_Cancel_NotFound(t *testing.T) { + repo := &fakeRepository{ + getFn: func(ctx context.Context, id string) (Subscription, error) { + return Subscription{}, ErrNotFound + }, + setActiveFn: func(ctx context.Context, id string, active bool) (Subscription, error) { + t.Fatal("repo.SetActive should not be called when the subscription does not exist") + return Subscription{}, nil + }, + } + svc := NewService(repo) + + _, err := svc.Cancel(context.Background(), "missing") + if !errors.Is(err, ErrNotFound) { + t.Errorf("Cancel() error = %v, want ErrNotFound", err) + } + if repo.setActiveCalls != 0 { + t.Errorf("SetActive call count = %d, want 0", repo.setActiveCalls) + } +} + +func TestService_List_WrapsRepositoryError(t *testing.T) { + repoErr := errors.New("connection refused") + repo := &fakeRepository{ + listFn: func(ctx context.Context, activeOnly bool) ([]Subscription, error) { + return nil, repoErr + }, + } + svc := NewService(repo) + + _, err := svc.List(context.Background(), false) + if !errors.Is(err, repoErr) { + t.Errorf("List() error = %v, want it to wrap %v", err, repoErr) + } +} diff --git a/api/internal/subscription/subscription.go b/api/internal/subscription/subscription.go new file mode 100644 index 0000000..380d083 --- /dev/null +++ b/api/internal/subscription/subscription.go @@ -0,0 +1,67 @@ +// Package subscription contains the subscription domain: the model, the +// service that validates and orchestrates against a repository, and the +// domain errors returned across that boundary. No HTTP or SQL concerns live +// here — those belong to internal/handler and internal/postgres respectively. +package subscription + +import "time" + +// Cycle enumerates the supported billing cycles. +const ( + CycleMonthly = "monthly" + CycleYearly = "yearly" +) + +// Subscription is the domain model for a tracked subscription. Money is kept +// as integer cents — never floats — per project convention (KD-3). +type Subscription struct { + ID string + Name string + CostCents int + Currency string + Cycle string + BillingDay int + StartDate time.Time + Active bool + CreatedAt time.Time + UpdatedAt time.Time +} + +// CreateInput carries the fields a caller may supply when creating a +// subscription. Active, ID, CreatedAt and UpdatedAt are server/DB-managed and +// therefore intentionally absent here. +type CreateInput struct { + Name string + CostCents int + Currency string + Cycle string + BillingDay int + StartDate time.Time +} + +// UpdateInput carries the resolved mutable fields the repository persists for +// a PATCH. It is the full set of mutable columns — the service is responsible +// for merging any partial caller input over the existing record and producing +// this fully-resolved value before calling the repository (the repository +// itself performs a static full-field UPDATE). +type UpdateInput struct { + Name string + CostCents int + Currency string + Cycle string + BillingDay int + StartDate time.Time +} + +// SubscriptionPatch carries the fields a caller may supply on a PATCH. Pointer +// fields distinguish "absent" (nil — leave unchanged) from "provided" (non-nil +// — replace), which is what makes the update partial. Active/ID/CreatedAt/ +// UpdatedAt are not client-settable here — active changes only via Cancel. +type SubscriptionPatch struct { + Name *string + CostCents *int + Currency *string + Cycle *string + BillingDay *int + StartDate *time.Time +} diff --git a/api/internal/subscription/summary.go b/api/internal/subscription/summary.go new file mode 100644 index 0000000..f54b656 --- /dev/null +++ b/api/internal/subscription/summary.go @@ -0,0 +1,152 @@ +package subscription + +import "time" + +// monthsPerYear is used to normalize yearly costs onto a monthly basis (and +// vice versa) when aggregating totals across mixed billing cycles. +const monthsPerYear = 12 + +// Summary is the computed insight (KD-1) returned by Service.Summary: the +// monthly/annual cent totals across all active subscriptions plus a per- +// subscription breakdown. All money stays integer cents (KD-3). +type Summary struct { + MonthlyTotalCents int + AnnualTotalCents int + Subscriptions []SubscriptionSummary +} + +// SubscriptionSummary is the per-subscription slice of a Summary: how much has +// been paid to date (completed billing cycles only, no proration) and when the +// next charge falls. +type SubscriptionSummary struct { + ID string + Name string + PaidToDateCents int + NextChargeDate time.Time +} + +// computeSummary derives a Summary for the given subscriptions as of now. It +// is a pure function — the caller (Service.Summary) is responsible for +// ensuring subs is already filtered to active-only records (the single source +// of truth is the repo.List(activeOnly=true) query; this function does not +// re-filter). +func computeSummary(now time.Time, subs []Subscription) Summary { + summary := Summary{ + Subscriptions: make([]SubscriptionSummary, 0, len(subs)), + } + + for _, sub := range subs { + summary.MonthlyTotalCents += monthlyAmountCents(sub) + summary.AnnualTotalCents += annualAmountCents(sub) + + summary.Subscriptions = append(summary.Subscriptions, SubscriptionSummary{ + ID: sub.ID, + Name: sub.Name, + PaidToDateCents: paidToDateCents(now, sub), + NextChargeDate: nextChargeDate(now, sub.BillingDay), + }) + } + + return summary +} + +// monthlyAmountCents normalizes sub's cost onto a monthly basis: a monthly +// subscription contributes its cost as-is; a yearly subscription contributes +// cost_cents/12. This is integer division that truncates toward zero (e.g. +// 9999/12 = 833) — intentional, since money stays integer cents (KD-3) and we +// deliberately do not prorate or introduce floats. +func monthlyAmountCents(sub Subscription) int { + if sub.Cycle == CycleYearly { + return sub.CostCents / monthsPerYear + } + return sub.CostCents +} + +// annualAmountCents normalizes sub's cost onto an annual basis: a yearly +// subscription contributes its cost as-is; a monthly subscription contributes +// cost_cents*12. +func annualAmountCents(sub Subscription) int { + if sub.Cycle == CycleMonthly { + return sub.CostCents * monthsPerYear + } + return sub.CostCents +} + +// nextChargeDate returns the smallest date D (compared by calendar date, +// ignoring time-of-day) such that D.Day() == billingDay and D >= today: +// - if today.Day() == billingDay, D is today; +// - if today.Day() < billingDay, D is this month; +// - if today.Day() > billingDay, D is next month (rolling the year over in +// December). +// +// billingDay is always 1..28, so every month has that day — no end-of-month +// handling is required. This rule is applied UNIFORMLY for both monthly and +// yearly cycles, per the literal spec — yearly subscriptions do not get +// anniversary-based next-charge logic here. +func nextChargeDate(now time.Time, billingDay int) time.Time { + year, month, day := now.Date() + loc := now.Location() + + if day <= billingDay { + return time.Date(year, month, billingDay, 0, 0, 0, 0, loc) + } + + month++ + if month > time.December { + month = time.January + year++ + } + return time.Date(year, month, billingDay, 0, 0, 0, 0, loc) +} + +// paidToDateCents returns the total amount paid for completed billing cycles +// since sub.StartDate, with NO proration of partial periods: completed cycle +// count times cost_cents. A start date in the future (or today, which has zero +// elapsed cycles) yields 0. +func paidToDateCents(now time.Time, sub Subscription) int { + if sub.Cycle == CycleYearly { + return completedYears(now, sub.StartDate) * sub.CostCents + } + return completedMonths(now, sub.StartDate) * sub.CostCents +} + +// completedMonths returns the number of whole months elapsed between start +// and now, using component (year/month/day) arithmetic rather than AddDate +// loops. A month is "complete" only once now's day-of-month has reached +// start's day-of-month; the result floors at 0 (a future start date yields 0). +func completedMonths(now, start time.Time) int { + months := (now.Year()-start.Year())*monthsPerYear + (int(now.Month()) - int(start.Month())) + if now.Day() < start.Day() { + months-- + } + if months < 0 { + return 0 + } + return months +} + +// completedYears returns the number of whole years elapsed between start and +// now, using component (year/month/day) arithmetic. A year is "complete" only +// once now's (month, day) has reached start's (month, day) — i.e. the +// anniversary has occurred this year; otherwise the most recent completed +// anniversary was last year. The result floors at 0. +func completedYears(now, start time.Time) int { + years := now.Year() - start.Year() + if monthDayBefore(now, start) { + years-- + } + if years < 0 { + return 0 + } + return years +} + +// monthDayBefore reports whether a's (month, day) comes strictly before b's +// (month, day), ignoring year — used to detect "this year's anniversary has +// not yet occurred". +func monthDayBefore(a, b time.Time) bool { + if a.Month() != b.Month() { + return a.Month() < b.Month() + } + return a.Day() < b.Day() +} diff --git a/api/internal/subscription/summary_test.go b/api/internal/subscription/summary_test.go new file mode 100644 index 0000000..a624a6e --- /dev/null +++ b/api/internal/subscription/summary_test.go @@ -0,0 +1,261 @@ +package subscription + +import ( + "testing" + "time" + + "context" + "errors" +) + +// fixedNow is a stable reference "today" used across the pure-computation +// tests: 2024-03-15 (a Friday), so day-of-month boundary cases are easy to +// reason about (15 == billing day; 14/16 surround it). +var fixedNow = time.Date(2024, 3, 15, 9, 30, 0, 0, time.UTC) + +func TestNextChargeDate(t *testing.T) { + tests := []struct { + name string + now time.Time + billingDay int + want time.Time + }{ + { + name: "today before billing day -> this month", + now: time.Date(2024, 3, 10, 12, 0, 0, 0, time.UTC), + billingDay: 15, + want: time.Date(2024, 3, 15, 0, 0, 0, 0, time.UTC), + }, + { + name: "today equals billing day -> today", + now: time.Date(2024, 3, 15, 23, 59, 0, 0, time.UTC), + billingDay: 15, + want: time.Date(2024, 3, 15, 0, 0, 0, 0, time.UTC), + }, + { + name: "today after billing day -> next month", + now: time.Date(2024, 3, 20, 0, 0, 0, 0, time.UTC), + billingDay: 15, + want: time.Date(2024, 4, 15, 0, 0, 0, 0, time.UTC), + }, + { + name: "december rolls over into next january", + now: time.Date(2024, 12, 20, 0, 0, 0, 0, time.UTC), + billingDay: 5, + want: time.Date(2025, 1, 5, 0, 0, 0, 0, time.UTC), + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got := nextChargeDate(tt.now, tt.billingDay) + if !got.Equal(tt.want) { + t.Errorf("nextChargeDate(%v, %d) = %v, want %v", tt.now, tt.billingDay, got, tt.want) + } + }) + } +} + +func TestMonthlyAndAnnualAmountCents(t *testing.T) { + monthly := Subscription{Cycle: CycleMonthly, CostCents: 1599} + yearly := Subscription{Cycle: CycleYearly, CostCents: 9999} + + if got, want := monthlyAmountCents(monthly), 1599; got != want { + t.Errorf("monthlyAmountCents(monthly) = %d, want %d", got, want) + } + if got, want := annualAmountCents(monthly), 1599*12; got != want { + t.Errorf("annualAmountCents(monthly) = %d, want %d", got, want) + } + + // 9999 / 12 = 833 (Go integer division truncates toward zero) — this is + // the intentional truncation documented on monthlyAmountCents. + if got, want := monthlyAmountCents(yearly), 833; got != want { + t.Errorf("monthlyAmountCents(yearly) = %d, want %d (truncated)", got, want) + } + if got, want := annualAmountCents(yearly), 9999; got != want { + t.Errorf("annualAmountCents(yearly) = %d, want %d", got, want) + } +} + +func TestPaidToDateCents_Monthly(t *testing.T) { + tests := []struct { + name string + now time.Time + startDate time.Time + costCents int + want int + }{ + { + name: "exact months elapsed", + now: time.Date(2024, 3, 15, 0, 0, 0, 0, time.UTC), + startDate: time.Date(2024, 1, 15, 0, 0, 0, 0, time.UTC), + costCents: 1000, + want: 2 * 1000, // Jan->Feb, Feb->Mar = 2 completed months + }, + { + name: "partial month dropped when today.Day < start.Day", + now: time.Date(2024, 3, 10, 0, 0, 0, 0, time.UTC), + startDate: time.Date(2024, 1, 15, 0, 0, 0, 0, time.UTC), + costCents: 1000, + want: 1 * 1000, // only Jan->Feb counts; Feb->Mar not yet complete + }, + { + name: "start date in the future yields zero", + now: time.Date(2024, 3, 15, 0, 0, 0, 0, time.UTC), + startDate: time.Date(2024, 6, 1, 0, 0, 0, 0, time.UTC), + costCents: 1000, + want: 0, + }, + { + name: "start date today yields zero", + now: time.Date(2024, 3, 15, 0, 0, 0, 0, time.UTC), + startDate: time.Date(2024, 3, 15, 0, 0, 0, 0, time.UTC), + costCents: 1000, + want: 0, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + sub := Subscription{Cycle: CycleMonthly, CostCents: tt.costCents, StartDate: tt.startDate} + if got := paidToDateCents(tt.now, sub); got != tt.want { + t.Errorf("paidToDateCents() = %d, want %d", got, tt.want) + } + }) + } +} + +func TestPaidToDateCents_Yearly(t *testing.T) { + tests := []struct { + name string + now time.Time + startDate time.Time + costCents int + want int + }{ + { + name: "anniversary already reached this year -> full years", + now: time.Date(2024, 6, 1, 0, 0, 0, 0, time.UTC), + startDate: time.Date(2021, 3, 15, 0, 0, 0, 0, time.UTC), + costCents: 12000, + want: 3 * 12000, // 2021->2022, 2022->2023, 2023->2024 + }, + { + name: "anniversary not yet reached this year -> years-1", + now: time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC), + startDate: time.Date(2021, 3, 15, 0, 0, 0, 0, time.UTC), + costCents: 12000, + want: 2 * 12000, // 2024 anniversary (Mar 15) not yet reached + }, + { + name: "start date in the future yields zero", + now: time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC), + startDate: time.Date(2025, 3, 15, 0, 0, 0, 0, time.UTC), + costCents: 12000, + want: 0, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + sub := Subscription{Cycle: CycleYearly, CostCents: tt.costCents, StartDate: tt.startDate} + if got := paidToDateCents(tt.now, sub); got != tt.want { + t.Errorf("paidToDateCents() = %d, want %d", got, tt.want) + } + }) + } +} + +func TestComputeSummary_TotalsAggregation(t *testing.T) { + subs := []Subscription{ + {ID: "sub-1", Name: "Netflix", Cycle: CycleMonthly, CostCents: 1599, BillingDay: 15, StartDate: time.Date(2024, 1, 15, 0, 0, 0, 0, time.UTC)}, + {ID: "sub-2", Name: "Cloud Storage", Cycle: CycleYearly, CostCents: 9999, BillingDay: 1, StartDate: time.Date(2023, 1, 1, 0, 0, 0, 0, time.UTC)}, + } + + got := computeSummary(fixedNow, subs) + + wantMonthlyTotal := 1599 + (9999 / 12) // 1599 + 833 = 2432 + wantAnnualTotal := (1599 * 12) + 9999 // 19188 + 9999 = 29187 (per-native-cycle, NOT monthlyTotal*12) + + if got.MonthlyTotalCents != wantMonthlyTotal { + t.Errorf("MonthlyTotalCents = %d, want %d", got.MonthlyTotalCents, wantMonthlyTotal) + } + if got.AnnualTotalCents != wantAnnualTotal { + t.Errorf("AnnualTotalCents = %d, want %d", got.AnnualTotalCents, wantAnnualTotal) + } + // Sanity: annual_total must NOT equal monthly_total*12 (that would + // compound the yearly truncation — the very thing we deliberately avoid). + if got.AnnualTotalCents == got.MonthlyTotalCents*12 { + t.Errorf("AnnualTotalCents unexpectedly equals MonthlyTotalCents*12 = %d; it must be computed per native cycle", got.MonthlyTotalCents*12) + } + if len(got.Subscriptions) != len(subs) { + t.Fatalf("Subscriptions len = %d, want %d", len(got.Subscriptions), len(subs)) + } +} + +func TestComputeSummary_EmptyYieldsEmptySliceNotNil(t *testing.T) { + got := computeSummary(fixedNow, nil) + + if got.Subscriptions == nil { + t.Error("Subscriptions = nil, want non-nil empty slice") + } + if len(got.Subscriptions) != 0 { + t.Errorf("Subscriptions len = %d, want 0", len(got.Subscriptions)) + } + if got.MonthlyTotalCents != 0 || got.AnnualTotalCents != 0 { + t.Errorf("totals = (%d, %d), want (0, 0)", got.MonthlyTotalCents, got.AnnualTotalCents) + } +} + +// TestService_Summary_ExcludesCancelledAndQueriesActiveOnly is a +// Service-level test using the fake repository: it mirrors the DB contract +// (List(activeOnly=true) returns only active rows) and asserts that a +// cancelled subscription contributes nothing to totals and is absent from the +// per-subscription list — and that Summary actually requests activeOnly=true. +func TestService_Summary_ExcludesCancelledAndQueriesActiveOnly(t *testing.T) { + activeSub := Subscription{ + ID: "sub-active", Name: "Netflix", Cycle: CycleMonthly, CostCents: 1599, + BillingDay: 15, StartDate: time.Date(2024, 1, 15, 0, 0, 0, 0, time.UTC), Active: true, + } + // A cancelled subscription would never be returned by + // List(activeOnly=true) in production (filtered at the query); the fake + // mirrors that contract by returning only the active one. + var gotActiveOnly bool + repo := &fakeRepository{ + listFn: func(ctx context.Context, activeOnly bool) ([]Subscription, error) { + gotActiveOnly = activeOnly + return []Subscription{activeSub}, nil + }, + } + svc := NewService(repo, WithClock(func() time.Time { return fixedNow })) + + got, err := svc.Summary(context.Background()) + if err != nil { + t.Fatalf("Summary() error = %v, want nil", err) + } + if !gotActiveOnly { + t.Error("Summary() did not call List with activeOnly == true") + } + if len(got.Subscriptions) != 1 || got.Subscriptions[0].ID != activeSub.ID { + t.Errorf("Subscriptions = %+v, want exactly [%q]", got.Subscriptions, activeSub.ID) + } + wantMonthlyTotal := monthlyAmountCents(activeSub) + if got.MonthlyTotalCents != wantMonthlyTotal { + t.Errorf("MonthlyTotalCents = %d, want %d (cancelled sub must contribute nothing)", got.MonthlyTotalCents, wantMonthlyTotal) + } +} + +func TestService_Summary_WrapsRepositoryError(t *testing.T) { + repoErr := errors.New("connection refused") + repo := &fakeRepository{ + listFn: func(ctx context.Context, activeOnly bool) ([]Subscription, error) { + return nil, repoErr + }, + } + svc := NewService(repo, WithClock(func() time.Time { return fixedNow })) + + _, err := svc.Summary(context.Background()) + if !errors.Is(err, repoErr) { + t.Errorf("Summary() error = %v, want it to wrap %v", err, repoErr) + } +} diff --git a/api/migrations/000001_create_subscriptions.down.sql b/api/migrations/000001_create_subscriptions.down.sql new file mode 100644 index 0000000..fa93c5b --- /dev/null +++ b/api/migrations/000001_create_subscriptions.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS subscriptions; diff --git a/api/migrations/000001_create_subscriptions.up.sql b/api/migrations/000001_create_subscriptions.up.sql new file mode 100644 index 0000000..7e34c87 --- /dev/null +++ b/api/migrations/000001_create_subscriptions.up.sql @@ -0,0 +1,12 @@ +CREATE TABLE subscriptions ( + id uuid PRIMARY KEY DEFAULT gen_random_uuid(), + name text NOT NULL, + cost_cents int NOT NULL CHECK (cost_cents > 0), + currency char(3) NOT NULL, + cycle text NOT NULL CHECK (cycle IN ('monthly', 'yearly')), + billing_day int NOT NULL CHECK (billing_day BETWEEN 1 AND 28), + start_date date NOT NULL, + active bool NOT NULL DEFAULT true, + created_at timestamptz NOT NULL DEFAULT now(), + updated_at timestamptz NOT NULL DEFAULT now() +); diff --git a/api/scripts/demo.sh b/api/scripts/demo.sh new file mode 100755 index 0000000..bb0e848 --- /dev/null +++ b/api/scripts/demo.sh @@ -0,0 +1,64 @@ +#!/bin/sh +# Seeds 3 sample subscriptions into a running subtrack-api and prints the +# spending summary. Assumes the stack is already up and migrated: +# +# docker compose up -d && make migrate-up +# +# Respects: +# BASE_URL - API base URL (default http://localhost:8080) +# API_KEY - X-API-Key header value (default dev-local-key) +set -eu + +BASE_URL="${BASE_URL:-http://localhost:8080}" +API_KEY="${API_KEY:-dev-local-key}" + +pretty() { + if command -v jq >/dev/null 2>&1; then + jq . + else + cat + fi +} + +post_subscription() { + body="$1" + curl -sS -X POST "$BASE_URL/v1/subscriptions" \ + -H "X-API-Key: $API_KEY" \ + -H "Content-Type: application/json" \ + -d "$body" +} + +echo "Seeding subscriptions..." + +post_subscription '{ + "name": "Netflix", + "cost_cents": 1599, + "currency": "EUR", + "cycle": "monthly", + "billing_day": 5, + "start_date": "2024-01-05" +}' | pretty + +post_subscription '{ + "name": "Spotify", + "cost_cents": 1199, + "currency": "USD", + "cycle": "monthly", + "billing_day": 15, + "start_date": "2024-02-15" +}' | pretty + +post_subscription '{ + "name": "Amazon Prime", + "cost_cents": 8999, + "currency": "GBP", + "cycle": "yearly", + "billing_day": 20, + "start_date": "2024-03-20" +}' | pretty + +echo "" +echo "Spending summary:" + +curl -sS "$BASE_URL/v1/subscriptions/summary" \ + -H "X-API-Key: $API_KEY" | pretty diff --git a/docs/.DS_Store b/docs/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0-s>NKmAt++W}iR#Er@J^;w2BPfWF{wltUPhW0oK`PY`?In8*yxl1faf)ret9XTDWkFB}t-4y)nA>SU`4#o~0nzePE$Cn`z- zDKJ&wGPf)5|9A8s=Km>4J1HOq{*?l@*xYZ{yi)bn+2y>~Hu@voYd-02TnB|A+A%TO iF*n|hZ=xvcny>l17mkTRXFlje{S3G+GAZ!a3VZ?43KmxY literal 0 HcmV?d00001 diff --git a/mcp/README.md b/mcp/README.md new file mode 100644 index 0000000..c9f2af3 --- /dev/null +++ b/mcp/README.md @@ -0,0 +1,66 @@ +# mcp + +A [FastMCP](https://gofastmcp.com/) server that exposes a curated set of subscription-tracking +tools to MCP clients such as Claude Desktop. It holds no business logic of its own: every tool is +a thin HTTP call to the `api` Go backend. See the [root README](../README.md) for the architecture +and full quickstart. + +## Tools + +| Tool | Kind | Backend call | +|---|---|---| +| `list_subscriptions` | read | `GET /v1/subscriptions` | +| `get_subscription` | read | `GET /v1/subscriptions/{id}` | +| `spending_summary` | read | `GET /v1/subscriptions/summary` | +| `upcoming_charges` | read | `GET /v1/subscriptions/summary` (filtered client-side) | +| `add_subscription` | write | `POST /v1/subscriptions` | +| `update_subscription` | write | `PATCH /v1/subscriptions/{id}` | +| `cancel_subscription` | write | `POST /v1/subscriptions/{id}/cancel` | + +The surface is curated, not auto-generated from the REST API. Tools are task-shaped +(`upcoming_charges`, `spending_summary`) rather than a 1:1 endpoint mirror, which keeps the +agent's choices small and unambiguous. Inputs are validated with Pydantic before any HTTP call; +HTTP failures from the backend are mapped to clean `ToolError`s, never raw tracebacks. + +## Auth + +Every request to the backend carries the shared secret as an `X-API-Key` header +(`subtrack_mcp/api_client.py`), read from the `SUBTRACK_API_KEY` environment variable via +`subtrack_mcp/config.py`. The MCP itself has no separate auth — it's a single trusted client of +the backend. + +## Quickstart + +Requires [Docker](https://docs.docker.com/) and [uv](https://docs.astral.sh/uv/). + +```sh +# 1. Start the backend (Go API + Postgres) from the sibling directory. +cd ../api +docker compose up -d +make migrate-up + +# 2. Run the MCP server. +cd ../mcp +uv sync +export SUBTRACK_API_URL=http://localhost:8080 +export SUBTRACK_API_KEY=dev-local-key # matches api/.env.example +uv run subtrack-mcp +``` + +Both environment variables are mandatory — the server fails fast at startup if either is missing. +Point your MCP client at `uv run subtrack-mcp` with the same two variables set, and it connects +over stdio. + +Dev gates (the same ones CI runs): + +```sh +uv run ruff check . +uv run mypy . +uv run pytest -q +``` + +## See also + +- [Root README](../README.md) — architecture, full quickstart, design decisions. +- [`api/README.md`](../api/README.md) — the Go backend that owns all business logic and the + database. diff --git a/mcp/pyproject.toml b/mcp/pyproject.toml new file mode 100644 index 0000000..0c5340c --- /dev/null +++ b/mcp/pyproject.toml @@ -0,0 +1,35 @@ +[project] +name = "subtrack-mcp" +version = "0.1.0" +description = "Thin FastMCP server over the subtrack-api Go backend." +requires-python = ">=3.12" +dependencies = [ + "fastmcp>=2.3", + "httpx>=0.27", + "pydantic>=2.7", +] + +[project.scripts] +subtrack-mcp = "subtrack_mcp.server:main" + +[dependency-groups] +dev = [ + "pytest>=8", + "pytest-asyncio>=0.23", + "respx>=0.21", + "ruff>=0.5", + "mypy>=1.10", +] + +[tool.pytest.ini_options] +asyncio_mode = "auto" + +[tool.ruff] +line-length = 100 + +[tool.mypy] +strict = true + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" \ No newline at end of file diff --git a/mcp/subtrack_mcp/__init__.py b/mcp/subtrack_mcp/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/mcp/subtrack_mcp/api_client.py b/mcp/subtrack_mcp/api_client.py new file mode 100644 index 0000000..40cc6bc --- /dev/null +++ b/mcp/subtrack_mcp/api_client.py @@ -0,0 +1,32 @@ +import httpx +from typing import Any +from .config import load_settings + + + +def _client() -> httpx.AsyncClient: + settings = load_settings() + return httpx.AsyncClient( + base_url=settings.api_url, + headers={"X-API-Key": settings.api_key}, + timeout=10.0, + ) + + +async def api_get(path: str, params: dict[str, str] | None = None) -> Any: + async with _client() as client: + response = await client.get(path, params=params) + response.raise_for_status() + return response.json() + +async def api_post(path: str, json: dict[str, object] | None = None) -> Any: + async with _client() as client: + response = await client.post(path, json=json) + response.raise_for_status() + return response.json() + +async def api_patch(path: str, json: dict[str, object]) -> Any: + async with _client() as client: + response = await client.patch(path, json=json) + response.raise_for_status() + return response.json() \ No newline at end of file diff --git a/mcp/subtrack_mcp/config.py b/mcp/subtrack_mcp/config.py new file mode 100644 index 0000000..a352de6 --- /dev/null +++ b/mcp/subtrack_mcp/config.py @@ -0,0 +1,21 @@ +import os +from dataclasses import dataclass + + + + +@dataclass(frozen=True) +class Settings: + api_url: str + api_key: str + +def load_settings() -> Settings: + """Read config from the enviroment, failing fast if anything is missing.""" + try: + return Settings( + api_url=os.environ["SUBTRACK_API_URL"], + api_key=os.environ["SUBTRACK_API_KEY"], + ) + except KeyError as missing: + raise RuntimeError(f"Missing required enviroment variable: {missing}. " + "Set SUBTRACK_API_URL and SUBTRACK_API_KEY") from missing \ No newline at end of file diff --git a/mcp/subtrack_mcp/models.py b/mcp/subtrack_mcp/models.py new file mode 100644 index 0000000..e55516a --- /dev/null +++ b/mcp/subtrack_mcp/models.py @@ -0,0 +1,41 @@ +from datetime import date, datetime +from typing import Literal +from pydantic import BaseModel, Field + +class Subscription(BaseModel): + id: str + name: str + cost_cents: int + currency: str + cycle: str + billing_day: int + start_date: date + active: bool + created_at: datetime + updated_at: datetime + +class SubscriptionLine(BaseModel): + id: str + name: str + paid_to_date_cents: int + next_charge_date: date + +class Summary(BaseModel): + monthly_total_cents: int + annual_total_cents: int + subscriptions: list[SubscriptionLine] + +class NewSubscription(BaseModel): + name: str = Field(min_length=1) + cost_cents: int = Field(gt=0) + currency: str = Field(min_length=3, max_length=3) + cycle: Literal["monthly", "yearly"] + billing_day: int = Field(ge=1, le=28) + start_date: date + +class SubscriptionUpdate(BaseModel): + name: str | None = Field(default = None, min_length=1) + cost_cents: int | None = Field(default=None, gt=0) + currency: str | None = Field(default=None, min_length=3, max_length=3) + cycle: Literal["monthly", "yearly"] | None = None + billing_day: int | None = Field(default=None, ge=1, le=28) \ No newline at end of file diff --git a/mcp/subtrack_mcp/server.py b/mcp/subtrack_mcp/server.py new file mode 100644 index 0000000..e04c17f --- /dev/null +++ b/mcp/subtrack_mcp/server.py @@ -0,0 +1,103 @@ +from __future__ import annotations +from datetime import date, timedelta + +import functools +from collections.abc import Awaitable, Callable +from typing import TypeVar + +import httpx +from fastmcp import FastMCP +from fastmcp.exceptions import ToolError + +from subtrack_mcp.api_client import api_get, api_post, api_patch +from subtrack_mcp.models import ( + Subscription, + Summary, + SubscriptionLine, + NewSubscription, + SubscriptionUpdate +) + + +# INIT LOGIC +mcp = FastMCP("subtrack-mcp") +R = TypeVar("R") + +def surface_errors(fn: Callable[..., Awaitable[R]]) -> Callable[..., Awaitable[R]]: + """Turn backed HTTP failures into clean ToolErrors, no stack traces""" + + @functools.wraps(fn) + async def wrapper(*args: object, **kwargs: object) -> R: + try: + return await fn(*args, **kwargs) + except httpx.HTTPStatusError as exc: + raise ToolError(f"subtrack-api returned HTTP {exc.response.status_code}") from exc + except httpx.RequestError as exc: + raise ToolError(f"Could not reach subtrack-api: {exc}") from exc + return wrapper + +@mcp.tool +@surface_errors +async def list_subscriptions(active: bool = True) -> list[Subscription]: + """List all subscriptions. By default only the active ones are returned.""" + data = await api_get("/v1/subscriptions", params={"active": str(active).lower()}) + items = data["subscriptions"] + return [Subscription.model_validate(item) for item in items] + +@mcp.tool +@surface_errors +async def get_subscription(subscription_id: str) -> Subscription: + """Fetch a single subscription by id""" + data = await api_get(f"/v1/subscriptions/{subscription_id}") + return Subscription.model_validate(data) + + +@mcp.tool +@surface_errors +async def spending_summary() -> Summary: + """Monthly and annual totals plus a per-subscription breakdown""" + return await _fetch_summary() + +@mcp.tool() +@surface_errors +async def upcoming_charges(days: int = 30) -> list[SubscriptionLine]: + """Subscriptions whose next charge falls within the next N days""" + summary = await _fetch_summary() + cutoff = date.today() + timedelta(days = days) + upcoming = [line for line in summary.subscriptions if line.next_charge_date <= cutoff] + return sorted(upcoming, key=lambda line: line.next_charge_date) + + +async def _fetch_summary() -> Summary: + """Plain helper so other tools can reuse the summary (no tool calling tool loop)""" + data = await api_get("/v1/subscriptions/summary") + return Summary.model_validate(data) + + +@mcp.tool +@surface_errors +async def add_subscription(subscription: NewSubscription) -> Subscription: + """Create a subscription. Inputs are validated before the call""" + data = await api_post("/v1/subscriptions", json=subscription.model_dump(mode="json")) + return Subscription.model_validate(data) + +@mcp.tool +@surface_errors +async def update_subscription( + subscription_id: str, changes: SubscriptionUpdate) -> Subscription: + """Patch mutable fields. Only the fields you set are sent""" + payload = changes.model_dump(mode="json", exclude_none = True) + data = await api_patch(f"/v1/subscriptions/{subscription_id}", json=payload) + return Subscription.model_validate(data) + +@mcp.tool +@surface_errors +async def cancel_subscription(subscription_id: str) -> Subscription: + """Cancel a subscription (sets active=False)""" + data = await api_post(f"/v1/subscriptions/{subscription_id}/cancel") + return Subscription.model_validate(data) + +def main() -> None: + mcp.run() +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/mcp/tests/conftest.py b/mcp/tests/conftest.py new file mode 100644 index 0000000..41c7f59 --- /dev/null +++ b/mcp/tests/conftest.py @@ -0,0 +1,7 @@ +import pytest + +@pytest.fixture(autouse=True) +def _backend_env(monkeypatch: pytest.MonkeyPatch) -> None: + """Every test runs as if the backend lives at http://test with a known key""" + monkeypatch.setenv("SUBTRACK_API_URL","http://test") + monkeypatch.setenv("SUBTRACK_API_KEY", "test-key") diff --git a/mcp/tests/test_read_tools.py b/mcp/tests/test_read_tools.py new file mode 100644 index 0000000..1905e66 --- /dev/null +++ b/mcp/tests/test_read_tools.py @@ -0,0 +1,52 @@ +from fastmcp.exceptions import ToolError +import httpx +import respx +from fastmcp import Client +import pytest + +from subtrack_mcp.server import mcp + +SAMPLE = { + "id": "sub_1", "name": "Netflix", "cost_cents": 1599, "currency": "EUR", + "cycle": "monthly", "billing_day": 5, "start_date": "2024-01-05", "active": True, + "created_at": "2024-01-05T00:00:00Z", "updated_at": "2024-01-05T00:00:00Z", +} + +@respx.mock +async def test_list_subscriptions_returns_models() -> None: + respx.get("http://test/v1/subscriptions").mock( + return_value=httpx.Response(200, json={"subscriptions": [SAMPLE]})) + async with Client(mcp) as client: + result = await client.call_tool("list_subscriptions",{"active": True}) + subs = result.data + assert len(subs) == 1 + assert subs[0].name == "Netflix" + + +@respx.mock +async def test_upcoming_charges_filters_by_window() -> None: + summary = { + "monthly_total_cents": 1599, "annual_total_cents": 19188, + "subscriptions": [ + {"id": "a", "name": "Soon", "paid_to_date_cents": 0, + "next_charge_date": "2099-01-05"}, # fuera de ventana + {"id": "b", "name": "Now", "paid_to_date_cents": 0, + "next_charge_date": "2000-01-05"}, # dentro + ], + } + respx.get("http://test/v1/subscriptions/summary").mock( + return_value=httpx.Response(200, json=summary) + ) + async with Client(mcp) as client: + result = await client.call_tool("upcoming_charges", {"days": 30}) + names = [line.name for line in result.data] + assert names == ["Now"] + +@respx.mock +async def test_get_subscription_404_becomes_tool_error() -> None: + respx.get("http://test/v1/subscriptions/blabla").mock( + return_value=httpx.Response(404, json={"error": "not found"}) + ) + with pytest.raises(ToolError): + async with Client(mcp) as client: + await client.call_tool("get_subscription", {"subscription_id": "blabla"}) \ No newline at end of file diff --git a/mcp/tests/test_write_tools.py b/mcp/tests/test_write_tools.py new file mode 100644 index 0000000..dfa49e2 --- /dev/null +++ b/mcp/tests/test_write_tools.py @@ -0,0 +1,87 @@ +import httpx +import pytest +import respx +from fastmcp import Client +from fastmcp.exceptions import ToolError +from subtrack_mcp.server import mcp + +CREATED = { + "id": "sub_9", "name": "Spotify", "cost_cents": 999, "currency": "EUR", + "cycle": "monthly", "billing_day": 12, "start_date": "2025-02-01", "active": True, + "created_at": "2025-02-01T00:00:00Z", "updated_at": "2025-02-01T00:00:00Z", +} + +@respx.mock +async def test_add_subscription_happy_path() -> None: + route = respx.post("http://test/v1/subscriptions").mock( + return_value=httpx.Response(201, json=CREATED) + ) + payload = { + "name": "Spotify", "cost_cents": 999, "currency": "EUR", + "cycle": "monthly", "billing_day": 12, "start_date": "2025-02-01", + } + async with Client(mcp) as client: + result = await client.call_tool("add_subscription", {"subscription": payload}) + assert route.called + assert result.data.id == "sub_9" + +@respx.mock +async def test_update_only_sends_changed_fields() -> None: + route = respx.patch("http://test/v1/subscriptions/sub_9").mock( + return_value=httpx.Response(200, json={**CREATED, "cost_cents": 1099}) + ) + async with Client(mcp) as client: + result = await client.call_tool( + "update_subscription", {"subscription_id": "sub_9", "changes": {"cost_cents": 1099}}) + import json as _json + assert _json.loads(route.calls.last.request.content) == {"cost_cents": 1099} + assert result.data.cost_cents == 1099 + + +@respx.mock +async def test_cancel_returns_inactive() -> None: + respx.post("http://test/v1/subscriptions/sub_9/cancel").mock( + return_value=httpx.Response(200, json={**CREATED, "active": False}) + ) + async with Client(mcp) as client: + result = await client.call_tool("cancel_subscription", {"subscription_id": "sub_9"}) + assert result.data.active is False + + + +async def test_add_rejects_bad_input() -> None: + bad = { + "name": "Bad", "cost_cents": -5, "currency": "EUR", + "cycle": "monthly", "billing_day": 12, "start_date": "2025-02-01", + } + with pytest.raises(ToolError): + async with Client(mcp) as client: + await client.call_tool("add_subscription", {"subscription": bad}) + + +@respx.mock +async def test_add_subscription_billing_day_one_accepted() -> None: + route = respx.post("http://test/v1/subscriptions").mock( + return_value=httpx.Response(201, json={**CREATED, "billing_day": 1}) + ) + payload = { + "name": "Spotify", "cost_cents": 999, "currency": "EUR", + "cycle": "monthly", "billing_day": 1, "start_date": "2025-02-01", + } + async with Client(mcp) as client: + result = await client.call_tool("add_subscription", {"subscription": payload}) + assert route.called + assert result.data.billing_day == 1 + + +@respx.mock +async def test_update_missing_id_surfaces_404() -> None: + respx.patch("http://test/v1/subscriptions/ghost").mock( + return_value=httpx.Response(404, json={"error": "not found"}) + ) + with pytest.raises(ToolError): + async with Client(mcp) as client: + await client.call_tool( + "update_subscription", + {"subscription_id": "ghost", "changes": {"name": "x"}}, + ) \ No newline at end of file diff --git a/mcp/uv.lock b/mcp/uv.lock new file mode 100644 index 0000000..abe863f --- /dev/null +++ b/mcp/uv.lock @@ -0,0 +1,1566 @@ +version = 1 +revision = 3 +requires-python = ">=3.12" +resolution-markers = [ + "python_full_version >= '3.15'", + "python_full_version < '3.15'", +] + +[[package]] +name = "aiofile" +version = "3.11.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "caio" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/48/41/2fea7e193e061ce54eacc3b7bc0e6a99e4fcff43c78cf0a76dd781ed8334/aiofile-3.11.1.tar.gz", hash = "sha256:1f91912c6643d2a4e49ca4ae3514f0bf3867ce948a36d99a6411b8f4755f4cf9", size = 19342, upload-time = "2026-05-16T08:18:33.538Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/67/cd/0d76dfc5de72bde52f55f53e925c7d152d9c7906634ec1e0cbc7e8d4ad93/aiofile-3.11.1-py3-none-any.whl", hash = "sha256:ce77d14ac07f77bc2b757834a5c129321f3f705c474593deed5ab209079a52c9", size = 20446, upload-time = "2026-05-16T08:18:32.051Z" }, +] + +[[package]] +name = "annotated-types" +version = "0.7.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081, upload-time = "2024-05-20T21:33:25.928Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643, upload-time = "2024-05-20T21:33:24.1Z" }, +] + +[[package]] +name = "anyio" +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/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/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]] +name = "ast-serialize" +version = "0.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/81/9d/09e27731bd5864a9ce04e3244074e674bb8936bf62b45e0357248717adac/ast_serialize-0.5.0.tar.gz", hash = "sha256:5880091bfe6f4f986f22866375c2e884843e7a0b6343ae41aeea659613d879b6", size = 61157, upload-time = "2026-05-17T17:48:29.429Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c0/9a/13dde51ba9e15f8b97957ab7cb0120d0e381524d651c6bd630b9c359227f/ast_serialize-0.5.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:8f5c14f169eb0972c0c21bada5358b23d6047c76583b005234f865b11f1fa00a", size = 1183520, upload-time = "2026-05-17T17:47:30.831Z" }, + { url = "https://files.pythonhosted.org/packages/37/de/5a7f0a9fe68944f536632a5af84676739c7d2582be42deb082634bf3a754/ast_serialize-0.5.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7d1a2de9de5be04652f0ed60738356ef94f66db37924a9499fffe98dc491aa0b", size = 1175779, upload-time = "2026-05-17T17:47:32.551Z" }, + { url = "https://files.pythonhosted.org/packages/9c/81/0bb853e76e4f6e9a1855d569003c59e19ffac45f7079d91505d1bb212f92/ast_serialize-0.5.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:be5173fb66f9b49026d9d5a2ff0fc7c7009077107c0eb285b2d60fdf1fe10bd1", size = 1233750, upload-time = "2026-05-17T17:47:34.731Z" }, + { url = "https://files.pythonhosted.org/packages/e5/d3/4cf705beeccc08754d0bbda99aefff26110e209b9a07ac8a6b60eec48531/ast_serialize-0.5.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f8015cd071ac1339924ee2b8098c93e00e155f30a16f40ec9816fcf84f4753f6", size = 1235942, upload-time = "2026-05-17T17:47:36.287Z" }, + { url = "https://files.pythonhosted.org/packages/26/c8/ee097e437ea27dd2b8b227865c875492b585650a5802a22d82b304c8201b/ast_serialize-0.5.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5499e8797edff2a9186aa313ed382c6b422e798e9332d9953badcee6e69a88f2", size = 1442517, upload-time = "2026-05-17T17:47:38.17Z" }, + { url = "https://files.pythonhosted.org/packages/ff/bd/68063442838f1ba68ec72b5436430bc75b3bb17a1a3c3063f09b0c05ae2b/ast_serialize-0.5.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6848f2a093fb5548751a9a09bff8fcd229e2bbeb0e3331f391b6ae6d26cd9903", size = 1254081, upload-time = "2026-05-17T17:47:39.826Z" }, + { url = "https://files.pythonhosted.org/packages/50/e2/1e520793bc6a4e4524a6ab022391e827825eaa0c3811828bfdc6852eca26/ast_serialize-0.5.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:832d4c998e0b091fd60a6d6bceee535483c4d490de9ba85003af835225719261", size = 1259910, upload-time = "2026-05-17T17:47:41.369Z" }, + { url = "https://files.pythonhosted.org/packages/4e/e1/49b60f467979979cfe6913b43948ff25bca971ad0591d181812f163a988e/ast_serialize-0.5.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:16db7c62ec0b8efe1d7afd283a388d8f74f2605d56032e5a37747d2de8dba027", size = 1250678, upload-time = "2026-05-17T17:47:43.702Z" }, + { url = "https://files.pythonhosted.org/packages/74/ba/66ab9555de6275677566f6574e5ef6c29cb185ea866f643bc06f8280a8ee/ast_serialize-0.5.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:baf5eb061eb5bccade4128ad42da33787d72f6013809cd1b590376ece8b3c937", size = 1301603, upload-time = "2026-05-17T17:47:46.256Z" }, + { url = "https://files.pythonhosted.org/packages/66/42/6aca9b9abc710014b2be9059689e5dd1679339e78f567ffb4d255a9e2050/ast_serialize-0.5.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:104e4a35bd7c124173c41760ef9aaea17ddb3f86c65cb643671d59afbe3ee94c", size = 1410332, upload-time = "2026-05-17T17:47:47.899Z" }, + { url = "https://files.pythonhosted.org/packages/47/68/2f76594432a22581ecf878b5e75a9b8601c24b2241cf0bbeb1e21fcf370c/ast_serialize-0.5.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:36be371028fc1675acb38a331bde160dbab7ff907fdf00b67eb6911aa106951b", size = 1509979, upload-time = "2026-05-17T17:47:50.942Z" }, + { url = "https://files.pythonhosted.org/packages/40/ac/a93c9b58292653f6c595752f677a08e608f903b710594909e9231a389b3b/ast_serialize-0.5.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:061ee58bdb52341c8201a6df41182a977736bae3b7ded87ca7176ca25a8a47ab", size = 1505002, upload-time = "2026-05-17T17:47:54.093Z" }, + { url = "https://files.pythonhosted.org/packages/14/2e/b278f68c497ee2f1d1576cbbef8db5281cd4a5f2db040537592ac9c8862e/ast_serialize-0.5.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:b15219e9cdc9f53f6f4cb51c009203507228226148c05c5e8fe451c28b435eb3", size = 1456231, upload-time = "2026-05-17T17:47:56.311Z" }, + { url = "https://files.pythonhosted.org/packages/0b/43/419be1c566a4c504cd8fd60ce2f84e790f295495c0f327cfaeadf3d51012/ast_serialize-0.5.0-cp314-cp314t-win32.whl", hash = "sha256:842d1c004bb466c7df036f95fabef789570541922b10976b12f5592a69cf0b38", size = 1058668, upload-time = "2026-05-17T17:47:58.305Z" }, + { url = "https://files.pythonhosted.org/packages/03/6f/c9d4d549295ed05111aeb8853232d1afd9d0a179fddb01eeffbb3a4a6842/ast_serialize-0.5.0-cp314-cp314t-win_amd64.whl", hash = "sha256:b0c06d760909b095cc466356dfccd05a1c7233a6ca191c020dca2c6a6f16c24c", size = 1101075, upload-time = "2026-05-17T17:48:00.35Z" }, + { url = "https://files.pythonhosted.org/packages/d0/8e/d00c5ab30c58222e07d62956fca86c59d91b9ad32997e633c38b526623a3/ast_serialize-0.5.0-cp314-cp314t-win_arm64.whl", hash = "sha256:787baedb0262cc49e8ce37cc15c00ae818e46a165a3b36f5e21ed174998104cb", size = 1075347, upload-time = "2026-05-17T17:48:01.753Z" }, + { url = "https://files.pythonhosted.org/packages/e0/9e/dc2530acb3a60dc6e46d65abf27d1d9f86721694757906a148d90a6860de/ast_serialize-0.5.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:0668aa9459cfa8c9c49ddd2163ebcf43088ba045ef7492af6fe22e0098303101", size = 1191380, upload-time = "2026-05-17T17:48:03.738Z" }, + { url = "https://files.pythonhosted.org/packages/26/0a/bd3d18a582f273d6c843d16bb9e22e9e16365ff7991e92f18f798e9f1224/ast_serialize-0.5.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:bf683d6363edf2b39eed6b6d4fe22d34b6203867a67e27134d9e2a2680c4bc4a", size = 1183879, upload-time = "2026-05-17T17:48:05.463Z" }, + { url = "https://files.pythonhosted.org/packages/40/ae/1f919100f8620887af58fcc381c61a1f218cdf89c6e155f87b213e61010a/ast_serialize-0.5.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9cc22cf0c9be65e71cf88fda130af60d61eb4a79370ad4cfe7900d48a4aa2211", size = 1244529, upload-time = "2026-05-17T17:48:07.008Z" }, + { url = "https://files.pythonhosted.org/packages/c6/ca/6376559dcce707cdbc1d0d9a13c8d3baaaa501e949ce0ebdc4230cd881aa/ast_serialize-0.5.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f66173891548c9f2726bf27957b41cabce12fa679dc6da505ddbde4d4b3b31cf", size = 1240560, upload-time = "2026-05-17T17:48:08.46Z" }, + { url = "https://files.pythonhosted.org/packages/35/b2/a620e206b5aeb7efbf2710336df57d457cffbb3991076bbcc1147ef9abd4/ast_serialize-0.5.0-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e42d729ef2be96a14efbad355093284739e3670ece3e534f82cc8832790911d9", size = 1451172, upload-time = "2026-05-17T17:48:09.922Z" }, + { url = "https://files.pythonhosted.org/packages/fa/e0/4ad5c04c24a40481b2935ce9a0ccdb6023dc8b667167d06ae530cc3512f2/ast_serialize-0.5.0-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b725026bafa801dbd7310eb13a75f0a2e370e7e51b2cb225f9d21fcfadf919ee", size = 1265072, upload-time = "2026-05-17T17:48:11.469Z" }, + { url = "https://files.pythonhosted.org/packages/b2/71/4d1d479aa56d0101c40e17720c3d6ac2af7269ea0487a80b18e7bfd1a5b7/ast_serialize-0.5.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b54f60c1d78767a53b67eaa663f0dfac3afe606aa07f1301572f588b73d64809", size = 1270488, upload-time = "2026-05-17T17:48:13.575Z" }, + { url = "https://files.pythonhosted.org/packages/6d/4f/0de1bbe06f6edef9fde4ed12ca8e7b3ec7e6e2bd4e672c5af487f7957665/ast_serialize-0.5.0-cp39-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:27d51654fc240a1e87e742d353d98eb45b75f62f129086b3596ab53df2ac2a43", size = 1260702, upload-time = "2026-05-17T17:48:15.141Z" }, + { url = "https://files.pythonhosted.org/packages/75/61/e00872439cfdddcc3c1b6cdaa6e5d904ba8e26a18807c67c4e14409d0ca8/ast_serialize-0.5.0-cp39-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2782c36237c46dd1674542f2109740ea5ea485a169bf1431939ada0434e17934", size = 1311182, upload-time = "2026-05-17T17:48:16.779Z" }, + { url = "https://files.pythonhosted.org/packages/76/8e/699a5b955f7926956c95e9e1d74132acad73c2fe7a426f94da89123c20aa/ast_serialize-0.5.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1943db345233cc7194a470f13afa9c59772c0b123dea0c9414c4d4ca54369759", size = 1421410, upload-time = "2026-05-17T17:48:18.527Z" }, + { url = "https://files.pythonhosted.org/packages/a9/ae/d5b7626874478997adc7a29ab28accf21e596fb590c944290401dfd0b29e/ast_serialize-0.5.0-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:df1c00022cbbcb064bfaa505aa9c9295362443ce5dacb459d1331d3da353f887", size = 1516587, upload-time = "2026-05-17T17:48:20.133Z" }, + { url = "https://files.pythonhosted.org/packages/0c/ce/b59e02a82d9c4244d64cde502e0b00e83e38816abe19155ceb5437402c7f/ast_serialize-0.5.0-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:cae65289fc456fde04af979a2be09302ef5d8ab92ef23e596d6746dc267ada27", size = 1515171, upload-time = "2026-05-17T17:48:21.921Z" }, + { url = "https://files.pythonhosted.org/packages/8b/38/d8d90042747d05aa08d4efcf1c99035a5f670a6bf4c214d31644392afbca/ast_serialize-0.5.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:239a4c354e8d676e9d94631d1d4a64edc6b266f86ff3a5a80aedd344f342c01d", size = 1464668, upload-time = "2026-05-17T17:48:23.544Z" }, + { url = "https://files.pythonhosted.org/packages/dd/51/5b840c4df7334104cecffa28f23904fe81ca89ca223d2450e288de39fd3c/ast_serialize-0.5.0-cp39-abi3-win32.whl", hash = "sha256:143a4ef63285a075871908fda3672dc21864b83a8ec3ee12304aa3e4c5387b9a", size = 1068311, upload-time = "2026-05-17T17:48:25.027Z" }, + { url = "https://files.pythonhosted.org/packages/41/11/ca5672c7d491825bc4cd6702dea106a6b60d928707712ec257c7833ae476/ast_serialize-0.5.0-cp39-abi3-win_amd64.whl", hash = "sha256:cf25572c526add400f26a4750dc6ce0c3bb93fc1f75e7ae0cad4ce4f2cd5c590", size = 1108931, upload-time = "2026-05-17T17:48:26.591Z" }, + { url = "https://files.pythonhosted.org/packages/45/19/cc8bd127d28a43da249aa955cfd164cf8fd534e79e42cea96c4854d72fd0/ast_serialize-0.5.0-cp39-abi3-win_arm64.whl", hash = "sha256:92a31c9c20d25a076edaeec76b128a3535d74a24f340b9a8a7e96c9b86dc9642", size = 1081181, upload-time = "2026-05-17T17:48:28.122Z" }, +] + +[[package]] +name = "attrs" +version = "26.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1d26985/attrs-26.1.0.tar.gz", hash = "sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", size = 952055, upload-time = "2026-03-19T14:22:25.026Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/64/b4/17d4b0b2a2dc85a6df63d1157e028ed19f90d4cd97c36717afef2bc2f395/attrs-26.1.0-py3-none-any.whl", hash = "sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309", size = 67548, upload-time = "2026-03-19T14:22:23.645Z" }, +] + +[[package]] +name = "authlib" +version = "1.7.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cryptography" }, + { name = "joserfc" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/36/98/7d93f30d029643c0275dbc0bd6d5a6f670661ee6c9a94d93af7ab4887600/authlib-1.7.2.tar.gz", hash = "sha256:2cea25fefcd4e7173bdf1372c0afc265c8034b23a8cd5dcb6a9164b826c64231", size = 176511, upload-time = "2026-05-06T08:10:23.116Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fb/95/adcb68e20c34162e9135f370d6e31737719c2b6f94bc953fe7ed1f10fe21/authlib-1.7.2-py2.py3-none-any.whl", hash = "sha256:3e1faedc9d87e7d56a164eca3ccb6ace0d61b94abe83e92242f8dc8bba9b4a9f", size = 259548, upload-time = "2026-05-06T08:10:21.436Z" }, +] + +[[package]] +name = "beartype" +version = "0.22.9" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/c7/94/1009e248bbfbab11397abca7193bea6626806be9a327d399810d523a07cb/beartype-0.22.9.tar.gz", hash = "sha256:8f82b54aa723a2848a56008d18875f91c1db02c32ef6a62319a002e3e25a975f", size = 1608866, upload-time = "2025-12-13T06:50:30.72Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/71/cc/18245721fa7747065ab478316c7fea7c74777d07f37ae60db2e84f8172e8/beartype-0.22.9-py3-none-any.whl", hash = "sha256:d16c9bbc61ea14637596c5f6fbff2ee99cbe3573e46a716401734ef50c3060c2", size = 1333658, upload-time = "2025-12-13T06:50:28.266Z" }, +] + +[[package]] +name = "cachetools" +version = "7.1.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f4/8b/0d3945a13955303b81272f759a0331e54c5c793da455e6f5706b89d2639c/cachetools-7.1.4.tar.gz", hash = "sha256:437f55a4e0c1b01a4f3077cc470e6991d47430970e36fbcb77e2be0df4fc1cd6", size = 40085, upload-time = "2026-05-21T22:40:43.376Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8c/7b/1fc1c09cc0756cf25861a3be10565915953876da48bb228fb9a672b20a42/cachetools-7.1.4-py3-none-any.whl", hash = "sha256:323dc4127934744db5b54eb4924482d7edafbf9554e820d1531c2e08c0e4ef54", size = 16761, upload-time = "2026-05-21T22:40:41.845Z" }, +] + +[[package]] +name = "caio" +version = "0.9.25" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/92/88/b8527e1b00c1811db339a1df8bd1ae49d146fcea9d6a5c40e3a80aaeb38d/caio-0.9.25.tar.gz", hash = "sha256:16498e7f81d1d0f5a4c0ad3f2540e65fe25691376e0a5bd367f558067113ed10", size = 26781, upload-time = "2025-12-26T15:21:36.501Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d3/25/79c98ebe12df31548ba4eaf44db11b7cad6b3e7b4203718335620939083c/caio-0.9.25-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:fb7ff95af4c31ad3f03179149aab61097a71fd85e05f89b4786de0359dffd044", size = 36983, upload-time = "2025-12-26T15:21:36.075Z" }, + { url = "https://files.pythonhosted.org/packages/a3/2b/21288691f16d479945968a0a4f2856818c1c5be56881d51d4dac9b255d26/caio-0.9.25-cp312-cp312-manylinux2010_x86_64.manylinux2014_x86_64.manylinux_2_12_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:97084e4e30dfa598449d874c4d8e0c8d5ea17d2f752ef5e48e150ff9d240cd64", size = 82012, upload-time = "2025-12-26T15:22:20.983Z" }, + { url = "https://files.pythonhosted.org/packages/03/c4/8a1b580875303500a9c12b9e0af58cb82e47f5bcf888c2457742a138273c/caio-0.9.25-cp312-cp312-manylinux_2_34_aarch64.whl", hash = "sha256:4fa69eba47e0f041b9d4f336e2ad40740681c43e686b18b191b6c5f4c5544bfb", size = 81502, upload-time = "2026-03-04T22:08:22.381Z" }, + { url = "https://files.pythonhosted.org/packages/d1/1c/0fe770b8ffc8362c48134d1592d653a81a3d8748d764bec33864db36319d/caio-0.9.25-cp312-cp312-manylinux_2_34_x86_64.whl", hash = "sha256:6bebf6f079f1341d19f7386db9b8b1f07e8cc15ae13bfdaff573371ba0575d69", size = 80200, upload-time = "2026-03-04T22:08:23.382Z" }, + { url = "https://files.pythonhosted.org/packages/31/57/5e6ff127e6f62c9f15d989560435c642144aa4210882f9494204bc892305/caio-0.9.25-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:d6c2a3411af97762a2b03840c3cec2f7f728921ff8adda53d7ea2315a8563451", size = 36979, upload-time = "2025-12-26T15:21:35.484Z" }, + { url = "https://files.pythonhosted.org/packages/a3/9f/f21af50e72117eb528c422d4276cbac11fb941b1b812b182e0a9c70d19c5/caio-0.9.25-cp313-cp313-manylinux2010_x86_64.manylinux2014_x86_64.manylinux_2_12_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0998210a4d5cd5cb565b32ccfe4e53d67303f868a76f212e002a8554692870e6", size = 81900, upload-time = "2025-12-26T15:22:21.919Z" }, + { url = "https://files.pythonhosted.org/packages/9c/12/c39ae2a4037cb10ad5eb3578eb4d5f8c1a2575c62bba675f3406b7ef0824/caio-0.9.25-cp313-cp313-manylinux_2_34_aarch64.whl", hash = "sha256:1a177d4777141b96f175fe2c37a3d96dec7911ed9ad5f02bac38aaa1c936611f", size = 81523, upload-time = "2026-03-04T22:08:25.187Z" }, + { url = "https://files.pythonhosted.org/packages/22/59/f8f2e950eb4f1a5a3883e198dca514b9d475415cb6cd7b78b9213a0dd45a/caio-0.9.25-cp313-cp313-manylinux_2_34_x86_64.whl", hash = "sha256:9ed3cfb28c0e99fec5e208c934e5c157d0866aa9c32aa4dc5e9b6034af6286b7", size = 80243, upload-time = "2026-03-04T22:08:26.449Z" }, + { url = "https://files.pythonhosted.org/packages/69/ca/a08fdc7efdcc24e6a6131a93c85be1f204d41c58f474c42b0670af8c016b/caio-0.9.25-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:fab6078b9348e883c80a5e14b382e6ad6aabbc4429ca034e76e730cf464269db", size = 36978, upload-time = "2025-12-26T15:21:41.055Z" }, + { url = "https://files.pythonhosted.org/packages/5e/6c/d4d24f65e690213c097174d26eda6831f45f4734d9d036d81790a27e7b78/caio-0.9.25-cp314-cp314-manylinux2010_x86_64.manylinux2014_x86_64.manylinux_2_12_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:44a6b58e52d488c75cfaa5ecaa404b2b41cc965e6c417e03251e868ecd5b6d77", size = 81832, upload-time = "2025-12-26T15:22:22.757Z" }, + { url = "https://files.pythonhosted.org/packages/87/a4/e534cf7d2d0e8d880e25dd61e8d921ffcfe15bd696734589826f5a2df727/caio-0.9.25-cp314-cp314-manylinux_2_34_aarch64.whl", hash = "sha256:628a630eb7fb22381dd8e3c8ab7f59e854b9c806639811fc3f4310c6bd711d79", size = 81565, upload-time = "2026-03-04T22:08:27.483Z" }, + { url = "https://files.pythonhosted.org/packages/3f/ed/bf81aeac1d290017e5e5ac3e880fd56ee15e50a6d0353986799d1bc5cfd5/caio-0.9.25-cp314-cp314-manylinux_2_34_x86_64.whl", hash = "sha256:0ba16aa605ccb174665357fc729cf500679c2d94d5f1458a6f0d5ca48f2060a7", size = 80071, upload-time = "2026-03-04T22:08:28.751Z" }, + { url = "https://files.pythonhosted.org/packages/86/93/1f76c8d1bafe3b0614e06b2195784a3765bbf7b0a067661af9e2dd47fc33/caio-0.9.25-py3-none-any.whl", hash = "sha256:06c0bb02d6b929119b1cfbe1ca403c768b2013a369e2db46bfa2a5761cf82e40", size = 19087, upload-time = "2025-12-26T15:22:00.221Z" }, +] + +[[package]] +name = "certifi" +version = "2026.5.20" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f3/ce/ee2ecad540810a79593028e88299baeae54d346cc7a0d94b6199988b89b1/certifi-2026.5.20.tar.gz", hash = "sha256:69dea482ab64caa7b9f6aba1c6bf48bb6a5448d1c0f1b17ab42ad8c763a5344d", size = 135422, upload-time = "2026-05-20T11:46:50.073Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/59/8c/57e832b7af6d7c5abe66eb3fbe3a3a32f4d11ea23a1aa7131371035be991/certifi-2026.5.20-py3-none-any.whl", hash = "sha256:3c52e209ba0a4ad7aebe60436a4ab349c39e1e602e8c134221e546902ad25897", size = 134134, upload-time = "2026-05-20T11:46:48.578Z" }, +] + +[[package]] +name = "cffi" +version = "2.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pycparser", marker = "implementation_name != 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/eb/56/b1ba7935a17738ae8453301356628e8147c79dbb825bcbc73dc7401f9846/cffi-2.0.0.tar.gz", hash = "sha256:44d1b5909021139fe36001ae048dbdde8214afa20200eda0f64c068cac5d5529", size = 523588, upload-time = "2025-09-08T23:24:04.541Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ea/47/4f61023ea636104d4f16ab488e268b93008c3d0bb76893b1b31db1f96802/cffi-2.0.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:6d02d6655b0e54f54c4ef0b94eb6be0607b70853c45ce98bd278dc7de718be5d", size = 185271, upload-time = "2025-09-08T23:22:44.795Z" }, + { url = "https://files.pythonhosted.org/packages/df/a2/781b623f57358e360d62cdd7a8c681f074a71d445418a776eef0aadb4ab4/cffi-2.0.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8eca2a813c1cb7ad4fb74d368c2ffbbb4789d377ee5bb8df98373c2cc0dee76c", size = 181048, upload-time = "2025-09-08T23:22:45.938Z" }, + { url = "https://files.pythonhosted.org/packages/ff/df/a4f0fbd47331ceeba3d37c2e51e9dfc9722498becbeec2bd8bc856c9538a/cffi-2.0.0-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:21d1152871b019407d8ac3985f6775c079416c282e431a4da6afe7aefd2bccbe", size = 212529, upload-time = "2025-09-08T23:22:47.349Z" }, + { url = "https://files.pythonhosted.org/packages/d5/72/12b5f8d3865bf0f87cf1404d8c374e7487dcf097a1c91c436e72e6badd83/cffi-2.0.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b21e08af67b8a103c71a250401c78d5e0893beff75e28c53c98f4de42f774062", size = 220097, upload-time = "2025-09-08T23:22:48.677Z" }, + { url = "https://files.pythonhosted.org/packages/c2/95/7a135d52a50dfa7c882ab0ac17e8dc11cec9d55d2c18dda414c051c5e69e/cffi-2.0.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:1e3a615586f05fc4065a8b22b8152f0c1b00cdbc60596d187c2a74f9e3036e4e", size = 207983, upload-time = "2025-09-08T23:22:50.06Z" }, + { url = "https://files.pythonhosted.org/packages/3a/c8/15cb9ada8895957ea171c62dc78ff3e99159ee7adb13c0123c001a2546c1/cffi-2.0.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:81afed14892743bbe14dacb9e36d9e0e504cd204e0b165062c488942b9718037", size = 206519, upload-time = "2025-09-08T23:22:51.364Z" }, + { url = "https://files.pythonhosted.org/packages/78/2d/7fa73dfa841b5ac06c7b8855cfc18622132e365f5b81d02230333ff26e9e/cffi-2.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3e17ed538242334bf70832644a32a7aae3d83b57567f9fd60a26257e992b79ba", size = 219572, upload-time = "2025-09-08T23:22:52.902Z" }, + { url = "https://files.pythonhosted.org/packages/07/e0/267e57e387b4ca276b90f0434ff88b2c2241ad72b16d31836adddfd6031b/cffi-2.0.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3925dd22fa2b7699ed2617149842d2e6adde22b262fcbfada50e3d195e4b3a94", size = 222963, upload-time = "2025-09-08T23:22:54.518Z" }, + { url = "https://files.pythonhosted.org/packages/b6/75/1f2747525e06f53efbd878f4d03bac5b859cbc11c633d0fb81432d98a795/cffi-2.0.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:2c8f814d84194c9ea681642fd164267891702542f028a15fc97d4674b6206187", size = 221361, upload-time = "2025-09-08T23:22:55.867Z" }, + { url = "https://files.pythonhosted.org/packages/7b/2b/2b6435f76bfeb6bbf055596976da087377ede68df465419d192acf00c437/cffi-2.0.0-cp312-cp312-win32.whl", hash = "sha256:da902562c3e9c550df360bfa53c035b2f241fed6d9aef119048073680ace4a18", size = 172932, upload-time = "2025-09-08T23:22:57.188Z" }, + { url = "https://files.pythonhosted.org/packages/f8/ed/13bd4418627013bec4ed6e54283b1959cf6db888048c7cf4b4c3b5b36002/cffi-2.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:da68248800ad6320861f129cd9c1bf96ca849a2771a59e0344e88681905916f5", size = 183557, upload-time = "2025-09-08T23:22:58.351Z" }, + { url = "https://files.pythonhosted.org/packages/95/31/9f7f93ad2f8eff1dbc1c3656d7ca5bfd8fb52c9d786b4dcf19b2d02217fa/cffi-2.0.0-cp312-cp312-win_arm64.whl", hash = "sha256:4671d9dd5ec934cb9a73e7ee9676f9362aba54f7f34910956b84d727b0d73fb6", size = 177762, upload-time = "2025-09-08T23:22:59.668Z" }, + { url = "https://files.pythonhosted.org/packages/4b/8d/a0a47a0c9e413a658623d014e91e74a50cdd2c423f7ccfd44086ef767f90/cffi-2.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:00bdf7acc5f795150faa6957054fbbca2439db2f775ce831222b66f192f03beb", size = 185230, upload-time = "2025-09-08T23:23:00.879Z" }, + { url = "https://files.pythonhosted.org/packages/4a/d2/a6c0296814556c68ee32009d9c2ad4f85f2707cdecfd7727951ec228005d/cffi-2.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:45d5e886156860dc35862657e1494b9bae8dfa63bf56796f2fb56e1679fc0bca", size = 181043, upload-time = "2025-09-08T23:23:02.231Z" }, + { url = "https://files.pythonhosted.org/packages/b0/1e/d22cc63332bd59b06481ceaac49d6c507598642e2230f201649058a7e704/cffi-2.0.0-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:07b271772c100085dd28b74fa0cd81c8fb1a3ba18b21e03d7c27f3436a10606b", size = 212446, upload-time = "2025-09-08T23:23:03.472Z" }, + { url = "https://files.pythonhosted.org/packages/a9/f5/a2c23eb03b61a0b8747f211eb716446c826ad66818ddc7810cc2cc19b3f2/cffi-2.0.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d48a880098c96020b02d5a1f7d9251308510ce8858940e6fa99ece33f610838b", size = 220101, upload-time = "2025-09-08T23:23:04.792Z" }, + { url = "https://files.pythonhosted.org/packages/f2/7f/e6647792fc5850d634695bc0e6ab4111ae88e89981d35ac269956605feba/cffi-2.0.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:f93fd8e5c8c0a4aa1f424d6173f14a892044054871c771f8566e4008eaa359d2", size = 207948, upload-time = "2025-09-08T23:23:06.127Z" }, + { url = "https://files.pythonhosted.org/packages/cb/1e/a5a1bd6f1fb30f22573f76533de12a00bf274abcdc55c8edab639078abb6/cffi-2.0.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:dd4f05f54a52fb558f1ba9f528228066954fee3ebe629fc1660d874d040ae5a3", size = 206422, upload-time = "2025-09-08T23:23:07.753Z" }, + { url = "https://files.pythonhosted.org/packages/98/df/0a1755e750013a2081e863e7cd37e0cdd02664372c754e5560099eb7aa44/cffi-2.0.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c8d3b5532fc71b7a77c09192b4a5a200ea992702734a2e9279a37f2478236f26", size = 219499, upload-time = "2025-09-08T23:23:09.648Z" }, + { url = "https://files.pythonhosted.org/packages/50/e1/a969e687fcf9ea58e6e2a928ad5e2dd88cc12f6f0ab477e9971f2309b57c/cffi-2.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d9b29c1f0ae438d5ee9acb31cadee00a58c46cc9c0b2f9038c6b0b3470877a8c", size = 222928, upload-time = "2025-09-08T23:23:10.928Z" }, + { url = "https://files.pythonhosted.org/packages/36/54/0362578dd2c9e557a28ac77698ed67323ed5b9775ca9d3fe73fe191bb5d8/cffi-2.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6d50360be4546678fc1b79ffe7a66265e28667840010348dd69a314145807a1b", size = 221302, upload-time = "2025-09-08T23:23:12.42Z" }, + { url = "https://files.pythonhosted.org/packages/eb/6d/bf9bda840d5f1dfdbf0feca87fbdb64a918a69bca42cfa0ba7b137c48cb8/cffi-2.0.0-cp313-cp313-win32.whl", hash = "sha256:74a03b9698e198d47562765773b4a8309919089150a0bb17d829ad7b44b60d27", size = 172909, upload-time = "2025-09-08T23:23:14.32Z" }, + { url = "https://files.pythonhosted.org/packages/37/18/6519e1ee6f5a1e579e04b9ddb6f1676c17368a7aba48299c3759bbc3c8b3/cffi-2.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:19f705ada2530c1167abacb171925dd886168931e0a7b78f5bffcae5c6b5be75", size = 183402, upload-time = "2025-09-08T23:23:15.535Z" }, + { url = "https://files.pythonhosted.org/packages/cb/0e/02ceeec9a7d6ee63bb596121c2c8e9b3a9e150936f4fbef6ca1943e6137c/cffi-2.0.0-cp313-cp313-win_arm64.whl", hash = "sha256:256f80b80ca3853f90c21b23ee78cd008713787b1b1e93eae9f3d6a7134abd91", size = 177780, upload-time = "2025-09-08T23:23:16.761Z" }, + { url = "https://files.pythonhosted.org/packages/92/c4/3ce07396253a83250ee98564f8d7e9789fab8e58858f35d07a9a2c78de9f/cffi-2.0.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:fc33c5141b55ed366cfaad382df24fe7dcbc686de5be719b207bb248e3053dc5", size = 185320, upload-time = "2025-09-08T23:23:18.087Z" }, + { url = "https://files.pythonhosted.org/packages/59/dd/27e9fa567a23931c838c6b02d0764611c62290062a6d4e8ff7863daf9730/cffi-2.0.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c654de545946e0db659b3400168c9ad31b5d29593291482c43e3564effbcee13", size = 181487, upload-time = "2025-09-08T23:23:19.622Z" }, + { url = "https://files.pythonhosted.org/packages/d6/43/0e822876f87ea8a4ef95442c3d766a06a51fc5298823f884ef87aaad168c/cffi-2.0.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:24b6f81f1983e6df8db3adc38562c83f7d4a0c36162885ec7f7b77c7dcbec97b", size = 220049, upload-time = "2025-09-08T23:23:20.853Z" }, + { url = "https://files.pythonhosted.org/packages/b4/89/76799151d9c2d2d1ead63c2429da9ea9d7aac304603de0c6e8764e6e8e70/cffi-2.0.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:12873ca6cb9b0f0d3a0da705d6086fe911591737a59f28b7936bdfed27c0d47c", size = 207793, upload-time = "2025-09-08T23:23:22.08Z" }, + { url = "https://files.pythonhosted.org/packages/bb/dd/3465b14bb9e24ee24cb88c9e3730f6de63111fffe513492bf8c808a3547e/cffi-2.0.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:d9b97165e8aed9272a6bb17c01e3cc5871a594a446ebedc996e2397a1c1ea8ef", size = 206300, upload-time = "2025-09-08T23:23:23.314Z" }, + { url = "https://files.pythonhosted.org/packages/47/d9/d83e293854571c877a92da46fdec39158f8d7e68da75bf73581225d28e90/cffi-2.0.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:afb8db5439b81cf9c9d0c80404b60c3cc9c3add93e114dcae767f1477cb53775", size = 219244, upload-time = "2025-09-08T23:23:24.541Z" }, + { url = "https://files.pythonhosted.org/packages/2b/0f/1f177e3683aead2bb00f7679a16451d302c436b5cbf2505f0ea8146ef59e/cffi-2.0.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:737fe7d37e1a1bffe70bd5754ea763a62a066dc5913ca57e957824b72a85e205", size = 222828, upload-time = "2025-09-08T23:23:26.143Z" }, + { url = "https://files.pythonhosted.org/packages/c6/0f/cafacebd4b040e3119dcb32fed8bdef8dfe94da653155f9d0b9dc660166e/cffi-2.0.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:38100abb9d1b1435bc4cc340bb4489635dc2f0da7456590877030c9b3d40b0c1", size = 220926, upload-time = "2025-09-08T23:23:27.873Z" }, + { url = "https://files.pythonhosted.org/packages/3e/aa/df335faa45b395396fcbc03de2dfcab242cd61a9900e914fe682a59170b1/cffi-2.0.0-cp314-cp314-win32.whl", hash = "sha256:087067fa8953339c723661eda6b54bc98c5625757ea62e95eb4898ad5e776e9f", size = 175328, upload-time = "2025-09-08T23:23:44.61Z" }, + { url = "https://files.pythonhosted.org/packages/bb/92/882c2d30831744296ce713f0feb4c1cd30f346ef747b530b5318715cc367/cffi-2.0.0-cp314-cp314-win_amd64.whl", hash = "sha256:203a48d1fb583fc7d78a4c6655692963b860a417c0528492a6bc21f1aaefab25", size = 185650, upload-time = "2025-09-08T23:23:45.848Z" }, + { url = "https://files.pythonhosted.org/packages/9f/2c/98ece204b9d35a7366b5b2c6539c350313ca13932143e79dc133ba757104/cffi-2.0.0-cp314-cp314-win_arm64.whl", hash = "sha256:dbd5c7a25a7cb98f5ca55d258b103a2054f859a46ae11aaf23134f9cc0d356ad", size = 180687, upload-time = "2025-09-08T23:23:47.105Z" }, + { url = "https://files.pythonhosted.org/packages/3e/61/c768e4d548bfa607abcda77423448df8c471f25dbe64fb2ef6d555eae006/cffi-2.0.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:9a67fc9e8eb39039280526379fb3a70023d77caec1852002b4da7e8b270c4dd9", size = 188773, upload-time = "2025-09-08T23:23:29.347Z" }, + { url = "https://files.pythonhosted.org/packages/2c/ea/5f76bce7cf6fcd0ab1a1058b5af899bfbef198bea4d5686da88471ea0336/cffi-2.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7a66c7204d8869299919db4d5069a82f1561581af12b11b3c9f48c584eb8743d", size = 185013, upload-time = "2025-09-08T23:23:30.63Z" }, + { url = "https://files.pythonhosted.org/packages/be/b4/c56878d0d1755cf9caa54ba71e5d049479c52f9e4afc230f06822162ab2f/cffi-2.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7cc09976e8b56f8cebd752f7113ad07752461f48a58cbba644139015ac24954c", size = 221593, upload-time = "2025-09-08T23:23:31.91Z" }, + { url = "https://files.pythonhosted.org/packages/e0/0d/eb704606dfe8033e7128df5e90fee946bbcb64a04fcdaa97321309004000/cffi-2.0.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:92b68146a71df78564e4ef48af17551a5ddd142e5190cdf2c5624d0c3ff5b2e8", size = 209354, upload-time = "2025-09-08T23:23:33.214Z" }, + { url = "https://files.pythonhosted.org/packages/d8/19/3c435d727b368ca475fb8742ab97c9cb13a0de600ce86f62eab7fa3eea60/cffi-2.0.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b1e74d11748e7e98e2f426ab176d4ed720a64412b6a15054378afdb71e0f37dc", size = 208480, upload-time = "2025-09-08T23:23:34.495Z" }, + { url = "https://files.pythonhosted.org/packages/d0/44/681604464ed9541673e486521497406fadcc15b5217c3e326b061696899a/cffi-2.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:28a3a209b96630bca57cce802da70c266eb08c6e97e5afd61a75611ee6c64592", size = 221584, upload-time = "2025-09-08T23:23:36.096Z" }, + { url = "https://files.pythonhosted.org/packages/25/8e/342a504ff018a2825d395d44d63a767dd8ebc927ebda557fecdaca3ac33a/cffi-2.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:7553fb2090d71822f02c629afe6042c299edf91ba1bf94951165613553984512", size = 224443, upload-time = "2025-09-08T23:23:37.328Z" }, + { url = "https://files.pythonhosted.org/packages/e1/5e/b666bacbbc60fbf415ba9988324a132c9a7a0448a9a8f125074671c0f2c3/cffi-2.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6c6c373cfc5c83a975506110d17457138c8c63016b563cc9ed6e056a82f13ce4", size = 223437, upload-time = "2025-09-08T23:23:38.945Z" }, + { url = "https://files.pythonhosted.org/packages/a0/1d/ec1a60bd1a10daa292d3cd6bb0b359a81607154fb8165f3ec95fe003b85c/cffi-2.0.0-cp314-cp314t-win32.whl", hash = "sha256:1fc9ea04857caf665289b7a75923f2c6ed559b8298a1b8c49e59f7dd95c8481e", size = 180487, upload-time = "2025-09-08T23:23:40.423Z" }, + { url = "https://files.pythonhosted.org/packages/bf/41/4c1168c74fac325c0c8156f04b6749c8b6a8f405bbf91413ba088359f60d/cffi-2.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:d68b6cef7827e8641e8ef16f4494edda8b36104d79773a334beaa1e3521430f6", size = 191726, upload-time = "2025-09-08T23:23:41.742Z" }, + { url = "https://files.pythonhosted.org/packages/ae/3a/dbeec9d1ee0844c679f6bb5d6ad4e9f198b1224f4e7a32825f47f6192b0c/cffi-2.0.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0a1527a803f0a659de1af2e1fd700213caba79377e27e4693648c2923da066f9", size = 184195, upload-time = "2025-09-08T23:23:43.004Z" }, +] + +[[package]] +name = "click" +version = "8.4.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9b/98/518d8e5081007684232226f475082b30087d0f585e8457db087298259f49/click-8.4.1.tar.gz", hash = "sha256:918b5633eddf6b41c32d4f454bf0de810065c74e3f7dbf8ee5452f8be88d3e96", size = 353007, upload-time = "2026-05-22T04:08:37.769Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c7/0d/67e5b4109ea4a837e80daa87c2c696711955e40449a97e8926672534def2/click-8.4.1-py3-none-any.whl", hash = "sha256:482be17c6991b8c19c5429a1e995d9b0efdbb63172824c41f99965dc0ade8ec2", size = 116639, upload-time = "2026-05-22T04:08:35.26Z" }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "cryptography" +version = "48.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cffi", marker = "platform_python_implementation != 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9f/a9/db8f313fdcd85d767d4973515e1db101f9c71f95fced83233de224673757/cryptography-48.0.0.tar.gz", hash = "sha256:5c3932f4436d1cccb036cb0eaef46e6e2db91035166f1ad6505c3c9d5a635920", size = 832984, upload-time = "2026-05-04T22:59:38.133Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/df/3d/01f6dd9190170a5a241e0e98c2d04be3664a9e6f5b9b872cde63aff1c3dd/cryptography-48.0.0-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:0c558d2cdffd8f4bbb30fc7134c74d2ca9a476f830bb053074498fbc86f41ed6", size = 8001587, upload-time = "2026-05-04T22:57:36.803Z" }, + { url = "https://files.pythonhosted.org/packages/b2/6e/e90527eef33f309beb811cf7c982c3aeffcce8e3edb178baa4ca3ae4a6fa/cryptography-48.0.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f5333311663ea94f75dd408665686aaf426563556bb5283554a3539177e03b8c", size = 4690433, upload-time = "2026-05-04T22:57:40.373Z" }, + { url = "https://files.pythonhosted.org/packages/90/04/673510ed51ddff56575f306cf1617d80411ee76831ccd3097599140efdfe/cryptography-48.0.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7995ef305d7165c3f11ae07f2517e5a4f1d5c18da1376a0a9ed496336b69e5f3", size = 4710620, upload-time = "2026-05-04T22:57:42.935Z" }, + { url = "https://files.pythonhosted.org/packages/14/d5/e9c4ef932c8d800490c34d8bd589d64a31d5890e27ec9e9ad532be893294/cryptography-48.0.0-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:40ba1f85eaa6959837b1d51c9767e230e14612eea4ef110ee8854ada22da1bf5", size = 4696283, upload-time = "2026-05-04T22:57:45.294Z" }, + { url = "https://files.pythonhosted.org/packages/0c/29/174b9dfb60b12d59ecfc6cfa04bc88c21b42a54f01b8aae09bb6e51e4c7f/cryptography-48.0.0-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:369a6348999f94bbd53435c894377b20ab95f25a9065c283570e70150d8abc3c", size = 5296573, upload-time = "2026-05-04T22:57:47.933Z" }, + { url = "https://files.pythonhosted.org/packages/95/38/0d29a6fd7d0d1373f0c0c88a04ba20e359b257753ac497564cd660fc1d55/cryptography-48.0.0-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a0e692c683f4df67815a2d258b324e66f4738bd7a96a218c826dce4f4bd05d8f", size = 4743677, upload-time = "2026-05-04T22:57:50.067Z" }, + { url = "https://files.pythonhosted.org/packages/30/be/eef653013d5c63b6a490529e0316f9ac14a37602965d4903efed1399f32b/cryptography-48.0.0-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:18349bbc56f4743c8b12dc32e2bccb2cf83ee8b69a3bba74ef8ae857e26b3d25", size = 4330808, upload-time = "2026-05-04T22:57:52.301Z" }, + { url = "https://files.pythonhosted.org/packages/84/9e/500463e87abb7a0a0f9f256ec21123ecde0a7b5541a15e840ea54551fd81/cryptography-48.0.0-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:7e8eac43dfca5c4cccc6dad9a80504436fca53bb9bc3100a2386d730fbe6b602", size = 4695941, upload-time = "2026-05-04T22:57:54.603Z" }, + { url = "https://files.pythonhosted.org/packages/e3/dc/7303087450c2ec9e7fbb750e17c2abfbc658f23cbd0e54009509b7cc4091/cryptography-48.0.0-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:9ccdac7d40688ecb5a3b4a604b8a88c8002e3442d6c60aead1db2a89a041560c", size = 5252579, upload-time = "2026-05-04T22:57:57.207Z" }, + { url = "https://files.pythonhosted.org/packages/d0/c0/7101d3b7215edcdc90c45da544961fd8ed2d6448f77577460fa75a8443f7/cryptography-48.0.0-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:bd72e68b06bb1e96913f97dd4901119bc17f39d4586a5adf2d3e47bc2b9d58b5", size = 4743326, upload-time = "2026-05-04T22:57:59.535Z" }, + { url = "https://files.pythonhosted.org/packages/ac/d8/5b833bad13016f562ab9d063d68199a4bd121d18458e439515601d3357ec/cryptography-48.0.0-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:59baa2cb386c4f0b9905bd6eb4c2a79a69a128408fd31d32ca4d7102d4156321", size = 4826672, upload-time = "2026-05-04T22:58:01.996Z" }, + { url = "https://files.pythonhosted.org/packages/98/e1/7074eb8bf3c135558c73fc2bcf0f5633f912e6fb87e868a55c454080ef09/cryptography-48.0.0-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9249e3cd978541d665967ac2cb2787fd6a62bddf1e75b3e347a594d7dacf4f74", size = 4972574, upload-time = "2026-05-04T22:58:03.968Z" }, + { url = "https://files.pythonhosted.org/packages/04/70/e5a1b41d325f797f39427aa44ef8baf0be500065ab6d8e10369d850d4a4f/cryptography-48.0.0-cp311-abi3-win32.whl", hash = "sha256:9c459db21422be75e2809370b829a87eb37f74cd785fc4aa9ea1e5f43b47cda4", size = 3294868, upload-time = "2026-05-04T22:58:06.467Z" }, + { url = "https://files.pythonhosted.org/packages/f4/ac/8ac51b4a5fc5932eb7ee5c517ba7dc8cd834f0048962b6b352f00f41ebf9/cryptography-48.0.0-cp311-abi3-win_amd64.whl", hash = "sha256:5b012212e08b8dd5edc78ef54da83dd9892fd9105323b3993eff6bea65dc21d7", size = 3817107, upload-time = "2026-05-04T22:58:08.845Z" }, + { url = "https://files.pythonhosted.org/packages/6b/84/70e3feea9feea87fd7cbe77efb2712ae1e3e6edf10749dc6e95f4e60e455/cryptography-48.0.0-cp314-cp314t-macosx_10_9_universal2.whl", hash = "sha256:3cb07a3ed6431663cd321ea8a000a1314c74211f823e4177fefa2255e057d1ec", size = 7986556, upload-time = "2026-05-04T22:58:11.172Z" }, + { url = "https://files.pythonhosted.org/packages/89/6e/18e07a618bb5442ba10cf4df16e99c071365528aa570dfcb8c02e25a303b/cryptography-48.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8c7378637d7d88016fa6791c159f698b3d3eed28ebf844ac36b9dc04a14dae18", size = 4684776, upload-time = "2026-05-04T22:58:13.712Z" }, + { url = "https://files.pythonhosted.org/packages/be/6a/4ea3b4c6c6759794d5ee2103c304a5076dc4b19ae1f9fe47dba439e159e9/cryptography-48.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:cc90c0b39b2e3c65ef52c804b72e3c58f8a04ab2a1871272798e5f9572c17d20", size = 4698121, upload-time = "2026-05-04T22:58:16.448Z" }, + { url = "https://files.pythonhosted.org/packages/2f/59/6ff6ad6cae03bb887da2a5860b2c9805f8dac969ef01ce563336c49bd1d1/cryptography-48.0.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:76341972e1eff8b4bea859f09c0d3e64b96ce931b084f9b9b7db8ef364c30eff", size = 4690042, upload-time = "2026-05-04T22:58:18.544Z" }, + { url = "https://files.pythonhosted.org/packages/ca/b4/fc334ed8cfd705aca282fe4d8f5ae64a8e0f74932e9feecb344610cf6e4d/cryptography-48.0.0-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:55b7718303bf06a5753dcdccf2f3945cf18ad7bffde41b61226e4db31ab89a9c", size = 5282526, upload-time = "2026-05-04T22:58:20.75Z" }, + { url = "https://files.pythonhosted.org/packages/11/08/9f8c5386cc4cd90d8255c7cdd0f5baf459a08502a09de30dc51f553d38dc/cryptography-48.0.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:a64697c641c7b1b2178e573cbc31c7c6684cd56883a478d75143dbb7118036db", size = 4733116, upload-time = "2026-05-04T22:58:23.627Z" }, + { url = "https://files.pythonhosted.org/packages/b8/77/99307d7574045699f8805aa500fa0fb83422d115b5400a064ddd306d7750/cryptography-48.0.0-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:561215ea3879cb1cbbf272867e2efda62476f240fb58c64de6b393ae19246741", size = 4316030, upload-time = "2026-05-04T22:58:25.581Z" }, + { url = "https://files.pythonhosted.org/packages/fd/36/a608b98337af3cb2aff4818e406649d30572b7031918b04c87d979495348/cryptography-48.0.0-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:ad64688338ed4bc1a6618076ba75fd7194a5f1797ac60b47afe926285adb3166", size = 4689640, upload-time = "2026-05-04T22:58:27.747Z" }, + { url = "https://files.pythonhosted.org/packages/dd/a6/825010a291b4438aecc1f568bc428189fc1175515223632477c07dc0a6df/cryptography-48.0.0-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:906cbf0670286c6e0044156bc7d4af9cbb0ef6db9f73e52c3ec56ba6bdde5336", size = 5237657, upload-time = "2026-05-04T22:58:29.848Z" }, + { url = "https://files.pythonhosted.org/packages/b9/09/4e76a09b4caa29aad535ddc806f5d4c5d01885bd978bd984fbc6ca032cae/cryptography-48.0.0-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:ea8990436d914540a40ab24b6a77c0969695ed52f4a4874c5137ccf7045a7057", size = 4732362, upload-time = "2026-05-04T22:58:32.009Z" }, + { url = "https://files.pythonhosted.org/packages/18/78/444fa04a77d0cb95f417dda20d450e13c56ba8e5220fc892a1658f44f882/cryptography-48.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c18684a7f0cc9a3cb60328f496b8e3372def7c5d2df39ac267878b05565aaaae", size = 4819580, upload-time = "2026-05-04T22:58:34.254Z" }, + { url = "https://files.pythonhosted.org/packages/38/85/ea67067c70a1fd4be2c63d35eeed82658023021affccc7b17705f8527dd2/cryptography-48.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:9be5aafa5736574f8f15f262adc81b2a9869e2cfe9014d52a44633905b40d52c", size = 4963283, upload-time = "2026-05-04T22:58:36.376Z" }, + { url = "https://files.pythonhosted.org/packages/75/54/cc6d0f3deac3e81c7f847e8a189a12b6cdd65059b43dad25d4316abd849a/cryptography-48.0.0-cp314-cp314t-win32.whl", hash = "sha256:c17dfe85494deaeddc5ce251aebd1d60bbe6afc8b62071bb0b469431a000124f", size = 3270954, upload-time = "2026-05-04T22:58:38.791Z" }, + { url = "https://files.pythonhosted.org/packages/49/67/cc947e288c0758a4e5473d1dcb743037ab7785541265a969240b8885441a/cryptography-48.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:27241b1dc9962e056062a8eef1991d02c3a24569c95975bd2322a8a52c6e5e12", size = 3797313, upload-time = "2026-05-04T22:58:40.746Z" }, + { url = "https://files.pythonhosted.org/packages/f2/63/61d4a4e1c6b6bab6ce1e213cd36a24c415d90e76d78c5eb8577c5541d2e8/cryptography-48.0.0-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:58d00498e8933e4a194f3076aee1b4a97dfec1a6da444535755822fe5d8b0b86", size = 7983482, upload-time = "2026-05-04T22:58:43.769Z" }, + { url = "https://files.pythonhosted.org/packages/d5/ac/f5b5995b87770c693e2596559ffafe195b4033a57f14a82268a2842953f3/cryptography-48.0.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:614d0949f4790582d2cc25553abd09dd723025f0c0e7c67376a1d77196743d6e", size = 4683266, upload-time = "2026-05-04T22:58:46.064Z" }, + { url = "https://files.pythonhosted.org/packages/ec/c6/8b14f67e18338fbc4adb76f66c001f5c3610b3e2d1837f268f47a347dbbb/cryptography-48.0.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7ce4bfae76319a532a2dc68f82cc32f5676ee792a983187dac07183690e5c66f", size = 4696228, upload-time = "2026-05-04T22:58:48.22Z" }, + { url = "https://files.pythonhosted.org/packages/ea/73/f808fbae9514bd91b47875b003f13e284c8c6bdfd904b7944e803937eec1/cryptography-48.0.0-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:2eb992bbd4661238c5a397594c83f5b4dc2bc5b848c365c8f991b6780efcc5c7", size = 4689097, upload-time = "2026-05-04T22:58:50.9Z" }, + { url = "https://files.pythonhosted.org/packages/93/01/d86632d7d28db8ae83221995752eeb6639ffb374c2d22955648cf8d52797/cryptography-48.0.0-cp39-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:22a5cb272895dce158b2cacdfdc3debd299019659f42947dbdac6f32d68fe832", size = 5283582, upload-time = "2026-05-04T22:58:53.017Z" }, + { url = "https://files.pythonhosted.org/packages/02/e1/50edc7a50334807cc4791fc4a0ce7468b4a1416d9138eab358bfc9a3d70b/cryptography-48.0.0-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:2b4d59804e8408e2fea7d1fbaf218e5ec984325221db76e6a241a9abd6cdd95c", size = 4730479, upload-time = "2026-05-04T22:58:55.611Z" }, + { url = "https://files.pythonhosted.org/packages/6f/af/99a582b1b1641ff5911ac559beb45097cf79efd4ead4657f578ef1af2d47/cryptography-48.0.0-cp39-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:984a20b0f62a26f48a3396c72e4bc34c66e356d356bf370053066b3b6d54634a", size = 4326481, upload-time = "2026-05-04T22:58:57.607Z" }, + { url = "https://files.pythonhosted.org/packages/90/ee/89aa26a06ef0a7d7611788ffd571a7c50e368cc6a4d5eef8b4884e866edb/cryptography-48.0.0-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:5a5ed8fde7a1d09376ca0b40e68cd59c69fe23b1f9768bd5824f54681626032a", size = 4688713, upload-time = "2026-05-04T22:59:00.077Z" }, + { url = "https://files.pythonhosted.org/packages/70/ba/bcb1b0bb7a33d4c7c0c4d4c7874b4a62ae4f56113a5f4baefa362dfb1f0f/cryptography-48.0.0-cp39-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:8cd666227ef7af430aa5914a9910e0ddd703e75f039cef0825cd0da71b6b711a", size = 5238165, upload-time = "2026-05-04T22:59:02.317Z" }, + { url = "https://files.pythonhosted.org/packages/c9/70/ca4003b1ce5ca3dc3186ada51908c8a9b9ff7d5cab83cc0d43ee14ec144f/cryptography-48.0.0-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:9071196d81abc88b3516ac8cdfad32e2b66dd4a5393a8e68a961e9161ddc6239", size = 4729947, upload-time = "2026-05-04T22:59:05.255Z" }, + { url = "https://files.pythonhosted.org/packages/44/a0/4ec7cf774207905aef1a8d11c3750d5a1db805eb380ee4e16df317870128/cryptography-48.0.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1e2d54c8be6152856a36f0882ab231e70f8ec7f14e93cf87db8a2ed056bf160c", size = 4822059, upload-time = "2026-05-04T22:59:07.802Z" }, + { url = "https://files.pythonhosted.org/packages/1e/75/a2e55f99c16fcac7b5d6c1eb19ad8e00799854d6be5ca845f9259eae1681/cryptography-48.0.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:a5da777e32ffed6f85a7b2b3f7c5cbc88c146bfcd0a1d7baf5fcc6c52ee35dd4", size = 4960575, upload-time = "2026-05-04T22:59:09.851Z" }, + { url = "https://files.pythonhosted.org/packages/b8/23/6e6f32143ab5d8b36ca848a502c4bcd477ae75b9e1677e3530d669062578/cryptography-48.0.0-cp39-abi3-win32.whl", hash = "sha256:77a2ccbbe917f6710e05ba9adaa25fb5075620bf3ea6fb751997875aff4ae4bd", size = 3279117, upload-time = "2026-05-04T22:59:12.019Z" }, + { url = "https://files.pythonhosted.org/packages/9d/9a/0fea98a70cf1749d41d738836f6349d97945f7c89433a259a6c2642eefeb/cryptography-48.0.0-cp39-abi3-win_amd64.whl", hash = "sha256:16cd65b9330583e4619939b3a3843eec1e6e789744bb01e7c7e2e62e33c239c8", size = 3792100, upload-time = "2026-05-04T22:59:14.884Z" }, +] + +[[package]] +name = "cyclopts" +version = "4.16.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "docstring-parser" }, + { name = "rich" }, + { name = "rich-rst" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/34/07/bf61d13de86d96a4c46aff00c9ca0eced44bcc8c3e16280605c1253e5720/cyclopts-4.16.1.tar.gz", hash = "sha256:8aa47bf92a5fb33abca5af05e576eecdb0d2f79893ad29238046df78370fc4a8", size = 181196, upload-time = "2026-05-25T15:29:08.518Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/00/8d/7f362c2fb8ef4decd2160bc24d4292c6ca658cc6d9a161b89ca5122bbdbf/cyclopts-4.16.1-py3-none-any.whl", hash = "sha256:617795392c4113a2c2cc7af716f20244900e87f23daa05442d1268d81472a592", size = 219020, upload-time = "2026-05-25T15:29:09.646Z" }, +] + +[[package]] +name = "dnspython" +version = "2.8.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/8c/8b/57666417c0f90f08bcafa776861060426765fdb422eb10212086fb811d26/dnspython-2.8.0.tar.gz", hash = "sha256:181d3c6996452cb1189c4046c61599b84a5a86e099562ffde77d26984ff26d0f", size = 368251, upload-time = "2025-09-07T18:58:00.022Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ba/5a/18ad964b0086c6e62e2e7500f7edc89e3faa45033c71c1893d34eed2b2de/dnspython-2.8.0-py3-none-any.whl", hash = "sha256:01d9bbc4a2d76bf0db7c1f729812ded6d912bd318d3b1cf81d30c0f845dbf3af", size = 331094, upload-time = "2025-09-07T18:57:58.071Z" }, +] + +[[package]] +name = "docstring-parser" +version = "0.18.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e0/4d/f332313098c1de1b2d2ff91cf2674415cc7cddab2ca1b01ae29774bd5fdf/docstring_parser-0.18.0.tar.gz", hash = "sha256:292510982205c12b1248696f44959db3cdd1740237a968ea1e2e7a900eeb2015", size = 29341, upload-time = "2026-04-14T04:09:19.867Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a7/5f/ed01f9a3cdffbd5a008556fc7b2a08ddb1cc6ace7effa7340604b1d16699/docstring_parser-0.18.0-py3-none-any.whl", hash = "sha256:b3fcbed555c47d8479be0796ef7e19c2670d428d72e96da63f3a40122860374b", size = 22484, upload-time = "2026-04-14T04:09:18.638Z" }, +] + +[[package]] +name = "email-validator" +version = "2.3.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "dnspython" }, + { name = "idna" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f5/22/900cb125c76b7aaa450ce02fd727f452243f2e91a61af068b40adba60ea9/email_validator-2.3.0.tar.gz", hash = "sha256:9fc05c37f2f6cf439ff414f8fc46d917929974a82244c20eb10231ba60c54426", size = 51238, upload-time = "2025-08-26T13:09:06.831Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/de/15/545e2b6cf2e3be84bc1ed85613edd75b8aea69807a71c26f4ca6a9258e82/email_validator-2.3.0-py3-none-any.whl", hash = "sha256:80f13f623413e6b197ae73bb10bf4eb0908faf509ad8362c5edeb0be7fd450b4", size = 35604, upload-time = "2025-08-26T13:09:05.858Z" }, +] + +[[package]] +name = "exceptiongroup" +version = "1.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/50/79/66800aadf48771f6b62f7eb014e352e5d06856655206165d775e675a02c9/exceptiongroup-1.3.1.tar.gz", hash = "sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219", size = 30371, upload-time = "2025-11-21T23:01:54.787Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8a/0e/97c33bf5009bdbac74fd2beace167cab3f978feb69cc36f1ef79360d6c4e/exceptiongroup-1.3.1-py3-none-any.whl", hash = "sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598", size = 16740, upload-time = "2025-11-21T23:01:53.443Z" }, +] + +[[package]] +name = "fastmcp" +version = "3.4.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "fastmcp-slim", extra = ["client", "server"] }, +] +sdist = { url = "https://files.pythonhosted.org/packages/29/18/46beaec18c9f86a599ae3f9cdf6677dd6b50240cfd844d18233710b47f13/fastmcp-3.4.2.tar.gz", hash = "sha256:b468722946fc467c3796a6572f7a14d93d48c014cf8fea12910245220cbbe4e1", size = 28756849, upload-time = "2026-06-06T01:30:35.694Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/4d/8b1ba42251160e11ca34686344572121432c23a082d56ef6bbdec5888fc1/fastmcp-3.4.2-py3-none-any.whl", hash = "sha256:c87a62b029f0c5400ada85f683629345d2466c39169f0cb853e487b2f7308c08", size = 8018, upload-time = "2026-06-06T01:30:38.118Z" }, +] + +[[package]] +name = "fastmcp-slim" +version = "3.4.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "platformdirs" }, + { name = "pydantic", extra = ["email"] }, + { name = "pydantic-settings" }, + { name = "python-dotenv" }, + { name = "rich" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a3/2e/d627b28b7403ecc526991ef732921b08bde010006e6148635f053fd29f4c/fastmcp_slim-3.4.2.tar.gz", hash = "sha256:290646e0955a516235a317151034559aa48336cb843d3f006131aedad8759bb4", size = 576291, upload-time = "2026-06-06T01:30:12.553Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f7/58/22afebf18df7260b09148199cbeb90cdcc4b3a4e1b5d7460e3591c3a7add/fastmcp_slim-3.4.2-py3-none-any.whl", hash = "sha256:bdc72492212681ca502755fa8acc0457f559295da1fc3dfc0599adc1c04b82f3", size = 749195, upload-time = "2026-06-06T01:30:11.22Z" }, +] + +[package.optional-dependencies] +client = [ + { name = "authlib" }, + { name = "exceptiongroup" }, + { name = "httpx" }, + { name = "mcp" }, + { name = "opentelemetry-api" }, + { name = "py-key-value-aio", extra = ["filetree", "keyring", "memory"] }, + { name = "starlette" }, +] +server = [ + { name = "authlib" }, + { name = "cyclopts" }, + { name = "exceptiongroup" }, + { name = "griffelib" }, + { name = "httpx" }, + { name = "joserfc" }, + { name = "jsonref" }, + { name = "jsonschema-path" }, + { name = "mcp" }, + { name = "openapi-pydantic" }, + { name = "opentelemetry-api" }, + { name = "packaging" }, + { name = "py-key-value-aio", extra = ["filetree", "keyring", "memory"] }, + { name = "pyperclip" }, + { name = "python-multipart" }, + { name = "pyyaml" }, + { name = "starlette" }, + { name = "uncalled-for" }, + { name = "uvicorn" }, + { name = "watchfiles" }, + { name = "websockets" }, +] + +[[package]] +name = "griffelib" +version = "2.0.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/9d/82/74f4a3310cdabfbb10da554c3a672847f1ed33c6f61dd472681ce7f1fe67/griffelib-2.0.2.tar.gz", hash = "sha256:3cf20b3bc470e83763ffbf236e0076b1211bac1bc67de13daf494640f2de707e", size = 166461, upload-time = "2026-03-27T11:34:51.091Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/11/8c/c9138d881c79aa0ea9ed83cbd58d5ca75624378b38cee225dcf5c42cc91f/griffelib-2.0.2-py3-none-any.whl", hash = "sha256:925c857658fb1ba40c0772c37acbc2ab650bd794d9c1b9726922e36ea4117ea1", size = 142357, upload-time = "2026-03-27T11:34:46.275Z" }, +] + +[[package]] +name = "h11" +version = "0.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" }, +] + +[[package]] +name = "httpcore" +version = "1.0.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "h11" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" }, +] + +[[package]] +name = "httpx" +version = "0.28.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "certifi" }, + { name = "httpcore" }, + { name = "idna" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" }, +] + +[[package]] +name = "httpx-sse" +version = "0.4.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0f/4c/751061ffa58615a32c31b2d82e8482be8dd4a89154f003147acee90f2be9/httpx_sse-0.4.3.tar.gz", hash = "sha256:9b1ed0127459a66014aec3c56bebd93da3c1bc8bb6618c8082039a44889a755d", size = 15943, upload-time = "2025-10-10T21:48:22.271Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d2/fd/6668e5aec43ab844de6fc74927e155a3b37bf40d7c3790e49fc0406b6578/httpx_sse-0.4.3-py3-none-any.whl", hash = "sha256:0ac1c9fe3c0afad2e0ebb25a934a59f4c7823b60792691f779fad2c5568830fc", size = 8960, upload-time = "2025-10-10T21:48:21.158Z" }, +] + +[[package]] +name = "idna" +version = "3.18" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cd/63/9496c57188a2ee585e0f1db071d75089a11e98aa86eb99d9d7618fc1edce/idna-3.18.tar.gz", hash = "sha256:ffb385a7e039654cef1ab9ef32c6fafe283c0c0467bba1d9029738ce4a14a848", size = 196711, upload-time = "2026-06-02T14:34:07.794Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1e/5e/d4e9f1a599fb8e573b7b87160658329fbf28d19eac2718f51fc3def3aa5a/idna-3.18-py3-none-any.whl", hash = "sha256:7f952cbe720b688055e3f87de14f5c3e5fdaa8bc3928985c4077ca689de849a2", size = 65455, upload-time = "2026-06-02T14:34:06.319Z" }, +] + +[[package]] +name = "iniconfig" +version = "2.3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" }, +] + +[[package]] +name = "jaraco-classes" +version = "3.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "more-itertools" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/c0/ed4a27bc5571b99e3cff68f8a9fa5b56ff7df1c2251cc715a652ddd26402/jaraco.classes-3.4.0.tar.gz", hash = "sha256:47a024b51d0239c0dd8c8540c6c7f484be3b8fcf0b2d85c13825780d3b3f3acd", size = 11780, upload-time = "2024-03-31T07:27:36.643Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7f/66/b15ce62552d84bbfcec9a4873ab79d993a1dd4edb922cbfccae192bd5b5f/jaraco.classes-3.4.0-py3-none-any.whl", hash = "sha256:f662826b6bed8cace05e7ff873ce0f9283b5c924470fe664fff1c2f00f581790", size = 6777, upload-time = "2024-03-31T07:27:34.792Z" }, +] + +[[package]] +name = "jaraco-context" +version = "6.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/af/50/4763cd07e722bb6285316d390a164bc7e479db9d90daa769f22578f698b4/jaraco_context-6.1.2.tar.gz", hash = "sha256:f1a6c9d391e661cc5b8d39861ff077a7dc24dc23833ccee564b234b81c82dfe3", size = 16801, upload-time = "2026-03-20T22:13:33.922Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f2/58/bc8954bda5fcda97bd7c19be11b85f91973d67a706ed4a3aec33e7de22db/jaraco_context-6.1.2-py3-none-any.whl", hash = "sha256:bf8150b79a2d5d91ae48629d8b427a8f7ba0e1097dd6202a9059f29a36379535", size = 7871, upload-time = "2026-03-20T22:13:32.808Z" }, +] + +[[package]] +name = "jaraco-functools" +version = "4.5.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "more-itertools" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/36/cf/ea4ef2920830dea3f5ab2ea4da6fb67724e6dca80ee2553788c3607243d0/jaraco_functools-4.5.0.tar.gz", hash = "sha256:3bb5665ea4a020cf78a7040e89154c77edadb3ca74f366479669c5999aa70b03", size = 20272, upload-time = "2026-05-15T21:34:10.025Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/96/9a/982e48afcffcd727a9144506720ffd4224b6b7e355c98641866f38b7c043/jaraco_functools-4.5.0-py3-none-any.whl", hash = "sha256:79ce39246eddbde4b3a03b77ea5f0f7878dc669b166a66cf3fa8e266aa3fa2f4", size = 10594, upload-time = "2026-05-15T21:34:08.595Z" }, +] + +[[package]] +name = "jeepney" +version = "0.9.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7b/6f/357efd7602486741aa73ffc0617fb310a29b588ed0fd69c2399acbb85b0c/jeepney-0.9.0.tar.gz", hash = "sha256:cf0e9e845622b81e4a28df94c40345400256ec608d0e55bb8a3feaa9163f5732", size = 106758, upload-time = "2025-02-27T18:51:01.684Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b2/a3/e137168c9c44d18eff0376253da9f1e9234d0239e0ee230d2fee6cea8e55/jeepney-0.9.0-py3-none-any.whl", hash = "sha256:97e5714520c16fc0a45695e5365a2e11b81ea79bba796e26f9f1d178cb182683", size = 49010, upload-time = "2025-02-27T18:51:00.104Z" }, +] + +[[package]] +name = "joserfc" +version = "1.7.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cryptography" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/44/90/25cb27518750218e4f850be63d8bbb2343efaad1c01c3571aaa4b3c33bd7/joserfc-1.7.1.tar.gz", hash = "sha256:77d0b76514879c68c6f433bc5b7357a4ab72008ff1e33d8379fd11d72bd8ca81", size = 233181, upload-time = "2026-06-08T07:21:33.412Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/00/fa62404c3e347f946faa13aa21085205f9cc06ad17671e37f81a51662ae8/joserfc-1.7.1-py3-none-any.whl", hash = "sha256:b3e3d655612e2e1ef67b2600f2f420e12e537b020208fab1761fad647319c164", size = 70423, upload-time = "2026-06-08T07:21:32.001Z" }, +] + +[[package]] +name = "jsonref" +version = "1.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/aa/0d/c1f3277e90ccdb50d33ed5ba1ec5b3f0a242ed8c1b1a85d3afeb68464dca/jsonref-1.1.0.tar.gz", hash = "sha256:32fe8e1d85af0fdefbebce950af85590b22b60f9e95443176adbde4e1ecea552", size = 8814, upload-time = "2023-01-16T16:10:04.455Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0c/ec/e1db9922bceb168197a558a2b8c03a7963f1afe93517ddd3cf99f202f996/jsonref-1.1.0-py3-none-any.whl", hash = "sha256:590dc7773df6c21cbf948b5dac07a72a251db28b0238ceecce0a2abfa8ec30a9", size = 9425, upload-time = "2023-01-16T16:10:02.255Z" }, +] + +[[package]] +name = "jsonschema" +version = "4.26.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "jsonschema-specifications" }, + { name = "referencing" }, + { name = "rpds-py" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b3/fc/e067678238fa451312d4c62bf6e6cf5ec56375422aee02f9cb5f909b3047/jsonschema-4.26.0.tar.gz", hash = "sha256:0c26707e2efad8aa1bfc5b7ce170f3fccc2e4918ff85989ba9ffa9facb2be326", size = 366583, upload-time = "2026-01-07T13:41:07.246Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/69/90/f63fb5873511e014207a475e2bb4e8b2e570d655b00ac19a9a0ca0a385ee/jsonschema-4.26.0-py3-none-any.whl", hash = "sha256:d489f15263b8d200f8387e64b4c3a75f06629559fb73deb8fdfb525f2dab50ce", size = 90630, upload-time = "2026-01-07T13:41:05.306Z" }, +] + +[[package]] +name = "jsonschema-path" +version = "0.5.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "pathable" }, + { name = "pyyaml" }, + { name = "referencing" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/39/79/cd02a4df6d9270efdc7d3feefe6edd730b0820c39eeaa107a2faee8322d5/jsonschema_path-0.5.0.tar.gz", hash = "sha256:493b156ba895c97602655b620a8456caa2ce08c1aa389f5a7addec065e6e855c", size = 19597, upload-time = "2026-05-19T20:45:00.971Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/2c/9e69d73c4297508be9e3b64a970ea3971b3eb8db64ffc5802d40bd25981f/jsonschema_path-0.5.0-py3-none-any.whl", hash = "sha256:2790a070bc7abb08ea3dbe4d340ece4efadf639223001f020c7503229ba068e2", size = 24077, upload-time = "2026-05-19T20:44:59.225Z" }, +] + +[[package]] +name = "jsonschema-specifications" +version = "2025.9.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "referencing" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/19/74/a633ee74eb36c44aa6d1095e7cc5569bebf04342ee146178e2d36600708b/jsonschema_specifications-2025.9.1.tar.gz", hash = "sha256:b540987f239e745613c7a9176f3edb72b832a4ac465cf02712288397832b5e8d", size = 32855, upload-time = "2025-09-08T01:34:59.186Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/41/45/1a4ed80516f02155c51f51e8cedb3c1902296743db0bbc66608a0db2814f/jsonschema_specifications-2025.9.1-py3-none-any.whl", hash = "sha256:98802fee3a11ee76ecaca44429fda8a41bff98b00a0f2838151b113f210cc6fe", size = 18437, upload-time = "2025-09-08T01:34:57.871Z" }, +] + +[[package]] +name = "keyring" +version = "25.7.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "jaraco-classes" }, + { name = "jaraco-context" }, + { name = "jaraco-functools" }, + { name = "jeepney", marker = "sys_platform == 'linux'" }, + { name = "pywin32-ctypes", marker = "sys_platform == 'win32'" }, + { name = "secretstorage", marker = "sys_platform == 'linux'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/43/4b/674af6ef2f97d56f0ab5153bf0bfa28ccb6c3ed4d1babf4305449668807b/keyring-25.7.0.tar.gz", hash = "sha256:fe01bd85eb3f8fb3dd0405defdeac9a5b4f6f0439edbb3149577f244a2e8245b", size = 63516, upload-time = "2025-11-16T16:26:09.482Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/81/db/e655086b7f3a705df045bf0933bdd9c2f79bb3c97bfef1384598bb79a217/keyring-25.7.0-py3-none-any.whl", hash = "sha256:be4a0b195f149690c166e850609a477c532ddbfbaed96a404d4e43f8d5e2689f", size = 39160, upload-time = "2025-11-16T16:26:08.402Z" }, +] + +[[package]] +name = "librt" +version = "0.11.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/40/08/9e7f6b5d2b5bed6ad055cdd5925f192bb403a51280f86b56554d9d0699a2/librt-0.11.0.tar.gz", hash = "sha256:075dc3ef4458a278e0195cbf6ac9d38808d9b906c5a6c7f7f79c3888276a3fb1", size = 200139, upload-time = "2026-05-10T18:17:25.138Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8b/d0/07c77e067f0838949b43bd89232c29d72efebb9d2801a9750184eb706b71/librt-0.11.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b87504f1690a23b9a2cca841191a04f83895d4fc2dd04df91d82b1a04ca2ad46", size = 144147, upload-time = "2026-05-10T18:15:53.227Z" }, + { url = "https://files.pythonhosted.org/packages/7a/24/8493538fa4f62f982686398a5b8f68008138a75086abdea19ade64bf4255/librt-0.11.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40071fc5fe0ce8daa6de616702314a01e1250711682b0523d6ab8d4525910cb3", size = 143614, upload-time = "2026-05-10T18:15:54.657Z" }, + { url = "https://files.pythonhosted.org/packages/ff/1e/f8bad050810d9171f34a1648ed910e56814c2ba61639f2bd53c6377ae24b/librt-0.11.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:137e79445c896a0ea7b265f52d23954e05b64222ee1af69e2cb34219067cbb67", size = 485538, upload-time = "2026-05-10T18:15:56.117Z" }, + { url = "https://files.pythonhosted.org/packages/c0/fe/3594ebfbaf03084ba4b120c9ba5c3183fd938a48725e9bbe6ff0a5159ad8/librt-0.11.0-cp312-cp312-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:cca6644054e78746d8d4ef238681f9c34ff8b584fe6b988ecebb8db3b15e622a", size = 479623, upload-time = "2026-05-10T18:15:57.544Z" }, + { url = "https://files.pythonhosted.org/packages/b0/da/5d1876984b3746c85dbd219dbfcb73c85f54ee263fd32e5b2a632ec14571/librt-0.11.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d5b0eea49f5562861ee8d757a32ef7d559c1d35be2aaaa1ec28941d74c9ffc8a", size = 513082, upload-time = "2026-05-10T18:15:58.805Z" }, + { url = "https://files.pythonhosted.org/packages/19/6e/55bdf5d5ca00c3e18430690bf2c953d8d3ffd3c337418173d33dec985dc9/librt-0.11.0-cp312-cp312-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0d1029d7e1ae1a7e647ed6fb5df8c4ce2dffefb7a9f5fd1376a4554d96dac09f", size = 508105, upload-time = "2026-05-10T18:16:00.2Z" }, + { url = "https://files.pythonhosted.org/packages/07/10/f1f23a7c595ee90ece4d35c851e5d104b1311a887ed1b4ac4c35bbd13da8/librt-0.11.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:bc3ce6b33c5828d9e80592011a5c584cb2ce86edbc4088405f70da47dc1d1b3b", size = 522268, upload-time = "2026-05-10T18:16:01.708Z" }, + { url = "https://files.pythonhosted.org/packages/b6/02/5720f5697a7f54b78b3aefbe20df3a48cedcff1276618c4aa481177942ed/librt-0.11.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:936c5995f3514a42111f20099397d8177c79b4d7e70961e396c6f5a0a3566766", size = 527348, upload-time = "2026-05-10T18:16:03.496Z" }, + { url = "https://files.pythonhosted.org/packages/50/db/b4a47c6f91db4ff76348a0b3dd0cc65e090a078b765a810a62ff9434c3d3/librt-0.11.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:9bc0ca6ad9381cbe8e4aa6e5726e4c80c78115a6e9723c599ed1d73e092bc49d", size = 516294, upload-time = "2026-05-10T18:16:05.173Z" }, + { url = "https://files.pythonhosted.org/packages/9e/58/9384b2f4eb1ed1d273d40948a7c5c4b2360213b402ef3be4641c06299f9c/librt-0.11.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:070aa8c26c0a74774317a72df8851facc7f0f012a5b406557ac56992d92e1ec8", size = 553608, upload-time = "2026-05-10T18:16:06.839Z" }, + { url = "https://files.pythonhosted.org/packages/21/7b/5aa8848a7c6a9278c79375146da1812e695754ceec5f005e6043461a7315/librt-0.11.0-cp312-cp312-win32.whl", hash = "sha256:6bf14feb84b05ae945277395451998c89c54d0def4070eb5c08de544930b245a", size = 101879, upload-time = "2026-05-10T18:16:08.103Z" }, + { url = "https://files.pythonhosted.org/packages/37/33/8a745436944947575b584231750a41417de1a38cf6a2e9251d1065651c09/librt-0.11.0-cp312-cp312-win_amd64.whl", hash = "sha256:75672f0bc524ede266287d532d7923dbce94c7514ad07627bac3d0c6d92cc4d9", size = 119831, upload-time = "2026-05-10T18:16:09.174Z" }, + { url = "https://files.pythonhosted.org/packages/59/67/a6739ac96e28b7855808bdb0370e250606104a859750d209e5a0716fe7ab/librt-0.11.0-cp312-cp312-win_arm64.whl", hash = "sha256:2f10cf143e4a9bb0f4f5af568a00df94a2d69ef41c2579584454bb0fe5cc642c", size = 103470, upload-time = "2026-05-10T18:16:10.369Z" }, + { url = "https://files.pythonhosted.org/packages/82/61/e59168d4d0bf2bf90f4f0caf7a001bfc60254c3af4586013b04dc3ef517b/librt-0.11.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:78dc31f7fdfe9c9d0eb0e8f42d139db230e826415bbcabd9f0e9faaaee909894", size = 144119, upload-time = "2026-05-10T18:16:11.771Z" }, + { url = "https://files.pythonhosted.org/packages/61/fd/caa1d60b12f7dd79ccea23054e06eeaebe266a5f52c40a6b651069200ce5/librt-0.11.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:fa475675db22290c3158e1d42326d0f5a65f04f44a0e68c3630a25b53560fb9c", size = 143565, upload-time = "2026-05-10T18:16:13.334Z" }, + { url = "https://files.pythonhosted.org/packages/b8/a9/dc744f5c2b4978d48db970be29f22716d3413d28b14ad99740817315cf2c/librt-0.11.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:621db29691044bdeda22e789e482e1b0f3a985d90e3426c9c6d17606416205ea", size = 485395, upload-time = "2026-05-10T18:16:14.729Z" }, + { url = "https://files.pythonhosted.org/packages/8f/21/7f8e97a1e4dae952a5a95948f6f8507a173bc1e669f54340bba6ca1ca31b/librt-0.11.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:a9010e2ed5b3a9e158c5fd966b3ab7e834bb3d3aacc8f66c91dd4b57a3799230", size = 479383, upload-time = "2026-05-10T18:16:16.321Z" }, + { url = "https://files.pythonhosted.org/packages/a6/6d/d8ee9c114bebf2c50e29ec2aa940826fccb62a645c3e4c18760987d0e16d/librt-0.11.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7c39513d8b7477a2e1ed8c43fc21c524e8d5a0f8d4e8b7b074dbdbe7820a08e2", size = 513010, upload-time = "2026-05-10T18:16:17.647Z" }, + { url = "https://files.pythonhosted.org/packages/f0/43/0b5708af2bd30a46400e72ba6bdaa8f066f15fb9a688527e34220e8d6c06/librt-0.11.0-cp313-cp313-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7aef3cf1d5af86e770ab04bfd993dfc4ae8b8c17f66fb77dd4a7d50de7bbb1a3", size = 508433, upload-time = "2026-05-10T18:16:19.309Z" }, + { url = "https://files.pythonhosted.org/packages/4a/50/356187247d09013490481033183b3532b58acf8028bcb34b2b56a375c9b2/librt-0.11.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:557183ddc36babe46b27dd60facbd5adb4492181a5be887587d57cda6e092f21", size = 522595, upload-time = "2026-05-10T18:16:20.642Z" }, + { url = "https://files.pythonhosted.org/packages/40/e7/c6ac4240899c7f3248079d5a9900debe0dadb3fdeaf856684c987105ba47/librt-0.11.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:83d3e1f72bd42f6c5c0b7daec530c3f829bd02db42c70b8ddf0c2d90a2459930", size = 527255, upload-time = "2026-05-10T18:16:22.352Z" }, + { url = "https://files.pythonhosted.org/packages/eb/b5/a81322dbeedeeaf9c1ee6f001734d28a09d8383ac9e6779bc24bbd0743c6/librt-0.11.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:4ce1f21fbe589bc1afd7872dece84fb0e1144f794a288e58a10d2c54a55c43be", size = 516847, upload-time = "2026-05-10T18:16:23.627Z" }, + { url = "https://files.pythonhosted.org/packages/ae/66/6e6323787d592b55204a42595ff1102da5115601b53a7e9ddebc889a6da5/librt-0.11.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:970b09f7044ea2b64c9da42fd3d335666518cfd1c6e8a182c95da73d0214b41e", size = 553920, upload-time = "2026-05-10T18:16:25.025Z" }, + { url = "https://files.pythonhosted.org/packages/9c/21/623f8ca230857102066d9ca8c6c1734995908c4d0d1bee7bb2ef0021cb33/librt-0.11.0-cp313-cp313-win32.whl", hash = "sha256:78fddc31cd4d3caa897ad5d31f856b1faadc9474021ad6cb182b9018793e254e", size = 101898, upload-time = "2026-05-10T18:16:26.649Z" }, + { url = "https://files.pythonhosted.org/packages/b3/1d/b4ebd44dd723f768469007515cb92251e0ae286c94c140f374801140fa74/librt-0.11.0-cp313-cp313-win_amd64.whl", hash = "sha256:8ca8aa88751a775870b764e93bad5135385f563cb8dcee399abf034ea4d3cb47", size = 119812, upload-time = "2026-05-10T18:16:27.859Z" }, + { url = "https://files.pythonhosted.org/packages/3b/e4/b2f4ca7965ca373b491cdb4bc25cdb30c1649ca81a8782056a83850292a9/librt-0.11.0-cp313-cp313-win_arm64.whl", hash = "sha256:96f044bb325fd9cf1a723015638c219e9143f0dfbc0ca54c565df2b7fc748b44", size = 103448, upload-time = "2026-05-10T18:16:29.066Z" }, + { url = "https://files.pythonhosted.org/packages/29/eb/dbce197da4e227779e56b5735f2decc3eb36e55a1cdbf1bd65d6639d76c1/librt-0.11.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:4a017a95e5837dc15a8c5661d60e05daa96b90908b1aa6b7acdf443cd25c8ebd", size = 143345, upload-time = "2026-05-10T18:16:30.674Z" }, + { url = "https://files.pythonhosted.org/packages/76/a3/254bebd0c11c8ba684018efb8006ff22e466abce445215cca6c778e7d9de/librt-0.11.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:b1ecbd9819deccc39b7542bf4d2a740d8a620694d39989e58661d3763458f8d4", size = 143131, upload-time = "2026-05-10T18:16:32.037Z" }, + { url = "https://files.pythonhosted.org/packages/f1/3f/f77d6122d21ac7bf6ae8a7dfced1bd2a7ac545d3273ebdcaf8042f6d619f/librt-0.11.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7da327dacd7be8f8ec36547373550744a3cc0e536d54665cd83f8bcd961200e8", size = 477024, upload-time = "2026-05-10T18:16:33.493Z" }, + { url = "https://files.pythonhosted.org/packages/ac/0a/2c996dadebaa7d9bbbd43ef2d4f3e66b6da545f838a41694ef6172cebec8/librt-0.11.0-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:0dc56b1f8d06e60db362cc3fdae206681817f86ce4725d34511473487f12a34b", size = 474221, upload-time = "2026-05-10T18:16:34.864Z" }, + { url = "https://files.pythonhosted.org/packages/0a/7e/f5d92af8486b8272c23b3e686b46ff72d89c8169585eb61eef01a2ac7147/librt-0.11.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:05fb8fb2ab90e21c8d12ea240d744ad514da9baf381ebfa70d91d20d21713175", size = 505174, upload-time = "2026-05-10T18:16:36.705Z" }, + { url = "https://files.pythonhosted.org/packages/af/1a/cb0734fe86398eb33193ab753b7326255c74cac5eb09e76b9b16536e7adb/librt-0.11.0-cp314-cp314-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:cae74872be221df4374d10fec61f93ed1513b9546ea84f2c0bf73ab3e9bd0b03", size = 497216, upload-time = "2026-05-10T18:16:38.418Z" }, + { url = "https://files.pythonhosted.org/packages/18/06/094820f91558b66e29943c0ec41c9914f460f48dd51fc503c3101e10842d/librt-0.11.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:32bcc918c0148eb7e3d57385125bac7e5f9e4359d05f07448b09f6f778c2f31c", size = 513921, upload-time = "2026-05-10T18:16:39.848Z" }, + { url = "https://files.pythonhosted.org/packages/0b/c2/00de9018871a282f530cacb457d5ec0428f6ac7e6fedde9aff7468d9fb04/librt-0.11.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:f9743fc99135d5f78d2454435615f6dec0473ca507c26ce9d92b10b562a280d3", size = 520850, upload-time = "2026-05-10T18:16:41.471Z" }, + { url = "https://files.pythonhosted.org/packages/51/9d/64631832348fd1834fb3a61b996434edddaaf25a31d03b0a76273159d2cf/librt-0.11.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:5ba067f4aadae8fda802d91d2124c90c42195ff32d9161d3549e6d05cfe26f96", size = 504237, upload-time = "2026-05-10T18:16:43.15Z" }, + { url = "https://files.pythonhosted.org/packages/a5/ec/ae5525eb16edc827a044e7bb8777a455ff95d4bca9379e7e6bddd7383647/librt-0.11.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:de3bf945454d032f9e390b85c4072e0a0570bf825421c8be0e71209fa65e1abe", size = 546261, upload-time = "2026-05-10T18:16:44.408Z" }, + { url = "https://files.pythonhosted.org/packages/5a/09/adce371f27ca039411da9659f7430fcc2ba6cd0c7b3e4467a0f091be7fa9/librt-0.11.0-cp314-cp314-win32.whl", hash = "sha256:d2277a05f6dcb9fd13db9566aac4fabd68c3ea1ea46ee5567d4eef8efa495a2f", size = 96965, upload-time = "2026-05-10T18:16:46.039Z" }, + { url = "https://files.pythonhosted.org/packages/d6/ee/8ac720d98548f173c7ce2e632a7ca94673f74cacd5c8162a84af5b35958a/librt-0.11.0-cp314-cp314-win_amd64.whl", hash = "sha256:ab73e8db5e3f564d812c1f5c3a175930a5f9bc96ccb5e3b22a34d7858b401cf7", size = 115151, upload-time = "2026-05-10T18:16:47.133Z" }, + { url = "https://files.pythonhosted.org/packages/94/20/c900cf14efeb09b6bef2b2dff20779f73464b97fd58d1c6bccc379588ae3/librt-0.11.0-cp314-cp314-win_arm64.whl", hash = "sha256:aea3caa317752e3a466fa8af45d91ee0ea8c7fdd96e42b0a8dd9b76a7931eba1", size = 98850, upload-time = "2026-05-10T18:16:48.597Z" }, + { url = "https://files.pythonhosted.org/packages/0c/71/944bfe4b64e12abffcd3c15e1cce07f72f3d55655083786285f4dedeb532/librt-0.11.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:d1b36540d7aaf9b9101b3a6f376c8d8e9f7a9aec93ed05918f2c69d493ffef72", size = 151138, upload-time = "2026-05-10T18:16:49.839Z" }, + { url = "https://files.pythonhosted.org/packages/b6/10/99e64a5c86989357fda078c8143c533389585f6473b7439172dd8f3b3b2d/librt-0.11.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:efbb343ab2ce3540f4ecbe6315d677ed70f37cd9a72b1e58066c918ca83acbaa", size = 151976, upload-time = "2026-05-10T18:16:51.062Z" }, + { url = "https://files.pythonhosted.org/packages/21/31/5072ad880946d83e5ea4147d6d018c78eefce85b77819b19bdd0ee229435/librt-0.11.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:aa0dd688aab3f7914d3e6e5e3554978e0383312fb8e771d84be008a35b9ee548", size = 557927, upload-time = "2026-05-10T18:16:52.632Z" }, + { url = "https://files.pythonhosted.org/packages/5e/8d/70b5fb7cfbab60edbe7381614ab985da58e144fbf465c86d44c95f43cdca/librt-0.11.0-cp314-cp314t-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:f5fb36b8c6c63fdcbb1d526d94c0d1331610d43f4118cc1beb4efef4f3faacb2", size = 539698, upload-time = "2026-05-10T18:16:53.934Z" }, + { url = "https://files.pythonhosted.org/packages/fa/a3/ba3495a0b3edbd24a4cae0d1d3c64f39a9fc45d06e812101289b50c1a619/librt-0.11.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4a9a237d13addb93715b6fee74023d5ee3469b53fce527626c0e088aa585805f", size = 577162, upload-time = "2026-05-10T18:16:55.589Z" }, + { url = "https://files.pythonhosted.org/packages/f7/db/36e25fb81f99937ff1b96612a1dc9fd66f039cb9cc3aee12c01fac31aab9/librt-0.11.0-cp314-cp314t-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5ddd17bd87b2c56ddd60e546a7984a2e64c4e8eab92fb4cf3830a48ad5469d51", size = 566494, upload-time = "2026-05-10T18:16:56.975Z" }, + { url = "https://files.pythonhosted.org/packages/33/0d/3f622b47f0b013eeb9cf4cc07ae9bfe378d832a4eec998b2b209fe84244d/librt-0.11.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:bd43992b4473d42f12ff9e68326079f0696d9d4e6000e8f39a0238d482ba6ee2", size = 596858, upload-time = "2026-05-10T18:16:58.374Z" }, + { url = "https://files.pythonhosted.org/packages/a9/02/71b90bc93039c46a2000651f6ad60122b114c8f54c4ad306e0e96f5b75ad/librt-0.11.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:f8e3e8056dd674e279741485e2e512d6e9a751c7455809d0114e6ebf8d781085", size = 590318, upload-time = "2026-05-10T18:16:59.676Z" }, + { url = "https://files.pythonhosted.org/packages/04/04/418cb3f75621e2b761fb1ab0f017f4d70a1a72a6e7c74ee4f7e8d198c2f3/librt-0.11.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:c1f708d8ae9c56cf38a903c44297243d2ec83fd82b396b977e0144a3e76217e3", size = 575115, upload-time = "2026-05-10T18:17:01.007Z" }, + { url = "https://files.pythonhosted.org/packages/cc/2c/5a2183ac58dd911f26b5d7e7d7d8f1d87fcecdddd99d6c12169a258ff62c/librt-0.11.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:0add982e0e7b9fc14cf4b33789d5f13f66581889b88c2f58099f6ce8f92617bd", size = 617918, upload-time = "2026-05-10T18:17:02.682Z" }, + { url = "https://files.pythonhosted.org/packages/15/1f/dc6771a52592a4451be6effa200cbfc9cec61e4393d3033d81a9d307961d/librt-0.11.0-cp314-cp314t-win32.whl", hash = "sha256:2b481d846ac894c4e8403c5fd0e87c5d11d6499e404b474602508a224ff531c8", size = 103562, upload-time = "2026-05-10T18:17:03.99Z" }, + { url = "https://files.pythonhosted.org/packages/62/4a/7d1415567027286a75ba1093ec4aca11f073e0f559c530cf3e0a757ad55c/librt-0.11.0-cp314-cp314t-win_amd64.whl", hash = "sha256:28edb433edde181112a908c78907af28f964eabc15f4dd16c9d66c834302677c", size = 124327, upload-time = "2026-05-10T18:17:05.465Z" }, + { url = "https://files.pythonhosted.org/packages/ce/62/b40b382fa0c66fee1478073eb8db352a4a6beda4a1adccf1df911d8c289c/librt-0.11.0-cp314-cp314t-win_arm64.whl", hash = "sha256:dee008f20b542e3cd162ba338a7f9ec0f6d23d395f66fe8aeeec3c9d067ea253", size = 102572, upload-time = "2026-05-10T18:17:06.809Z" }, +] + +[[package]] +name = "markdown-it-py" +version = "4.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mdurl" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/ff/7841249c247aa650a76b9ee4bbaeae59370dc8bfd2f6c01f3630c35eb134/markdown_it_py-4.2.0.tar.gz", hash = "sha256:04a21681d6fbb623de53f6f364d352309d4094dd4194040a10fd51833e418d49", size = 82454, upload-time = "2026-05-07T12:08:28.36Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", hash = "sha256:9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", size = 91687, upload-time = "2026-05-07T12:08:27.182Z" }, +] + +[[package]] +name = "mcp" +version = "1.27.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "httpx" }, + { name = "httpx-sse" }, + { name = "jsonschema" }, + { name = "pydantic" }, + { name = "pydantic-settings" }, + { name = "pyjwt", extra = ["crypto"] }, + { name = "python-multipart" }, + { name = "pywin32", marker = "sys_platform == 'win32'" }, + { name = "sse-starlette" }, + { name = "starlette" }, + { name = "typing-extensions" }, + { name = "typing-inspection" }, + { name = "uvicorn", marker = "sys_platform != 'emscripten'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/27/3c/347cf965d313f5d41764e7d46bea6ffe7d9ef13b983cc429b0340962a082/mcp-1.27.2.tar.gz", hash = "sha256:8e02db104096d1c25b28e64bde29a5c32b31bc241710213e12fd4d84985bdfef", size = 621116, upload-time = "2026-05-29T17:16:04.039Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c9/11/252c6f971dc4f16af1d98a1c469d8ba523aab00d1bb76b4d3bc1ff32eacc/mcp-1.27.2-py3-none-any.whl", hash = "sha256:d6ff5160c6ca65d93013626efb3fc249de683c30b2d8570755ceddd490344de5", size = 220498, upload-time = "2026-05-29T17:16:02.442Z" }, +] + +[[package]] +name = "mdurl" +version = "0.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" }, +] + +[[package]] +name = "more-itertools" +version = "11.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/de/1d/f4da6f02cdffe04d6362210b807146a26044c88d839208aec273bb0d9184/more_itertools-11.1.0.tar.gz", hash = "sha256:48e8f4d9e7e5878571ecf6f2b4e57634f93cd474cc8cfbd2376f2d11b396e30d", size = 145772, upload-time = "2026-05-22T14:14:29.909Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e8/3d/1087453384dbde46a8c7f9356eead2c58be8a7bf156bca40243377c85715/more_itertools-11.1.0-py3-none-any.whl", hash = "sha256:4b65538ae22f6fed0ce4874efd317463a7489796a0939fa66824dd542125a192", size = 72226, upload-time = "2026-05-22T14:14:28.824Z" }, +] + +[[package]] +name = "mypy" +version = "2.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "ast-serialize" }, + { name = "librt", marker = "platform_python_implementation != 'PyPy'" }, + { name = "mypy-extensions" }, + { name = "pathspec" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/82/15/cca9d88503549ed6fedeaa1d448cdddd542ee8a490232d732e278036fbf2/mypy-2.1.0.tar.gz", hash = "sha256:81e76ad12c2d804512e9b13240d1588316531bfba07558286078bfbce9613633", size = 3898359, upload-time = "2026-05-11T18:37:36.237Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/95/b1/55861beb5c339b44f9a2ba92df9e2cb1eeb4ae1eee674cdf7772c797778b/mypy-2.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:244358bf1c0da7722230bce60683d52e8e9fd030554926f15b747a84efb5b3af", size = 14874381, upload-time = "2026-05-11T18:37:31.784Z" }, + { url = "https://files.pythonhosted.org/packages/0b/b3/b7f770114b7d0ac92d0f76e8d93c2780844a70488a90e91821927850da86/mypy-2.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4ec7c57657493c7a75534df2751c8ae2cda383c16ecc55d2106c54476b1b16f6", size = 13665501, upload-time = "2026-05-11T18:34:23.063Z" }, + { url = "https://files.pythonhosted.org/packages/b6/f3/8ae2037967e2126689a0c11d99e2b707134a565191e92c60ca2572aec60a/mypy-2.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d8161b6ff4392410023224f0969d17db93e1e154bc3e4ba62598e720723ae211", size = 14045750, upload-time = "2026-05-11T18:31:48.151Z" }, + { url = "https://files.pythonhosted.org/packages/a0/32/615eb5911859e43d054941b0d0a7d06cfa2870eba86529cf385b052b111c/mypy-2.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bf03e12003084a67395184d3eb8cbd6a489dc3655b5664b28c210a9e2403ab0b", size = 15061630, upload-time = "2026-05-11T18:37:06.898Z" }, + { url = "https://files.pythonhosted.org/packages/d4/03/4eafbfff8bfab1b87082741eae6e6a624028c984e6708b73bce2a8570c9d/mypy-2.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:20509760fd791c51579d573153407d226385ec1f8bcce55d730b354f3336bc22", size = 15288831, upload-time = "2026-05-11T18:31:18.07Z" }, + { url = "https://files.pythonhosted.org/packages/99/ee/919661478e5891a3c96e549c036e467e64563ab85995b10c53c8358e16a3/mypy-2.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:6753d0c1fdd6b1a23b9e4f283ce80b2153b724adcb2653b20b85a8a28ac6436b", size = 11135228, upload-time = "2026-05-11T18:34:31.23Z" }, + { url = "https://files.pythonhosted.org/packages/24/0a/6a12b9782ca0831a553192f351679f4548abc9d19a7cc93bb7feb02084c7/mypy-2.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:98ebb6589bb3b6d0c6f0c459d53ca55b8091fbc13d277c4041c885392e8195e8", size = 10040684, upload-time = "2026-05-11T18:36:48.199Z" }, + { url = "https://files.pythonhosted.org/packages/6e/dd/c7191469c777f07689c032a8f7326e393ea34c92d6d76eb7ce5ba57ea66d/mypy-2.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:35aac3bb114e03888f535d5eb51b8bafbb3266586b599da1940f9b1be3ec5bd5", size = 14852174, upload-time = "2026-05-11T18:31:38.929Z" }, + { url = "https://files.pythonhosted.org/packages/55/8c/aed55408879043d72bb9135f4d0d19a02b886dd569631e113e3d2706cb8d/mypy-2.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:8de55a8c861f2a49331f807be98d90caeceeef520bde13d43a160207f8af613e", size = 13651542, upload-time = "2026-05-11T18:36:04.636Z" }, + { url = "https://files.pythonhosted.org/packages/3a/8e/f371a824b1f1fa8ea6e3dbb8703d232977d572be2329554a3bc4d960302f/mypy-2.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5fdf2941a07434af755837d9880f7d7d25f1dacb1af9dcd4b9b66f2220a3024e", size = 14033929, upload-time = "2026-05-11T18:35:55.742Z" }, + { url = "https://files.pythonhosted.org/packages/94/21/f54be870d6dd53a82c674407e0f8eed7174b05ec78d42e5abd7b42e84fd5/mypy-2.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e195b817c13f02352a9c124301f9f30f078405444679b6753c1b96b6eed37285", size = 15039200, upload-time = "2026-05-11T18:33:10.281Z" }, + { url = "https://files.pythonhosted.org/packages/17/99/bf21748626a40ce59fd29a39386ab46afec88b7bd2f0fa6c3a97c995523f/mypy-2.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:5431d42af987ebd92ba2f71d45c85ed41d8e6ca9f5fd209a69f68f707d2469e5", size = 15272690, upload-time = "2026-05-11T18:32:07.205Z" }, + { url = "https://files.pythonhosted.org/packages/d6/d7/9e90d2cf47100bea550ed2bc7b0d4de3a62181d84d5e37da0003e8462637/mypy-2.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:767fe8c66dc3e01e19e1737d4c38ebefead16125e1b8e58ad421903b376f5c65", size = 11147435, upload-time = "2026-05-11T18:33:56.477Z" }, + { url = "https://files.pythonhosted.org/packages/ec/46/e5c449e858798e35ffc90946282a27c62a77be743fe17480e4977374eb91/mypy-2.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:ecfe70d43775ab99562ab128ce49854a362044c9f894961f68f898c23cb7429d", size = 10035052, upload-time = "2026-05-11T18:32:30.049Z" }, + { url = "https://files.pythonhosted.org/packages/b0/ca/b279a672e874aedd5498ae25f722dacc8aa86bbffb939b3f97cbb1cf6686/mypy-2.1.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:7354c5a7f69d9345c3d6e69921d57088eea3ddeeb6b20d34c1b3855b02c36ec2", size = 14848422, upload-time = "2026-05-11T18:35:45.984Z" }, + { url = "https://files.pythonhosted.org/packages/27/e6/3efe56c631d959b9b4454e208b0ac4b7f4f58b404c89f8bec7b49efdfc21/mypy-2.1.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:49890d4f76ac9e06ec117f9e09f3174da70a620a0c300953d8595c926e80947f", size = 13677374, upload-time = "2026-05-11T18:36:57.188Z" }, + { url = "https://files.pythonhosted.org/packages/84/7f/8107ea87a44fd1f1b59882442f033c9c3488c127201b1d1d15f1cbd6022e/mypy-2.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:761be68e023ef5d94678772396a8af1220030f80837a3afd8d0aef3b419666f4", size = 14055743, upload-time = "2026-05-11T18:35:18.361Z" }, + { url = "https://files.pythonhosted.org/packages/51/4d/b6d34db183133b83761b9199a82d31557cdbb70a380d8c3b3438e11882a3/mypy-2.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c90345fc182dc363b891350457ec69c35140858538f38b4540845afcc32b1aef", size = 15020937, upload-time = "2026-05-11T18:34:59.618Z" }, + { url = "https://files.pythonhosted.org/packages/ff/d7/f08360c691d758acb02f45022c34d98b92892f4ea756644e1000d4b9f3d8/mypy-2.1.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:b84802e7b5a6daf1f5e15bc9fcd7ddae77be13981ffab037f1c67bb84d67d135", size = 15253371, upload-time = "2026-05-11T18:36:41.081Z" }, + { url = "https://files.pythonhosted.org/packages/67/1b/09460a13719530a19bce27bd3bc8449e83569dd2ba7faf51c9c3c30c0b61/mypy-2.1.0-cp314-cp314-win_amd64.whl", hash = "sha256:022c771234936ceac541ebaf836fe9e2abeb3f5e09aff21588fe543ff006fe21", size = 11326429, upload-time = "2026-05-11T18:34:13.526Z" }, + { url = "https://files.pythonhosted.org/packages/40/62/75dbf0f82f7b6680340efc614af29dd0b3c17b8a4f1cd09b8bd2fd6bc814/mypy-2.1.0-cp314-cp314-win_arm64.whl", hash = "sha256:498207db725cec88829a6a5c2fc771205fd043719ef98bc49aba8fb9fc4e6d57", size = 10218799, upload-time = "2026-05-11T18:32:23.491Z" }, + { url = "https://files.pythonhosted.org/packages/b2/66/caca04ed7d972fb6eb6dd1ccd6df1de5c38fae8c5b3dc1c4e8e0d85ee6b9/mypy-2.1.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:7d5e5cad0efeba72b93cd17490cc0d69c5ac9ca132994fe3fb0314808aeeb83e", size = 15923458, upload-time = "2026-05-11T18:35:28.64Z" }, + { url = "https://files.pythonhosted.org/packages/ed/52/2d90cbe49d014b13ed7ff337930c30bad35893fe38a1e4641e756bb62191/mypy-2.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ff715050c127d724fd260a2e666e7747fdd83511c0c47d449d98238970aef780", size = 14757697, upload-time = "2026-05-11T18:36:14.208Z" }, + { url = "https://files.pythonhosted.org/packages/ac/37/d98f4a14e081b238992d0ed96b6d39c7cc0148c9699eb71eaa68629665ea/mypy-2.1.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:82208da9e09414d520e912d3e462d454854bed0810b71540bb016dcbca7308fd", size = 15405638, upload-time = "2026-05-11T18:33:48.249Z" }, + { url = "https://files.pythonhosted.org/packages/a3/c2/15c46613b24a84fad2aea1248bf9619b99c2767ae9071fe224c179a0b7d4/mypy-2.1.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e79ebc1b904b84f0310dff7469655a9c36c7a68bddb37bdd42b67a332df61d08", size = 16215852, upload-time = "2026-05-11T18:32:50.296Z" }, + { url = "https://files.pythonhosted.org/packages/5c/90/9c16a57f482c76d25f6379762b56bbf65c711d8158cf271fb2802cfb0640/mypy-2.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:e583edc957cfb0deb142079162ae826f58449b116c1d442f2d91c69d9fced081", size = 16452695, upload-time = "2026-05-11T18:33:38.182Z" }, + { url = "https://files.pythonhosted.org/packages/0f/4c/215a4eeb63cacc5f17f516691ea7285d11e249802b942476bff15922a314/mypy-2.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:b33b6cd332695bba180d55e717a79d3038e479a2c49cc5eb3d53603409b9a5d7", size = 12866622, upload-time = "2026-05-11T18:34:39.945Z" }, + { url = "https://files.pythonhosted.org/packages/4b/50/1043e1db5f455ffe4c9ab22747cd8ca2bc492b1e4f4e21b130a44ee2b217/mypy-2.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:4f910fe825376a7b66ef7ca8c98e5a149e8cd64c19ae71d84047a74ee060d4e6", size = 10610798, upload-time = "2026-05-11T18:36:31.444Z" }, + { url = "https://files.pythonhosted.org/packages/0d/2a/13ca1f292f6db1b98ff495ef3467736b331621c5917cad984b7043e7348d/mypy-2.1.0-py3-none-any.whl", hash = "sha256:a663814603a5c563fb87a4f96fb473eeb30d1f5a4885afcf44f9db000a366289", size = 2693302, upload-time = "2026-05-11T18:31:29.246Z" }, +] + +[[package]] +name = "mypy-extensions" +version = "1.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a2/6e/371856a3fb9d31ca8dac321cda606860fa4548858c0cc45d9d1d4ca2628b/mypy_extensions-1.1.0.tar.gz", hash = "sha256:52e68efc3284861e772bbcd66823fde5ae21fd2fdb51c62a211403730b916558", size = 6343, upload-time = "2025-04-22T14:54:24.164Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/79/7b/2c79738432f5c924bef5071f933bcc9efd0473bac3b4aa584a6f7c1c8df8/mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505", size = 4963, upload-time = "2025-04-22T14:54:22.983Z" }, +] + +[[package]] +name = "openapi-pydantic" +version = "0.5.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pydantic" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/02/2e/58d83848dd1a79cb92ed8e63f6ba901ca282c5f09d04af9423ec26c56fd7/openapi_pydantic-0.5.1.tar.gz", hash = "sha256:ff6835af6bde7a459fb93eb93bb92b8749b754fc6e51b2f1590a19dc3005ee0d", size = 60892, upload-time = "2025-01-08T19:29:27.083Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/12/cf/03675d8bd8ecbf4445504d8071adab19f5f993676795708e36402ab38263/openapi_pydantic-0.5.1-py3-none-any.whl", hash = "sha256:a3a09ef4586f5bd760a8df7f43028b60cafb6d9f61de2acba9574766255ab146", size = 96381, upload-time = "2025-01-08T19:29:25.275Z" }, +] + +[[package]] +name = "opentelemetry-api" +version = "1.42.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b4/1c/125e1c936c0873796771b7f04f6c93b9f1bf5d424cea90fda94a99f61da8/opentelemetry_api-1.42.1.tar.gz", hash = "sha256:56c63bea9f77b62856be8c47600474acad853b2924b99b1687c4cb6297166716", size = 72296, upload-time = "2026-05-21T16:32:49.335Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a3/ca/9520cc1f3dfbbd03ac5903bbf55833e257bc64b1cf30fa8b0d6df374d821/opentelemetry_api-1.42.1-py3-none-any.whl", hash = "sha256:51a69edacadbc03a8950ace1c4c21099cacc538820ac2c9e36277e78cebba714", size = 61311, upload-time = "2026-05-21T16:32:28.822Z" }, +] + +[[package]] +name = "packaging" +version = "26.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d7/f1/e7a6dd94a8d4a5626c03e4e99c87f241ba9e350cd9e6d75123f992427270/packaging-26.2.tar.gz", hash = "sha256:ff452ff5a3e828ce110190feff1178bb1f2ea2281fa2075aadb987c2fb221661", size = 228134, upload-time = "2026-04-24T20:15:23.917Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/df/b2/87e62e8c3e2f4b32e5fe99e0b86d576da1312593b39f47d8ceef365e95ed/packaging-26.2-py3-none-any.whl", hash = "sha256:5fc45236b9446107ff2415ce77c807cee2862cb6fac22b8a73826d0693b0980e", size = 100195, upload-time = "2026-04-24T20:15:22.081Z" }, +] + +[[package]] +name = "pathable" +version = "0.6.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/66/f3/5a20387de9bcd0607871bfc2198ee0e15836da7baa4592ccd7f24c27c986/pathable-0.6.0.tar.gz", hash = "sha256:6404b8b82aef5ff0fd478934137128b99b12212ba35afdde5525ca4f8388ea58", size = 18970, upload-time = "2026-05-19T18:15:11.911Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a2/e8/6d75ffd9784bce2e93d1ae4415649427e39a53bb172d4672b2b59c6f0a7b/pathable-0.6.0-py3-none-any.whl", hash = "sha256:82c4ca6c98c502ad12e0d4e9779b6210afee93c38990988c8c5d1b49bdcdf566", size = 18983, upload-time = "2026-05-19T18:15:10.728Z" }, +] + +[[package]] +name = "pathspec" +version = "1.1.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5a/82/42f767fc1c1143d6fd36efb827202a2d997a375e160a71eb2888a925aac1/pathspec-1.1.1.tar.gz", hash = "sha256:17db5ecd524104a120e173814c90367a96a98d07c45b2e10c2f3919fff91bf5a", size = 135180, upload-time = "2026-04-27T01:46:08.907Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f1/d9/7fb5aa316bc299258e68c73ba3bddbc499654a07f151cba08f6153988714/pathspec-1.1.1-py3-none-any.whl", hash = "sha256:a00ce642f577bf7f473932318056212bc4f8bfdf53128c78bbd5af0b9b20b189", size = 57328, upload-time = "2026-04-27T01:46:07.06Z" }, +] + +[[package]] +name = "platformdirs" +version = "4.10.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d7/47/e4501f49c178ae1d9f4a75073fda4204f52647993f075a9db4d14930e0c5/platformdirs-4.10.0.tar.gz", hash = "sha256:31e761a6a0ca04faf7353ea759bdba55652be214725111e5aac52dfa29d4bef7", size = 31224, upload-time = "2026-05-28T03:32:53.587Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/81/e6/cd9575ac904136b3cbf7aa7ee819ef86eedb7274e46f230e94ea4342e729/platformdirs-4.10.0-py3-none-any.whl", hash = "sha256:fb516cdb12eb0d857d0cd85a7c57cea4d060bee4578d6cf5a14dfdf8cbf8784a", size = 22743, upload-time = "2026-05-28T03:32:52.175Z" }, +] + +[[package]] +name = "pluggy" +version = "1.6.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" }, +] + +[[package]] +name = "py-key-value-aio" +version = "0.4.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "beartype" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/fb/e2/d689d922894a7ecde73b6daeaf9b13dab5aae06fe6aaaf7514722644d382/py_key_value_aio-0.4.5.tar.gz", hash = "sha256:c6563a2c6abe5da5e20f4f9e875c2a9b425a2244a54fadbf46cf140a9eea45d7", size = 107547, upload-time = "2026-05-27T16:37:08.107Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f6/95/b8ba862968712caa12a19666175334fa979e1f198b896a430adb3bacfe87/py_key_value_aio-0.4.5-py3-none-any.whl", hash = "sha256:ab862adbcb8c72547d1c57821f22cbbb71ab86509039c96f36e914e0336c8dd7", size = 170005, upload-time = "2026-05-27T16:37:06.629Z" }, +] + +[package.optional-dependencies] +filetree = [ + { name = "aiofile" }, + { name = "anyio" }, +] +keyring = [ + { name = "keyring" }, +] +memory = [ + { name = "cachetools" }, +] + +[[package]] +name = "pycparser" +version = "3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/1b/7d/92392ff7815c21062bea51aa7b87d45576f649f16458d78b7cf94b9ab2e6/pycparser-3.0.tar.gz", hash = "sha256:600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29", size = 103492, upload-time = "2026-01-21T14:26:51.89Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0c/c3/44f3fbbfa403ea2a7c779186dc20772604442dde72947e7d01069cbe98e3/pycparser-3.0-py3-none-any.whl", hash = "sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992", size = 48172, upload-time = "2026-01-21T14:26:50.693Z" }, +] + +[[package]] +name = "pydantic" +version = "2.13.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "annotated-types" }, + { name = "pydantic-core" }, + { name = "typing-extensions" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/18/a5/b60d21ac674192f8ab0ba4e9fd860690f9b4a6e51ca5df118733b487d8d6/pydantic-2.13.4.tar.gz", hash = "sha256:c40756b57adaa8b1efeeced5c196f3f3b7c435f90e84ea7f443901bec8099ef6", size = 844775, upload-time = "2026-05-06T13:43:05.343Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fd/7b/122376b1fd3c62c1ed9dc80c931ace4844b3c55407b6fb2d199377c9736f/pydantic-2.13.4-py3-none-any.whl", hash = "sha256:45a282cde31d808236fd7ea9d919b128653c8b38b393d1c4ab335c62924d9aba", size = 472262, upload-time = "2026-05-06T13:43:02.641Z" }, +] + +[package.optional-dependencies] +email = [ + { name = "email-validator" }, +] + +[[package]] +name = "pydantic-core" +version = "2.46.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9d/56/921726b776ace8d8f5db44c4ef961006580d91dc52b803c489fafd1aa249/pydantic_core-2.46.4.tar.gz", hash = "sha256:62f875393d7f270851f20523dd2e29f082bcc82292d66db2b64ea71f64b6e1c1", size = 471464, upload-time = "2026-05-06T13:37:06.98Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ce/8c/af022f0af448d7747c5154288d46b5f2bc5f17366eaa0e23e9aa04d59f3b/pydantic_core-2.46.4-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:3245406455a5d98187ec35530fd772b1d799b26667980872c8d4614991e2c4a2", size = 2106158, upload-time = "2026-05-06T13:38:57.215Z" }, + { url = "https://files.pythonhosted.org/packages/19/95/6195171e385007300f0f5574592e467c568becce2d937a0b6804f218bc49/pydantic_core-2.46.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:962ccbab7b642487b1d8b7df90ef677e03134cf1fd8880bf698649b22a69371f", size = 1951724, upload-time = "2026-05-06T13:37:02.697Z" }, + { url = "https://files.pythonhosted.org/packages/8e/bc/f47d1ff9cbb1620e1b5b697eef06010035735f07820180e74178226b27b3/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8233f2947cf85404441fd7e0085f53b10c93e0ee78611099b5c7237e36aacbf7", size = 1975742, upload-time = "2026-05-06T13:37:09.448Z" }, + { url = "https://files.pythonhosted.org/packages/5b/11/9b9a5b0306345664a2da6410877af6e8082481b5884b3ddd78d47c6013ce/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3a233125ac121aa3ffba9a2b59edfc4a985a76092dc8279586ab4b71390875e7", size = 2052418, upload-time = "2026-05-06T13:37:38.234Z" }, + { url = "https://files.pythonhosted.org/packages/f1/b7/a65fec226f5d78fc39f4a13c4cc0c768c22b113438f60c14adc9d2865038/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5b712b53160b79a5850310b912a5ef8e57e56947c8ad690c227f5c9d7e561712", size = 2232274, upload-time = "2026-05-06T13:38:27.753Z" }, + { url = "https://files.pythonhosted.org/packages/68/f0/92039db98b907ef49269a8271f67db9cb78ae2fc68062ef7e4e77adb5f61/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9401557acd873c3a7f3eb9383edef8ac4968f9510e340f4808d427e75667e7b4", size = 2309940, upload-time = "2026-05-06T13:38:05.353Z" }, + { url = "https://files.pythonhosted.org/packages/5f/97/2aab507d3d00ca626e8e57c1eac6a79e4e5fbcc63eb99733ff55d1717f65/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:926c9541b14b12b1681dca8a0b75feb510b06c6341b70a8e500c2fdcff837cce", size = 2094516, upload-time = "2026-05-06T13:39:10.577Z" }, + { url = "https://files.pythonhosted.org/packages/22/37/a8aca44d40d737dde2bc05b3c6c07dff0de07ce6f82e9f3167aeaf4d5dea/pydantic_core-2.46.4-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:56cb4851bcaf3d117eddcef4fe66afd750a50274b0da8e22be256d10e5611987", size = 2136854, upload-time = "2026-05-06T13:40:22.59Z" }, + { url = "https://files.pythonhosted.org/packages/24/99/fcef1b79238c06a8cbec70819ac722ba76e02bc8ada9b0fd66eba40da01b/pydantic_core-2.46.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c68fcd102d71ea85c5b2dfac3f4f8476eff42a9e078fd5faefff6d145063536b", size = 2180306, upload-time = "2026-05-06T13:40:10.666Z" }, + { url = "https://files.pythonhosted.org/packages/ae/6c/fc44000918855b42779d007ae63b0532794739027b2f417321cddbc44f6a/pydantic_core-2.46.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:b2f69dec1725e79a012d920df1707de5caf7ed5e08f3be4435e25803efc47458", size = 2190044, upload-time = "2026-05-06T13:40:43.231Z" }, + { url = "https://files.pythonhosted.org/packages/6b/65/d9cadc9f1920d7a127ad2edba16c1db7916e59719285cd6c94600b0080ba/pydantic_core-2.46.4-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:8d0820e8192167f80d88d64038e609c31452eeca865b4e1d9950a27a4609b00b", size = 2329133, upload-time = "2026-05-06T13:39:57.365Z" }, + { url = "https://files.pythonhosted.org/packages/d0/cf/c873d91679f3a30bcf5e7ac280ce5573483e72295307685120d0d5ad3416/pydantic_core-2.46.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:fbdb89b3e1c94a30cc5edfce477c6e6a5dc4d8f84665b455c27582f211a1c72c", size = 2374464, upload-time = "2026-05-06T13:38:06.976Z" }, + { url = "https://files.pythonhosted.org/packages/47/bd/6f2fc8188f31bf10590f1e98e7b306336161fac930a8c514cd7bd828c7dc/pydantic_core-2.46.4-cp312-cp312-win32.whl", hash = "sha256:9aa768456404a8bf48a4406685ac2bec8e72b62c69313734fa3b73cf33b3a894", size = 1974823, upload-time = "2026-05-06T13:40:47.985Z" }, + { url = "https://files.pythonhosted.org/packages/40/8c/985c1d41ea1107c2534abd9870e4ed5c8e7669b5c308297835c001e7a1c4/pydantic_core-2.46.4-cp312-cp312-win_amd64.whl", hash = "sha256:e9c26f834c65f5752f3f06cb08cb86a913ceb7274d0db6e267808a708b46bc89", size = 2072919, upload-time = "2026-05-06T13:39:21.153Z" }, + { url = "https://files.pythonhosted.org/packages/c4/ba/f463d006e0c47373ca7ec5e1a261c59dc01ef4d62b2657af925fb0deee3a/pydantic_core-2.46.4-cp312-cp312-win_arm64.whl", hash = "sha256:4fc73cb559bdb54b1134a706a2802a4cddd27a0633f5abb7e53056268751ac6a", size = 2027604, upload-time = "2026-05-06T13:39:03.753Z" }, + { url = "https://files.pythonhosted.org/packages/51/a2/5d30b469c5267a17b39dec53208222f76a8d351dfac4af661888c5aee77d/pydantic_core-2.46.4-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:5d5902252db0d3cedf8d4a1bc68f70eeb430f7e4c7104c8c476753519b423008", size = 2106306, upload-time = "2026-05-06T13:37:48.029Z" }, + { url = "https://files.pythonhosted.org/packages/c1/81/4fa520eaffa8bd7d1525e644cd6d39e7d60b1592bc5b516693c7340b50f1/pydantic_core-2.46.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c94f0688e7b8d0a67abf40e57a7eaaecd17cc9586706a31b76c031f63df052b4", size = 1951906, upload-time = "2026-05-06T13:37:17.012Z" }, + { url = "https://files.pythonhosted.org/packages/03/d5/fd02da45b659668b05923b17ba3a0100a0a3d5541e3bd8fcc4ecb711309e/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f027324c56cd5406ca49c124b0db10e56c69064fec039acc571c29020cc87c76", size = 1976802, upload-time = "2026-05-06T13:37:35.113Z" }, + { url = "https://files.pythonhosted.org/packages/21/f2/95727e1368be3d3ed485eaab7adbd7dda408f33f7a36e8b48e0144002b91/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e739fee756ba1010f8bcccb534252e85a35fe45ae92c295a06059ce58b74ccd3", size = 2052446, upload-time = "2026-05-06T13:37:12.313Z" }, + { url = "https://files.pythonhosted.org/packages/9c/86/5d99feea3f77c7234b8718075b23db11532773c1a0dbd9b9490215dc2eeb/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9d56801be94b86a9da183e5f3766e6310752b99ff647e38b09a9500d88e46e76", size = 2232757, upload-time = "2026-05-06T13:39:01.149Z" }, + { url = "https://files.pythonhosted.org/packages/d2/3a/508ac615935ef7588cf6d9e9b91309fdc2da751af865e02a9098de88258c/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2412e734dcb48da14d4e4006b82b46b74f2518b8a26ee7e58c6844a6cd6d03c4", size = 2309275, upload-time = "2026-05-06T13:37:41.406Z" }, + { url = "https://files.pythonhosted.org/packages/07/f8/41db9de19d7987d6b04715a02b3b40aea467000275d9d758ffaa31af7d50/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9551187363ffc0de2a00b2e47c25aeaeb1020b69b668762966df15fc5659dd5a", size = 2094467, upload-time = "2026-05-06T13:39:18.847Z" }, + { url = "https://files.pythonhosted.org/packages/2c/e2/f35033184cb11d0052daf4416e8e10a502ea2ac006fc4f459aee872727d1/pydantic_core-2.46.4-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:0186750b482eefa11d7f435892b09c5c606193ef3375bcf94aa00ae6bfb66262", size = 2134417, upload-time = "2026-05-06T13:40:17.944Z" }, + { url = "https://files.pythonhosted.org/packages/7e/7b/6ceeb1cc90e193862f444ebe373d8fdf613f0a82572dde03fb10734c6c71/pydantic_core-2.46.4-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5855698a4856556d86e8e6cd8434bc3ac0314ee8e12089ae0e143f64c6256e4e", size = 2179782, upload-time = "2026-05-06T13:40:32.618Z" }, + { url = "https://files.pythonhosted.org/packages/5a/f2/c8d7773ede6af08036423a00ae0ceffce266c3c52a096c435d68c896083f/pydantic_core-2.46.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:cbaf13819775b7f769bf4a1f066cb6df7a28d4480081a589828ef190226881cd", size = 2188782, upload-time = "2026-05-06T13:36:51.018Z" }, + { url = "https://files.pythonhosted.org/packages/59/31/0c864784e31f09f05cdd87606f08923b9c9e7f6e51dd27f20f62f975ce9f/pydantic_core-2.46.4-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:633147d34cf4550417f12e2b1a0383973bdf5cdfde212cb09e9a581cf10820be", size = 2328334, upload-time = "2026-05-06T13:40:37.764Z" }, + { url = "https://files.pythonhosted.org/packages/c2/eb/4f6c8a41efa30baa755590f4141abf3a8c370fab610915733e74134a7270/pydantic_core-2.46.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:82cf5301172168103724d49a1444d3378cb20cdee30b116a1bd6031236298a5d", size = 2372986, upload-time = "2026-05-06T13:39:34.152Z" }, + { url = "https://files.pythonhosted.org/packages/5b/24/b375a480d53113860c299764bfe9f349a3dc9108b3adc0d7f0d786492ebf/pydantic_core-2.46.4-cp313-cp313-win32.whl", hash = "sha256:9fa8ae11da9e2b3126c6426f147e0fba88d96d65921799bb30c6abd1cb2c97fb", size = 1973693, upload-time = "2026-05-06T13:37:55.072Z" }, + { url = "https://files.pythonhosted.org/packages/7e/e8/cff247591966f2d22ec8c003cd7587e27b7ba7b81ab2fb888e3ab75dc285/pydantic_core-2.46.4-cp313-cp313-win_amd64.whl", hash = "sha256:6b3ace8194b0e5204818c92802dcdca7fc6d88aabbb799d7c795540d9cd6d292", size = 2071819, upload-time = "2026-05-06T13:38:49.139Z" }, + { url = "https://files.pythonhosted.org/packages/c6/1a/f4aee670d5670e9e148e0c82c7db98d780be566c6e6a97ee8035528ca0b3/pydantic_core-2.46.4-cp313-cp313-win_arm64.whl", hash = "sha256:184c081504d17f1c1066e430e117142b2c77d9448a97f7b65c6ac9fd9aee238d", size = 2027411, upload-time = "2026-05-06T13:40:45.796Z" }, + { url = "https://files.pythonhosted.org/packages/8d/74/228a26ddad29c6672b805d9fd78e8d251cd04004fa7eed0e622096cd0250/pydantic_core-2.46.4-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:428e04521a40150c85216fc8b85e8d39fece235a9cf5e383761238c7fa9b96fb", size = 2102079, upload-time = "2026-05-06T13:38:41.019Z" }, + { url = "https://files.pythonhosted.org/packages/ad/1f/8970b150a4b4365623ae00fc88603491f763c627311ae8031e3111356d6e/pydantic_core-2.46.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:23ace664830ee0bfe014a0c7bc248b1f7f25ed7ad103852c317624a1083af462", size = 1952179, upload-time = "2026-05-06T13:36:59.812Z" }, + { url = "https://files.pythonhosted.org/packages/95/30/5211a831ae054928054b2f79731661087a2bc5c01e825c672b3a4a8f1b3e/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ce5c1d2a8b27468f433ca974829c44060b8097eedc39933e3c206a90ee49c4a9", size = 1978926, upload-time = "2026-05-06T13:37:39.933Z" }, + { url = "https://files.pythonhosted.org/packages/57/e9/689668733b1eb67adeef047db3c2e8788fcf65a7fd9c9e2b46b7744fe245/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:7283d57845ecf5a163403eb0702dfc220cc4fbdd18919cb5ccea4f95ee1cdab4", size = 2046785, upload-time = "2026-05-06T13:38:01.995Z" }, + { url = "https://files.pythonhosted.org/packages/60/d9/6715260422ff50a2109878fd24d948a6c3446bb2664f34ee78cd972b3acd/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8daafc69c93ee8a0204506a3b6b30f586ef54028f52aeeeb5c4cfc5184fd5914", size = 2228733, upload-time = "2026-05-06T13:40:50.371Z" }, + { url = "https://files.pythonhosted.org/packages/18/ae/fdb2f64316afca925640f8e70bb1a564b0ec2721c1389e25b8eb4bf9a299/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cd2213145bcc2ba85884d0ac63d222fece9209678f77b9b4d76f054c561adb28", size = 2307534, upload-time = "2026-05-06T13:37:21.531Z" }, + { url = "https://files.pythonhosted.org/packages/89/1d/8eff589b45bb8190a9d12c49cfad0f176a5cbd1534908a6b5125e2886239/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7a5f930472650a82629163023e630d160863fce524c616f4e5186e5de9d9a49b", size = 2099732, upload-time = "2026-05-06T13:39:31.942Z" }, + { url = "https://files.pythonhosted.org/packages/06/d5/ee5a3366637fee41dee51a1fc91562dcf12ddbc68fda34e6b253da2324bb/pydantic_core-2.46.4-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:c1b3f518abeca3aa13c712fd202306e145abf59a18b094a6bafb2d2bbf59192c", size = 2129627, upload-time = "2026-05-06T13:37:25.033Z" }, + { url = "https://files.pythonhosted.org/packages/94/33/2414be571d2c6a6c4d08be21f9292b6d3fdb08949a97b6dfe985017821db/pydantic_core-2.46.4-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1a7dd0b3ee80d90150e3495a3a13ac34dbcbfd4f012996a6a1d8900e91b5c0fb", size = 2179141, upload-time = "2026-05-06T13:37:14.046Z" }, + { url = "https://files.pythonhosted.org/packages/7b/79/7daa95be995be0eecc4cf75064cb33f9bbbfe3fe0158caf2f0d4a996a5c7/pydantic_core-2.46.4-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:3fb702cd90b0446a3a1c5e470bfa0dd23c0233b676a9099ddcc964fa6ca13898", size = 2184325, upload-time = "2026-05-06T13:36:53.615Z" }, + { url = "https://files.pythonhosted.org/packages/9f/cb/d0a382f5c0de8a222dc61c65348e0ce831b1f68e0a018450d31c2cace3a5/pydantic_core-2.46.4-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:b8458003118a712e66286df6a707db01c52c0f52f7db8e4a38f0da1d3b94fc4e", size = 2323990, upload-time = "2026-05-06T13:40:29.971Z" }, + { url = "https://files.pythonhosted.org/packages/05/db/d9ba624cc4a5aced1598e88c04fdbd8310c8a69b9d38b9a3d39ce3a61ed7/pydantic_core-2.46.4-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:372429a130e469c9cd698925ce5fc50940b7a1336b0d82038e63d5bbc4edc519", size = 2369978, upload-time = "2026-05-06T13:37:23.027Z" }, + { url = "https://files.pythonhosted.org/packages/f2/20/d15df15ba918c423461905802bfd2981c3af0bfa0e40d05e13edbfa48bc3/pydantic_core-2.46.4-cp314-cp314-win32.whl", hash = "sha256:85bb3611ff1802f3ee7fdd7dbff26b56f343fb432d57a4728fdd49b6ef35e2f4", size = 1966354, upload-time = "2026-05-06T13:38:03.499Z" }, + { url = "https://files.pythonhosted.org/packages/fc/b6/6b8de4c0a7d7ab3004c439c80c5c1e0a3e8d78bbae19379b01960383d9e5/pydantic_core-2.46.4-cp314-cp314-win_amd64.whl", hash = "sha256:811ff8e9c313ab425368bcbb36e5c4ebd7108c2bbf4e4089cfbb0b01eff63fac", size = 2072238, upload-time = "2026-05-06T13:39:40.807Z" }, + { url = "https://files.pythonhosted.org/packages/32/36/51eb763beec1f4cf59b1db243a7dcc39cbb41230f050a09b9d69faaf0a48/pydantic_core-2.46.4-cp314-cp314-win_arm64.whl", hash = "sha256:bfec22eab3c8cc2ceec0248aec886624116dc079afa027ecc8ad4a7e62010f8a", size = 2018251, upload-time = "2026-05-06T13:37:26.72Z" }, + { url = "https://files.pythonhosted.org/packages/e8/91/855af51d625b23aa987116a19e231d2aaef9c4a415273ddc189b79a45fee/pydantic_core-2.46.4-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:af8244b2bef6aaad6d92cda81372de7f8c8d36c9f0c3ea36e827c60e7d9467a0", size = 2099593, upload-time = "2026-05-06T13:39:47.682Z" }, + { url = "https://files.pythonhosted.org/packages/fb/1b/8784a54c65edb5f49f0a14d6977cf1b209bba85a4c77445b255c2de58ab3/pydantic_core-2.46.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:5a4330cdbc57162e4b3aa303f588ba752257694c9c9be3e7ebb11b4aca659b5d", size = 1935226, upload-time = "2026-05-06T13:40:40.428Z" }, + { url = "https://files.pythonhosted.org/packages/e8/e7/1955d28d1afc56dd4b3ad7cc0cf39df1b9852964cf16e5d13912756d6d6b/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c61fc04a3d840155ff08e475a04809278972fe6aef51e2720554e96367e34b", size = 1974605, upload-time = "2026-05-06T13:37:32.029Z" }, + { url = "https://files.pythonhosted.org/packages/93/e2/3fedbf0ba7a22850e6e9fd78117f1c0f10f950182344d8a6c535d468fdd8/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c50f2528cf200c5eed56faf3f4e22fcd5f38c157a8b78576e6ba3168ec35f000", size = 2030777, upload-time = "2026-05-06T13:38:55.239Z" }, + { url = "https://files.pythonhosted.org/packages/f8/61/46be275fcaaba0b4f5b9669dd852267ce1ff616592dccf7a7845588df091/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0cbe8b01f948de4286c74cdd6c667aceb38f5c1e26f0693b3983d9d74887c65e", size = 2236641, upload-time = "2026-05-06T13:37:08.096Z" }, + { url = "https://files.pythonhosted.org/packages/60/db/12e93e46a8bac9988be3c016860f83293daea8c716c029c9ace279036f2f/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:617d7e2ca7dcb8c5cf6bcb8c59b8832c94b36196bbf1cbd1bfb56ed341905edd", size = 2286404, upload-time = "2026-05-06T13:40:20.221Z" }, + { url = "https://files.pythonhosted.org/packages/e2/4a/4d8b19008f38d31c53b8219cfedc2e3d5de5fe99d90076b7e767de29274f/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7027560ee92211647d0d34e3f7cd6f50da56399d26a9c8ad0da286d3869a53f3", size = 2109219, upload-time = "2026-05-06T13:38:12.153Z" }, + { url = "https://files.pythonhosted.org/packages/88/70/3cbc40978fefb7bb09c6708d40d4ad1a5d70fd7213c3d17f971de868ec1f/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:f99626688942fb746e545232e7726926f3be91b5975f8b55327665fafda991c7", size = 2110594, upload-time = "2026-05-06T13:40:02.971Z" }, + { url = "https://files.pythonhosted.org/packages/9d/20/b8d36736216e29491125531685b2f9e61aa5b4b2599893f8268551da3338/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fc3e9034a63de20e15e8ade85358bc6efc614008cab72898b4b4952bea0509ff", size = 2159542, upload-time = "2026-05-06T13:39:27.506Z" }, + { url = "https://files.pythonhosted.org/packages/1d/a2/367df868eb584dacf6bf82a389272406d7178e301c4ac82545ab98bc2dd9/pydantic_core-2.46.4-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:97e7cf2be5c77b7d1a9713a05605d49460d02c6078d38d8bef3cbe323c548424", size = 2168146, upload-time = "2026-05-06T13:38:31.93Z" }, + { url = "https://files.pythonhosted.org/packages/c1/b8/4460f77f7e201893f649a29ab355dddd3beee8a97bcb1a320db414f9a06e/pydantic_core-2.46.4-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:3bf92c5d0e00fefaab325a4d27828fe6b6e2a21848686b5b60d2d9eeb09d76c6", size = 2306309, upload-time = "2026-05-06T13:37:44.717Z" }, + { url = "https://files.pythonhosted.org/packages/64/c4/be2639293acd87dc8ddbcec41a73cee9b2ebf996fe6d892a1a74e88ad3f7/pydantic_core-2.46.4-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:3ecbc122d18468d06ca279dc26a8c2e2d5acb10943bb35e36ae92096dc3b5565", size = 2369736, upload-time = "2026-05-06T13:37:05.645Z" }, + { url = "https://files.pythonhosted.org/packages/30/a6/9f9f380dbb301f67023bf8f707aaa75daadf84f7152d95c410fd7e81d994/pydantic_core-2.46.4-cp314-cp314t-win32.whl", hash = "sha256:e846ae7835bf0703ae43f534ab79a867146dadd59dc9ca5c8b53d5c8f7c9ef02", size = 1955575, upload-time = "2026-05-06T13:38:51.116Z" }, + { url = "https://files.pythonhosted.org/packages/40/1f/f1eb9eb350e795d1af8586289746f5c5677d16043040d63710e22abc43c9/pydantic_core-2.46.4-cp314-cp314t-win_amd64.whl", hash = "sha256:2108ba5c1c1eca18030634489dc544844144ee36357f2f9f780b93e7ddbb44b5", size = 2051624, upload-time = "2026-05-06T13:38:21.672Z" }, + { url = "https://files.pythonhosted.org/packages/f6/d2/42dd53d0a85c27606f316d3aa5d2869c4e8470a5ed6dec30e4a1abe19192/pydantic_core-2.46.4-cp314-cp314t-win_arm64.whl", hash = "sha256:4fcbe087dbc2068af7eda3aa87634eba216dbda64d1ae73c8684b621d33f6596", size = 2017325, upload-time = "2026-05-06T13:40:52.723Z" }, + { url = "https://files.pythonhosted.org/packages/9d/1d/8987ad40f65ae1432753072f214fb5c74fe47ffbd0698bb9cbbb585664f8/pydantic_core-2.46.4-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:1d8ba486450b14f3b1d63bc521d410ec7565e52f887b9fb671791886436a42f7", size = 2095527, upload-time = "2026-05-06T13:39:52.283Z" }, + { url = "https://files.pythonhosted.org/packages/64/d3/84c282a7eee1d3ac4c0377546ef5a1ea436ce26840d9ac3b7ed54a377507/pydantic_core-2.46.4-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:3009f12e4e90b7f88b4f9adb1b0c4a3d58fe7820f3238c190047209d148026df", size = 1936024, upload-time = "2026-05-06T13:40:15.671Z" }, + { url = "https://files.pythonhosted.org/packages/d7/ca/eac61596cdeb4d7e174d3dc0bd8a6238f14f75f97a24e7b7db4c7e7340a0/pydantic_core-2.46.4-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad785e92e6dc634c21555edc8bd6b64957ab844541bcb96a1366c202951ae526", size = 1990696, upload-time = "2026-05-06T13:38:34.717Z" }, + { url = "https://files.pythonhosted.org/packages/fa/c3/7c8b240552251faf6b3a957db200fcfbbcec36763c050428b601e0c9b83b/pydantic_core-2.46.4-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:00c603d540afdd6b80eb39f078f33ebd46211f02f33e34a32d9f053bba711de0", size = 2147590, upload-time = "2026-05-06T13:39:29.883Z" }, +] + +[[package]] +name = "pydantic-settings" +version = "2.14.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pydantic" }, + { name = "python-dotenv" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/07/60/1d1e59c9c90d54591469ada7d268251f71c24bdb765f1a8a832cee8c6653/pydantic_settings-2.14.1.tar.gz", hash = "sha256:e874d3bec7e787b0c9958277956ed9b4dd5de6a80e162188fdaff7c5e26fd5fa", size = 235551, upload-time = "2026-05-08T13:40:06.542Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ae/8d/f1af3832f5e6eb13ba94ee809e72b8ecb5eef226d27ee0bef7d963d943c7/pydantic_settings-2.14.1-py3-none-any.whl", hash = "sha256:6e3c7edfd8277687cdc598f56e5cff0e9bfff0910a3749deaa8d4401c3a2b9de", size = 60964, upload-time = "2026-05-08T13:40:04.958Z" }, +] + +[[package]] +name = "pygments" +version = "2.20.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/c3/b2/bc9c9196916376152d655522fdcebac55e66de6603a76a02bca1b6414f6c/pygments-2.20.0.tar.gz", hash = "sha256:6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f", size = 4955991, upload-time = "2026-03-29T13:29:33.898Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", hash = "sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", size = 1231151, upload-time = "2026-03-29T13:29:30.038Z" }, +] + +[[package]] +name = "pyjwt" +version = "2.13.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/3b/81/58d0ac84e1ef3a3843791d6954d94c0b33d526c75eeb1efbce9d0a4c4077/pyjwt-2.13.0.tar.gz", hash = "sha256:41571c89ca91598c79e8ef18a2d07367d4810fbbd6f637794879baf1b7703423", size = 107515, upload-time = "2026-05-21T19:54:36.618Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a3/5e/ecf12fdb62546d64385c158514e9b2b671f7832108ef2ecd2020ce0af2d1/pyjwt-2.13.0-py3-none-any.whl", hash = "sha256:66adcc2aff09b3f1bbd95fc1e1577df8ac8723c978552fd43304c8a290ac5728", size = 31274, upload-time = "2026-05-21T19:54:35.362Z" }, +] + +[package.optional-dependencies] +crypto = [ + { name = "cryptography" }, +] + +[[package]] +name = "pyperclip" +version = "1.11.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e8/52/d87eba7cb129b81563019d1679026e7a112ef76855d6159d24754dbd2a51/pyperclip-1.11.0.tar.gz", hash = "sha256:244035963e4428530d9e3a6101a1ef97209c6825edab1567beac148ccc1db1b6", size = 12185, upload-time = "2025-09-26T14:40:37.245Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/df/80/fc9d01d5ed37ba4c42ca2b55b4339ae6e200b456be3a1aaddf4a9fa99b8c/pyperclip-1.11.0-py3-none-any.whl", hash = "sha256:299403e9ff44581cb9ba2ffeed69c7aa96a008622ad0c46cb575ca75b5b84273", size = 11063, upload-time = "2025-09-26T14:40:36.069Z" }, +] + +[[package]] +name = "pytest" +version = "9.0.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "iniconfig" }, + { name = "packaging" }, + { name = "pluggy" }, + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/7d/0d/549bd94f1a0a402dc8cf64563a117c0f3765662e2e668477624baeec44d5/pytest-9.0.3.tar.gz", hash = "sha256:b86ada508af81d19edeb213c681b1d48246c1a91d304c6c81a427674c17eb91c", size = 1572165, upload-time = "2026-04-07T17:16:18.027Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d4/24/a372aaf5c9b7208e7112038812994107bc65a84cd00e0354a88c2c77a617/pytest-9.0.3-py3-none-any.whl", hash = "sha256:2c5efc453d45394fdd706ade797c0a81091eccd1d6e4bccfcd476e2b8e0ab5d9", size = 375249, upload-time = "2026-04-07T17:16:16.13Z" }, +] + +[[package]] +name = "pytest-asyncio" +version = "1.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pytest" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/43/7c/d36d04db312ecf4298932ef77e6e4a9e8ad017906e24e34f0b0c361a2473/pytest_asyncio-1.4.0.tar.gz", hash = "sha256:c6c0d2259945122819f171a32ecea2c349ead889ee28176caaf492143424be42", size = 58514, upload-time = "2026-05-26T09:56:04.083Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/03/e2/08a497ef684b88559c9cc5f4ad53a37e7b99e727094a86d6ea32536d5d3c/pytest_asyncio-1.4.0-py3-none-any.whl", hash = "sha256:933ca923a23075a87fb7070c0ec272a6848489824d887c85c812670932835aa1", size = 16930, upload-time = "2026-05-26T09:56:02.576Z" }, +] + +[[package]] +name = "python-dotenv" +version = "1.2.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/82/ed/0301aeeac3e5353ef3d94b6ec08bbcabd04a72018415dcb29e588514bba8/python_dotenv-1.2.2.tar.gz", hash = "sha256:2c371a91fbd7ba082c2c1dc1f8bf89ca22564a087c2c287cd9b662adde799cf3", size = 50135, upload-time = "2026-03-01T16:00:26.196Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0b/d7/1959b9648791274998a9c3526f6d0ec8fd2233e4d4acce81bbae76b44b2a/python_dotenv-1.2.2-py3-none-any.whl", hash = "sha256:1d8214789a24de455a8b8bd8ae6fe3c6b69a5e3d64aa8a8e5d68e694bbcb285a", size = 22101, upload-time = "2026-03-01T16:00:25.09Z" }, +] + +[[package]] +name = "python-multipart" +version = "0.0.32" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5b/42/55c32bb9b12693c092ad250a0e82edb5b31ddeda6eb772de5f308b3804ad/python_multipart-0.0.32.tar.gz", hash = "sha256:be54b7f3fa167bb83e4fcd936b887b708f4e57fe75911c02aebf53efaf8d938e", size = 46881, upload-time = "2026-06-04T16:18:58.647Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e1/04/e8135ebd1ad02c56ec633277529b2602ff99ff634be76cdba5744cf554fd/python_multipart-0.0.32-py3-none-any.whl", hash = "sha256:ff6d3f776f16878c894e52e107296ffc890e913c611b1a4ec6c44e2821fe2e23", size = 30042, upload-time = "2026-06-04T16:18:57.319Z" }, +] + +[[package]] +name = "pywin32" +version = "312" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/83/ff/32aa7d2ed0ab12b323aaa64f9b75e6ad4f8fd09f9ccfc28c79414d46838d/pywin32-312-cp312-cp312-win32.whl", hash = "sha256:dab4f65ac9c4e48400a2a0530c46c3c579cd5905ecd11b80692373915269208b", size = 6371877, upload-time = "2026-06-04T07:49:28.836Z" }, + { url = "https://files.pythonhosted.org/packages/03/d9/77040d3b43df3f3be32ea289433d660d2727f5ba327bc73be835127d9d60/pywin32-312-cp312-cp312-win_amd64.whl", hash = "sha256:b457f6d628a47e8a7346ce22acb7e1a46a4a78b52e1d17e1af56871bd19a93bc", size = 6914841, upload-time = "2026-06-04T07:49:31.85Z" }, + { url = "https://files.pythonhosted.org/packages/e3/cc/7b1ec671775756020a0ee7f4feeaf3c568f0ab86bd3900088cf986937a92/pywin32-312-cp312-cp312-win_arm64.whl", hash = "sha256:6017c58e12f6809fbb0555b75df144c2922a9ffd18e4b9b5afa863b6c1a9d950", size = 6727901, upload-time = "2026-06-04T07:49:34.244Z" }, + { url = "https://files.pythonhosted.org/packages/2d/41/12fbfd7f36ed2146d8bc9de96c2741296bf0d490b98508496cff322e274c/pywin32-312-cp313-cp313-win32.whl", hash = "sha256:7a27df850933d16a8eabfbaeb73d52b273e2da667f80d70b01a89d1f6828d02c", size = 6370184, upload-time = "2026-06-04T07:49:36.253Z" }, + { url = "https://files.pythonhosted.org/packages/ba/db/36a78e3403099d31d9746d13fdcde5accc43c1155f375a34d15983a479a7/pywin32-312-cp313-cp313-win_amd64.whl", hash = "sha256:c53e878d15a1c44788082bfe712a905433473aa38f86375b7cf8b45e3acbaaf9", size = 6914298, upload-time = "2026-06-04T07:49:38.876Z" }, + { url = "https://files.pythonhosted.org/packages/84/37/c1697194092b76de9ed47ca124323f02c57ffc8a45c06f88a3d5acaf01eb/pywin32-312-cp313-cp313-win_arm64.whl", hash = "sha256:59aba5d5940842075343a5ddc6b11f1cdf0d1567fe745290359dfbcc7c2eb831", size = 6727640, upload-time = "2026-06-04T07:49:41.083Z" }, + { url = "https://files.pythonhosted.org/packages/fc/2b/1f3cded5822fd49c02f40544cbb5f58c7cfd6b1694869fd476cb6170ee97/pywin32-312-cp314-cp314-win32.whl", hash = "sha256:a77a90fbb6881238d2ca9c6fd797b25817f3768fe78d214a90137ff055a75f5b", size = 6468928, upload-time = "2026-06-04T07:49:43.188Z" }, + { url = "https://files.pythonhosted.org/packages/21/82/3bf86d2e2808902013132e1ce905a7da0da53790f3836c64bf44d55e24f3/pywin32-312-cp314-cp314-win_amd64.whl", hash = "sha256:a4dd3a848290ef724347b19f301045831d8e802fa4464f491b98b1e0a081432e", size = 7024157, upload-time = "2026-06-04T07:49:45.34Z" }, + { url = "https://files.pythonhosted.org/packages/a4/0e/73f6d6800b4f27655abd9e9f6aaeaefcddb2b946e4674efa2bab184a7f7b/pywin32-312-cp314-cp314-win_arm64.whl", hash = "sha256:9fce94568364e0155e6dfb781ac5d95903be8baf28670632beab1b523f300daa", size = 6839598, upload-time = "2026-06-04T07:49:47.613Z" }, + { url = "https://files.pythonhosted.org/packages/eb/61/caa39686032d2ebdd04ff0ab5cbe163126c0066d98e00c9018646e42393b/pywin32-312-cp315-cp315-win32.whl", hash = "sha256:5c1fbe4a937a73ae9297384a3da38518cbc694c68ad8a809b2e19acd350f03ed", size = 6471159, upload-time = "2026-06-04T07:49:50.035Z" }, + { url = "https://files.pythonhosted.org/packages/0f/cd/7e1de64a4a6f69c04214169657ccab0d93a670ea50e35eb8f489d7378249/pywin32-312-cp315-cp315-win_amd64.whl", hash = "sha256:c2f03a0f73f804a13c2735b99392b0cd426bb4f2c4d0178e5ac966a0f21618d5", size = 7025293, upload-time = "2026-06-04T07:49:54.857Z" }, + { url = "https://files.pythonhosted.org/packages/23/ed/4532e9388e65fa16b46776ef47ad631a64eda1631884488af707666350ed/pywin32-312-cp315-cp315-win_arm64.whl", hash = "sha256:a8597d28f267b39074aef51fa593530082b39cbe5a074226096857b1fed2dfb9", size = 6840337, upload-time = "2026-06-04T07:49:57.531Z" }, +] + +[[package]] +name = "pywin32-ctypes" +version = "0.2.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/85/9f/01a1a99704853cb63f253eea009390c88e7131c67e66a0a02099a8c917cb/pywin32-ctypes-0.2.3.tar.gz", hash = "sha256:d162dc04946d704503b2edc4d55f3dba5c1d539ead017afa00142c38b9885755", size = 29471, upload-time = "2024-08-14T10:15:34.626Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/de/3d/8161f7711c017e01ac9f008dfddd9410dff3674334c233bde66e7ba65bbf/pywin32_ctypes-0.2.3-py3-none-any.whl", hash = "sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8", size = 30756, upload-time = "2024-08-14T10:15:33.187Z" }, +] + +[[package]] +name = "pyyaml" +version = "6.0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/33/422b98d2195232ca1826284a76852ad5a86fe23e31b009c9886b2d0fb8b2/pyyaml-6.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196", size = 182063, upload-time = "2025-09-25T21:32:11.445Z" }, + { url = "https://files.pythonhosted.org/packages/89/a0/6cf41a19a1f2f3feab0e9c0b74134aa2ce6849093d5517a0c550fe37a648/pyyaml-6.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0", size = 173973, upload-time = "2025-09-25T21:32:12.492Z" }, + { url = "https://files.pythonhosted.org/packages/ed/23/7a778b6bd0b9a8039df8b1b1d80e2e2ad78aa04171592c8a5c43a56a6af4/pyyaml-6.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28", size = 775116, upload-time = "2025-09-25T21:32:13.652Z" }, + { url = "https://files.pythonhosted.org/packages/65/30/d7353c338e12baef4ecc1b09e877c1970bd3382789c159b4f89d6a70dc09/pyyaml-6.0.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c", size = 844011, upload-time = "2025-09-25T21:32:15.21Z" }, + { url = "https://files.pythonhosted.org/packages/8b/9d/b3589d3877982d4f2329302ef98a8026e7f4443c765c46cfecc8858c6b4b/pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc", size = 807870, upload-time = "2025-09-25T21:32:16.431Z" }, + { url = "https://files.pythonhosted.org/packages/05/c0/b3be26a015601b822b97d9149ff8cb5ead58c66f981e04fedf4e762f4bd4/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e", size = 761089, upload-time = "2025-09-25T21:32:17.56Z" }, + { url = "https://files.pythonhosted.org/packages/be/8e/98435a21d1d4b46590d5459a22d88128103f8da4c2d4cb8f14f2a96504e1/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea", size = 790181, upload-time = "2025-09-25T21:32:18.834Z" }, + { url = "https://files.pythonhosted.org/packages/74/93/7baea19427dcfbe1e5a372d81473250b379f04b1bd3c4c5ff825e2327202/pyyaml-6.0.3-cp312-cp312-win32.whl", hash = "sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5", size = 137658, upload-time = "2025-09-25T21:32:20.209Z" }, + { url = "https://files.pythonhosted.org/packages/86/bf/899e81e4cce32febab4fb42bb97dcdf66bc135272882d1987881a4b519e9/pyyaml-6.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b", size = 154003, upload-time = "2025-09-25T21:32:21.167Z" }, + { url = "https://files.pythonhosted.org/packages/1a/08/67bd04656199bbb51dbed1439b7f27601dfb576fb864099c7ef0c3e55531/pyyaml-6.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd", size = 140344, upload-time = "2025-09-25T21:32:22.617Z" }, + { url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" }, + { url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" }, + { url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" }, + { url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" }, + { url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" }, + { url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" }, + { url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" }, + { url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" }, + { url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" }, + { url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" }, + { url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" }, + { url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" }, + { url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" }, + { url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" }, + { url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" }, + { url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" }, + { url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" }, + { url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" }, + { url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" }, + { url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" }, + { url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" }, + { url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" }, + { url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" }, + { url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" }, + { url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" }, + { url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" }, + { url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" }, + { url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" }, +] + +[[package]] +name = "referencing" +version = "0.37.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "rpds-py" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/22/f5/df4e9027acead3ecc63e50fe1e36aca1523e1719559c499951bb4b53188f/referencing-0.37.0.tar.gz", hash = "sha256:44aefc3142c5b842538163acb373e24cce6632bd54bdb01b21ad5863489f50d8", size = 78036, upload-time = "2025-10-13T15:30:48.871Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/58/ca301544e1fa93ed4f80d724bf5b194f6e4b945841c5bfd555878eea9fcb/referencing-0.37.0-py3-none-any.whl", hash = "sha256:381329a9f99628c9069361716891d34ad94af76e461dcb0335825aecc7692231", size = 26766, upload-time = "2025-10-13T15:30:47.625Z" }, +] + +[[package]] +name = "respx" +version = "0.23.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "httpx" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/43/98/4e55c9c486404ec12373708d015ebce157966965a5ebe7f28ff2c784d41b/respx-0.23.1.tar.gz", hash = "sha256:242dcc6ce6b5b9bf621f5870c82a63997e8e82bc7c947f9ffe272b8f3dd5a780", size = 29243, upload-time = "2026-04-08T14:37:16.008Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1d/4a/221da6ca167db45693d8d26c7dc79ccfc978a440251bf6721c9aaf251ac0/respx-0.23.1-py2.py3-none-any.whl", hash = "sha256:b18004b029935384bccfa6d7d9d74b4ec9af73a081cc28600fffc0447f4b8c1a", size = 25557, upload-time = "2026-04-08T14:37:14.613Z" }, +] + +[[package]] +name = "rich" +version = "15.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markdown-it-py" }, + { name = "pygments" }, +] +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/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", hash = "sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", size = 310654, upload-time = "2026-04-12T08:24:02.83Z" }, +] + +[[package]] +name = "rich-rst" +version = "2.0.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pygments" }, + { name = "rich" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/57/56/3191bae66b08ccc637ea8120426068bcb361cc323c96404c310886937067/rich_rst-2.0.1.tar.gz", hash = "sha256:cbe236ed0901d1ec8427cc6a50bf0a34353ba28ad014dc24def68bfe7f3b9e68", size = 300570, upload-time = "2026-05-16T00:47:57.362Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a0/3d/55c17d3ebdf3cd81356002afe5bef9bb8af631db2819785b6eac845b925b/rich_rst-2.0.1-py3-none-any.whl", hash = "sha256:7ee15f345ce25fa02b582c272a6cdbaf0c21243e38061cea273cff659bf3ef61", size = 272922, upload-time = "2026-05-16T00:47:55.508Z" }, +] + +[[package]] +name = "rpds-py" +version = "2026.5.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/2e/43/25a8dcd3feedd735039a8f0b5b7e3b118232b5eae288c4fd9ab200d41094/rpds_py-2026.5.1.tar.gz", hash = "sha256:07b24fea40541e28570e5b795a4a38fbdcd12550c06bd0748005ecc8116ca256", size = 64459, upload-time = "2026-05-28T12:02:13.232Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d4/e7/a78582dc57caa592dcc7d4fb69b61390561e908eb3d2f5df5928a8e354c0/rpds_py-2026.5.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:3abe24a66e57adcfa645d718063a5fa5103ecc71ddbf26d78af8f9368018ff1d", size = 353040, upload-time = "2026-05-28T11:59:12.531Z" }, + { url = "https://files.pythonhosted.org/packages/a3/43/35e3f136343aef451e545ce8c38d36c2f93c0ed88703db8b64ba2b205c68/rpds_py-2026.5.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:58b1d94308ddf0b1982f61f2eb54bf92997c9ece8a8093ef014250f4a517906c", size = 345775, upload-time = "2026-05-28T11:59:13.827Z" }, + { url = "https://files.pythonhosted.org/packages/20/e1/0f2160c5982d3157734d5cb3ed63d8b2d583a73c9864f77b666449f32cf8/rpds_py-2026.5.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0fa92420128dadce7f54bd73ba1825a273e9268fe9e35dbf7e6362890efa4e08", size = 376329, upload-time = "2026-05-28T11:59:15.271Z" }, + { url = "https://files.pythonhosted.org/packages/d0/11/ee0ba42aff83bf4effdbc576673c6be64c5e173978c3f6d537e94482f77d/rpds_py-2026.5.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ca653c6546386227cd9800d1bef6a348099acf8db4250341da6d90f663d6dfcb", size = 383539, upload-time = "2026-05-28T11:59:16.665Z" }, + { url = "https://files.pythonhosted.org/packages/11/df/d94aa6a499d4ac40afe2d7620f2c597fd3c0f182e854ad7cf3f596a81cb6/rpds_py-2026.5.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:66c93681c4729e4e3ecba31b8179fae083ff3118841672835140338b4b9867c1", size = 494674, upload-time = "2026-05-28T11:59:17.991Z" }, + { url = "https://files.pythonhosted.org/packages/1f/75/33d30f43bb2f458de11979486a591b1bf6e5651765ed1704c6197c2dc773/rpds_py-2026.5.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:40ff257542e04796880e011e15cd4dc21c2599975df2aaa8f2c8495ca574e1a5", size = 389268, upload-time = "2026-05-28T11:59:19.434Z" }, + { url = "https://files.pythonhosted.org/packages/f4/1e/2c9096fc19d5fd084b0184ca2b651e659aa0a37e6fdbecf6ece47f147fe1/rpds_py-2026.5.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b6825cc329b290e93c5f6a9be2393118a763f6ccf6abd83704e0c102ca583644", size = 376280, upload-time = "2026-05-28T11:59:21Z" }, + { url = "https://files.pythonhosted.org/packages/b9/e5/61ec9f8be8211ea7f48448195549e4aaf02004083475493b0e137702ecb2/rpds_py-2026.5.1-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:de42116e69cb53b911cc34aee5ab98f36c597b822545045d49e938818b99e5e4", size = 387233, upload-time = "2026-05-28T11:59:22.454Z" }, + { url = "https://files.pythonhosted.org/packages/0d/ca/bcec1005c4f4a234f92a29078631fee49206c7265ccae966f18fd332e80e/rpds_py-2026.5.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c0f920015df2a504bebaba6d4c31ccf3fcf942f92655c086da30b671aad19aa6", size = 405009, upload-time = "2026-05-28T11:59:23.845Z" }, + { url = "https://files.pythonhosted.org/packages/72/e6/4d5718c5cf26c522dc7c9999e238da1e77380b81d0c5d1df11e271ddfeb1/rpds_py-2026.5.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:0408a24e44feb919423dc6d9da677cb5cddb894d2ca9e763967d156d9c60fab4", size = 553113, upload-time = "2026-05-28T11:59:25.184Z" }, + { url = "https://files.pythonhosted.org/packages/d4/25/2ee807bdb3e1f0b7eddf7782acd5665a8b5205a331a7d7244a52c4812fd9/rpds_py-2026.5.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:cea68bcd53467561ae2f96a6bdad1544299ba97b5b0ddcd5ac3d376e5c781c24", size = 618838, upload-time = "2026-05-28T11:59:26.749Z" }, + { url = "https://files.pythonhosted.org/packages/6a/c1/7d4c26f167f8c41501cc073d30ee22082b16ce358cf5b00ec97cbc7804ea/rpds_py-2026.5.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:4be8b1d2a705cc37d08256004e1d07de143fa0075c8e85a3df020b776f62b732", size = 582436, upload-time = "2026-05-28T11:59:28.11Z" }, + { url = "https://files.pythonhosted.org/packages/04/1d/9d12b0a337bab46f4769f8857f4007e3b2d639e14f9a44a0efe157696e64/rpds_py-2026.5.1-cp312-cp312-win32.whl", hash = "sha256:6736718bd4fc49cbcb538ba30516fdbef161522acefb739657d48b97bd864fed", size = 212734, upload-time = "2026-05-28T11:59:29.689Z" }, + { url = "https://files.pythonhosted.org/packages/c5/93/e4116f2de7f56bc7406a76033dc501811ddeb22b7f056b92d632871ebb0c/rpds_py-2026.5.1-cp312-cp312-win_amd64.whl", hash = "sha256:0a7d1eec967df0e9b22614a5e177622e0c89611d03727fa0cb48e45028907870", size = 229045, upload-time = "2026-05-28T11:59:31.033Z" }, + { url = "https://files.pythonhosted.org/packages/cb/53/6c3419d85eb2ec5938a37627c585b42d76a63bb731d6e42ed4b079ebf486/rpds_py-2026.5.1-cp312-cp312-win_arm64.whl", hash = "sha256:1841d067089e117142d79b98aa0df2f08b52f2ecc1819dd2700636c0db74a473", size = 223967, upload-time = "2026-05-28T11:59:32.318Z" }, + { url = "https://files.pythonhosted.org/packages/6c/32/14c961ad295f490eb0849ada8b79683e93a59b9de3afdd983eaf55fa6867/rpds_py-2026.5.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:efef4ac29c6ff495531eb17ee705b62841ecaa291b7c7077e848ea03e237164d", size = 352787, upload-time = "2026-05-28T11:59:33.655Z" }, + { url = "https://files.pythonhosted.org/packages/ca/bb/d1b85117967c11191441a7274ae616c65d93901d082c588f89a50a8da5ae/rpds_py-2026.5.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c39f5b67a8a2e67179ada2a954227d670fe65fa9098457f698f56ddf248709b3", size = 345179, upload-time = "2026-05-28T11:59:35Z" }, + { url = "https://files.pythonhosted.org/packages/7c/46/d84105f062e626a1b233f863907288a4708c2d833b8b4c6fb2764bc080c0/rpds_py-2026.5.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b5c30f3f04eef4fbd362226a6f31d7c8895ca4fbb6e0b790f6890a98d8da8559", size = 376173, upload-time = "2026-05-28T11:59:36.43Z" }, + { url = "https://files.pythonhosted.org/packages/e2/ae/469d7959ce5b1201e1de135dc735b86db3b35dd0d1734f6a44246d5f061c/rpds_py-2026.5.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:277f6c82f0580848796c7ecc8a7173aa3bfb928e4ff831261c2f60a81dc270db", size = 383162, upload-time = "2026-05-28T11:59:37.995Z" }, + { url = "https://files.pythonhosted.org/packages/dc/a2/57853d31a1116a561aa072794602ad3f6341e18d70a8523f1bd5b9fc1e5a/rpds_py-2026.5.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:63c2c4c213f1a4e3f3de28ecab029dbdee976324e729c0d7a55211be72576b02", size = 495093, upload-time = "2026-05-28T11:59:39.453Z" }, + { url = "https://files.pythonhosted.org/packages/99/63/3a8eabcad9314b7daf5c65f451d2c33d989235cd8a5762186cf2c3f5a4f8/rpds_py-2026.5.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3350ec808fb538fe71a1f94dfaa0e29c598dfad805ce49f0caec5ae3183c652b", size = 389829, upload-time = "2026-05-28T11:59:40.896Z" }, + { url = "https://files.pythonhosted.org/packages/4b/25/05678d97fc25e2622df14dc530fb82023174ecfff6733991ed0d78f167bd/rpds_py-2026.5.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b1b964e3ab599e718dc46c018d104b1ebc007cbc6567d827c94a687fca56d77e", size = 374786, upload-time = "2026-05-28T11:59:42.626Z" }, + { url = "https://files.pythonhosted.org/packages/88/d1/8c90b6431e80a3b91b284a5c7c8c0c4f9c006444d90477a740d6e0f9c694/rpds_py-2026.5.1-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:19cb09fab7b7fc96b2a6e28f2e34b72a3705ff27b37edb77455316e5d3f3dc9b", size = 386920, upload-time = "2026-05-28T11:59:44.124Z" }, + { url = "https://files.pythonhosted.org/packages/ff/99/4638f672ab356682d633ee0da9255f5b67ce6efd0b85eb94ad3e255e65a5/rpds_py-2026.5.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:abe76bcdba31e576cb83eeb8797aa0d882b738fef6dc65d0601fc753806a5b46", size = 405059, upload-time = "2026-05-28T11:59:47.177Z" }, + { url = "https://files.pythonhosted.org/packages/66/3f/3546524b6eb4cc2e1f363a3d638fa52f6c24faae3500c25fb488b02f1740/rpds_py-2026.5.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:8bff7073db3899158fff55ebf57b113a67030af26f80a18978f9f0aa60250ddf", size = 553030, upload-time = "2026-05-28T11:59:48.603Z" }, + { url = "https://files.pythonhosted.org/packages/c6/c3/7b3388c796fcf471bd17194242d4dc1a7608567c0fa422bcc1c5e79f9c1e/rpds_py-2026.5.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:8ba264fa49be666cd9cc56bf34ec7002fb3d27a4aee5bcb4d43d0d18feb1bb6f", size = 618975, upload-time = "2026-05-28T11:59:50.314Z" }, + { url = "https://files.pythonhosted.org/packages/61/1e/a3cb07f2795075d1d88efddae2f541359fde5f08c81ee114c29c2949c90a/rpds_py-2026.5.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4860b603ddda0475a8885499b3729e90229d480105b42651962a5397d995fa89", size = 581178, upload-time = "2026-05-28T11:59:51.673Z" }, + { url = "https://files.pythonhosted.org/packages/a1/74/e758c03a5ef46f04c37f2651a2893db846d569ba8a7bca469d4b58939bcd/rpds_py-2026.5.1-cp313-cp313-win32.whl", hash = "sha256:7944270ae71383f6e2657dd7d5ce4eeb4ac2d0059a6738f0510583d462ab4842", size = 212481, upload-time = "2026-05-28T11:59:53.148Z" }, + { url = "https://files.pythonhosted.org/packages/70/ec/a2aca432db9c7359b40fa393eeeaa0d166c2f70175be956e75fa24197c44/rpds_py-2026.5.1-cp313-cp313-win_amd64.whl", hash = "sha256:88647f43a73c4e01be19b04ceef0c8d3a1958153604d13c773becd8016f2a0cf", size = 228519, upload-time = "2026-05-28T11:59:54.505Z" }, + { url = "https://files.pythonhosted.org/packages/29/60/a73bfdd45b096574556acf303bbd9fa9eed36ca8a818b514e2a5d5fe2b9d/rpds_py-2026.5.1-cp313-cp313-win_arm64.whl", hash = "sha256:453895624ecf7db7063b1004e44037522bbaef9ff6a945e59bc71662d7a03abd", size = 223446, upload-time = "2026-05-28T11:59:56.081Z" }, + { url = "https://files.pythonhosted.org/packages/18/e2/408105fd611823f00882aea810f3989a30d26b1bab8b6beb20f98c724e0e/rpds_py-2026.5.1-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:b4e4bc98639ec915f512fde3aa7a95e0041d95d9c3cc86eea841fa63cb1e8600", size = 355287, upload-time = "2026-05-28T11:59:57.448Z" }, + { url = "https://files.pythonhosted.org/packages/8d/58/5c4a43436843c90d0f6d19f82c200c80e3843ca9fa07b237623327f6d384/rpds_py-2026.5.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:cacedb7a6e167680acba45ad5716e89067d225dc80da0d7040cae8c81d4572fa", size = 347033, upload-time = "2026-05-28T11:59:58.881Z" }, + { url = "https://files.pythonhosted.org/packages/fb/c2/1a71acdacaf4e259b10278fb87b039ded3cf80041bcd89dd8a3ea702ded6/rpds_py-2026.5.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:68700371c5d7ae1412862ddfa719090925c93ecf351c566d66f09d04b136ea00", size = 376891, upload-time = "2026-05-28T12:00:00.516Z" }, + { url = "https://files.pythonhosted.org/packages/c2/c8/535f3d9b65addd8e28aa87b83c6e526799c3717a88273db8ea795beeef7a/rpds_py-2026.5.1-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:296c799becfa849c779c8725494fe9ed94959ed886787df4364b058465bad7f0", size = 385646, upload-time = "2026-05-28T12:00:02.394Z" }, + { url = "https://files.pythonhosted.org/packages/1c/91/dc033f313345c354ade914dbe73cdb90b615a4409ea02430d5356794f3d8/rpds_py-2026.5.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d3858b908218ee108d0bbfb2095ccc237648053c9bf98affad7cb079acaf1d97", size = 498830, upload-time = "2026-05-28T12:00:04.189Z" }, + { url = "https://files.pythonhosted.org/packages/27/fc/90fcbea459dbb8ddc18a2e0fd1de9412b48bc84ffff2db771cf714bacfd6/rpds_py-2026.5.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4fb8d2e7cb2f850b169806d61d1b991738acec96500a75c30f49caf064ce7cef", size = 392830, upload-time = "2026-05-28T12:00:05.797Z" }, + { url = "https://files.pythonhosted.org/packages/b2/1d/46cd11a228c9750684a798d98f878be6f614aa762438da7378f035e79e35/rpds_py-2026.5.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:27b74c10ed6a8f190f4287f53bcfea348b92a84a9c9f70d30183d1e6172d580d", size = 379613, upload-time = "2026-05-28T12:00:07.433Z" }, + { url = "https://files.pythonhosted.org/packages/24/4a/d9b0c6af3a1de03eb93741bbe8be2bdce84d8fda8224f3005451d86df389/rpds_py-2026.5.1-cp313-cp313t-manylinux_2_31_riscv64.whl", hash = "sha256:b9a6528956191c48c52294a592dbd4a8386d7048bdb25c0efcb6b966466c6d83", size = 388183, upload-time = "2026-05-28T12:00:09.227Z" }, + { url = "https://files.pythonhosted.org/packages/c5/b4/db7aaabdda6d020afc87d981bcc2f57a434c7dec60ecfc2ab3dd50b20351/rpds_py-2026.5.1-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:af03e34e860047bc7a352b842856fcf78798fbb81132cc98bd2f907ab4eb9cd2", size = 408578, upload-time = "2026-05-28T12:00:10.779Z" }, + { url = "https://files.pythonhosted.org/packages/08/d6/070f6a41cbb343e2ac4171859bf3f3623e0ab002f72619d6d505313ec2de/rpds_py-2026.5.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:fea6e836d10abbe191d557d33bd58bd5987725fe63aa1eefe557d230209855bd", size = 553573, upload-time = "2026-05-28T12:00:12.443Z" }, + { url = "https://files.pythonhosted.org/packages/75/ab/1a71ea3589c4345dac0a0518f0e6a031cb42689277851b683c46d27463a5/rpds_py-2026.5.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:fc0c0f878ea770a0a8a462456c5ad36fc9fe6358e6b76fdadc7f17575e0b8bf1", size = 620861, upload-time = "2026-05-28T12:00:14.09Z" }, + { url = "https://files.pythonhosted.org/packages/8a/22/9bf80a56069c0c443fcfefac639a86a744550a2898817a6dfd3e26654924/rpds_py-2026.5.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:e0b360f316d966b048b085857630b3cc51f3db2f07b06f440eac8f695374d1e3", size = 585633, upload-time = "2026-05-28T12:00:15.66Z" }, + { url = "https://files.pythonhosted.org/packages/da/68/3b2c0a75c9e04125696f84ebdbbf304acf5a40b58ba4481cdb98a922c3ba/rpds_py-2026.5.1-cp313-cp313t-win32.whl", hash = "sha256:a2999883eedf72fdfb7520b92c7d4ec2572a71ff40239377aa604cc529eecafc", size = 210074, upload-time = "2026-05-28T12:00:17.291Z" }, + { url = "https://files.pythonhosted.org/packages/e7/8b/609157d5a25d37d4f29f92840ba531f416907c34ae5c5739dd21fc2bef98/rpds_py-2026.5.1-cp313-cp313t-win_amd64.whl", hash = "sha256:e07be2a9d7122bd6e82dea89814ef8dc893feb1aae97fec1630f3263bbb30e55", size = 228635, upload-time = "2026-05-28T12:00:18.73Z" }, + { url = "https://files.pythonhosted.org/packages/d4/6f/19c1918a4b590d8de87e712e4abe4b3875771eff60216fb6153cf6665c68/rpds_py-2026.5.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:1f2c391c3059798093b65df23aca2cac150460ae9c630d99dec83d703d9485b9", size = 349756, upload-time = "2026-05-28T12:00:20.217Z" }, + { url = "https://files.pythonhosted.org/packages/e5/60/a06fe7da34eca79dacbf958a2ba0c6eea85bc2b29de20080bf40f72f66fa/rpds_py-2026.5.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:413b424f7c4ee65ab5e5be91f5731be0f8b41a1ee2b12dfe810d716312e95a78", size = 343831, upload-time = "2026-05-28T12:00:21.711Z" }, + { url = "https://files.pythonhosted.org/packages/bf/ec/b2333b97b90e2a6ef6ca8ad386ee284968e74bcfe113b3f1a8d9036429a9/rpds_py-2026.5.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2c595a1d9255dce0599e13130d1440ab2506654f2b50294226ee06402f8fef63", size = 375127, upload-time = "2026-05-28T12:00:23.326Z" }, + { url = "https://files.pythonhosted.org/packages/14/7f/e00aae54067f2b488c4637961d5f58204d470795fc791085fa3f15060d2e/rpds_py-2026.5.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1c27c5f6102eac8c03e7595a00827a53b271ba40a53b59ff8709170e0855ea4a", size = 379034, upload-time = "2026-05-28T12:00:24.89Z" }, + { url = "https://files.pythonhosted.org/packages/be/cc/423999bbb8ae8dc93c77fc1d5e984ade5eb89d237d3bb884ccfa72ae2890/rpds_py-2026.5.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6c7fcf61d44cacecaf3aea542b0e053db77972a4573e7ceda16fb2b399161195", size = 490823, upload-time = "2026-05-28T12:00:26.676Z" }, + { url = "https://files.pythonhosted.org/packages/0f/aa/c671bf660f12e68d3c52ff86c7066ed1372df5a0f4f2ff584e419b8207e7/rpds_py-2026.5.1-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2c817a189d4ee14290420e5ff051e4dd6baa13f3edf84685071dee07a6d538ee", size = 388144, upload-time = "2026-05-28T12:00:28.577Z" }, + { url = "https://files.pythonhosted.org/packages/19/c8/d63bb75b68afe77b229e3021c6031bcaf01da5db5b0e69d0d10f9ba679a7/rpds_py-2026.5.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:21846aac0ed2e0589f38c12dc44e77bb64e494b771eadbcf169cba00566ba7ba", size = 371959, upload-time = "2026-05-28T12:00:30.304Z" }, + { url = "https://files.pythonhosted.org/packages/82/35/c51122014d8274ff37dc606d60049c3db7d83da02b5b282511e5a906a9a6/rpds_py-2026.5.1-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:b317c87a13f769a4e787819bd508aaa5d69aa09b0880de9af6d3a8a54571cdec", size = 383558, upload-time = "2026-05-28T12:00:31.764Z" }, + { url = "https://files.pythonhosted.org/packages/e3/f9/2790cb99c136a5363acdeacf5c27c56f3de0d4118a1f48fca83404c99c89/rpds_py-2026.5.1-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ce87129d9f2c14fa6c4a8601fb80eb4488c80d38a20cd13758ef11123e14995d", size = 402789, upload-time = "2026-05-28T12:00:33.247Z" }, + { url = "https://files.pythonhosted.org/packages/e5/1b/e4fb584f8c75d35c38150ff6a332cda949e6f97acba1f4fd123b14ab56fe/rpds_py-2026.5.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:9cdddb6c1207d284d94fd1530adf57fbd797fe7c4b8704ba85f49414f2557e7d", size = 551405, upload-time = "2026-05-28T12:00:34.819Z" }, + { url = "https://files.pythonhosted.org/packages/d8/f7/a6731b4216cb3793ea1af5391da240f5683dacc0d13e034fe5fc3503f240/rpds_py-2026.5.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:4e237e139f94d3c036fd28eb9f564c99055476ff4ff05cd42be55ce349b5aa02", size = 616975, upload-time = "2026-05-28T12:00:36.268Z" }, + { url = "https://files.pythonhosted.org/packages/2c/ea/2e051a81d95d8e63f4b35a1c463a87e8766bc3d083c067c5dfb6bf220747/rpds_py-2026.5.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ed0954b524873214369184a9c82b0eaa45a3fbb9a798cd95b17e0d98499e7ea0", size = 578701, upload-time = "2026-05-28T12:00:37.82Z" }, + { url = "https://files.pythonhosted.org/packages/65/56/b5f6fdb2083e32bca8a8993d89e70db114b4756c9e2c38421328126689d2/rpds_py-2026.5.1-cp314-cp314-win32.whl", hash = "sha256:2d88621d6a7d4dfa633d21abe90f280bb205274e16b1d1e61c6ad4640b2453b7", size = 209806, upload-time = "2026-05-28T12:00:39.492Z" }, + { url = "https://files.pythonhosted.org/packages/fb/80/65a5aa96c155e611d1ed844e4e1f57f3e36b021f396d9f8585d756e6b90d/rpds_py-2026.5.1-cp314-cp314-win_amd64.whl", hash = "sha256:cef8ac28d26f4dda3533060c20fbf80a325458fa9fd23ea72a73cdfa8e978838", size = 225985, upload-time = "2026-05-28T12:00:40.94Z" }, + { url = "https://files.pythonhosted.org/packages/27/7c/ad185212e87b05f196daef92bc5f3caf07298eb47c295b5585c3dd3093ac/rpds_py-2026.5.1-cp314-cp314-win_arm64.whl", hash = "sha256:eaaea962c68cdc68d4a533ba985ab8e9484277910bbfaa2ab3ef7732667bfed8", size = 221219, upload-time = "2026-05-28T12:00:43.15Z" }, + { url = "https://files.pythonhosted.org/packages/23/58/e14ae18759020334646b031e708ab4158d653a938822bfb7b95ef2e93aa3/rpds_py-2026.5.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:21942f52dbbd5f8758bf021213d28bd45c39e873e65e2407faf5f1846f5761ad", size = 352148, upload-time = "2026-05-28T12:00:44.638Z" }, + { url = "https://files.pythonhosted.org/packages/31/9b/5f4a1e2f960bca3ac5d052b139dd31eed97b259f9d909173821760d542e8/rpds_py-2026.5.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f414556f6e3958300ff941e40c9f97e3dc9774ddd1b3434c475d73dd354bbed3", size = 345196, upload-time = "2026-05-28T12:00:46.14Z" }, + { url = "https://files.pythonhosted.org/packages/1a/71/1d9574d6a2fa20ab60eaa55c7467f5aa20cbc770f341a05f09c0876f59e2/rpds_py-2026.5.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ef1013a8625c74043210190b246f5b1551e09757c1f356c6e4160ef96c5bc081", size = 374981, upload-time = "2026-05-28T12:00:47.531Z" }, + { url = "https://files.pythonhosted.org/packages/0c/9a/37e99f4915a80aa71670263c1267f7ae0af95f53a3f61e6c3bdc016d4515/rpds_py-2026.5.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:cc68e231a77a5f0d774ae278a1f8e55c0456501820847c1e4efb3829f3441df6", size = 379961, upload-time = "2026-05-28T12:00:49.216Z" }, + { url = "https://files.pythonhosted.org/packages/a8/ff/6e73f74b89d2e0715e0fc86b7dde893f9a61ae2f9b256ff3bdfe41ac4e94/rpds_py-2026.5.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9baffb505aff33acc69b422a19f77806680f3c8632227d79f48de8a810d1c2c5", size = 495965, upload-time = "2026-05-28T12:00:51.111Z" }, + { url = "https://files.pythonhosted.org/packages/ea/e0/425faba25f59d74d4638b267f7c7a80e8649d2ef4db10a19b0c4a71e6e6f/rpds_py-2026.5.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b8d2f912928d426e8cfa396f7f3f8d29a59e6689c86dcca3c420730c1096322b", size = 389526, upload-time = "2026-05-28T12:00:52.77Z" }, + { url = "https://files.pythonhosted.org/packages/c6/76/7a41960e3fddae47fab43a28684d5da981401dffd88253de0944148654cb/rpds_py-2026.5.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:90f628283be835db980c941767d41c9a27b5239e54ba0a9c1335247e82406964", size = 376190, upload-time = "2026-05-28T12:00:54.215Z" }, + { url = "https://files.pythonhosted.org/packages/27/60/5f38dc70824fc6951b51d35377e577a3a3a4c81a6769cc5a2de25ebe0ad1/rpds_py-2026.5.1-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:1ebb2f0ab7e16132995a72de805170e0203df0c3dd22e1ef1cd1fdd90bd7a131", size = 383921, upload-time = "2026-05-28T12:00:55.673Z" }, + { url = "https://files.pythonhosted.org/packages/60/1a/d60a38caa1505f4b9483c3fbbde12c94e1079154f4f401a6da96f7e77621/rpds_py-2026.5.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f3df3d16ded76f1f8c9cdebd0e1ea55fdf4c23b812de189814da7cf229c22a81", size = 404766, upload-time = "2026-05-28T12:00:57.518Z" }, + { url = "https://files.pythonhosted.org/packages/87/ff/602fd3f174d6425f0bce05ad0dfbec0e96b38d0f7d08a79af5aa20083885/rpds_py-2026.5.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:9af8905b8f854990e40d5206aa5ac58d9b0fe0b7f351ff2bb086c20f6c8c6a47", size = 551343, upload-time = "2026-05-28T12:00:58.978Z" }, + { url = "https://files.pythonhosted.org/packages/b8/c1/1be13327acdbead3eca1fde03b6a34dbb011f1e864e217f0d32cc1779a7f/rpds_py-2026.5.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:036a36a87fb1cd3b214d11c4b3c4f7d2ddad933625dca1c900b56a057c07740a", size = 618502, upload-time = "2026-05-28T12:01:00.656Z" }, + { url = "https://files.pythonhosted.org/packages/f3/d7/afb49b49d7f2be8b7ba1a9f0977fa5168003437b93086726f066544e8351/rpds_py-2026.5.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:62ae3853454fe9ef283a03c96c2d835d39e84b14643a9d62c82ef0fb87d702ca", size = 581916, upload-time = "2026-05-28T12:01:02.22Z" }, + { url = "https://files.pythonhosted.org/packages/25/d1/dbef8c1f8a10f07beb62b5f054e20099fd9924b3ec001b8f0b6ac7813a85/rpds_py-2026.5.1-cp314-cp314t-win32.whl", hash = "sha256:6c3d771a46ec18b12af06ce36243a9a80b07a5d0515236332d90863ca8bb326a", size = 207855, upload-time = "2026-05-28T12:01:03.821Z" }, + { url = "https://files.pythonhosted.org/packages/2a/72/bfa4e61ab8e7dc1c8adf397e05e6cbdd4239357bd72b248d3de662f23915/rpds_py-2026.5.1-cp314-cp314t-win_amd64.whl", hash = "sha256:c93c629be4636cf54337bd5f06c104d55e42ced54d681f6fe21ae510a65116f6", size = 225422, upload-time = "2026-05-28T12:01:05.194Z" }, + { url = "https://files.pythonhosted.org/packages/27/3a/7b5da92b640f67b6717ccafc83cdd06bfa7ff2395c3685c68922bb54d703/rpds_py-2026.5.1-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:3574b55c604b8f75dacb007136508bbc0db406e626301778096a133327e7f2fb", size = 349576, upload-time = "2026-05-28T12:01:06.722Z" }, + { url = "https://files.pythonhosted.org/packages/d7/8a/2aafd7ad355a1bd48ca76e2262b74b15e6432b5a1efe150efd4d779cd55d/rpds_py-2026.5.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:94068eb3ae6d43f5a786b7db96a406a34e6d5c24489feef32fd6e8946ea7b291", size = 343640, upload-time = "2026-05-28T12:01:08.441Z" }, + { url = "https://files.pythonhosted.org/packages/f7/7d/6c9523c1abbe840a1b7fba3c516d48e1d3487cc80fea4366c4071cf56784/rpds_py-2026.5.1-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f3a5b10e8ce894825f380a8f1b6444cf73c294dfea62afbb2d13e3a9e630cec1", size = 375322, upload-time = "2026-05-28T12:01:09.934Z" }, + { url = "https://files.pythonhosted.org/packages/5a/5d/0b7b03fb1dc509321f01de3149784ab773e34c8573022029af8076afcb9c/rpds_py-2026.5.1-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fc09f82e63d4bcd58149572f857a431bae851dc747e313c3b5bdf7abb907fda8", size = 379066, upload-time = "2026-05-28T12:01:11.48Z" }, + { url = "https://files.pythonhosted.org/packages/d7/e2/8ef6012999ebf1cb1c22f876d9ce5e63d960fd4631d2af3202d3f480aa25/rpds_py-2026.5.1-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e10464d17df3b582745c25cec695cb9558bca2cb6ddb631aee1787fc72c767b2", size = 494586, upload-time = "2026-05-28T12:01:13.051Z" }, + { url = "https://files.pythonhosted.org/packages/80/af/1eeb029bec67582c226b7809172207cd005073af4ebd906e65ff494f4983/rpds_py-2026.5.1-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ba05adbf15d994c38ec0b7ab32e858e5110c21e9009a00a86545fd220f84e038", size = 388415, upload-time = "2026-05-28T12:01:14.631Z" }, + { url = "https://files.pythonhosted.org/packages/18/23/ffbe10711c4d766c1cab0557d6906c074f795814863c67b351355d29354a/rpds_py-2026.5.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:77c004fdc7b891967106f78ddfd7b076bfe6813c6139c6fff6aed3bcaa960b26", size = 372427, upload-time = "2026-05-28T12:01:16.153Z" }, + { url = "https://files.pythonhosted.org/packages/bd/3a/30ba4a6ad457e5b070c18d742a33fb77d8d922b565cc881f8a5313d63bfe/rpds_py-2026.5.1-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:83bcf894486c9d78dd290d3c0124ff6dd8875d3025e2090a8ec49fcc37c55fdd", size = 383615, upload-time = "2026-05-28T12:01:17.809Z" }, + { url = "https://files.pythonhosted.org/packages/d3/69/62e242b53ce39c0814bd24e1a6e6eba6c92be716277745f317f9540a2e7b/rpds_py-2026.5.1-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c3df104083952a0e0c6f10de33e440eabe98fb6317d23e1a58c68f6df08d01b9", size = 402786, upload-time = "2026-05-28T12:01:19.419Z" }, + { url = "https://files.pythonhosted.org/packages/38/c1/a770b9c186928a1ed0f7e6d7ae50e7f3950ed23e3f9e366dbc8e38cb55de/rpds_py-2026.5.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:980450826cf22e133c57e0835070bdd0dd3f73b9b708c3ce223def2cb9469e14", size = 551583, upload-time = "2026-05-28T12:01:21.013Z" }, + { url = "https://files.pythonhosted.org/packages/21/7c/68e8579b95375b70d2a963103c42e705856cdb98569258bd807f4423891c/rpds_py-2026.5.1-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:205dde846f24332ab0c1188699a043b8d165b79bb84529ce272c45048ff6be01", size = 616941, upload-time = "2026-05-28T12:01:22.548Z" }, + { url = "https://files.pythonhosted.org/packages/70/a1/a6135aed5730ff03ab957182259987ac11e55fb392a28dc6f0592048a280/rpds_py-2026.5.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:3966b82dd563176396df030f3dd52a6e54cb69b718e95e78bd555ed3d1e0185d", size = 578349, upload-time = "2026-05-28T12:01:24.118Z" }, + { url = "https://files.pythonhosted.org/packages/09/6e/f24201a76a84e6c49d0bdfdfcb735210e21701e9b21c5bfc0ba497dd62f6/rpds_py-2026.5.1-cp315-cp315-win32.whl", hash = "sha256:7818f8d0a415be74d2be3590b0a1c1f463a642f4d0217e7d10602dceef5b79aa", size = 209922, upload-time = "2026-05-28T12:01:25.522Z" }, + { url = "https://files.pythonhosted.org/packages/9e/e4/966bc240bb0485fc265278f6de44d05834bf0b3618886e0b22e33d54c49a/rpds_py-2026.5.1-cp315-cp315-win_amd64.whl", hash = "sha256:b3cc20c0d800af78fd0fac68086e28c1856cec51ea528bb81ea851aa40d39325", size = 226003, upload-time = "2026-05-28T12:01:27.062Z" }, + { url = "https://files.pythonhosted.org/packages/5c/5c/a15a59269cd5e74472734516c73795c15eccfc841b3d4b0228c3f53f19d0/rpds_py-2026.5.1-cp315-cp315-win_arm64.whl", hash = "sha256:3609e9939a8a76cd904cf98a3f1f13b5dc7e150adeaee89e0ea09652ea213e16", size = 221245, upload-time = "2026-05-28T12:01:28.51Z" }, + { url = "https://files.pythonhosted.org/packages/e0/22/135ce03804e179a71ceb13be095deda4a279bc88f7a6b8fa161c5ad44e12/rpds_py-2026.5.1-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:5d333a7127d4b307601ac37792bee01bb95c867cbfacf21b6375b804d6bbd723", size = 352015, upload-time = "2026-05-28T12:01:30.214Z" }, + { url = "https://files.pythonhosted.org/packages/3b/5f/f1f6d2652eb9d848f6eb369d8db83a2da6249bb49ad2c2a48f45d54538d3/rpds_py-2026.5.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:b5f077b44a4f7808520f66dae234988d867deb9aed9be5da057ce9ba831b2a41", size = 345016, upload-time = "2026-05-28T12:01:31.656Z" }, + { url = "https://files.pythonhosted.org/packages/88/66/b74182775691ea2290c99e52ac8d5db844e56fbec90ce421f107658c8314/rpds_py-2026.5.1-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:55d8f9b7b78c9538fc9e04e82ec0e888ff0c3cffcfad152c77e57cd09351a98a", size = 374775, upload-time = "2026-05-28T12:01:33.136Z" }, + { url = "https://files.pythonhosted.org/packages/ff/8f/15e5a61d9f0a43902d36561d4f07cae6ae9f4716be825159fd72717f33af/rpds_py-2026.5.1-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e3a8ae58895ac107ed934a6bf51e5846f95c53b9b940c2c6d310838fd5846358", size = 380270, upload-time = "2026-05-28T12:01:34.574Z" }, + { url = "https://files.pythonhosted.org/packages/02/c3/f859b12763a80540cdf2af0f15b19904cf756a71d7bdd3f82ff3e5b1bbf9/rpds_py-2026.5.1-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0957cf3c2b8632ec7aaebffebea8005b353cc2a237b6e2ae3c2cac0820704cfb", size = 495285, upload-time = "2026-05-28T12:01:36.127Z" }, + { url = "https://files.pythonhosted.org/packages/1c/c7/ff27c2ac8411d30b03b1829fd88cae8dad1a4d0da48dd25e57c4038042e6/rpds_py-2026.5.1-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c396c1304de421050b3681ea70f371874b54d41b0151e96109758144c231e30b", size = 389581, upload-time = "2026-05-28T12:01:37.635Z" }, + { url = "https://files.pythonhosted.org/packages/6e/67/fe92ee32a6cc05c77228a2f8b1762e7124f386ec20ff83d0757b762d58d0/rpds_py-2026.5.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aad1bff7f666b9598e573815affd666aac6a13a585dde336f843e33350c7fadc", size = 376041, upload-time = "2026-05-28T12:01:39.307Z" }, + { url = "https://files.pythonhosted.org/packages/f8/91/b4d6685c27aba55bd82f25b278be8237038117d05f9659a6213ad3408130/rpds_py-2026.5.1-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:656a042550878f12d45752452d47094b7cfe5ad1e9d7b87b5a22ad3ae5ff8015", size = 383946, upload-time = "2026-05-28T12:01:41.043Z" }, + { url = "https://files.pythonhosted.org/packages/bd/79/2c1d832a53c8e0f8e98fc970ec257b950fecd4f62be2ab7182b500a0cbc8/rpds_py-2026.5.1-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:73c4bd4f70294737b5206a3e8e30ccadbf8a60301831c8ea23eec5dbeea1ecfa", size = 405526, upload-time = "2026-05-28T12:01:43.032Z" }, + { url = "https://files.pythonhosted.org/packages/78/c4/c98117b03c6a8581ab2c2dfccfe9a5ad82bd8128a3c28b46a6ad2d97c393/rpds_py-2026.5.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:43bca78665423cabae77146f2fe7ce55272b6c8d55d82cca83effd42c7e13972", size = 551165, upload-time = "2026-05-28T12:01:44.648Z" }, + { url = "https://files.pythonhosted.org/packages/3b/c1/bc479ca069200af730881b1bd525e3114b2b391a351509fcb1b772f28086/rpds_py-2026.5.1-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:42d0f20e85e549c870749d0e247f0c10d318a45b7e9676d575d2dcb04a1b2e66", size = 618778, upload-time = "2026-05-28T12:01:46.337Z" }, + { url = "https://files.pythonhosted.org/packages/77/65/38ab2f90df44c2febfb63cc10ced40763d9b4bc94d173e734528663fe7f5/rpds_py-2026.5.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:b1be5c35683684d5331b93600c210e8367c254683d8a6df6bd21bd2da3a334fb", size = 581839, upload-time = "2026-05-28T12:01:48.109Z" }, + { url = "https://files.pythonhosted.org/packages/15/2d/ce1f605fe036aadd460e5822e578c6c7ec3a860936cca37d6e0f299daa77/rpds_py-2026.5.1-cp315-cp315t-win32.whl", hash = "sha256:75808f6c38ce7749bb68cc2770161aae5045e6c6f6781a9782e74b93304399df", size = 207866, upload-time = "2026-05-28T12:01:49.648Z" }, + { url = "https://files.pythonhosted.org/packages/79/cb/966040123eb102371559746908ef2c9471f4d43e17ec9a645a2258dab64b/rpds_py-2026.5.1-cp315-cp315t-win_amd64.whl", hash = "sha256:90bd6630002a1c7f09e7843dd79f0d24f3d2897cc25a753480917865d14f15b3", size = 225441, upload-time = "2026-05-28T12:01:51.408Z" }, +] + +[[package]] +name = "ruff" +version = "0.15.16" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a6/bd/5f7ec371001337d8fa61701c186ff8b613ecac1651848c5950f4c4d5f2e9/ruff-0.15.16.tar.gz", hash = "sha256:d05e78d38c78caf020b03789e25106c93017db5a0cb6e2819885018c61343b78", size = 4714267, upload-time = "2026-06-04T16:33:09.974Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0c/42/53ef1c3953f157956db9bf7861e3bc50b9b887ce93300aa48cdba8336fe6/ruff-0.15.16-py3-none-linux_armv6l.whl", hash = "sha256:6ac3c0b3969cc6cf6b158c4e2f8f682acb58e7d700d8a44b65ecdc72d66ab0b2", size = 10709025, upload-time = "2026-06-04T16:32:51.935Z" }, + { url = "https://files.pythonhosted.org/packages/93/9a/a79159346f19134a956607754e57d8d128f7a4c00f4ad2f7514d224c172c/ruff-0.15.16-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:197c207ed75ffba54a0dec23db4aa939a27a3053073e085e0042433cbdc58e4a", size = 11063550, upload-time = "2026-06-04T16:32:42.24Z" }, + { url = "https://files.pythonhosted.org/packages/bc/72/3ce2ac000a5299ec238e01f51397b3b653c93b077d9b1bfe8715bb895f20/ruff-0.15.16-py3-none-macosx_11_0_arm64.whl", hash = "sha256:3a39fec45ab316cc23e7558f23fea4a70403ddb5648ea9a4a3854a16973d0071", size = 10421345, upload-time = "2026-06-04T16:32:37.251Z" }, + { url = "https://files.pythonhosted.org/packages/b0/c2/cc7fad3ec9169373f5b6a18f1917b91080feec40c3f9658334a1d28e2f03/ruff-0.15.16-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ba93191d79003116b95128c9d306e045200fdbd0bccb782b110f3cd1d4abc5cf", size = 10757217, upload-time = "2026-06-04T16:32:54.722Z" }, + { url = "https://files.pythonhosted.org/packages/69/d2/3474009eaa0a65b31fa7152a2fad5e2f050c640ceb1e6b02ee6922e94c82/ruff-0.15.16-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c6ee4b90520630120ef032aa5cc10db483852dff950e78b1d717e2993a61ac8d", size = 10507035, upload-time = "2026-06-04T16:33:05.343Z" }, + { url = "https://files.pythonhosted.org/packages/ca/81/b7ae6ccbd11f0c8dc3d5d67fc4be9b57ff57ca86ba56152021378e1277f2/ruff-0.15.16-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4e4215bc938bc3c8215c1472c1aa437e310fee20cd427335fec9d7e609563628", size = 11255291, upload-time = "2026-06-04T16:32:49.49Z" }, + { url = "https://files.pythonhosted.org/packages/d9/e1/46e526f1a7cc90857ce6ddf25fbb77eb6568651ac38d71b033af07076dd5/ruff-0.15.16-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7c8d26be963b090f10e29abc8b3e74a2a321f6fa34e02424e30b5af89350ecbb", size = 12124922, upload-time = "2026-06-04T16:33:07.821Z" }, + { url = "https://files.pythonhosted.org/packages/1a/da/5c791b088b596b24d0deb967fa28ae02ad751a140c0b9ea81c5ab915d6c0/ruff-0.15.16-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f198cf4123602a2280ed46c307bcbafe41758d6fee5b456b6b6058ca1514b3b4", size = 11332186, upload-time = "2026-06-04T16:33:02.971Z" }, + { url = "https://files.pythonhosted.org/packages/72/11/5da87abe20047c8962361473923ebb2f62b595250126aadfad8c20649c1e/ruff-0.15.16-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bb27515fa6240fb586ae82b901a59e67d24acff86f2190b433dc542fe0435aeb", size = 11373541, upload-time = "2026-06-04T16:32:47.007Z" }, + { url = "https://files.pythonhosted.org/packages/fe/2a/8554754c23a854ae3fd6b507e36ad61ddb121e298c6d5d617dec94ed0f14/ruff-0.15.16-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:a267c46ba1593fc26b8eecbea050b39d40c0b6bb7781ee11c90a02cd10032951", size = 11353014, upload-time = "2026-06-04T16:32:34.795Z" }, + { url = "https://files.pythonhosted.org/packages/62/25/62ea41529ec89f742ea3fed9cb1059c72877ec7cf9b9e99ac9cf3294d1d9/ruff-0.15.16-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:528c68f39a91498a8d50e91ff5985df3d105782bab49cc378e73ac26bff083e8", size = 10737467, upload-time = "2026-06-04T16:32:26.348Z" }, + { url = "https://files.pythonhosted.org/packages/90/17/334d3ad9de4d40f9dd58fdd09e35ce64553bb501e2f19a839e2fb6be14fc/ruff-0.15.16-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:7ed55c58950df60589a9a7a5d2f8fa5f54ebd287163be805adfe6ee95a9de123", size = 10521910, upload-time = "2026-06-04T16:32:32.54Z" }, + { url = "https://files.pythonhosted.org/packages/4d/bd/3ac7c6ae77a885c1004b3dda2446ea401768d24f851c14b4ad4b24f6639c/ruff-0.15.16-py3-none-musllinux_1_2_i686.whl", hash = "sha256:d482feaf51512b50f9790ceb417a56a61dd1e9d9bf967662b9ed27c01b34f53a", size = 10979190, upload-time = "2026-06-04T16:32:57.492Z" }, + { url = "https://files.pythonhosted.org/packages/33/d7/609546e6a413c3f216fbf2a50c928f97c80939154f6a0503114094a86191/ruff-0.15.16-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:1e15bc8c94513dae2a40cc9ef07c94fdd4ecc9e29dabebeebe170f952322c9e3", size = 11477014, upload-time = "2026-06-04T16:32:44.687Z" }, + { url = "https://files.pythonhosted.org/packages/74/0d/f2cd247ad32633a5c36e97141a2c21b11c6279f7957bc2ff360b1e08fddd/ruff-0.15.16-py3-none-win32.whl", hash = "sha256:580378f7bd4aa25f72e74aa54948a9622f142b1e509521dd10902e886681cc1e", size = 10735541, upload-time = "2026-06-04T16:32:30.145Z" }, + { url = "https://files.pythonhosted.org/packages/8b/9e/02e845ef151b1dee585e55c4739f8e1734ae1d9f1221dff65761c162208b/ruff-0.15.16-py3-none-win_amd64.whl", hash = "sha256:408256017284eddf98fff77b29aa4fb30f586042d535b2d9befc6512f400aaec", size = 11843403, upload-time = "2026-06-04T16:32:39.76Z" }, + { url = "https://files.pythonhosted.org/packages/15/19/016553f86f207450aebebc2b2b5088d086b901cc8186c02ac4284db3bd88/ruff-0.15.16-py3-none-win_arm64.whl", hash = "sha256:8cd61783afb39638a7133ef0d2dfb1e91277593962f81b5a8423eb0b888a6121", size = 11134555, upload-time = "2026-06-04T16:33:00.136Z" }, +] + +[[package]] +name = "secretstorage" +version = "3.5.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cryptography" }, + { name = "jeepney" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/1c/03/e834bcd866f2f8a49a85eaff47340affa3bfa391ee9912a952a1faa68c7b/secretstorage-3.5.0.tar.gz", hash = "sha256:f04b8e4689cbce351744d5537bf6b1329c6fc68f91fa666f60a380edddcd11be", size = 19884, upload-time = "2025-11-23T19:02:53.191Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/46/f5af3402b579fd5e11573ce652019a67074317e18c1935cc0b4ba9b35552/secretstorage-3.5.0-py3-none-any.whl", hash = "sha256:0ce65888c0725fcb2c5bc0fdb8e5438eece02c523557ea40ce0703c266248137", size = 15554, upload-time = "2025-11-23T19:02:51.545Z" }, +] + +[[package]] +name = "sse-starlette" +version = "3.4.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "starlette" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f7/2b/58abc2d1fd397e7dde08e947e05c884d8ef2f78d5e2588c17a12d42d6994/sse_starlette-3.4.4.tar.gz", hash = "sha256:07e0fa0460138baf25cdd5fb28683472c3995dc1642225191b3832d62526bcb0", size = 31819, upload-time = "2026-05-12T17:37:17.019Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/dc/67/805710444ea8cc75fbf70b920ed431a560c4bf9c57f7d5a3117213189399/sse_starlette-3.4.4-py3-none-any.whl", hash = "sha256:3f4dd50d8aed2771a091f3a83000323fc3844541c16b4fe585ae2420cc6df973", size = 16514, upload-time = "2026-05-12T17:37:15.601Z" }, +] + +[[package]] +name = "starlette" +version = "1.2.1" +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/25/44/ec35f1b6e83094b997da438a02c8c9b0ade2b1e84cfc48bd4656780760a6/starlette-1.2.1.tar.gz", hash = "sha256:9b9b5ebb992e67d6093741e63c2f59e4f6fff986f81163c087867bd7b924b3f6", size = 2701854, upload-time = "2026-05-31T01:07:51.847Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1c/54/196d0c1db10af76baa4f64894448505d60d3cdf70ef92cbb35f46a4e4c71/starlette-1.2.1-py3-none-any.whl", hash = "sha256:4de0082d08c8f6764a85a54cf1120d6939507a19905c7768acad2a9f875d2b89", size = 73350, upload-time = "2026-05-31T01:07:50.09Z" }, +] + +[[package]] +name = "subtrack-mcp" +version = "0.1.0" +source = { editable = "." } +dependencies = [ + { name = "fastmcp" }, + { name = "httpx" }, + { name = "pydantic" }, +] + +[package.dev-dependencies] +dev = [ + { name = "mypy" }, + { name = "pytest" }, + { name = "pytest-asyncio" }, + { name = "respx" }, + { name = "ruff" }, +] + +[package.metadata] +requires-dist = [ + { name = "fastmcp", specifier = ">=2.3" }, + { name = "httpx", specifier = ">=0.27" }, + { name = "pydantic", specifier = ">=2.7" }, +] + +[package.metadata.requires-dev] +dev = [ + { name = "mypy", specifier = ">=1.10" }, + { name = "pytest", specifier = ">=8" }, + { name = "pytest-asyncio", specifier = ">=0.23" }, + { name = "respx", specifier = ">=0.21" }, + { name = "ruff", specifier = ">=0.5" }, +] + +[[package]] +name = "typing-extensions" +version = "4.15.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" }, +] + +[[package]] +name = "typing-inspection" +version = "0.4.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/55/e3/70399cb7dd41c10ac53367ae42139cf4b1ca5f36bb3dc6c9d33acdb43655/typing_inspection-0.4.2.tar.gz", hash = "sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464", size = 75949, upload-time = "2025-10-01T02:14:41.687Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/dc/9b/47798a6c91d8bdb567fe2698fe81e0c6b7cb7ef4d13da4114b41d239f65d/typing_inspection-0.4.2-py3-none-any.whl", hash = "sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7", size = 14611, upload-time = "2025-10-01T02:14:40.154Z" }, +] + +[[package]] +name = "uncalled-for" +version = "0.3.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b5/82/345cc927f7fbdae6065e7768759932fcc827fc20b29b45dfbafa2f1f7da4/uncalled_for-0.3.2.tar.gz", hash = "sha256:89f5dbcd71e2b8f47c030b1fa302e6cce2ec795d1ac565eeb6525c5fe55cb8a2", size = 50032, upload-time = "2026-05-06T13:38:25.204Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3b/25/2c87754f3a9e692315f7b811244090e68f362979fc8886b3fbd2985a1d8c/uncalled_for-0.3.2-py3-none-any.whl", hash = "sha256:0ff60b142c7d1f8070bde9d42afaa70aedc77dcc10998c227687e9c15713418e", size = 11444, upload-time = "2026-05-06T13:38:24.025Z" }, +] + +[[package]] +name = "uvicorn" +version = "0.49.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "h11" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c4/1f/fa18009dea8469069cca78a4e877a008ab78f08b064bfc9ab891579077ff/uvicorn-0.49.0.tar.gz", hash = "sha256:ebf4271aa580d9de97f93192d4595176df6e91f9aae919ca73e4fc07df1e66a3", size = 91284, upload-time = "2026-06-03T22:01:30.448Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/88/fa/e1388bbcf24ef3274f45c0c1c7b501fd14971037c1b6ee23610553307497/uvicorn-0.49.0-py3-none-any.whl", hash = "sha256:ba3d14c3ee7e41c6c654c46c9eb489d33213cdd30aa1696eab1374337c13f68f", size = 71376, upload-time = "2026-06-03T22:01:29.037Z" }, +] + +[[package]] +name = "watchfiles" +version = "1.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/cd/41/5e1a4bb12aac5f1493fa1bdc11154eca3b258ca4eba65d39c473fe19d8e9/watchfiles-1.2.0.tar.gz", hash = "sha256:c995fba777f1ea992f090f9236e9284cf7a5d1a0130dd5a3d82c598cacd76838", size = 108252, upload-time = "2026-05-18T04:32:04.251Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b8/2f/e42c992d2afda3108ea1c02acecc991b9f31d05c14adc2a7cee9ee211fc4/watchfiles-1.2.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:bc13eb17538be00c874699dc0abe4ee2bc8d50bb1166a6b9e175ef3fd7eb8f26", size = 400115, upload-time = "2026-05-18T04:32:02.06Z" }, + { url = "https://files.pythonhosted.org/packages/5f/8f/6af2ea19065c91d8b0ea3516fdfc8c0d349f407e8e9fbf4e5a17360de8ad/watchfiles-1.2.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2d95ddc1eb6914154253d239089900813f6a767e174b8e6a50e7fdacb7e4236c", size = 393659, upload-time = "2026-05-18T04:30:50.951Z" }, + { url = "https://files.pythonhosted.org/packages/13/01/b32a967c56fb3e3e5be3db52c3d3b87fa4513aa367d8ed1ad96d42952e5f/watchfiles-1.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8f70d8b291ef6e88d19b1f297a6905ddb978888d9272b0d05e6f53309856bcfc", size = 453207, upload-time = "2026-05-18T04:31:04.231Z" }, + { url = "https://files.pythonhosted.org/packages/04/98/97557a812180338cb1abd32e1cffcc4588f59b5f23e0cb006b2ba95ba64a/watchfiles-1.2.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:56d8641cf834c2836922899105bd3ce3d0dfc69291d52edf0b4d0436829b34c0", size = 459273, upload-time = "2026-05-18T04:31:50.377Z" }, + { url = "https://files.pythonhosted.org/packages/e8/a8/b4b08dcb7653b8087c6586f7ce649505900e866bbcfe40dc9587af02e686/watchfiles-1.2.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2581a94056e55d7d0a31a823ea92bf73749c489ca2285bfdc0fbe6b2bb49d50c", size = 489927, upload-time = "2026-05-18T04:31:42.485Z" }, + { url = "https://files.pythonhosted.org/packages/50/94/3dceea03545d2e5ddfd839f0ddd5e1cecbf1697b5a428d5ba11cef6af95d/watchfiles-1.2.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:41bc1199f7523b3f82843c88cbb979180c949caef0342cf90968f178e5d49b01", size = 570476, upload-time = "2026-05-18T04:31:03.071Z" }, + { url = "https://files.pythonhosted.org/packages/cc/f2/d39a5450c3532092b91f81d274360e613c2371bc874a89c7a1a3c5e8d138/watchfiles-1.2.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7571e4464cb6e434958f867f7f730b8ab0b75e3f8e5eac0499168486ab3c33a8", size = 465650, upload-time = "2026-05-18T04:30:12.701Z" }, + { url = "https://files.pythonhosted.org/packages/22/24/ed72f68cbc1333ca9b9f2200aa048bb6658ae41709bc1caad4310f4bdffd/watchfiles-1.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e53a384f76b631c3ae5334ce6a52f0baa3a911eb94a4eac7f160079868b716d5", size = 456398, upload-time = "2026-05-18T04:30:13.784Z" }, + { url = "https://files.pythonhosted.org/packages/0d/64/982ef4a4e5bab5b6e5b6becc8cd5e732f6130a78b855f0abec6439a9a135/watchfiles-1.2.0-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:d20029a60a71a052a24c4db7673bc4de39ab89adbaccbfb5d67987c5d73f424d", size = 465140, upload-time = "2026-05-18T04:31:52.111Z" }, + { url = "https://files.pythonhosted.org/packages/a0/0c/95282abf4ed680b6096010bcfc30c5fa7a041fc5aa5a2ad17a2cc6c75bba/watchfiles-1.2.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:2cb93af48550faf1cea04c303107c8b75833de7013e57ce27d3b8d21d8d0f58c", size = 630259, upload-time = "2026-05-18T04:31:25.676Z" }, + { url = "https://files.pythonhosted.org/packages/30/45/607c1de1530c4bdcf2cf1d1ecc2505ddba5d96bd43ba9f2b0e79876f850f/watchfiles-1.2.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:2995c176de7692b86a2e4c58d9ec718f753150a979cb4a754e2b4ffa38e70906", size = 659859, upload-time = "2026-05-18T04:30:24.333Z" }, + { url = "https://files.pythonhosted.org/packages/fa/08/d9e2e0f9e8e6791d33aefc694ad7eefa7f901f63caff84a81ded38692f9c/watchfiles-1.2.0-cp312-cp312-win32.whl", hash = "sha256:7a2cffd17d27d2ecbb310c2b1d8174f222a5495b1a721894afa88ec11e25b898", size = 275480, upload-time = "2026-05-18T04:30:31.307Z" }, + { url = "https://files.pythonhosted.org/packages/1c/e6/9d42569c0102645cc8cea5d8c7d8a1e9d4ada2cb7f05f75e554b8aa2202a/watchfiles-1.2.0-cp312-cp312-win_amd64.whl", hash = "sha256:f155b3a1b2a5fc89cdc70d47ee5d54e3b75e88efa34982028a35daef9ba00379", size = 288718, upload-time = "2026-05-18T04:32:10.745Z" }, + { url = "https://files.pythonhosted.org/packages/0a/26/88e0dc6ee3898169d7fa22bb6a69cabf2502d2ee25cb8c876d1262d204f8/watchfiles-1.2.0-cp312-cp312-win_arm64.whl", hash = "sha256:8fa585ede612ee9f9e91b18bebf9ba11b9ae29a4e3a0d0cf6fca3e382133f0d5", size = 281026, upload-time = "2026-05-18T04:30:22.23Z" }, + { url = "https://files.pythonhosted.org/packages/d1/4d/70a7feced9f87e2ff26dba42667290f41694fc64646c67261fbb8cab5d5c/watchfiles-1.2.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:01ea8d66f0693b9b60a6541c8d10263091ca9a9060d242f3c1f3143f9aad2c98", size = 399730, upload-time = "2026-05-18T04:31:38.162Z" }, + { url = "https://files.pythonhosted.org/packages/31/3a/0da302f2307aee316922806ebd5726c542cbd787c938271cf14a074c7daf/watchfiles-1.2.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:7ba0480b9a74af058f43b337e937a451e109295c420916d68ad24e3dc02f5e44", size = 392842, upload-time = "2026-05-18T04:30:27.051Z" }, + { url = "https://files.pythonhosted.org/packages/db/ef/d5bdb705c224dbc256aa0c1ec47bf4e61ec52558f2afb44a71a1fe4d7015/watchfiles-1.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4f34e26a19f91f710c08e0183429f0d1d15df734e6bc78c31e77b9ea9c433658", size = 452989, upload-time = "2026-05-18T04:31:11.945Z" }, + { url = "https://files.pythonhosted.org/packages/71/29/5495f2c1661949ef7a35e4d71111d129cfe7606414a26887a919d0a55406/watchfiles-1.2.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b4e77f6a55f858504069abd35d336a637555c09bca453dde1ee1e5ada8a6a1fb", size = 458978, upload-time = "2026-05-18T04:30:52.606Z" }, + { url = "https://files.pythonhosted.org/packages/d5/8c/7f9c07c433811c2fffd93e13fdfb7135de9aab5f2ae41be08960fa0047dc/watchfiles-1.2.0-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0cb4d80e212f116474a545c21c912b445f16bb0cef9e6a73a498164223e14e2f", size = 490248, upload-time = "2026-05-18T04:31:36.003Z" }, + { url = "https://files.pythonhosted.org/packages/3c/11/d93632febc52fbc21be90231bb7c17fd5387f46c9076fd40a5f9c2ae6910/watchfiles-1.2.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b974946a10af379d425e2eef5b62f5c6ebeaccf91d45eaad6f5b27ecd4f91aa0", size = 571847, upload-time = "2026-05-18T04:31:10.862Z" }, + { url = "https://files.pythonhosted.org/packages/55/b4/383173e73aabb07ad1d9c7aa859d95437ac46a6d6a1e11005facda0c9d19/watchfiles-1.2.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:86bc13c25a8d1fcd70b51d0ce7c9b65e90de5666fcbfd3e34957cc73ee19aeb5", size = 465974, upload-time = "2026-05-18T04:30:17.006Z" }, + { url = "https://files.pythonhosted.org/packages/a7/6c/89b1a230a78f57c52dd8893adb1f92f94411721b6ec12596c56d98c74356/watchfiles-1.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ca148d73dea36c9763aaa351e4d7a51780ec1584217c45276f4fe8239c768b71", size = 454782, upload-time = "2026-05-18T04:30:35.656Z" }, + { url = "https://files.pythonhosted.org/packages/24/62/1732118367cfff0a9fce3bf62ff4bfded09ef5df21d9d446b858b3f70a96/watchfiles-1.2.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:c525543d91961c6955b2636b308569e84a1d1c5f5f2932041ab9ef46422f43e3", size = 465182, upload-time = "2026-05-18T04:30:20.846Z" }, + { url = "https://files.pythonhosted.org/packages/28/96/716f7e5f51339bf22963f3345f9f27d7f3b30e2eadc597e257c881dd3c53/watchfiles-1.2.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:a204794696ffb8f9b10fba6f7cb5216d42f3b2b71860ccac6b6e42f5f10973b0", size = 629841, upload-time = "2026-05-18T04:31:05.397Z" }, + { url = "https://files.pythonhosted.org/packages/4c/fe/c40783950fd771ccf66ab3ec2722d188a9af1c7f96c6e811f36e40c6e03f/watchfiles-1.2.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:10d86db20695afe7997ac9e1717637d6714a8d0220458c33f3d2061f54cec427", size = 658028, upload-time = "2026-05-18T04:31:48.22Z" }, + { url = "https://files.pythonhosted.org/packages/71/72/4508db1856d1d87fcbb3b63f4839bab1b5682cb0e8d224d122263c09654a/watchfiles-1.2.0-cp313-cp313-win32.whl", hash = "sha256:eb283ee99e21ad6443c8cdb06ac5b34b1308c329cbdf03fa02b445363714c799", size = 275183, upload-time = "2026-05-18T04:30:59.57Z" }, + { url = "https://files.pythonhosted.org/packages/f9/36/14b76ca57652e5cc5fd1c11f32a261292c08a0d19a00351013c2549cbfb2/watchfiles-1.2.0-cp313-cp313-win_amd64.whl", hash = "sha256:a0f27f01bee51861392bb6b7c4fdb290b27d1eb194e9e28788d68102a0e898d9", size = 288059, upload-time = "2026-05-18T04:32:07.937Z" }, + { url = "https://files.pythonhosted.org/packages/1b/8d/0a85e395398d8d20fadfe5c5d32c726eee17a519e78fb356f2cf7531bffe/watchfiles-1.2.0-cp313-cp313-win_arm64.whl", hash = "sha256:3651aa7058595e9cfb75d35dd5ada2bf9f48a5b8a0f3562821d3e210c507e077", size = 280186, upload-time = "2026-05-18T04:31:54.484Z" }, + { url = "https://files.pythonhosted.org/packages/37/68/36db056f1fdcc5f07302f56e631774d6835bcd6fa3ace402304621d5f9e5/watchfiles-1.2.0-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:faea288b6f0ab1902ef08f4ca6de005dccf856c4e0c4f21b8c5fce02d90a1b08", size = 399031, upload-time = "2026-05-18T04:30:44.576Z" }, + { url = "https://files.pythonhosted.org/packages/c1/64/01a9d6f66a82a5c101ce939274106cc72759d62427e153f01edd2b9f87c2/watchfiles-1.2.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:01859b11fd9fbca670f4d5da00fbac282cfea9bd67a2125d8b2833a3b5617ea9", size = 391205, upload-time = "2026-05-18T04:30:25.413Z" }, + { url = "https://files.pythonhosted.org/packages/84/2c/0a44fe058cb4bb7b8ede6b6670698bbb7c0400740e378d00022189b7b31d/watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fff610d7bb2256a317bb1e96f0d7862c7aa8076733ee5df0fd41bbe76a24a4f4", size = 451892, upload-time = "2026-05-18T04:32:14.005Z" }, + { url = "https://files.pythonhosted.org/packages/67/a1/351e0d56cd35e6488b5c8b4fb11a809a5bc923e8fe8fed9faf8920be0c89/watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b141a4891c995a039cd89e9a49e62df1dc8a559a5d1a6e4c7106d16c12777a55", size = 458867, upload-time = "2026-05-18T04:31:22.279Z" }, + { url = "https://files.pythonhosted.org/packages/d5/7d/9d09605187f1b838998624049fcf8bf47b73c1a3b76901fcac1782f62277/watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f22943b7770483f6ea0721c6b11d022947a98eb0acae14694de034f4d0d38925", size = 490217, upload-time = "2026-05-18T04:31:43.657Z" }, + { url = "https://files.pythonhosted.org/packages/60/5d/a17a16eccb182f04188cd308ec24b1a71a9b5c4e7098269cf35d9fa56d02/watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1bc6195825b7dcd217968bb1f801a60fd4c16e8eeab5bedc7fe917d7d5995ab4", size = 571458, upload-time = "2026-05-18T04:32:11.875Z" }, + { url = "https://files.pythonhosted.org/packages/d3/3d/4dd457062083ab1938e5dfd45032eb425cee2ac817287ca8ff4356183e5d/watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d4a4b147f5dca2a5d325a06a832fb43f345751adfbc63204aec30e0d9ca965a2", size = 464707, upload-time = "2026-05-18T04:30:43.492Z" }, + { url = "https://files.pythonhosted.org/packages/c6/71/ea8c57b128f5383de74d0c7d2d9c57ad7c9a65a930c451bd25d524b295b7/watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4543579a9bdb0c9560039b4ffddbdb39545707659fbc430ce4c10f3f68d557f9", size = 454663, upload-time = "2026-05-18T04:30:16.061Z" }, + { url = "https://files.pythonhosted.org/packages/53/fd/2e812bf938406d7db351f0703ddd3fc6c061cf30d96153a77bc79a943a44/watchfiles-1.2.0-cp313-cp313t-manylinux_2_31_riscv64.whl", hash = "sha256:20aa0e708b920bde876a4aa82dc7dd6ebea228a63a67cda6632c2fc87b787efa", size = 463537, upload-time = "2026-05-18T04:31:44.9Z" }, + { url = "https://files.pythonhosted.org/packages/86/56/d17a7f1dd1bc3035f1072694a551301272f1739c2d8e319c927cb9e29b38/watchfiles-1.2.0-cp313-cp313t-musllinux_1_1_aarch64.whl", hash = "sha256:d413349d565dab74297f2a63e84a097936be69bf8f3b3801f27f380e32040f44", size = 629194, upload-time = "2026-05-18T04:31:14.141Z" }, + { url = "https://files.pythonhosted.org/packages/be/06/f1ff66bf5cae50aa4062779a0ecd0bbaf15e466195719074078947d9a17d/watchfiles-1.2.0-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:f28b2725eb8cce327b9b3ab02415c853011dc55c95832fe90de6bc56f5315f72", size = 656194, upload-time = "2026-05-18T04:31:47.14Z" }, + { url = "https://files.pythonhosted.org/packages/e7/54/a9c7ea9a82a4ac65e7004c0a03920b5cdd2f9c3b678757d9cd425aa51d53/watchfiles-1.2.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:b8c8358484d5fa12ef34f05b7f4168eaf1932f408725ff6d023c33ec17bd79d4", size = 400205, upload-time = "2026-05-18T04:32:05.153Z" }, + { url = "https://files.pythonhosted.org/packages/aa/5d/c9ab3534374a4a67450696905d6ef16a04405448b8dc52bd752ae50423d4/watchfiles-1.2.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:9f04b092229ad2c50126dd3c922c8822e51e605993764a33058d4a791ab42281", size = 392508, upload-time = "2026-05-18T04:30:54.849Z" }, + { url = "https://files.pythonhosted.org/packages/26/ca/1ad30103535cf0cecd7b993e8d50edc5351b1820e38f2d22e3df58962feb/watchfiles-1.2.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7a7ce236284f002a156f70add88efe5c70879cccbb658be0822c54b1306fc09d", size = 452448, upload-time = "2026-05-18T04:30:53.727Z" }, + { url = "https://files.pythonhosted.org/packages/37/a1/ceee2cdf2afbd715fa07758d39c9859513eae411b23196f7fd039e5feedd/watchfiles-1.2.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b9909cc2b48468b575eefa944919e1fe8a36c5849d5c7c168f80a8c1db69398e", size = 459605, upload-time = "2026-05-18T04:30:23.312Z" }, + { url = "https://files.pythonhosted.org/packages/e8/f6/421e30fd1cb3907a84ed92ab3f1983e37ba2dca015e9a894a048418417a2/watchfiles-1.2.0-cp314-cp314-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0a37faaed405c67e28e6be45a1fa4f206ef5a2860f27c237db9fa30704c38242", size = 490757, upload-time = "2026-05-18T04:30:47.358Z" }, + { url = "https://files.pythonhosted.org/packages/41/b0/55ed1b97ed08be7bba6f9a541cac15f2a858e1d74d2b07b6da70a82aab00/watchfiles-1.2.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9649193aa27bd9ff2e80ff29bfaa93085496c7a3a377592823cc58b77ee88add", size = 568672, upload-time = "2026-05-18T04:30:38.915Z" }, + { url = "https://files.pythonhosted.org/packages/d1/cf/d8ae8a80dd7bafab395ea7681c10237311bbf34d37704a8c744e7cf31fc7/watchfiles-1.2.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4e4ff8e37f99cf1da89e255e07c9c4b37c214038c4283707bdec308cb1b0ea1f", size = 464197, upload-time = "2026-05-18T04:30:09.914Z" }, + { url = "https://files.pythonhosted.org/packages/7c/8a/3076c496ca8dafe0e8cd03fcebdfc47be4b1174b4e5b24ff6e396e6b3af2/watchfiles-1.2.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:054dc20fd2e3132b4c3883b4a00d72fd6e1f56fdaf89fccd12e8057d74cd74d7", size = 453181, upload-time = "2026-05-18T04:30:14.829Z" }, + { url = "https://files.pythonhosted.org/packages/e5/10/9745e17c98e7b8a86454df0a3c7b5686bd650383f1e9f26e4ebcbd6cc0c0/watchfiles-1.2.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:e140ed30ebde76796b686e67c182cff10ea2fbab186fafd1560f74bb5a473a6e", size = 465109, upload-time = "2026-05-18T04:30:28.123Z" }, + { url = "https://files.pythonhosted.org/packages/8f/95/8ef4a95481d3e0cb52d62a06fa6e972e81424be2d9698b91a2fecca9904c/watchfiles-1.2.0-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:bb7e52ecf68ba46d22df23467b87cffeb2146908aa523ebfe803019618cfda06", size = 630653, upload-time = "2026-05-18T04:31:49.304Z" }, + { url = "https://files.pythonhosted.org/packages/fd/e4/3b3bf36b0f829b50c6ebcb8d031583863c59f923d6a6af3d485e470d0fac/watchfiles-1.2.0-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:23282a321c8baf9b3a3c4afff673f9fe65eb7fdc2338d765ccad9d3d1916a5ba", size = 657838, upload-time = "2026-05-18T04:31:06.497Z" }, + { url = "https://files.pythonhosted.org/packages/21/b1/6cbbb50c1f3002ab568777d44aa21206dfb8807a840990c4037523b51812/watchfiles-1.2.0-cp314-cp314-win32.whl", hash = "sha256:c0db965c5f79aa49fe672d297cf1febc5ad149b658594944f49a54a2b96270a7", size = 275108, upload-time = "2026-05-18T04:30:06.891Z" }, + { url = "https://files.pythonhosted.org/packages/92/45/190ce6db8dcb4536682cf75d3889ff1a27182a58cb519d343cb6d9ea63d8/watchfiles-1.2.0-cp314-cp314-win_amd64.whl", hash = "sha256:71283b39fd17e5408eb123bd37aeecfd9d54c81fc184421943208aadb879d103", size = 288441, upload-time = "2026-05-18T04:32:12.901Z" }, + { url = "https://files.pythonhosted.org/packages/74/0d/3eae1c2313ab08378431d907c3f8095ecca00f3eda33111cf4f0f2591799/watchfiles-1.2.0-cp314-cp314-win_arm64.whl", hash = "sha256:c5c19526f4e54a00f2666a6c0e9e40d582c09e865055ea7378bf0009aab857b3", size = 280684, upload-time = "2026-05-18T04:31:26.902Z" }, + { url = "https://files.pythonhosted.org/packages/b1/75/fb64e6c25d6b5ca636d03df34ffb1c6e9873303e76d27967e045f8df088f/watchfiles-1.2.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:d73a585accffa5ae39c17264c36ec3166d2fad7000c780f5ef83b2722afb9dd2", size = 398857, upload-time = "2026-05-18T04:32:17.108Z" }, + { url = "https://files.pythonhosted.org/packages/73/4e/9f7adf01754cbf81843722ccfec169d8f26c69778281a302855cecd2ee08/watchfiles-1.2.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ae99b14c5f21e026e0e9d96f40e07d8570ebee6cafd9d8fc318354606daa7a28", size = 392413, upload-time = "2026-05-18T04:31:07.911Z" }, + { url = "https://files.pythonhosted.org/packages/47/c8/bec626bcc2d69f44b9acb24ce7d60ed7b16b73628eea747fcbd169d8edda/watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4429f3b105524a10b72c3a819b091c495d2811d419c1e1e8df773a5a5974f831", size = 452409, upload-time = "2026-05-18T04:31:20.142Z" }, + { url = "https://files.pythonhosted.org/packages/00/b7/b6362068e81e7c556d155a34c35d40ac3ef42d747b06d7f6e5bf58e359c2/watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:43d818978d06062d9b22c4fab2ebe44cf5213d42dc8e62bda8c2760cfa2eeb33", size = 458827, upload-time = "2026-05-18T04:32:06.219Z" }, + { url = "https://files.pythonhosted.org/packages/67/f8/9a813fa42afb1e0b4625e75f0479826644d3ee8dc287e093799bc01f390c/watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b9f732dc58b2dbe69e464ccf8fff7a03b0dd0be439da4c0720d3558527d3d6b4", size = 490104, upload-time = "2026-05-18T04:31:56.034Z" }, + { url = "https://files.pythonhosted.org/packages/2f/bf/27dfb6094ca4c9aad21298b5525b6c53cb36121ee454331d05161e58d130/watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8f200104103feb097de4cab8fe4f5dd18a2026934c7dea98c55a2f5fd6d5a33b", size = 571360, upload-time = "2026-05-18T04:31:57.133Z" }, + { url = "https://files.pythonhosted.org/packages/fb/39/44a096d67270ea93df91d33877dbe91fbda3aa4f8ec2edf799d93eda8736/watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:63ac26eefbf4af1741247d6fb68b11c49a25b2f7413fbd318a83a12aaa9cf666", size = 464644, upload-time = "2026-05-18T04:30:57.33Z" }, + { url = "https://files.pythonhosted.org/packages/0e/80/c7472203bad6268e3ef1ad260739704847898938ad7ea8b63a5131f46b50/watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c4997d4e4a55f0d02b6cde327322daf3a0400e5df6c6b15948994bf72497925", size = 454771, upload-time = "2026-05-18T04:30:48.736Z" }, + { url = "https://files.pythonhosted.org/packages/51/cf/3b10b268b4b7f0fc26e9debb5eef1998b515887840f444cd3ec80c688755/watchfiles-1.2.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:4c887eba18b7945ac73067a8b4a66f21cd46c2539b2bc68588f7be6c7eb6d26b", size = 463494, upload-time = "2026-05-18T04:31:33.826Z" }, + { url = "https://files.pythonhosted.org/packages/3d/3e/a4302545cd589262a0dc7d140e86f7688eba3f9c72776c27f7e23b8864c4/watchfiles-1.2.0-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:3416ff151bb6b5a8d8d11664974fbef4d9305b9b2957839ab5a270468fd8df30", size = 629383, upload-time = "2026-05-18T04:31:15.596Z" }, + { url = "https://files.pythonhosted.org/packages/db/99/d5649df0a9a410d45b7c882304d0b790903ac9b6e8f2cfd12114e0c6b9f2/watchfiles-1.2.0-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:0e831a271c035d89789cffc386b6aa1375f39f1cd25eb7ca0997e4970d152fc5", size = 656093, upload-time = "2026-05-18T04:31:58.707Z" }, + { url = "https://files.pythonhosted.org/packages/92/b9/362702539275019a54dd2e94511b31a9b89c5f9e6a21966de7eb692549fc/watchfiles-1.2.0-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:37a6721cdf3f65dbb13aa9503510ccb4451603ac837e44d265d7992a597e1374", size = 400109, upload-time = "2026-05-18T04:31:16.879Z" }, + { url = "https://files.pythonhosted.org/packages/8f/75/71d5ba62db781e5587bded1d944c675374bc4aa37ff33d5018d98e8b6538/watchfiles-1.2.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:2b37d10b5a63bd4d87e18472d80fa525bd670586fae62e5dd580452764879b65", size = 392167, upload-time = "2026-05-18T04:31:28.058Z" }, + { url = "https://files.pythonhosted.org/packages/3c/01/c66dd95d0423fe30d31820e2d1d5bda773764131bbb6ac0cb1cf303ac328/watchfiles-1.2.0-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0a105bc2283f67e8fbec74253ec2d94925de92ed72c0393f1206bf326b7b7b69", size = 452372, upload-time = "2026-05-18T04:31:00.836Z" }, + { url = "https://files.pythonhosted.org/packages/91/15/2fe99557e72f85627c6a8eed50d889e8d101623e060a22ad75b875cb932d/watchfiles-1.2.0-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5327989a465505f05cfe06f04fa9d0c2fd5432bb243e10e6f012b1bdca3c8579", size = 459596, upload-time = "2026-05-18T04:31:34.96Z" }, + { url = "https://files.pythonhosted.org/packages/ed/23/d4acfa0023367428ed48351b3b9b267893037b6cadae55620c61c24bcfd4/watchfiles-1.2.0-cp315-cp315-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ecb47f183a8025b2aa18b546725c3657e542112ae9c0613a2af79b4fa8d04ad7", size = 490869, upload-time = "2026-05-18T04:31:59.923Z" }, + { url = "https://files.pythonhosted.org/packages/a4/5f/3164cbdce06c9fb95c4f7b9e2f9760b5e2797af43a9ecc317ef42a23a278/watchfiles-1.2.0-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8520a4ab0e37f770afc34459c4f8f7019e153f9124dc101c15538365875d1ab2", size = 571641, upload-time = "2026-05-18T04:32:00.948Z" }, + { url = "https://files.pythonhosted.org/packages/41/e6/85d3731c55e65cd7690f3f803d24c139588aaf863e4bf2148fe7a7fa1a19/watchfiles-1.2.0-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:71cd71740ed2c15211ebb237ced4e39a1cdf6f80566e5fe95428da1626f4fde6", size = 464444, upload-time = "2026-05-18T04:30:34.298Z" }, + { url = "https://files.pythonhosted.org/packages/f4/7d/562641012b8b09872742c3b8adf9629ec479fd78f8d68ae4a0c13da8add6/watchfiles-1.2.0-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f88af53d6ddaf72179ef613ddc905e6f4785f712b49b80b3bef9f3525e6194b4", size = 453593, upload-time = "2026-05-18T04:31:23.464Z" }, + { url = "https://files.pythonhosted.org/packages/56/fe/cb8ef3d6f929d14158fdaaad9925985b7310abc9384dcd4d82dd0016fb59/watchfiles-1.2.0-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:cee9d5efd929efdac5f7e58f72b3376f676b64050a91c5b99a7094c5b2317488", size = 465096, upload-time = "2026-05-18T04:31:30.384Z" }, + { url = "https://files.pythonhosted.org/packages/25/91/80908e835e100527a9267147b08c0eee1fa6ab0ffec15edc04d1d44885f7/watchfiles-1.2.0-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:b718bf356bbc15e559bd8ef41782b573b8ae0e3f177ab244b440568d7ea02cfb", size = 630638, upload-time = "2026-05-18T04:30:49.89Z" }, + { url = "https://files.pythonhosted.org/packages/46/4b/95ab2f256bb4af3cb2eb23b9317bda984ee6e0f11733a5c004a6c95b06e3/watchfiles-1.2.0-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:922c0e019fe68b3ae392965a766b02a71ba1168c932cebc3733cd52c5fe5b377", size = 657684, upload-time = "2026-05-18T04:31:32.027Z" }, +] + +[[package]] +name = "websockets" +version = "16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/04/24/4b2031d72e840ce4c1ccb255f693b15c334757fc50023e4db9537080b8c4/websockets-16.0.tar.gz", hash = "sha256:5f6261a5e56e8d5c42a4497b364ea24d94d9563e8fbd44e78ac40879c60179b5", size = 179346, upload-time = "2026-01-10T09:23:47.181Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/84/7b/bac442e6b96c9d25092695578dda82403c77936104b5682307bd4deb1ad4/websockets-16.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:71c989cbf3254fbd5e84d3bff31e4da39c43f884e64f2551d14bb3c186230f00", size = 177365, upload-time = "2026-01-10T09:22:46.787Z" }, + { url = "https://files.pythonhosted.org/packages/b0/fe/136ccece61bd690d9c1f715baaeefd953bb2360134de73519d5df19d29ca/websockets-16.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:8b6e209ffee39ff1b6d0fa7bfef6de950c60dfb91b8fcead17da4ee539121a79", size = 175038, upload-time = "2026-01-10T09:22:47.999Z" }, + { url = "https://files.pythonhosted.org/packages/40/1e/9771421ac2286eaab95b8575b0cb701ae3663abf8b5e1f64f1fd90d0a673/websockets-16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:86890e837d61574c92a97496d590968b23c2ef0aeb8a9bc9421d174cd378ae39", size = 175328, upload-time = "2026-01-10T09:22:49.809Z" }, + { url = "https://files.pythonhosted.org/packages/18/29/71729b4671f21e1eaa5d6573031ab810ad2936c8175f03f97f3ff164c802/websockets-16.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9b5aca38b67492ef518a8ab76851862488a478602229112c4b0d58d63a7a4d5c", size = 184915, upload-time = "2026-01-10T09:22:51.071Z" }, + { url = "https://files.pythonhosted.org/packages/97/bb/21c36b7dbbafc85d2d480cd65df02a1dc93bf76d97147605a8e27ff9409d/websockets-16.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e0334872c0a37b606418ac52f6ab9cfd17317ac26365f7f65e203e2d0d0d359f", size = 186152, upload-time = "2026-01-10T09:22:52.224Z" }, + { url = "https://files.pythonhosted.org/packages/4a/34/9bf8df0c0cf88fa7bfe36678dc7b02970c9a7d5e065a3099292db87b1be2/websockets-16.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a0b31e0b424cc6b5a04b8838bbaec1688834b2383256688cf47eb97412531da1", size = 185583, upload-time = "2026-01-10T09:22:53.443Z" }, + { url = "https://files.pythonhosted.org/packages/47/88/4dd516068e1a3d6ab3c7c183288404cd424a9a02d585efbac226cb61ff2d/websockets-16.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:485c49116d0af10ac698623c513c1cc01c9446c058a4e61e3bf6c19dff7335a2", size = 184880, upload-time = "2026-01-10T09:22:55.033Z" }, + { url = "https://files.pythonhosted.org/packages/91/d6/7d4553ad4bf1c0421e1ebd4b18de5d9098383b5caa1d937b63df8d04b565/websockets-16.0-cp312-cp312-win32.whl", hash = "sha256:eaded469f5e5b7294e2bdca0ab06becb6756ea86894a47806456089298813c89", size = 178261, upload-time = "2026-01-10T09:22:56.251Z" }, + { url = "https://files.pythonhosted.org/packages/c3/f0/f3a17365441ed1c27f850a80b2bc680a0fa9505d733fe152fdf5e98c1c0b/websockets-16.0-cp312-cp312-win_amd64.whl", hash = "sha256:5569417dc80977fc8c2d43a86f78e0a5a22fee17565d78621b6bb264a115d4ea", size = 178693, upload-time = "2026-01-10T09:22:57.478Z" }, + { url = "https://files.pythonhosted.org/packages/cc/9c/baa8456050d1c1b08dd0ec7346026668cbc6f145ab4e314d707bb845bf0d/websockets-16.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:878b336ac47938b474c8f982ac2f7266a540adc3fa4ad74ae96fea9823a02cc9", size = 177364, upload-time = "2026-01-10T09:22:59.333Z" }, + { url = "https://files.pythonhosted.org/packages/7e/0c/8811fc53e9bcff68fe7de2bcbe75116a8d959ac699a3200f4847a8925210/websockets-16.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:52a0fec0e6c8d9a784c2c78276a48a2bdf099e4ccc2a4cad53b27718dbfd0230", size = 175039, upload-time = "2026-01-10T09:23:01.171Z" }, + { url = "https://files.pythonhosted.org/packages/aa/82/39a5f910cb99ec0b59e482971238c845af9220d3ab9fa76dd9162cda9d62/websockets-16.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e6578ed5b6981005df1860a56e3617f14a6c307e6a71b4fff8c48fdc50f3ed2c", size = 175323, upload-time = "2026-01-10T09:23:02.341Z" }, + { url = "https://files.pythonhosted.org/packages/bd/28/0a25ee5342eb5d5f297d992a77e56892ecb65e7854c7898fb7d35e9b33bd/websockets-16.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:95724e638f0f9c350bb1c2b0a7ad0e83d9cc0c9259f3ea94e40d7b02a2179ae5", size = 184975, upload-time = "2026-01-10T09:23:03.756Z" }, + { url = "https://files.pythonhosted.org/packages/f9/66/27ea52741752f5107c2e41fda05e8395a682a1e11c4e592a809a90c6a506/websockets-16.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c0204dc62a89dc9d50d682412c10b3542d748260d743500a85c13cd1ee4bde82", size = 186203, upload-time = "2026-01-10T09:23:05.01Z" }, + { url = "https://files.pythonhosted.org/packages/37/e5/8e32857371406a757816a2b471939d51c463509be73fa538216ea52b792a/websockets-16.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:52ac480f44d32970d66763115edea932f1c5b1312de36df06d6b219f6741eed8", size = 185653, upload-time = "2026-01-10T09:23:06.301Z" }, + { url = "https://files.pythonhosted.org/packages/9b/67/f926bac29882894669368dc73f4da900fcdf47955d0a0185d60103df5737/websockets-16.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6e5a82b677f8f6f59e8dfc34ec06ca6b5b48bc4fcda346acd093694cc2c24d8f", size = 184920, upload-time = "2026-01-10T09:23:07.492Z" }, + { url = "https://files.pythonhosted.org/packages/3c/a1/3d6ccdcd125b0a42a311bcd15a7f705d688f73b2a22d8cf1c0875d35d34a/websockets-16.0-cp313-cp313-win32.whl", hash = "sha256:abf050a199613f64c886ea10f38b47770a65154dc37181bfaff70c160f45315a", size = 178255, upload-time = "2026-01-10T09:23:09.245Z" }, + { url = "https://files.pythonhosted.org/packages/6b/ae/90366304d7c2ce80f9b826096a9e9048b4bb760e44d3b873bb272cba696b/websockets-16.0-cp313-cp313-win_amd64.whl", hash = "sha256:3425ac5cf448801335d6fdc7ae1eb22072055417a96cc6b31b3861f455fbc156", size = 178689, upload-time = "2026-01-10T09:23:10.483Z" }, + { url = "https://files.pythonhosted.org/packages/f3/1d/e88022630271f5bd349ed82417136281931e558d628dd52c4d8621b4a0b2/websockets-16.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:8cc451a50f2aee53042ac52d2d053d08bf89bcb31ae799cb4487587661c038a0", size = 177406, upload-time = "2026-01-10T09:23:12.178Z" }, + { url = "https://files.pythonhosted.org/packages/f2/78/e63be1bf0724eeb4616efb1ae1c9044f7c3953b7957799abb5915bffd38e/websockets-16.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:daa3b6ff70a9241cf6c7fc9e949d41232d9d7d26fd3522b1ad2b4d62487e9904", size = 175085, upload-time = "2026-01-10T09:23:13.511Z" }, + { url = "https://files.pythonhosted.org/packages/bb/f4/d3c9220d818ee955ae390cf319a7c7a467beceb24f05ee7aaaa2414345ba/websockets-16.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:fd3cb4adb94a2a6e2b7c0d8d05cb94e6f1c81a0cf9dc2694fb65c7e8d94c42e4", size = 175328, upload-time = "2026-01-10T09:23:14.727Z" }, + { url = "https://files.pythonhosted.org/packages/63/bc/d3e208028de777087e6fb2b122051a6ff7bbcca0d6df9d9c2bf1dd869ae9/websockets-16.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:781caf5e8eee67f663126490c2f96f40906594cb86b408a703630f95550a8c3e", size = 185044, upload-time = "2026-01-10T09:23:15.939Z" }, + { url = "https://files.pythonhosted.org/packages/ad/6e/9a0927ac24bd33a0a9af834d89e0abc7cfd8e13bed17a86407a66773cc0e/websockets-16.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:caab51a72c51973ca21fa8a18bd8165e1a0183f1ac7066a182ff27107b71e1a4", size = 186279, upload-time = "2026-01-10T09:23:17.148Z" }, + { url = "https://files.pythonhosted.org/packages/b9/ca/bf1c68440d7a868180e11be653c85959502efd3a709323230314fda6e0b3/websockets-16.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:19c4dc84098e523fd63711e563077d39e90ec6702aff4b5d9e344a60cb3c0cb1", size = 185711, upload-time = "2026-01-10T09:23:18.372Z" }, + { url = "https://files.pythonhosted.org/packages/c4/f8/fdc34643a989561f217bb477cbc47a3a07212cbda91c0e4389c43c296ebf/websockets-16.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:a5e18a238a2b2249c9a9235466b90e96ae4795672598a58772dd806edc7ac6d3", size = 184982, upload-time = "2026-01-10T09:23:19.652Z" }, + { url = "https://files.pythonhosted.org/packages/dd/d1/574fa27e233764dbac9c52730d63fcf2823b16f0856b3329fc6268d6ae4f/websockets-16.0-cp314-cp314-win32.whl", hash = "sha256:a069d734c4a043182729edd3e9f247c3b2a4035415a9172fd0f1b71658a320a8", size = 177915, upload-time = "2026-01-10T09:23:21.458Z" }, + { url = "https://files.pythonhosted.org/packages/8a/f1/ae6b937bf3126b5134ce1f482365fde31a357c784ac51852978768b5eff4/websockets-16.0-cp314-cp314-win_amd64.whl", hash = "sha256:c0ee0e63f23914732c6d7e0cce24915c48f3f1512ec1d079ed01fc629dab269d", size = 178381, upload-time = "2026-01-10T09:23:22.715Z" }, + { url = "https://files.pythonhosted.org/packages/06/9b/f791d1db48403e1f0a27577a6beb37afae94254a8c6f08be4a23e4930bc0/websockets-16.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:a35539cacc3febb22b8f4d4a99cc79b104226a756aa7400adc722e83b0d03244", size = 177737, upload-time = "2026-01-10T09:23:24.523Z" }, + { url = "https://files.pythonhosted.org/packages/bd/40/53ad02341fa33b3ce489023f635367a4ac98b73570102ad2cdd770dacc9a/websockets-16.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:b784ca5de850f4ce93ec85d3269d24d4c82f22b7212023c974c401d4980ebc5e", size = 175268, upload-time = "2026-01-10T09:23:25.781Z" }, + { url = "https://files.pythonhosted.org/packages/74/9b/6158d4e459b984f949dcbbb0c5d270154c7618e11c01029b9bbd1bb4c4f9/websockets-16.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:569d01a4e7fba956c5ae4fc988f0d4e187900f5497ce46339c996dbf24f17641", size = 175486, upload-time = "2026-01-10T09:23:27.033Z" }, + { url = "https://files.pythonhosted.org/packages/e5/2d/7583b30208b639c8090206f95073646c2c9ffd66f44df967981a64f849ad/websockets-16.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:50f23cdd8343b984957e4077839841146f67a3d31ab0d00e6b824e74c5b2f6e8", size = 185331, upload-time = "2026-01-10T09:23:28.259Z" }, + { url = "https://files.pythonhosted.org/packages/45/b0/cce3784eb519b7b5ad680d14b9673a31ab8dcb7aad8b64d81709d2430aa8/websockets-16.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:152284a83a00c59b759697b7f9e9cddf4e3c7861dd0d964b472b70f78f89e80e", size = 186501, upload-time = "2026-01-10T09:23:29.449Z" }, + { url = "https://files.pythonhosted.org/packages/19/60/b8ebe4c7e89fb5f6cdf080623c9d92789a53636950f7abacfc33fe2b3135/websockets-16.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:bc59589ab64b0022385f429b94697348a6a234e8ce22544e3681b2e9331b5944", size = 186062, upload-time = "2026-01-10T09:23:31.368Z" }, + { url = "https://files.pythonhosted.org/packages/88/a8/a080593f89b0138b6cba1b28f8df5673b5506f72879322288b031337c0b8/websockets-16.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:32da954ffa2814258030e5a57bc73a3635463238e797c7375dc8091327434206", size = 185356, upload-time = "2026-01-10T09:23:32.627Z" }, + { url = "https://files.pythonhosted.org/packages/c2/b6/b9afed2afadddaf5ebb2afa801abf4b0868f42f8539bfe4b071b5266c9fe/websockets-16.0-cp314-cp314t-win32.whl", hash = "sha256:5a4b4cc550cb665dd8a47f868c8d04c8230f857363ad3c9caf7a0c3bf8c61ca6", size = 178085, upload-time = "2026-01-10T09:23:33.816Z" }, + { url = "https://files.pythonhosted.org/packages/9f/3e/28135a24e384493fa804216b79a6a6759a38cc4ff59118787b9fb693df93/websockets-16.0-cp314-cp314t-win_amd64.whl", hash = "sha256:b14dc141ed6d2dde437cddb216004bcac6a1df0935d79656387bd41632ba0bbd", size = 178531, upload-time = "2026-01-10T09:23:35.016Z" }, + { url = "https://files.pythonhosted.org/packages/6f/28/258ebab549c2bf3e64d2b0217b973467394a9cea8c42f70418ca2c5d0d2e/websockets-16.0-py3-none-any.whl", hash = "sha256:1637db62fad1dc833276dded54215f2c7fa46912301a24bd94d45d46a011ceec", size = 171598, upload-time = "2026-01-10T09:23:45.395Z" }, +] From b8d0ba27c4e79f4d99ff865e204ea90d88fa3c3a Mon Sep 17 00:00:00 2001 From: Ruben Juarez Perez Date: Wed, 10 Jun 2026 23:07:31 +0200 Subject: [PATCH 2/3] updated gitignore --- .gitignore | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.gitignore b/.gitignore index 83972fa..f897bc1 100644 --- a/.gitignore +++ b/.gitignore @@ -216,3 +216,22 @@ __marimo__/ # Streamlit .streamlit/secrets.toml + +# macOS +.DS_Store + +# Go +*.exe +*.exe~ +*.dll +*.test +*.out +/bin/ +/api/bin/ +vendor/ + +# Claude +.claude/ +.claude.json +CLAUDE.local.md +.mcp.json From bddb30f00351c09a64a9946ba75d97f65a0ad678 Mon Sep 17 00:00:00 2001 From: Ruben Juarez Perez Date: Wed, 10 Jun 2026 23:12:05 +0200 Subject: [PATCH 3/3] ci/cd --- .github/workflows/ci.yml | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2eff4a0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,56 @@ +name: CI + +on: + push: + branches: [main, dev] + pull_request: + branches: [main, dev] + +jobs: + api: + name: Go API + runs-on: ubuntu-latest + defaults: + run: + working-directory: api + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version-file: api/go.mod + + - name: Build + run: go build ./... + + - name: Vet + run: go vet ./... + + - name: Test + run: go test ./... + + mcp: + name: MCP server (Python) + runs-on: ubuntu-latest + defaults: + run: + working-directory: mcp + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v3 + with: + enable-cache: true + + - name: Install dependencies + run: uv sync --all-extras --dev + + - name: Lint + run: uv run ruff check . + + - name: Type check + run: uv run mypy . + + - name: Test + run: uv run pytest