From 5504ce066a85bb9e2bbce24cd9afca8b5f87fd24 Mon Sep 17 00:00:00 2001 From: IreneTayler Date: Fri, 10 Jul 2026 17:13:40 +0300 Subject: [PATCH 1/3] refactor: redesign backend architecture, optimize file I/O, and layer frontend logic --- REFACTORING_SUMMARY.md | 193 +++++++++++++ backend/migrations/env.py | 4 +- backend/pyproject.toml | 2 + backend/src/app.py | 14 +- backend/src/config.py | 35 +++ backend/src/database.py | 25 ++ backend/src/logger.py | 23 ++ backend/src/repositories.py | 60 ++++ backend/src/service.py | 84 +++--- backend/src/services/file_scanner.py | 70 +++++ backend/src/services/file_storage.py | 41 +++ backend/src/tasks.py | 74 ++--- backend/uv.lock | 361 +++++++++++++----------- frontend/Dockerfile | 3 +- frontend/src/app/page.tsx | 320 ++------------------- frontend/src/components/AlertTable.tsx | 55 ++++ frontend/src/components/FileTable.tsx | 84 ++++++ frontend/src/components/UploadModal.tsx | 63 +++++ frontend/src/hooks/useFileUpload.ts | 23 ++ frontend/src/hooks/useFilesAndAlerts.ts | 34 +++ frontend/src/lib/api.ts | 99 +++++++ frontend/src/lib/utils.ts | 46 +++ 22 files changed, 1149 insertions(+), 564 deletions(-) create mode 100644 REFACTORING_SUMMARY.md create mode 100644 backend/src/config.py create mode 100644 backend/src/database.py create mode 100644 backend/src/logger.py create mode 100644 backend/src/repositories.py create mode 100644 backend/src/services/file_scanner.py create mode 100644 backend/src/services/file_storage.py create mode 100644 frontend/src/components/AlertTable.tsx create mode 100644 frontend/src/components/FileTable.tsx create mode 100644 frontend/src/components/UploadModal.tsx create mode 100644 frontend/src/hooks/useFileUpload.ts create mode 100644 frontend/src/hooks/useFilesAndAlerts.ts create mode 100644 frontend/src/lib/api.ts create mode 100644 frontend/src/lib/utils.ts diff --git a/REFACTORING_SUMMARY.md b/REFACTORING_SUMMARY.md new file mode 100644 index 00000000..893b4021 --- /dev/null +++ b/REFACTORING_SUMMARY.md @@ -0,0 +1,193 @@ +# Refactoring Summary + +## Backend Refactoring + +### Architecture Improvements + +#### 1. Configuration Management (`src/config.py`) +- **Before**: Configuration scattered across `service.py` and `tasks.py` with hardcoded environment variable access +- **After**: Centralized configuration using Pydantic Settings + - Single source of truth for all configuration + - Type-safe configuration with validation + - Environment-based configuration loading + - Computed properties for derived values (e.g., `database_url`) + +#### 2. Database Layer (`src/database.py`) +- **Before**: Duplicate database connection setup in `service.py` and `tasks.py`, no connection pooling configuration +- **After**: Shared database module with optimized connection pooling + - Single engine instance across the application + - Connection pooling with `pool_size=10`, `max_overflow=20` + - `pool_pre_ping=True` for connection health checks + - `pool_recycle=3600` to prevent stale connections + - Dependency injection support via `get_session()` + +#### 3. Repository Pattern (`src/repositories.py`) +- **Before**: Direct SQLAlchemy queries mixed with business logic in service layer +- **After**: Dedicated repository classes for data access + - `FileRepository`: Encapsulates all file-related database operations + - `AlertRepository`: Encapsulates all alert-related database operations + - Clear separation between data access and business logic + - Easier to test and maintain + +#### 4. Service Layer Refactoring (`src/service.py`) +- **Before**: Mixed concerns (configuration, data access, business logic, file operations) +- **After**: Pure business logic layer + - Uses shared configuration from `config.py` + - Uses shared database session from `database.py` + - Uses repositories for data access + - Focuses solely on business operations + +#### 5. File Storage Service (`src/services/file_storage.py`) +- **Before**: File operations scattered across `service.py` and `tasks.py` +- **After**: Dedicated file storage service + - `FileStorageService`: Encapsulates all file system operations + - Methods for filename generation, saving, deleting, and checking file existence + - Reusable across service layer and tasks + - Easier to test with mock storage + +#### 6. File Scanner Service (`src/services/file_scanner.py`) +- **Before**: Threat detection and metadata extraction logic embedded in `tasks.py` +- **After**: Dedicated file scanner service + - `FileScannerService`: Encapsulates threat detection and metadata extraction + - `scan_for_threats()`: Centralized threat detection logic + - `extract_metadata()`: Centralized metadata extraction logic + - Configurable thresholds (e.g., `MAX_FILE_SIZE_BYTES`, `SUSPICIOUS_EXTENSIONS`) + - Easier to test and extend with new detection rules + +#### 7. Tasks Refactoring (`src/tasks.py`) +- **Before**: Duplicate database setup, direct session manipulation, embedded business logic +- **After**: Uses shared infrastructure and services + - Imports from `config.py` and `database.py` + - Uses repository pattern for data access + - Uses `FileStorageService` for file operations + - Uses `FileScannerService` for threat detection and metadata extraction + - Consistent with main application architecture + +#### 8. Logging (`src/logger.py`) +- **Before**: No logging +- **After**: Structured logging + - Centralized logger configuration + - Consistent log format + - Added to key endpoints in `app.py` + +#### 9. API Layer Cleanup (`src/app.py`) +- **Before**: Direct file path manipulation in download endpoint +- **After**: Uses service layer for file operations + - `download_file` now uses `get_file_path()` from service layer + - Consistent error handling via service layer + - Cleaner separation of concerns + +### Optimization Implemented +**Database Connection Pooling**: The main optimization was implementing proper connection pooling with tuned parameters. This eliminates the overhead of creating new connections for each request and improves performance under load. + +## Frontend Refactoring + +### Layer Separation + +#### 1. API Client Layer (`src/lib/api.ts`) +- **Before**: Direct `fetch` calls throughout the component, hardcoded API URL +- **After**: Centralized API client with configurable base URL + - Single source of truth for API endpoints + - Type-safe API methods + - Consistent error handling + - Reusable across the application + - Configurable via `NEXT_PUBLIC_API_BASE_URL` environment variable + +#### 2. Custom Hooks Layer (`src/hooks/`) +- **Before**: All state and logic in the main component +- **After**: Extracted custom hooks + - `useFilesAndAlerts`: Manages data fetching and state for files and alerts + - `useFileUpload`: Manages file upload logic and state + - Reusable and testable logic separation + +#### 3. Component Layer (`src/components/`) +- **Before**: 368-line monolithic component +- **After**: Modular components + - `FileTable`: Displays file list with loading states, uses `apiClient.getDownloadUrl()` + - `AlertTable`: Displays alert list with loading states + - `UploadModal`: Handles file upload form + - Each component is focused and reusable + +#### 4. Utility Functions (`src/lib/utils.ts`) +- **Before**: Helper functions in the main component +- **After**: Extracted utility module + - `formatDate`, `formatSize`, `getLevelVariant`, `getProcessingVariant` + - Reusable across components + - Easier to test + +#### 5. Main Page Refactoring (`src/app/page.tsx`) +- **Before**: 368 lines with mixed concerns +- **After**: ~100 lines orchestrating components + - Uses custom hooks for state management + - Uses extracted components for UI + - Clean separation of concerns + - Much easier to understand and maintain + +## Benefits + +### Backend +- **Maintainability**: Clear separation of concerns makes the code easier to understand and modify +- **Testability**: Each layer can be tested independently; services can be mocked easily +- **Scalability**: Connection pooling and proper architecture support growth +- **Consistency**: Shared configuration and database setup across all modules +- **Performance**: Optimized connection pooling reduces database overhead +- **Extensibility**: New threat detection rules or metadata extraction logic can be added to `FileScannerService` without touching other layers + +### Frontend +- **Maintainability**: Smaller, focused components are easier to work with +- **Reusability**: Hooks and components can be reused across the application +- **Testability**: Isolated logic in hooks and utilities is easier to test +- **Type Safety**: Centralized types in API client ensure consistency +- **Developer Experience**: Clear structure makes onboarding easier +- **Configurability**: API base URL can be configured for different environments + +## Running the Refactored Application + +The refactored application runs the same way as before: + +```bash +docker compose -f docker-compose.dev.yml up +docker exec -it backend alembic upgrade head +``` + +Frontend: `http://localhost:3000/test` +Backend API: `http://localhost:8000/docs` + +### Environment Variables + +To configure the frontend API URL, set `NEXT_PUBLIC_API_BASE_URL` in the frontend environment: + +```bash +# Example for docker-compose.dev.yml +environment: + - NEXT_PUBLIC_API_BASE_URL=http://localhost:8000 +``` + +> **Note on BuildKit issues:** On some Docker Desktop setups, BuildKit may produce cache snapshot errors. If you encounter `failed to commit ... snapshot ... does not exist`, run with `DOCKER_BUILDKIT=0`: +> ```powershell +> $env:DOCKER_BUILDKIT = "0"; docker compose -f docker-compose.dev.yml up --build -d +> ``` + +## Verification Results + +### Backend Tests (performed inside container) +- **Database migrations** completed successfully +- **File upload** returns 201 and stores file metadata +- **Celery worker** processed the file asynchronously: + - `scan_file_for_threats` completed + - `extract_file_metadata` completed + - `send_file_alert` completed +- **File listing** returns updated file with `processing_status: "processed"`, `scan_status: "clean"`, and `metadata_json` populated +- **Alerts listing** returns the generated alert + +### Frontend Tests +- **Build** completed successfully (production Next.js build) +- **Container** starts without errors on port 3000 +- **Page serving** at `/test` returns 200 with rendered HTML + +## Dependencies Added + +### Backend +- `pydantic-settings>=2.0.0` - For configuration management + +No new frontend dependencies were required. diff --git a/backend/migrations/env.py b/backend/migrations/env.py index e9e9f01b..3be79ede 100644 --- a/backend/migrations/env.py +++ b/backend/migrations/env.py @@ -4,14 +4,14 @@ from sqlalchemy.engine import Connection from sqlalchemy.ext.asyncio import async_engine_from_config from alembic import context -from src.service import DB_URL +from src.config import settings from src.models import Base import src.models # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config -config.set_main_option('sqlalchemy.url', DB_URL) +config.set_main_option('sqlalchemy.url', settings.database_url) # Interpret the config file for Python logging. # This line sets up loggers basically. diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 988f6959..6cfd00d0 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -5,11 +5,13 @@ description = "Add your description here" readme = "README.md" requires-python = ">=3.14" dependencies = [ + "aiofiles>=24.1.0", "alembic>=1.18.4", "asyncpg>=0.30.0", "celery[redis]>=5.6.3", "fastapi>=0.135.3", "pydantic>=2.12.5", + "pydantic-settings>=2.0.0", "python-multipart>=0.0.20", "sqlalchemy>=2.0.48", "uvicorn>=0.42.0", diff --git a/backend/src/app.py b/backend/src/app.py index bec89a5f..f791dd34 100644 --- a/backend/src/app.py +++ b/backend/src/app.py @@ -3,8 +3,9 @@ from fastapi.middleware.cors import CORSMiddleware from fastapi.responses import FileResponse from starlette import status +from src.logger import logger from src.schemas import AlertItem, FileItem, FileUpdate -from src.service import create_file, delete_file, get_file, list_alerts, list_files, update_file, STORAGE_DIR +from src.service import create_file, delete_file, get_file, get_file_path, list_alerts, list_files, update_file from src.tasks import scan_file_for_threats app = FastAPI() @@ -22,11 +23,13 @@ @app.get("/files", response_model=list[FileItem]) async def list_files_view(): + logger.info("Listing all files") return await list_files() @app.get("/alerts", response_model=list[AlertItem]) async def list_alerts_view(): + logger.info("Listing all alerts") return await list_alerts() @@ -35,8 +38,10 @@ async def create_file_view( title: str = Form(...), file: UploadFile = File(...), ): + logger.info(f"Creating file with title: {title}") file_item = await create_file(title=title, upload_file=file) scan_file_for_threats.delay(file_item.id) + logger.info(f"File created with ID: {file_item.id}") return file_item @@ -55,10 +60,7 @@ async def update_file_view( @app.get("/files/{file_id}/download") async def download_file(file_id: str): - file_item = await get_file(file_id) - stored_path = STORAGE_DIR / file_item.stored_name - if not stored_path.exists(): - raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Stored file not found") + file_item, stored_path = await get_file_path(file_id) return FileResponse( path=stored_path, media_type=file_item.mime_type, @@ -68,4 +70,6 @@ async def download_file(file_id: str): @app.delete("/files/{file_id}", status_code=204) async def delete_file_view(file_id: str): + logger.info(f"Deleting file with ID: {file_id}") await delete_file(file_id) + logger.info(f"File deleted: {file_id}") diff --git a/backend/src/config.py b/backend/src/config.py new file mode 100644 index 00000000..9061df32 --- /dev/null +++ b/backend/src/config.py @@ -0,0 +1,35 @@ +import os +from pathlib import Path +from pydantic_settings import BaseSettings + + +class Settings(BaseSettings): + # Database + postgres_user: str + postgres_password: str + postgres_host: str + postgres_db: str + pgport: str = "5432" + + # Redis + redis_url: str = "redis://backend-redis:6379/0" + + # Storage + base_dir: Path = Path(__file__).resolve().parent.parent + storage_dir: Path = base_dir / "storage" / "files" + + @property + def database_url(self) -> str: + return ( + f"postgresql+asyncpg://{self.postgres_user}:" + f"{self.postgres_password}@{self.postgres_host}:" + f"{self.pgport}/{self.postgres_db}" + ) + + class Config: + env_file = ".env.dev" + extra = "ignore" + + +settings = Settings() +settings.storage_dir.mkdir(parents=True, exist_ok=True) diff --git a/backend/src/database.py b/backend/src/database.py new file mode 100644 index 00000000..a7a12a44 --- /dev/null +++ b/backend/src/database.py @@ -0,0 +1,25 @@ +from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker, create_async_engine +from src.config import settings + +# Create async engine with optimized connection pooling +engine = create_async_engine( + settings.database_url, + echo=False, + pool_size=10, + max_overflow=20, + pool_pre_ping=True, + pool_recycle=3600, +) + +# Create session factory +async_session_maker = async_sessionmaker( + engine, + expire_on_commit=False, + class_=AsyncSession, +) + + +async def get_session() -> AsyncSession: + """Dependency for FastAPI to get database session.""" + async with async_session_maker() as session: + yield session diff --git a/backend/src/logger.py b/backend/src/logger.py new file mode 100644 index 00000000..1b74ed48 --- /dev/null +++ b/backend/src/logger.py @@ -0,0 +1,23 @@ +import logging +import sys + +from src.config import settings + + +def setup_logger(name: str) -> logging.Logger: + """Setup and configure a logger.""" + logger = logging.getLogger(name) + logger.setLevel(logging.INFO) + + if not logger.handlers: + handler = logging.StreamHandler(sys.stdout) + formatter = logging.Formatter( + "%(asctime)s - %(name)s - %(levelname)s - %(message)s" + ) + handler.setFormatter(formatter) + logger.addHandler(handler) + + return logger + + +logger = setup_logger("backend") diff --git a/backend/src/repositories.py b/backend/src/repositories.py new file mode 100644 index 00000000..3e1cf819 --- /dev/null +++ b/backend/src/repositories.py @@ -0,0 +1,60 @@ +from sqlalchemy import select +from sqlalchemy.ext.asyncio import AsyncSession +from src.models import Alert, StoredFile + + +class FileRepository: + """Repository for StoredFile data access operations.""" + + def __init__(self, session: AsyncSession) -> None: + self.session = session + + async def get_all(self) -> list[StoredFile]: + """Get all files ordered by creation date descending.""" + result = await self.session.execute( + select(StoredFile).order_by(StoredFile.created_at.desc()) + ) + return list(result.scalars().all()) + + async def get_by_id(self, file_id: str) -> StoredFile | None: + """Get a file by ID.""" + return await self.session.get(StoredFile, file_id) + + async def create(self, file_item: StoredFile) -> StoredFile: + """Create a new file record.""" + self.session.add(file_item) + await self.session.commit() + await self.session.refresh(file_item) + return file_item + + async def update(self, file_item: StoredFile) -> StoredFile: + """Update an existing file record.""" + await self.session.commit() + await self.session.refresh(file_item) + return file_item + + async def delete(self, file_item: StoredFile) -> None: + """Delete a file record.""" + await self.session.delete(file_item) + await self.session.commit() + + +class AlertRepository: + """Repository for Alert data access operations.""" + + def __init__(self, session: AsyncSession) -> None: + self.session = session + + async def get_all(self) -> list[Alert]: + """Get all alerts ordered by creation date descending.""" + result = await self.session.execute( + select(Alert).order_by(Alert.created_at.desc()) + ) + return list(result.scalars().all()) + + async def create(self, alert: Alert) -> Alert: + """Create a new alert record.""" + self.session.add(alert) + await self.session.commit() + await self.session.refresh(alert) + return alert diff --git a/backend/src/service.py b/backend/src/service.py index e707fdc7..6a4f8532 100644 --- a/backend/src/service.py +++ b/backend/src/service.py @@ -1,42 +1,36 @@ import mimetypes -import os from pathlib import Path -from uuid import uuid4 from fastapi import HTTPException, UploadFile, status -from sqlalchemy import select -from sqlalchemy.ext.asyncio import create_async_engine, async_sessionmaker +from src.config import settings +from src.database import async_session_maker from src.models import Alert, StoredFile +from src.repositories import AlertRepository, FileRepository +from src.services.file_scanner import FileScannerService +from src.services.file_storage import FileStorageService - -BASE_DIR = Path(__file__).resolve().parent.parent -STORAGE_DIR = BASE_DIR / "storage" / "files" -STORAGE_DIR.mkdir(parents=True, exist_ok=True) -DB_URL = ( - f"postgresql+asyncpg://{os.environ.get('POSTGRES_USER')}:" - f"{os.environ.get('POSTGRES_PASSWORD')}@{os.environ.get('POSTGRES_HOST')}:" - f"{os.environ.get('PGPORT')}/{os.environ.get('POSTGRES_DB')}" -) -engine = create_async_engine(DB_URL) -async_session_maker = async_sessionmaker(engine, expire_on_commit=False) +# Initialize services +storage_service = FileStorageService() +scanner_service = FileScannerService() async def list_files() -> list[StoredFile]: async with async_session_maker() as session: - result = await session.execute(select(StoredFile).order_by(StoredFile.created_at.desc())) - return list(result.scalars().all()) + repo = FileRepository(session) + return await repo.get_all() async def list_alerts() -> list[Alert]: async with async_session_maker() as session: - result = await session.execute(select(Alert).order_by(Alert.created_at.desc())) - return list(result.scalars().all()) + repo = AlertRepository(session) + return await repo.get_all() async def get_file(file_id: str) -> StoredFile: async with async_session_maker() as session: - file_item = await session.get(StoredFile, file_id) + repo = FileRepository(session) + file_item = await repo.get_by_id(file_id) if not file_item: raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="File not found") return file_item @@ -47,55 +41,53 @@ async def create_file(title: str, upload_file: UploadFile) -> StoredFile: if not content: raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail="File is empty") - file_id = str(uuid4()) - suffix = Path(upload_file.filename or "").suffix - stored_name = f"{file_id}{suffix}" - stored_path = STORAGE_DIR / stored_name - stored_path.write_bytes(content) + stored_name = storage_service.generate_filename(upload_file.filename or "") + await storage_service.save_file(content, stored_name) + + mime_type = ( + upload_file.content_type + or mimetypes.guess_type(stored_name)[0] + or "application/octet-stream" + ) file_item = StoredFile( - id=file_id, + id=Path(stored_name).stem, title=title, original_name=upload_file.filename or stored_name, stored_name=stored_name, - mime_type=upload_file.content_type or mimetypes.guess_type(stored_name)[0] or "application/octet-stream", + mime_type=mime_type, size=len(content), processing_status="uploaded", ) async with async_session_maker() as session: - session.add(file_item) - await session.commit() - await session.refresh(file_item) - return file_item + repo = FileRepository(session) + return await repo.create(file_item) async def update_file(file_id: str, title: str) -> StoredFile: async with async_session_maker() as session: - file_item = await session.get(StoredFile, file_id) + repo = FileRepository(session) + file_item = await repo.get_by_id(file_id) if not file_item: raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="File not found") file_item.title = title - await session.commit() - await session.refresh(file_item) - return file_item + return await repo.update(file_item) async def delete_file(file_id: str) -> None: async with async_session_maker() as session: - file_item = await session.get(StoredFile, file_id) + repo = FileRepository(session) + file_item = await repo.get_by_id(file_id) if not file_item: raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="File not found") - stored_path = STORAGE_DIR / file_item.stored_name - if stored_path.exists(): - stored_path.unlink() - await session.delete(file_item) - await session.commit() + await storage_service.delete_file(file_item.stored_name) + await repo.delete(file_item) async def get_file_path(file_id: str) -> tuple[StoredFile, Path]: file_item = await get_file(file_id) - stored_path = STORAGE_DIR / file_item.stored_name - if not stored_path.exists(): + stored_path = storage_service.get_file_path(file_item.stored_name) + if not storage_service.file_exists(file_item.stored_name): raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Stored file not found") return file_item, stored_path @@ -103,7 +95,5 @@ async def get_file_path(file_id: str) -> tuple[StoredFile, Path]: async def create_alert(file_id: str, level: str, message: str) -> Alert: alert = Alert(file_id=file_id, level=level, message=message) async with async_session_maker() as session: - session.add(alert) - await session.commit() - await session.refresh(alert) - return alert + repo = AlertRepository(session) + return await repo.create(alert) diff --git a/backend/src/services/file_scanner.py b/backend/src/services/file_scanner.py new file mode 100644 index 00000000..db82f0f0 --- /dev/null +++ b/backend/src/services/file_scanner.py @@ -0,0 +1,70 @@ +"""File scanning service for threat detection and metadata extraction.""" +import aiofiles +from pathlib import Path +from typing import Any + +from src.models import StoredFile + + +class FileScannerService: + """Service for scanning files for threats and extracting metadata.""" + + SUSPICIOUS_EXTENSIONS = {".exe", ".bat", ".cmd", ".sh", ".js"} + MAX_FILE_SIZE_BYTES = 10 * 1024 * 1024 # 10 MB + + def scan_for_threats(self, file_item: StoredFile) -> tuple[str, str, bool]: + """ + Scan a file for suspicious content. + + Returns: + Tuple of (scan_status, scan_details, requires_attention) + """ + reasons: list[str] = [] + extension = Path(file_item.original_name).suffix.lower() + + if extension in self.SUSPICIOUS_EXTENSIONS: + reasons.append(f"suspicious extension {extension}") + + if file_item.size > self.MAX_FILE_SIZE_BYTES: + reasons.append("file is larger than 10 MB") + + if extension == ".pdf" and file_item.mime_type not in { + "application/pdf", + "application/octet-stream", + }: + reasons.append("pdf extension does not match mime type") + + scan_status = "suspicious" if reasons else "clean" + scan_details = ", ".join(reasons) if reasons else "no threats found" + requires_attention = bool(reasons) + + return scan_status, scan_details, requires_attention + + async def extract_metadata(self, file_item: StoredFile, stored_path: Path) -> dict[str, Any]: + """ + Extract metadata from a file using async I/O. + + Args: + file_item: The file model with basic metadata + stored_path: Path to the stored file on disk + + Returns: + Dictionary containing extracted metadata + """ + metadata = { + "extension": Path(file_item.original_name).suffix.lower(), + "size_bytes": file_item.size, + "mime_type": file_item.mime_type, + } + + if file_item.mime_type.startswith("text/"): + async with aiofiles.open(stored_path, encoding="utf-8", errors="ignore") as f: + content = await f.read() + metadata["line_count"] = len(content.splitlines()) + metadata["char_count"] = len(content) + elif file_item.mime_type == "application/pdf": + async with aiofiles.open(stored_path, mode="rb") as f: + content = await f.read() + metadata["approx_page_count"] = max(content.count(b"/Type /Page"), 1) + + return metadata diff --git a/backend/src/services/file_storage.py b/backend/src/services/file_storage.py new file mode 100644 index 00000000..7cb03858 --- /dev/null +++ b/backend/src/services/file_storage.py @@ -0,0 +1,41 @@ +"""File storage service for managing file operations on disk.""" +import aiofiles +from pathlib import Path +from uuid import uuid4 + +from src.config import settings + + +class FileStorageService: + """Service for managing file storage operations.""" + + def __init__(self, storage_dir: Path | None = None) -> None: + self.storage_dir = storage_dir or settings.storage_dir + self.storage_dir.mkdir(parents=True, exist_ok=True) + + def generate_filename(self, original_filename: str) -> str: + """Generate a unique stored filename based on original filename.""" + file_id = str(uuid4()) + suffix = Path(original_filename or "").suffix + return f"{file_id}{suffix}" + + async def save_file(self, content: bytes, stored_name: str) -> Path: + """Save file content to storage directory using async I/O.""" + stored_path = self.storage_dir / stored_name + async with aiofiles.open(stored_path, mode="wb") as f: + await f.write(content) + return stored_path + + async def delete_file(self, stored_name: str) -> None: + """Delete file from storage directory using async I/O.""" + stored_path = self.storage_dir / stored_name + if stored_path.exists(): + stored_path.unlink() + + def get_file_path(self, stored_name: str) -> Path: + """Get the full path to a stored file.""" + return self.storage_dir / stored_name + + def file_exists(self, stored_name: str) -> bool: + """Check if a file exists in storage.""" + return (self.storage_dir / stored_name).exists() diff --git a/backend/src/tasks.py b/backend/src/tasks.py index 4583aded..aefb8166 100644 --- a/backend/src/tasks.py +++ b/backend/src/tasks.py @@ -1,14 +1,21 @@ import asyncio -import os from pathlib import Path from celery import Celery -from sqlalchemy.ext.asyncio import create_async_engine, async_sessionmaker + +from src.config import settings +from src.database import async_session_maker from src.models import Alert, StoredFile -from src.service import STORAGE_DIR, DB_URL +from src.repositories import AlertRepository, FileRepository +from src.services.file_scanner import FileScannerService +from src.services.file_storage import FileStorageService -REDIS_URL = os.environ.get("REDIS_URL", "redis://backend-redis:6379/0") +REDIS_URL = settings.redis_url _worker_loop: asyncio.AbstractEventLoop | None = None +# Initialize services +storage_service = FileStorageService() +scanner_service = FileScannerService() + def run_in_worker_loop(coroutine): global _worker_loop @@ -19,76 +26,54 @@ def run_in_worker_loop(coroutine): celery_app = Celery("file_tasks", broker=REDIS_URL, backend=REDIS_URL) -engine = create_async_engine(DB_URL) -async_session_maker = async_sessionmaker(engine, expire_on_commit=False) async def _scan_file_for_threats(file_id: str) -> None: async with async_session_maker() as session: - file_item = await session.get(StoredFile, file_id) + repo = FileRepository(session) + file_item = await repo.get_by_id(file_id) if not file_item: return file_item.processing_status = "processing" - reasons: list[str] = [] - extension = Path(file_item.original_name).suffix.lower() - - if extension in {".exe", ".bat", ".cmd", ".sh", ".js"}: - reasons.append(f"suspicious extension {extension}") - - if file_item.size > 10 * 1024 * 1024: - reasons.append("file is larger than 10 MB") - - if extension == ".pdf" and file_item.mime_type not in {"application/pdf", "application/octet-stream"}: - reasons.append("pdf extension does not match mime type") - - file_item.scan_status = "suspicious" if reasons else "clean" - file_item.scan_details = ", ".join(reasons) if reasons else "no threats found" - file_item.requires_attention = bool(reasons) - await session.commit() + scan_status, scan_details, requires_attention = scanner_service.scan_for_threats(file_item) + file_item.scan_status = scan_status + file_item.scan_details = scan_details + file_item.requires_attention = requires_attention + await repo.update(file_item) extract_file_metadata.delay(file_id) async def _extract_file_metadata(file_id: str) -> None: async with async_session_maker() as session: - file_item = await session.get(StoredFile, file_id) + repo = FileRepository(session) + file_item = await repo.get_by_id(file_id) if not file_item: return - stored_path = STORAGE_DIR / file_item.stored_name - if not stored_path.exists(): + stored_path = storage_service.get_file_path(file_item.stored_name) + if not storage_service.file_exists(file_item.stored_name): file_item.processing_status = "failed" file_item.scan_status = file_item.scan_status or "failed" file_item.scan_details = "stored file not found during metadata extraction" - await session.commit() + await repo.update(file_item) send_file_alert.delay(file_id) return - metadata = { - "extension": Path(file_item.original_name).suffix.lower(), - "size_bytes": file_item.size, - "mime_type": file_item.mime_type, - } - - if file_item.mime_type.startswith("text/"): - content = stored_path.read_text(encoding="utf-8", errors="ignore") - metadata["line_count"] = len(content.splitlines()) - metadata["char_count"] = len(content) - elif file_item.mime_type == "application/pdf": - content = stored_path.read_bytes() - metadata["approx_page_count"] = max(content.count(b"/Type /Page"), 1) - + metadata = await scanner_service.extract_metadata(file_item, stored_path) file_item.metadata_json = metadata file_item.processing_status = "processed" - await session.commit() + await repo.update(file_item) send_file_alert.delay(file_id) async def _send_file_alert(file_id: str) -> None: async with async_session_maker() as session: - file_item = await session.get(StoredFile, file_id) + file_repo = FileRepository(session) + alert_repo = AlertRepository(session) + file_item = await file_repo.get_by_id(file_id) if not file_item: return @@ -103,8 +88,7 @@ async def _send_file_alert(file_id: str) -> None: else: alert = Alert(file_id=file_id, level="info", message="File processed successfully") - session.add(alert) - await session.commit() + await alert_repo.create(alert) @celery_app.task diff --git a/backend/uv.lock b/backend/uv.lock index d69f0c19..a814439e 100644 --- a/backend/uv.lock +++ b/backend/uv.lock @@ -1,5 +1,5 @@ version = 1 -revision = 1 +revision = 3 requires-python = ">=3.14" [[package]] @@ -11,9 +11,9 @@ dependencies = [ { name = "sqlalchemy" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/94/13/8b084e0f2efb0275a1d534838844926f798bd766566b1375174e2448cd31/alembic-1.18.4.tar.gz", hash = "sha256:cb6e1fd84b6174ab8dbb2329f86d631ba9559dd78df550b57804d607672cedbc", size = 2056725 } +sdist = { url = "https://files.pythonhosted.org/packages/94/13/8b084e0f2efb0275a1d534838844926f798bd766566b1375174e2448cd31/alembic-1.18.4.tar.gz", hash = "sha256:cb6e1fd84b6174ab8dbb2329f86d631ba9559dd78df550b57804d607672cedbc", size = 2056725, upload-time = "2026-02-10T16:00:47.195Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d2/29/6533c317b74f707ea28f8d633734dbda2119bbadfc61b2f3640ba835d0f7/alembic-1.18.4-py3-none-any.whl", hash = "sha256:a5ed4adcf6d8a4cb575f3d759f071b03cd6e5c7618eb796cb52497be25bfe19a", size = 263893 }, + { url = "https://files.pythonhosted.org/packages/d2/29/6533c317b74f707ea28f8d633734dbda2119bbadfc61b2f3640ba835d0f7/alembic-1.18.4-py3-none-any.whl", hash = "sha256:a5ed4adcf6d8a4cb575f3d759f071b03cd6e5c7618eb796cb52497be25bfe19a", size = 263893, upload-time = "2026-02-10T16:00:49.997Z" }, ] [[package]] @@ -23,27 +23,27 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "vine" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/79/fc/ec94a357dfc6683d8c86f8b4cfa5416a4c36b28052ec8260c77aca96a443/amqp-5.3.1.tar.gz", hash = "sha256:cddc00c725449522023bad949f70fff7b48f0b1ade74d170a6f10ab044739432", size = 129013 } +sdist = { url = "https://files.pythonhosted.org/packages/79/fc/ec94a357dfc6683d8c86f8b4cfa5416a4c36b28052ec8260c77aca96a443/amqp-5.3.1.tar.gz", hash = "sha256:cddc00c725449522023bad949f70fff7b48f0b1ade74d170a6f10ab044739432", size = 129013, upload-time = "2024-11-12T19:55:44.051Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/26/99/fc813cd978842c26c82534010ea849eee9ab3a13ea2b74e95cb9c99e747b/amqp-5.3.1-py3-none-any.whl", hash = "sha256:43b3319e1b4e7d1251833a93d672b4af1e40f3d632d479b98661a95f117880a2", size = 50944 }, + { url = "https://files.pythonhosted.org/packages/26/99/fc813cd978842c26c82534010ea849eee9ab3a13ea2b74e95cb9c99e747b/amqp-5.3.1-py3-none-any.whl", hash = "sha256:43b3319e1b4e7d1251833a93d672b4af1e40f3d632d479b98661a95f117880a2", size = 50944, upload-time = "2024-11-12T19:55:41.782Z" }, ] [[package]] name = "annotated-doc" version = "0.0.4" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/57/ba/046ceea27344560984e26a590f90bc7f4a75b06701f653222458922b558c/annotated_doc-0.0.4.tar.gz", hash = "sha256:fbcda96e87e9c92ad167c2e53839e57503ecfda18804ea28102353485033faa4", size = 7288 } +sdist = { url = "https://files.pythonhosted.org/packages/57/ba/046ceea27344560984e26a590f90bc7f4a75b06701f653222458922b558c/annotated_doc-0.0.4.tar.gz", hash = "sha256:fbcda96e87e9c92ad167c2e53839e57503ecfda18804ea28102353485033faa4", size = 7288, upload-time = "2025-11-10T22:07:42.062Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/1e/d3/26bf1008eb3d2daa8ef4cacc7f3bfdc11818d111f7e2d0201bc6e3b49d45/annotated_doc-0.0.4-py3-none-any.whl", hash = "sha256:571ac1dc6991c450b25a9c2d84a3705e2ae7a53467b5d111c24fa8baabbed320", size = 5303 }, + { url = "https://files.pythonhosted.org/packages/1e/d3/26bf1008eb3d2daa8ef4cacc7f3bfdc11818d111f7e2d0201bc6e3b49d45/annotated_doc-0.0.4-py3-none-any.whl", hash = "sha256:571ac1dc6991c450b25a9c2d84a3705e2ae7a53467b5d111c24fa8baabbed320", size = 5303, upload-time = "2025-11-10T22:07:40.673Z" }, ] [[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 } +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 }, + { 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]] @@ -53,33 +53,33 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "idna" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/19/14/2c5dd9f512b66549ae92767a9c7b330ae88e1932ca57876909410251fe13/anyio-4.13.0.tar.gz", hash = "sha256:334b70e641fd2221c1505b3890c69882fe4a2df910cba14d97019b90b24439dc", size = 231622 } +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 }, + { 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 = "asyncpg" version = "0.31.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/fe/cc/d18065ce2380d80b1bcce927c24a2642efd38918e33fd724bc4bca904877/asyncpg-0.31.0.tar.gz", hash = "sha256:c989386c83940bfbd787180f2b1519415e2d3d6277a70d9d0f0145ac73500735", size = 993667 } +sdist = { url = "https://files.pythonhosted.org/packages/fe/cc/d18065ce2380d80b1bcce927c24a2642efd38918e33fd724bc4bca904877/asyncpg-0.31.0.tar.gz", hash = "sha256:c989386c83940bfbd787180f2b1519415e2d3d6277a70d9d0f0145ac73500735", size = 993667, upload-time = "2025-11-24T23:27:00.812Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/3c/36/e9450d62e84a13aea6580c83a47a437f26c7ca6fa0f0fd40b6670793ea30/asyncpg-0.31.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:f6b56b91bb0ffc328c4e3ed113136cddd9deefdf5f79ab448598b9772831df44", size = 660867 }, - { url = "https://files.pythonhosted.org/packages/82/4b/1d0a2b33b3102d210439338e1beea616a6122267c0df459ff0265cd5807a/asyncpg-0.31.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:334dec28cf20d7f5bb9e45b39546ddf247f8042a690bff9b9573d00086e69cb5", size = 638349 }, - { url = "https://files.pythonhosted.org/packages/41/aa/e7f7ac9a7974f08eff9183e392b2d62516f90412686532d27e196c0f0eeb/asyncpg-0.31.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:98cc158c53f46de7bb677fd20c417e264fc02b36d901cc2a43bd6cb0dc6dbfd2", size = 3410428 }, - { url = "https://files.pythonhosted.org/packages/6f/de/bf1b60de3dede5c2731e6788617a512bc0ebd9693eac297ee74086f101d7/asyncpg-0.31.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9322b563e2661a52e3cdbc93eed3be7748b289f792e0011cb2720d278b366ce2", size = 3471678 }, - { url = "https://files.pythonhosted.org/packages/46/78/fc3ade003e22d8bd53aaf8f75f4be48f0b460fa73738f0391b9c856a9147/asyncpg-0.31.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:19857a358fc811d82227449b7ca40afb46e75b33eb8897240c3839dd8b744218", size = 3313505 }, - { url = "https://files.pythonhosted.org/packages/bf/e9/73eb8a6789e927816f4705291be21f2225687bfa97321e40cd23055e903a/asyncpg-0.31.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ba5f8886e850882ff2c2ace5732300e99193823e8107e2c53ef01c1ebfa1e85d", size = 3434744 }, - { url = "https://files.pythonhosted.org/packages/08/4b/f10b880534413c65c5b5862f79b8e81553a8f364e5238832ad4c0af71b7f/asyncpg-0.31.0-cp314-cp314-win32.whl", hash = "sha256:cea3a0b2a14f95834cee29432e4ddc399b95700eb1d51bbc5bfee8f31fa07b2b", size = 532251 }, - { url = "https://files.pythonhosted.org/packages/d3/2d/7aa40750b7a19efa5d66e67fc06008ca0f27ba1bd082e457ad82f59aba49/asyncpg-0.31.0-cp314-cp314-win_amd64.whl", hash = "sha256:04d19392716af6b029411a0264d92093b6e5e8285ae97a39957b9a9c14ea72be", size = 604901 }, - { url = "https://files.pythonhosted.org/packages/ce/fe/b9dfe349b83b9dee28cc42360d2c86b2cdce4cb551a2c2d27e156bcac84d/asyncpg-0.31.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:bdb957706da132e982cc6856bb2f7b740603472b54c3ebc77fe60ea3e57e1bd2", size = 702280 }, - { url = "https://files.pythonhosted.org/packages/6a/81/e6be6e37e560bd91e6c23ea8a6138a04fd057b08cf63d3c5055c98e81c1d/asyncpg-0.31.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:6d11b198111a72f47154fa03b85799f9be63701e068b43f84ac25da0bda9cb31", size = 682931 }, - { url = "https://files.pythonhosted.org/packages/a6/45/6009040da85a1648dd5bc75b3b0a062081c483e75a1a29041ae63a0bf0dc/asyncpg-0.31.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:18c83b03bc0d1b23e6230f5bf8d4f217dc9bc08644ce0502a9d91dc9e634a9c7", size = 3581608 }, - { url = "https://files.pythonhosted.org/packages/7e/06/2e3d4d7608b0b2b3adbee0d0bd6a2d29ca0fc4d8a78f8277df04e2d1fd7b/asyncpg-0.31.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e009abc333464ff18b8f6fd146addffd9aaf63e79aa3bb40ab7a4c332d0c5e9e", size = 3498738 }, - { url = "https://files.pythonhosted.org/packages/7d/aa/7d75ede780033141c51d83577ea23236ba7d3a23593929b32b49db8ed36e/asyncpg-0.31.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:3b1fbcb0e396a5ca435a8826a87e5c2c2cc0c8c68eb6fadf82168056b0e53a8c", size = 3401026 }, - { url = "https://files.pythonhosted.org/packages/ba/7a/15e37d45e7f7c94facc1e9148c0e455e8f33c08f0b8a0b1deb2c5171771b/asyncpg-0.31.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8df714dba348efcc162d2adf02d213e5fab1bd9f557e1305633e851a61814a7a", size = 3429426 }, - { url = "https://files.pythonhosted.org/packages/13/d5/71437c5f6ae5f307828710efbe62163974e71237d5d46ebd2869ea052d10/asyncpg-0.31.0-cp314-cp314t-win32.whl", hash = "sha256:1b41f1afb1033f2b44f3234993b15096ddc9cd71b21a42dbd87fc6a57b43d65d", size = 614495 }, - { url = "https://files.pythonhosted.org/packages/3c/d7/8fb3044eaef08a310acfe23dae9a8e2e07d305edc29a53497e52bc76eca7/asyncpg-0.31.0-cp314-cp314t-win_amd64.whl", hash = "sha256:bd4107bb7cdd0e9e65fae66a62afd3a249663b844fa34d479f6d5b3bef9c04c3", size = 706062 }, + { url = "https://files.pythonhosted.org/packages/3c/36/e9450d62e84a13aea6580c83a47a437f26c7ca6fa0f0fd40b6670793ea30/asyncpg-0.31.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:f6b56b91bb0ffc328c4e3ed113136cddd9deefdf5f79ab448598b9772831df44", size = 660867, upload-time = "2025-11-24T23:26:17.631Z" }, + { url = "https://files.pythonhosted.org/packages/82/4b/1d0a2b33b3102d210439338e1beea616a6122267c0df459ff0265cd5807a/asyncpg-0.31.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:334dec28cf20d7f5bb9e45b39546ddf247f8042a690bff9b9573d00086e69cb5", size = 638349, upload-time = "2025-11-24T23:26:19.689Z" }, + { url = "https://files.pythonhosted.org/packages/41/aa/e7f7ac9a7974f08eff9183e392b2d62516f90412686532d27e196c0f0eeb/asyncpg-0.31.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:98cc158c53f46de7bb677fd20c417e264fc02b36d901cc2a43bd6cb0dc6dbfd2", size = 3410428, upload-time = "2025-11-24T23:26:21.275Z" }, + { url = "https://files.pythonhosted.org/packages/6f/de/bf1b60de3dede5c2731e6788617a512bc0ebd9693eac297ee74086f101d7/asyncpg-0.31.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9322b563e2661a52e3cdbc93eed3be7748b289f792e0011cb2720d278b366ce2", size = 3471678, upload-time = "2025-11-24T23:26:23.627Z" }, + { url = "https://files.pythonhosted.org/packages/46/78/fc3ade003e22d8bd53aaf8f75f4be48f0b460fa73738f0391b9c856a9147/asyncpg-0.31.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:19857a358fc811d82227449b7ca40afb46e75b33eb8897240c3839dd8b744218", size = 3313505, upload-time = "2025-11-24T23:26:25.235Z" }, + { url = "https://files.pythonhosted.org/packages/bf/e9/73eb8a6789e927816f4705291be21f2225687bfa97321e40cd23055e903a/asyncpg-0.31.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ba5f8886e850882ff2c2ace5732300e99193823e8107e2c53ef01c1ebfa1e85d", size = 3434744, upload-time = "2025-11-24T23:26:26.944Z" }, + { url = "https://files.pythonhosted.org/packages/08/4b/f10b880534413c65c5b5862f79b8e81553a8f364e5238832ad4c0af71b7f/asyncpg-0.31.0-cp314-cp314-win32.whl", hash = "sha256:cea3a0b2a14f95834cee29432e4ddc399b95700eb1d51bbc5bfee8f31fa07b2b", size = 532251, upload-time = "2025-11-24T23:26:28.404Z" }, + { url = "https://files.pythonhosted.org/packages/d3/2d/7aa40750b7a19efa5d66e67fc06008ca0f27ba1bd082e457ad82f59aba49/asyncpg-0.31.0-cp314-cp314-win_amd64.whl", hash = "sha256:04d19392716af6b029411a0264d92093b6e5e8285ae97a39957b9a9c14ea72be", size = 604901, upload-time = "2025-11-24T23:26:30.34Z" }, + { url = "https://files.pythonhosted.org/packages/ce/fe/b9dfe349b83b9dee28cc42360d2c86b2cdce4cb551a2c2d27e156bcac84d/asyncpg-0.31.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:bdb957706da132e982cc6856bb2f7b740603472b54c3ebc77fe60ea3e57e1bd2", size = 702280, upload-time = "2025-11-24T23:26:32Z" }, + { url = "https://files.pythonhosted.org/packages/6a/81/e6be6e37e560bd91e6c23ea8a6138a04fd057b08cf63d3c5055c98e81c1d/asyncpg-0.31.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:6d11b198111a72f47154fa03b85799f9be63701e068b43f84ac25da0bda9cb31", size = 682931, upload-time = "2025-11-24T23:26:33.572Z" }, + { url = "https://files.pythonhosted.org/packages/a6/45/6009040da85a1648dd5bc75b3b0a062081c483e75a1a29041ae63a0bf0dc/asyncpg-0.31.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:18c83b03bc0d1b23e6230f5bf8d4f217dc9bc08644ce0502a9d91dc9e634a9c7", size = 3581608, upload-time = "2025-11-24T23:26:35.638Z" }, + { url = "https://files.pythonhosted.org/packages/7e/06/2e3d4d7608b0b2b3adbee0d0bd6a2d29ca0fc4d8a78f8277df04e2d1fd7b/asyncpg-0.31.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e009abc333464ff18b8f6fd146addffd9aaf63e79aa3bb40ab7a4c332d0c5e9e", size = 3498738, upload-time = "2025-11-24T23:26:37.275Z" }, + { url = "https://files.pythonhosted.org/packages/7d/aa/7d75ede780033141c51d83577ea23236ba7d3a23593929b32b49db8ed36e/asyncpg-0.31.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:3b1fbcb0e396a5ca435a8826a87e5c2c2cc0c8c68eb6fadf82168056b0e53a8c", size = 3401026, upload-time = "2025-11-24T23:26:39.423Z" }, + { url = "https://files.pythonhosted.org/packages/ba/7a/15e37d45e7f7c94facc1e9148c0e455e8f33c08f0b8a0b1deb2c5171771b/asyncpg-0.31.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8df714dba348efcc162d2adf02d213e5fab1bd9f557e1305633e851a61814a7a", size = 3429426, upload-time = "2025-11-24T23:26:41.032Z" }, + { url = "https://files.pythonhosted.org/packages/13/d5/71437c5f6ae5f307828710efbe62163974e71237d5d46ebd2869ea052d10/asyncpg-0.31.0-cp314-cp314t-win32.whl", hash = "sha256:1b41f1afb1033f2b44f3234993b15096ddc9cd71b21a42dbd87fc6a57b43d65d", size = 614495, upload-time = "2025-11-24T23:26:42.659Z" }, + { url = "https://files.pythonhosted.org/packages/3c/d7/8fb3044eaef08a310acfe23dae9a8e2e07d305edc29a53497e52bc76eca7/asyncpg-0.31.0-cp314-cp314t-win_amd64.whl", hash = "sha256:bd4107bb7cdd0e9e65fae66a62afd3a249663b844fa34d479f6d5b3bef9c04c3", size = 706062, upload-time = "2025-11-24T23:26:44.086Z" }, ] [[package]] @@ -92,6 +92,7 @@ dependencies = [ { name = "celery", extra = ["redis"] }, { name = "fastapi" }, { name = "pydantic" }, + { name = "pydantic-settings" }, { name = "python-multipart" }, { name = "sqlalchemy" }, { name = "uvicorn" }, @@ -104,6 +105,7 @@ requires-dist = [ { name = "celery", extras = ["redis"], specifier = ">=5.6.3" }, { name = "fastapi", specifier = ">=0.135.3" }, { name = "pydantic", specifier = ">=2.12.5" }, + { name = "pydantic-settings", specifier = ">=2.0.0" }, { name = "python-multipart", specifier = ">=0.0.20" }, { name = "sqlalchemy", specifier = ">=2.0.48" }, { name = "uvicorn", specifier = ">=0.42.0" }, @@ -113,9 +115,9 @@ requires-dist = [ name = "billiard" version = "4.2.4" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/58/23/b12ac0bcdfb7360d664f40a00b1bda139cbbbced012c34e375506dbd0143/billiard-4.2.4.tar.gz", hash = "sha256:55f542c371209e03cd5862299b74e52e4fbcba8250ba611ad94276b369b6a85f", size = 156537 } +sdist = { url = "https://files.pythonhosted.org/packages/58/23/b12ac0bcdfb7360d664f40a00b1bda139cbbbced012c34e375506dbd0143/billiard-4.2.4.tar.gz", hash = "sha256:55f542c371209e03cd5862299b74e52e4fbcba8250ba611ad94276b369b6a85f", size = 156537, upload-time = "2025-11-30T13:28:48.52Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/cb/87/8bab77b323f16d67be364031220069f79159117dd5e43eeb4be2fef1ac9b/billiard-4.2.4-py3-none-any.whl", hash = "sha256:525b42bdec68d2b983347ac312f892db930858495db601b5836ac24e6477cde5", size = 87070 }, + { url = "https://files.pythonhosted.org/packages/cb/87/8bab77b323f16d67be364031220069f79159117dd5e43eeb4be2fef1ac9b/billiard-4.2.4-py3-none-any.whl", hash = "sha256:525b42bdec68d2b983347ac312f892db930858495db601b5836ac24e6477cde5", size = 87070, upload-time = "2025-11-30T13:28:47.016Z" }, ] [[package]] @@ -133,9 +135,9 @@ dependencies = [ { name = "tzlocal" }, { name = "vine" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e8/b4/a1233943ab5c8ea05fb877a88a0a0622bf47444b99e4991a8045ac37ea1d/celery-5.6.3.tar.gz", hash = "sha256:177006bd2054b882e9f01be59abd8529e88879ef50d7918a7050c5a9f4e12912", size = 1742243 } +sdist = { url = "https://files.pythonhosted.org/packages/e8/b4/a1233943ab5c8ea05fb877a88a0a0622bf47444b99e4991a8045ac37ea1d/celery-5.6.3.tar.gz", hash = "sha256:177006bd2054b882e9f01be59abd8529e88879ef50d7918a7050c5a9f4e12912", size = 1742243, upload-time = "2026-03-26T12:14:51.76Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/cf/c9/6eccdda96e098f7ae843162db2d3c149c6931a24fda69fe4ab84d0027eb5/celery-5.6.3-py3-none-any.whl", hash = "sha256:0808f42f80909c4d5833202360ffafb2a4f83f4d8e23e1285d926610e9a7afa6", size = 451235 }, + { url = "https://files.pythonhosted.org/packages/cf/c9/6eccdda96e098f7ae843162db2d3c149c6931a24fda69fe4ab84d0027eb5/celery-5.6.3-py3-none-any.whl", hash = "sha256:0808f42f80909c4d5833202360ffafb2a4f83f4d8e23e1285d926610e9a7afa6", size = 451235, upload-time = "2026-03-26T12:14:49.491Z" }, ] [package.optional-dependencies] @@ -150,9 +152,9 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "colorama", marker = "sys_platform == 'win32'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/3d/fa/656b739db8587d7b5dfa22e22ed02566950fbfbcdc20311993483657a5c0/click-8.3.1.tar.gz", hash = "sha256:12ff4785d337a1bb490bb7e9c2b1ee5da3112e94a8622f26a6c77f5d2fc6842a", size = 295065 } +sdist = { url = "https://files.pythonhosted.org/packages/3d/fa/656b739db8587d7b5dfa22e22ed02566950fbfbcdc20311993483657a5c0/click-8.3.1.tar.gz", hash = "sha256:12ff4785d337a1bb490bb7e9c2b1ee5da3112e94a8622f26a6c77f5d2fc6842a", size = 295065, upload-time = "2025-11-15T20:45:42.706Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/98/78/01c019cdb5d6498122777c1a43056ebb3ebfeef2076d9d026bfe15583b2b/click-8.3.1-py3-none-any.whl", hash = "sha256:981153a64e25f12d547d3426c367a4857371575ee7ad18df2a6183ab0545b2a6", size = 108274 }, + { url = "https://files.pythonhosted.org/packages/98/78/01c019cdb5d6498122777c1a43056ebb3ebfeef2076d9d026bfe15583b2b/click-8.3.1-py3-none-any.whl", hash = "sha256:981153a64e25f12d547d3426c367a4857371575ee7ad18df2a6183ab0545b2a6", size = 108274, upload-time = "2025-11-15T20:45:41.139Z" }, ] [[package]] @@ -162,9 +164,9 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "click" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/30/ce/217289b77c590ea1e7c24242d9ddd6e249e52c795ff10fac2c50062c48cb/click_didyoumean-0.3.1.tar.gz", hash = "sha256:4f82fdff0dbe64ef8ab2279bd6aa3f6a99c3b28c05aa09cbfc07c9d7fbb5a463", size = 3089 } +sdist = { url = "https://files.pythonhosted.org/packages/30/ce/217289b77c590ea1e7c24242d9ddd6e249e52c795ff10fac2c50062c48cb/click_didyoumean-0.3.1.tar.gz", hash = "sha256:4f82fdff0dbe64ef8ab2279bd6aa3f6a99c3b28c05aa09cbfc07c9d7fbb5a463", size = 3089, upload-time = "2024-03-24T08:22:07.499Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/1b/5b/974430b5ffdb7a4f1941d13d83c64a0395114503cc357c6b9ae4ce5047ed/click_didyoumean-0.3.1-py3-none-any.whl", hash = "sha256:5c4bb6007cfea5f2fd6583a2fb6701a22a41eb98957e63d0fac41c10e7c3117c", size = 3631 }, + { url = "https://files.pythonhosted.org/packages/1b/5b/974430b5ffdb7a4f1941d13d83c64a0395114503cc357c6b9ae4ce5047ed/click_didyoumean-0.3.1-py3-none-any.whl", hash = "sha256:5c4bb6007cfea5f2fd6583a2fb6701a22a41eb98957e63d0fac41c10e7c3117c", size = 3631, upload-time = "2024-03-24T08:22:06.356Z" }, ] [[package]] @@ -174,9 +176,9 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "click" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/c3/a4/34847b59150da33690a36da3681d6bbc2ec14ee9a846bc30a6746e5984e4/click_plugins-1.1.1.2.tar.gz", hash = "sha256:d7af3984a99d243c131aa1a828331e7630f4a88a9741fd05c927b204bcf92261", size = 8343 } +sdist = { url = "https://files.pythonhosted.org/packages/c3/a4/34847b59150da33690a36da3681d6bbc2ec14ee9a846bc30a6746e5984e4/click_plugins-1.1.1.2.tar.gz", hash = "sha256:d7af3984a99d243c131aa1a828331e7630f4a88a9741fd05c927b204bcf92261", size = 8343, upload-time = "2025-06-25T00:47:37.555Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/3d/9a/2abecb28ae875e39c8cad711eb1186d8d14eab564705325e77e4e6ab9ae5/click_plugins-1.1.1.2-py2.py3-none-any.whl", hash = "sha256:008d65743833ffc1f5417bf0e78e8d2c23aab04d9745ba817bd3e71b0feb6aa6", size = 11051 }, + { url = "https://files.pythonhosted.org/packages/3d/9a/2abecb28ae875e39c8cad711eb1186d8d14eab564705325e77e4e6ab9ae5/click_plugins-1.1.1.2-py2.py3-none-any.whl", hash = "sha256:008d65743833ffc1f5417bf0e78e8d2c23aab04d9745ba817bd3e71b0feb6aa6", size = 11051, upload-time = "2025-06-25T00:47:36.731Z" }, ] [[package]] @@ -187,18 +189,18 @@ dependencies = [ { name = "click" }, { name = "prompt-toolkit" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/cb/a2/57f4ac79838cfae6912f997b4d1a64a858fb0c86d7fcaae6f7b58d267fca/click-repl-0.3.0.tar.gz", hash = "sha256:17849c23dba3d667247dc4defe1757fff98694e90fe37474f3feebb69ced26a9", size = 10449 } +sdist = { url = "https://files.pythonhosted.org/packages/cb/a2/57f4ac79838cfae6912f997b4d1a64a858fb0c86d7fcaae6f7b58d267fca/click-repl-0.3.0.tar.gz", hash = "sha256:17849c23dba3d667247dc4defe1757fff98694e90fe37474f3feebb69ced26a9", size = 10449, upload-time = "2023-06-15T12:43:51.141Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/52/40/9d857001228658f0d59e97ebd4c346fe73e138c6de1bce61dc568a57c7f8/click_repl-0.3.0-py3-none-any.whl", hash = "sha256:fb7e06deb8da8de86180a33a9da97ac316751c094c6899382da7feeeeb51b812", size = 10289 }, + { url = "https://files.pythonhosted.org/packages/52/40/9d857001228658f0d59e97ebd4c346fe73e138c6de1bce61dc568a57c7f8/click_repl-0.3.0-py3-none-any.whl", hash = "sha256:fb7e06deb8da8de86180a33a9da97ac316751c094c6899382da7feeeeb51b812", size = 10289, upload-time = "2023-06-15T12:43:48.626Z" }, ] [[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 } +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 }, + { 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]] @@ -212,52 +214,50 @@ dependencies = [ { name = "typing-extensions" }, { name = "typing-inspection" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/f7/e6/7adb4c5fa231e82c35b8f5741a9f2d055f520c29af5546fd70d3e8e1cd2e/fastapi-0.135.3.tar.gz", hash = "sha256:bd6d7caf1a2bdd8d676843cdcd2287729572a1ef524fc4d65c17ae002a1be654", size = 396524 } +sdist = { url = "https://files.pythonhosted.org/packages/f7/e6/7adb4c5fa231e82c35b8f5741a9f2d055f520c29af5546fd70d3e8e1cd2e/fastapi-0.135.3.tar.gz", hash = "sha256:bd6d7caf1a2bdd8d676843cdcd2287729572a1ef524fc4d65c17ae002a1be654", size = 396524, upload-time = "2026-04-01T16:23:58.188Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/84/a4/5caa2de7f917a04ada20018eccf60d6cc6145b0199d55ca3711b0fc08312/fastapi-0.135.3-py3-none-any.whl", hash = "sha256:9b0f590c813acd13d0ab43dd8494138eb58e484bfac405db1f3187cfc5810d98", size = 117734 }, + { url = "https://files.pythonhosted.org/packages/84/a4/5caa2de7f917a04ada20018eccf60d6cc6145b0199d55ca3711b0fc08312/fastapi-0.135.3-py3-none-any.whl", hash = "sha256:9b0f590c813acd13d0ab43dd8494138eb58e484bfac405db1f3187cfc5810d98", size = 117734, upload-time = "2026-04-01T16:23:59.328Z" }, ] [[package]] name = "greenlet" version = "3.3.2" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/a3/51/1664f6b78fc6ebbd98019a1fd730e83fa78f2db7058f72b1463d3612b8db/greenlet-3.3.2.tar.gz", hash = "sha256:2eaf067fc6d886931c7962e8c6bede15d2f01965560f3359b27c80bde2d151f2", size = 188267 } +sdist = { url = "https://files.pythonhosted.org/packages/a3/51/1664f6b78fc6ebbd98019a1fd730e83fa78f2db7058f72b1463d3612b8db/greenlet-3.3.2.tar.gz", hash = "sha256:2eaf067fc6d886931c7962e8c6bede15d2f01965560f3359b27c80bde2d151f2", size = 188267, upload-time = "2026-02-20T20:54:15.531Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/3f/ae/8bffcbd373b57a5992cd077cbe8858fff39110480a9d50697091faea6f39/greenlet-3.3.2-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:8d1658d7291f9859beed69a776c10822a0a799bc4bfe1bd4272bb60e62507dab", size = 279650 }, - { url = "https://files.pythonhosted.org/packages/d1/c0/45f93f348fa49abf32ac8439938726c480bd96b2a3c6f4d949ec0124b69f/greenlet-3.3.2-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:18cb1b7337bca281915b3c5d5ae19f4e76d35e1df80f4ad3c1a7be91fadf1082", size = 650295 }, - { url = "https://files.pythonhosted.org/packages/b3/de/dd7589b3f2b8372069ab3e4763ea5329940fc7ad9dcd3e272a37516d7c9b/greenlet-3.3.2-cp314-cp314-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c2e47408e8ce1c6f1ceea0dffcdf6ebb85cc09e55c7af407c99f1112016e45e9", size = 662163 }, - { url = "https://files.pythonhosted.org/packages/cd/ac/85804f74f1ccea31ba518dcc8ee6f14c79f73fe36fa1beba38930806df09/greenlet-3.3.2-cp314-cp314-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e3cb43ce200f59483eb82949bf1835a99cf43d7571e900d7c8d5c62cdf25d2f9", size = 675371 }, - { url = "https://files.pythonhosted.org/packages/d2/d8/09bfa816572a4d83bccd6750df1926f79158b1c36c5f73786e26dbe4ee38/greenlet-3.3.2-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:63d10328839d1973e5ba35e98cccbca71b232b14051fd957b6f8b6e8e80d0506", size = 664160 }, - { url = "https://files.pythonhosted.org/packages/48/cf/56832f0c8255d27f6c35d41b5ec91168d74ec721d85f01a12131eec6b93c/greenlet-3.3.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:8e4ab3cfb02993c8cc248ea73d7dae6cec0253e9afa311c9b37e603ca9fad2ce", size = 1619181 }, - { url = "https://files.pythonhosted.org/packages/0a/23/b90b60a4aabb4cec0796e55f25ffbfb579a907c3898cd2905c8918acaa16/greenlet-3.3.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:94ad81f0fd3c0c0681a018a976e5c2bd2ca2d9d94895f23e7bb1af4e8af4e2d5", size = 1687713 }, - { url = "https://files.pythonhosted.org/packages/f3/ca/2101ca3d9223a1dc125140dbc063644dca76df6ff356531eb27bc267b446/greenlet-3.3.2-cp314-cp314-win_amd64.whl", hash = "sha256:8c4dd0f3997cf2512f7601563cc90dfb8957c0cff1e3a1b23991d4ea1776c492", size = 232034 }, - { url = "https://files.pythonhosted.org/packages/f6/4a/ecf894e962a59dea60f04877eea0fd5724618da89f1867b28ee8b91e811f/greenlet-3.3.2-cp314-cp314-win_arm64.whl", hash = "sha256:cd6f9e2bbd46321ba3bbb4c8a15794d32960e3b0ae2cc4d49a1a53d314805d71", size = 231437 }, - { url = "https://files.pythonhosted.org/packages/98/6d/8f2ef704e614bcf58ed43cfb8d87afa1c285e98194ab2cfad351bf04f81e/greenlet-3.3.2-cp314-cp314t-macosx_11_0_universal2.whl", hash = "sha256:e26e72bec7ab387ac80caa7496e0f908ff954f31065b0ffc1f8ecb1338b11b54", size = 286617 }, - { url = "https://files.pythonhosted.org/packages/5e/0d/93894161d307c6ea237a43988f27eba0947b360b99ac5239ad3fe09f0b47/greenlet-3.3.2-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8b466dff7a4ffda6ca975979bab80bdadde979e29fc947ac3be4451428d8b0e4", size = 655189 }, - { url = "https://files.pythonhosted.org/packages/f5/2c/d2d506ebd8abcb57386ec4f7ba20f4030cbe56eae541bc6fd6ef399c0b41/greenlet-3.3.2-cp314-cp314t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b8bddc5b73c9720bea487b3bffdb1840fe4e3656fba3bd40aa1489e9f37877ff", size = 658225 }, - { url = "https://files.pythonhosted.org/packages/d1/67/8197b7e7e602150938049d8e7f30de1660cfb87e4c8ee349b42b67bdb2e1/greenlet-3.3.2-cp314-cp314t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:59b3e2c40f6706b05a9cd299c836c6aa2378cabe25d021acd80f13abf81181cf", size = 666581 }, - { url = "https://files.pythonhosted.org/packages/8e/30/3a09155fbf728673a1dea713572d2d31159f824a37c22da82127056c44e4/greenlet-3.3.2-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b26b0f4428b871a751968285a1ac9648944cea09807177ac639b030bddebcea4", size = 657907 }, - { url = "https://files.pythonhosted.org/packages/f3/fd/d05a4b7acd0154ed758797f0a43b4c0962a843bedfe980115e842c5b2d08/greenlet-3.3.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:1fb39a11ee2e4d94be9a76671482be9398560955c9e568550de0224e41104727", size = 1618857 }, - { url = "https://files.pythonhosted.org/packages/6f/e1/50ee92a5db521de8f35075b5eff060dd43d39ebd46c2181a2042f7070385/greenlet-3.3.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:20154044d9085151bc309e7689d6f7ba10027f8f5a8c0676ad398b951913d89e", size = 1680010 }, - { url = "https://files.pythonhosted.org/packages/29/4b/45d90626aef8e65336bed690106d1382f7a43665e2249017e9527df8823b/greenlet-3.3.2-cp314-cp314t-win_amd64.whl", hash = "sha256:c04c5e06ec3e022cbfe2cd4a846e1d4e50087444f875ff6d2c2ad8445495cf1a", size = 237086 }, + { url = "https://files.pythonhosted.org/packages/3f/ae/8bffcbd373b57a5992cd077cbe8858fff39110480a9d50697091faea6f39/greenlet-3.3.2-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:8d1658d7291f9859beed69a776c10822a0a799bc4bfe1bd4272bb60e62507dab", size = 279650, upload-time = "2026-02-20T20:18:00.783Z" }, + { url = "https://files.pythonhosted.org/packages/d1/c0/45f93f348fa49abf32ac8439938726c480bd96b2a3c6f4d949ec0124b69f/greenlet-3.3.2-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:18cb1b7337bca281915b3c5d5ae19f4e76d35e1df80f4ad3c1a7be91fadf1082", size = 650295, upload-time = "2026-02-20T20:47:34.036Z" }, + { url = "https://files.pythonhosted.org/packages/b3/de/dd7589b3f2b8372069ab3e4763ea5329940fc7ad9dcd3e272a37516d7c9b/greenlet-3.3.2-cp314-cp314-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c2e47408e8ce1c6f1ceea0dffcdf6ebb85cc09e55c7af407c99f1112016e45e9", size = 662163, upload-time = "2026-02-20T20:56:01.295Z" }, + { url = "https://files.pythonhosted.org/packages/d2/d8/09bfa816572a4d83bccd6750df1926f79158b1c36c5f73786e26dbe4ee38/greenlet-3.3.2-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:63d10328839d1973e5ba35e98cccbca71b232b14051fd957b6f8b6e8e80d0506", size = 664160, upload-time = "2026-02-20T20:21:04.015Z" }, + { url = "https://files.pythonhosted.org/packages/48/cf/56832f0c8255d27f6c35d41b5ec91168d74ec721d85f01a12131eec6b93c/greenlet-3.3.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:8e4ab3cfb02993c8cc248ea73d7dae6cec0253e9afa311c9b37e603ca9fad2ce", size = 1619181, upload-time = "2026-02-20T20:49:36.052Z" }, + { url = "https://files.pythonhosted.org/packages/0a/23/b90b60a4aabb4cec0796e55f25ffbfb579a907c3898cd2905c8918acaa16/greenlet-3.3.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:94ad81f0fd3c0c0681a018a976e5c2bd2ca2d9d94895f23e7bb1af4e8af4e2d5", size = 1687713, upload-time = "2026-02-20T20:21:11.684Z" }, + { url = "https://files.pythonhosted.org/packages/f3/ca/2101ca3d9223a1dc125140dbc063644dca76df6ff356531eb27bc267b446/greenlet-3.3.2-cp314-cp314-win_amd64.whl", hash = "sha256:8c4dd0f3997cf2512f7601563cc90dfb8957c0cff1e3a1b23991d4ea1776c492", size = 232034, upload-time = "2026-02-20T20:20:08.186Z" }, + { url = "https://files.pythonhosted.org/packages/f6/4a/ecf894e962a59dea60f04877eea0fd5724618da89f1867b28ee8b91e811f/greenlet-3.3.2-cp314-cp314-win_arm64.whl", hash = "sha256:cd6f9e2bbd46321ba3bbb4c8a15794d32960e3b0ae2cc4d49a1a53d314805d71", size = 231437, upload-time = "2026-02-20T20:18:59.722Z" }, + { url = "https://files.pythonhosted.org/packages/98/6d/8f2ef704e614bcf58ed43cfb8d87afa1c285e98194ab2cfad351bf04f81e/greenlet-3.3.2-cp314-cp314t-macosx_11_0_universal2.whl", hash = "sha256:e26e72bec7ab387ac80caa7496e0f908ff954f31065b0ffc1f8ecb1338b11b54", size = 286617, upload-time = "2026-02-20T20:19:29.856Z" }, + { url = "https://files.pythonhosted.org/packages/5e/0d/93894161d307c6ea237a43988f27eba0947b360b99ac5239ad3fe09f0b47/greenlet-3.3.2-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8b466dff7a4ffda6ca975979bab80bdadde979e29fc947ac3be4451428d8b0e4", size = 655189, upload-time = "2026-02-20T20:47:35.742Z" }, + { url = "https://files.pythonhosted.org/packages/f5/2c/d2d506ebd8abcb57386ec4f7ba20f4030cbe56eae541bc6fd6ef399c0b41/greenlet-3.3.2-cp314-cp314t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b8bddc5b73c9720bea487b3bffdb1840fe4e3656fba3bd40aa1489e9f37877ff", size = 658225, upload-time = "2026-02-20T20:56:02.527Z" }, + { url = "https://files.pythonhosted.org/packages/8e/30/3a09155fbf728673a1dea713572d2d31159f824a37c22da82127056c44e4/greenlet-3.3.2-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b26b0f4428b871a751968285a1ac9648944cea09807177ac639b030bddebcea4", size = 657907, upload-time = "2026-02-20T20:21:05.259Z" }, + { url = "https://files.pythonhosted.org/packages/f3/fd/d05a4b7acd0154ed758797f0a43b4c0962a843bedfe980115e842c5b2d08/greenlet-3.3.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:1fb39a11ee2e4d94be9a76671482be9398560955c9e568550de0224e41104727", size = 1618857, upload-time = "2026-02-20T20:49:37.309Z" }, + { url = "https://files.pythonhosted.org/packages/6f/e1/50ee92a5db521de8f35075b5eff060dd43d39ebd46c2181a2042f7070385/greenlet-3.3.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:20154044d9085151bc309e7689d6f7ba10027f8f5a8c0676ad398b951913d89e", size = 1680010, upload-time = "2026-02-20T20:21:13.427Z" }, + { url = "https://files.pythonhosted.org/packages/29/4b/45d90626aef8e65336bed690106d1382f7a43665e2249017e9527df8823b/greenlet-3.3.2-cp314-cp314t-win_amd64.whl", hash = "sha256:c04c5e06ec3e022cbfe2cd4a846e1d4e50087444f875ff6d2c2ad8445495cf1a", size = 237086, upload-time = "2026-02-20T20:20:45.786Z" }, ] [[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 } +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 }, + { 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 = "idna" version = "3.11" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902", size = 194582 } +sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902", size = 194582, upload-time = "2025-10-12T14:55:20.501Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008 }, + { url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008, upload-time = "2025-10-12T14:55:18.883Z" }, ] [[package]] @@ -270,9 +270,9 @@ dependencies = [ { name = "tzdata" }, { name = "vine" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/b6/a5/607e533ed6c83ae1a696969b8e1c137dfebd5759a2e9682e26ff1b97740b/kombu-5.6.2.tar.gz", hash = "sha256:8060497058066c6f5aed7c26d7cd0d3b574990b09de842a8c5aaed0b92cc5a55", size = 472594 } +sdist = { url = "https://files.pythonhosted.org/packages/b6/a5/607e533ed6c83ae1a696969b8e1c137dfebd5759a2e9682e26ff1b97740b/kombu-5.6.2.tar.gz", hash = "sha256:8060497058066c6f5aed7c26d7cd0d3b574990b09de842a8c5aaed0b92cc5a55", size = 472594, upload-time = "2025-12-29T20:30:07.779Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/fb/0f/834427d8c03ff1d7e867d3db3d176470c64871753252b21b4f4897d1fa45/kombu-5.6.2-py3-none-any.whl", hash = "sha256:efcfc559da324d41d61ca311b0c64965ea35b4c55cc04ee36e55386145dace93", size = 214219 }, + { url = "https://files.pythonhosted.org/packages/fb/0f/834427d8c03ff1d7e867d3db3d176470c64871753252b21b4f4897d1fa45/kombu-5.6.2-py3-none-any.whl", hash = "sha256:efcfc559da324d41d61ca311b0c64965ea35b4c55cc04ee36e55386145dace93", size = 214219, upload-time = "2025-12-29T20:30:05.74Z" }, ] [package.optional-dependencies] @@ -287,48 +287,48 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "markupsafe" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/9e/38/bd5b78a920a64d708fe6bc8e0a2c075e1389d53bef8413725c63ba041535/mako-1.3.10.tar.gz", hash = "sha256:99579a6f39583fa7e5630a28c3c1f440e4e97a414b80372649c0ce338da2ea28", size = 392474 } +sdist = { url = "https://files.pythonhosted.org/packages/9e/38/bd5b78a920a64d708fe6bc8e0a2c075e1389d53bef8413725c63ba041535/mako-1.3.10.tar.gz", hash = "sha256:99579a6f39583fa7e5630a28c3c1f440e4e97a414b80372649c0ce338da2ea28", size = 392474, upload-time = "2025-04-10T12:44:31.16Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/87/fb/99f81ac72ae23375f22b7afdb7642aba97c00a713c217124420147681a2f/mako-1.3.10-py3-none-any.whl", hash = "sha256:baef24a52fc4fc514a0887ac600f9f1cff3d82c61d4d700a1fa84d597b88db59", size = 78509 }, + { url = "https://files.pythonhosted.org/packages/87/fb/99f81ac72ae23375f22b7afdb7642aba97c00a713c217124420147681a2f/mako-1.3.10-py3-none-any.whl", hash = "sha256:baef24a52fc4fc514a0887ac600f9f1cff3d82c61d4d700a1fa84d597b88db59", size = 78509, upload-time = "2025-04-10T12:50:53.297Z" }, ] [[package]] name = "markupsafe" version = "3.0.3" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/7e/99/7690b6d4034fffd95959cbe0c02de8deb3098cc577c67bb6a24fe5d7caa7/markupsafe-3.0.3.tar.gz", hash = "sha256:722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698", size = 80313 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/33/8a/8e42d4838cd89b7dde187011e97fe6c3af66d8c044997d2183fbd6d31352/markupsafe-3.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:eaa9599de571d72e2daf60164784109f19978b327a3910d3e9de8c97b5b70cfe", size = 11619 }, - { url = "https://files.pythonhosted.org/packages/b5/64/7660f8a4a8e53c924d0fa05dc3a55c9cee10bbd82b11c5afb27d44b096ce/markupsafe-3.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c47a551199eb8eb2121d4f0f15ae0f923d31350ab9280078d1e5f12b249e0026", size = 12029 }, - { url = "https://files.pythonhosted.org/packages/da/ef/e648bfd021127bef5fa12e1720ffed0c6cbb8310c8d9bea7266337ff06de/markupsafe-3.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f34c41761022dd093b4b6896d4810782ffbabe30f2d443ff5f083e0cbbb8c737", size = 24408 }, - { url = "https://files.pythonhosted.org/packages/41/3c/a36c2450754618e62008bf7435ccb0f88053e07592e6028a34776213d877/markupsafe-3.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:457a69a9577064c05a97c41f4e65148652db078a3a509039e64d3467b9e7ef97", size = 23005 }, - { url = "https://files.pythonhosted.org/packages/bc/20/b7fdf89a8456b099837cd1dc21974632a02a999ec9bf7ca3e490aacd98e7/markupsafe-3.0.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e8afc3f2ccfa24215f8cb28dcf43f0113ac3c37c2f0f0806d8c70e4228c5cf4d", size = 22048 }, - { url = "https://files.pythonhosted.org/packages/9a/a7/591f592afdc734f47db08a75793a55d7fbcc6902a723ae4cfbab61010cc5/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ec15a59cf5af7be74194f7ab02d0f59a62bdcf1a537677ce67a2537c9b87fcda", size = 23821 }, - { url = "https://files.pythonhosted.org/packages/7d/33/45b24e4f44195b26521bc6f1a82197118f74df348556594bd2262bda1038/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:0eb9ff8191e8498cca014656ae6b8d61f39da5f95b488805da4bb029cccbfbaf", size = 21606 }, - { url = "https://files.pythonhosted.org/packages/ff/0e/53dfaca23a69fbfbbf17a4b64072090e70717344c52eaaaa9c5ddff1e5f0/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2713baf880df847f2bece4230d4d094280f4e67b1e813eec43b4c0e144a34ffe", size = 23043 }, - { url = "https://files.pythonhosted.org/packages/46/11/f333a06fc16236d5238bfe74daccbca41459dcd8d1fa952e8fbd5dccfb70/markupsafe-3.0.3-cp314-cp314-win32.whl", hash = "sha256:729586769a26dbceff69f7a7dbbf59ab6572b99d94576a5592625d5b411576b9", size = 14747 }, - { url = "https://files.pythonhosted.org/packages/28/52/182836104b33b444e400b14f797212f720cbc9ed6ba34c800639d154e821/markupsafe-3.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:bdc919ead48f234740ad807933cdf545180bfbe9342c2bb451556db2ed958581", size = 15341 }, - { url = "https://files.pythonhosted.org/packages/6f/18/acf23e91bd94fd7b3031558b1f013adfa21a8e407a3fdb32745538730382/markupsafe-3.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:5a7d5dc5140555cf21a6fefbdbf8723f06fcd2f63ef108f2854de715e4422cb4", size = 14073 }, - { url = "https://files.pythonhosted.org/packages/3c/f0/57689aa4076e1b43b15fdfa646b04653969d50cf30c32a102762be2485da/markupsafe-3.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:1353ef0c1b138e1907ae78e2f6c63ff67501122006b0f9abad68fda5f4ffc6ab", size = 11661 }, - { url = "https://files.pythonhosted.org/packages/89/c3/2e67a7ca217c6912985ec766c6393b636fb0c2344443ff9d91404dc4c79f/markupsafe-3.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1085e7fbddd3be5f89cc898938f42c0b3c711fdcb37d75221de2666af647c175", size = 12069 }, - { url = "https://files.pythonhosted.org/packages/f0/00/be561dce4e6ca66b15276e184ce4b8aec61fe83662cce2f7d72bd3249d28/markupsafe-3.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1b52b4fb9df4eb9ae465f8d0c228a00624de2334f216f178a995ccdcf82c4634", size = 25670 }, - { url = "https://files.pythonhosted.org/packages/50/09/c419f6f5a92e5fadde27efd190eca90f05e1261b10dbd8cbcb39cd8ea1dc/markupsafe-3.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fed51ac40f757d41b7c48425901843666a6677e3e8eb0abcff09e4ba6e664f50", size = 23598 }, - { url = "https://files.pythonhosted.org/packages/22/44/a0681611106e0b2921b3033fc19bc53323e0b50bc70cffdd19f7d679bb66/markupsafe-3.0.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f190daf01f13c72eac4efd5c430a8de82489d9cff23c364c3ea822545032993e", size = 23261 }, - { url = "https://files.pythonhosted.org/packages/5f/57/1b0b3f100259dc9fffe780cfb60d4be71375510e435efec3d116b6436d43/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e56b7d45a839a697b5eb268c82a71bd8c7f6c94d6fd50c3d577fa39a9f1409f5", size = 24835 }, - { url = "https://files.pythonhosted.org/packages/26/6a/4bf6d0c97c4920f1597cc14dd720705eca0bf7c787aebc6bb4d1bead5388/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:f3e98bb3798ead92273dc0e5fd0f31ade220f59a266ffd8a4f6065e0a3ce0523", size = 22733 }, - { url = "https://files.pythonhosted.org/packages/14/c7/ca723101509b518797fedc2fdf79ba57f886b4aca8a7d31857ba3ee8281f/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5678211cb9333a6468fb8d8be0305520aa073f50d17f089b5b4b477ea6e67fdc", size = 23672 }, - { url = "https://files.pythonhosted.org/packages/fb/df/5bd7a48c256faecd1d36edc13133e51397e41b73bb77e1a69deab746ebac/markupsafe-3.0.3-cp314-cp314t-win32.whl", hash = "sha256:915c04ba3851909ce68ccc2b8e2cd691618c4dc4c4232fb7982bca3f41fd8c3d", size = 14819 }, - { url = "https://files.pythonhosted.org/packages/1a/8a/0402ba61a2f16038b48b39bccca271134be00c5c9f0f623208399333c448/markupsafe-3.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4faffd047e07c38848ce017e8725090413cd80cbc23d86e55c587bf979e579c9", size = 15426 }, - { url = "https://files.pythonhosted.org/packages/70/bc/6f1c2f612465f5fa89b95bead1f44dcb607670fd42891d8fdcd5d039f4f4/markupsafe-3.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:32001d6a8fc98c8cb5c947787c5d08b0a50663d139f1305bac5885d98d9b40fa", size = 14146 }, +sdist = { url = "https://files.pythonhosted.org/packages/7e/99/7690b6d4034fffd95959cbe0c02de8deb3098cc577c67bb6a24fe5d7caa7/markupsafe-3.0.3.tar.gz", hash = "sha256:722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698", size = 80313, upload-time = "2025-09-27T18:37:40.426Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/33/8a/8e42d4838cd89b7dde187011e97fe6c3af66d8c044997d2183fbd6d31352/markupsafe-3.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:eaa9599de571d72e2daf60164784109f19978b327a3910d3e9de8c97b5b70cfe", size = 11619, upload-time = "2025-09-27T18:37:06.342Z" }, + { url = "https://files.pythonhosted.org/packages/b5/64/7660f8a4a8e53c924d0fa05dc3a55c9cee10bbd82b11c5afb27d44b096ce/markupsafe-3.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c47a551199eb8eb2121d4f0f15ae0f923d31350ab9280078d1e5f12b249e0026", size = 12029, upload-time = "2025-09-27T18:37:07.213Z" }, + { url = "https://files.pythonhosted.org/packages/da/ef/e648bfd021127bef5fa12e1720ffed0c6cbb8310c8d9bea7266337ff06de/markupsafe-3.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f34c41761022dd093b4b6896d4810782ffbabe30f2d443ff5f083e0cbbb8c737", size = 24408, upload-time = "2025-09-27T18:37:09.572Z" }, + { url = "https://files.pythonhosted.org/packages/41/3c/a36c2450754618e62008bf7435ccb0f88053e07592e6028a34776213d877/markupsafe-3.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:457a69a9577064c05a97c41f4e65148652db078a3a509039e64d3467b9e7ef97", size = 23005, upload-time = "2025-09-27T18:37:10.58Z" }, + { url = "https://files.pythonhosted.org/packages/bc/20/b7fdf89a8456b099837cd1dc21974632a02a999ec9bf7ca3e490aacd98e7/markupsafe-3.0.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e8afc3f2ccfa24215f8cb28dcf43f0113ac3c37c2f0f0806d8c70e4228c5cf4d", size = 22048, upload-time = "2025-09-27T18:37:11.547Z" }, + { url = "https://files.pythonhosted.org/packages/9a/a7/591f592afdc734f47db08a75793a55d7fbcc6902a723ae4cfbab61010cc5/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ec15a59cf5af7be74194f7ab02d0f59a62bdcf1a537677ce67a2537c9b87fcda", size = 23821, upload-time = "2025-09-27T18:37:12.48Z" }, + { url = "https://files.pythonhosted.org/packages/7d/33/45b24e4f44195b26521bc6f1a82197118f74df348556594bd2262bda1038/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:0eb9ff8191e8498cca014656ae6b8d61f39da5f95b488805da4bb029cccbfbaf", size = 21606, upload-time = "2025-09-27T18:37:13.485Z" }, + { url = "https://files.pythonhosted.org/packages/ff/0e/53dfaca23a69fbfbbf17a4b64072090e70717344c52eaaaa9c5ddff1e5f0/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2713baf880df847f2bece4230d4d094280f4e67b1e813eec43b4c0e144a34ffe", size = 23043, upload-time = "2025-09-27T18:37:14.408Z" }, + { url = "https://files.pythonhosted.org/packages/46/11/f333a06fc16236d5238bfe74daccbca41459dcd8d1fa952e8fbd5dccfb70/markupsafe-3.0.3-cp314-cp314-win32.whl", hash = "sha256:729586769a26dbceff69f7a7dbbf59ab6572b99d94576a5592625d5b411576b9", size = 14747, upload-time = "2025-09-27T18:37:15.36Z" }, + { url = "https://files.pythonhosted.org/packages/28/52/182836104b33b444e400b14f797212f720cbc9ed6ba34c800639d154e821/markupsafe-3.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:bdc919ead48f234740ad807933cdf545180bfbe9342c2bb451556db2ed958581", size = 15341, upload-time = "2025-09-27T18:37:16.496Z" }, + { url = "https://files.pythonhosted.org/packages/6f/18/acf23e91bd94fd7b3031558b1f013adfa21a8e407a3fdb32745538730382/markupsafe-3.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:5a7d5dc5140555cf21a6fefbdbf8723f06fcd2f63ef108f2854de715e4422cb4", size = 14073, upload-time = "2025-09-27T18:37:17.476Z" }, + { url = "https://files.pythonhosted.org/packages/3c/f0/57689aa4076e1b43b15fdfa646b04653969d50cf30c32a102762be2485da/markupsafe-3.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:1353ef0c1b138e1907ae78e2f6c63ff67501122006b0f9abad68fda5f4ffc6ab", size = 11661, upload-time = "2025-09-27T18:37:18.453Z" }, + { url = "https://files.pythonhosted.org/packages/89/c3/2e67a7ca217c6912985ec766c6393b636fb0c2344443ff9d91404dc4c79f/markupsafe-3.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1085e7fbddd3be5f89cc898938f42c0b3c711fdcb37d75221de2666af647c175", size = 12069, upload-time = "2025-09-27T18:37:19.332Z" }, + { url = "https://files.pythonhosted.org/packages/f0/00/be561dce4e6ca66b15276e184ce4b8aec61fe83662cce2f7d72bd3249d28/markupsafe-3.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1b52b4fb9df4eb9ae465f8d0c228a00624de2334f216f178a995ccdcf82c4634", size = 25670, upload-time = "2025-09-27T18:37:20.245Z" }, + { url = "https://files.pythonhosted.org/packages/50/09/c419f6f5a92e5fadde27efd190eca90f05e1261b10dbd8cbcb39cd8ea1dc/markupsafe-3.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fed51ac40f757d41b7c48425901843666a6677e3e8eb0abcff09e4ba6e664f50", size = 23598, upload-time = "2025-09-27T18:37:21.177Z" }, + { url = "https://files.pythonhosted.org/packages/22/44/a0681611106e0b2921b3033fc19bc53323e0b50bc70cffdd19f7d679bb66/markupsafe-3.0.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f190daf01f13c72eac4efd5c430a8de82489d9cff23c364c3ea822545032993e", size = 23261, upload-time = "2025-09-27T18:37:22.167Z" }, + { url = "https://files.pythonhosted.org/packages/5f/57/1b0b3f100259dc9fffe780cfb60d4be71375510e435efec3d116b6436d43/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e56b7d45a839a697b5eb268c82a71bd8c7f6c94d6fd50c3d577fa39a9f1409f5", size = 24835, upload-time = "2025-09-27T18:37:23.296Z" }, + { url = "https://files.pythonhosted.org/packages/26/6a/4bf6d0c97c4920f1597cc14dd720705eca0bf7c787aebc6bb4d1bead5388/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:f3e98bb3798ead92273dc0e5fd0f31ade220f59a266ffd8a4f6065e0a3ce0523", size = 22733, upload-time = "2025-09-27T18:37:24.237Z" }, + { url = "https://files.pythonhosted.org/packages/14/c7/ca723101509b518797fedc2fdf79ba57f886b4aca8a7d31857ba3ee8281f/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5678211cb9333a6468fb8d8be0305520aa073f50d17f089b5b4b477ea6e67fdc", size = 23672, upload-time = "2025-09-27T18:37:25.271Z" }, + { url = "https://files.pythonhosted.org/packages/fb/df/5bd7a48c256faecd1d36edc13133e51397e41b73bb77e1a69deab746ebac/markupsafe-3.0.3-cp314-cp314t-win32.whl", hash = "sha256:915c04ba3851909ce68ccc2b8e2cd691618c4dc4c4232fb7982bca3f41fd8c3d", size = 14819, upload-time = "2025-09-27T18:37:26.285Z" }, + { url = "https://files.pythonhosted.org/packages/1a/8a/0402ba61a2f16038b48b39bccca271134be00c5c9f0f623208399333c448/markupsafe-3.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4faffd047e07c38848ce017e8725090413cd80cbc23d86e55c587bf979e579c9", size = 15426, upload-time = "2025-09-27T18:37:27.316Z" }, + { url = "https://files.pythonhosted.org/packages/70/bc/6f1c2f612465f5fa89b95bead1f44dcb607670fd42891d8fdcd5d039f4f4/markupsafe-3.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:32001d6a8fc98c8cb5c947787c5d08b0a50663d139f1305bac5885d98d9b40fa", size = 14146, upload-time = "2025-09-27T18:37:28.327Z" }, ] [[package]] name = "packaging" version = "26.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/65/ee/299d360cdc32edc7d2cf530f3accf79c4fca01e96ffc950d8a52213bd8e4/packaging-26.0.tar.gz", hash = "sha256:00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4", size = 143416 } +sdist = { url = "https://files.pythonhosted.org/packages/65/ee/299d360cdc32edc7d2cf530f3accf79c4fca01e96ffc950d8a52213bd8e4/packaging-26.0.tar.gz", hash = "sha256:00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4", size = 143416, upload-time = "2026-01-21T20:50:39.064Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b7/b9/c538f279a4e237a006a2c98387d081e9eb060d203d8ed34467cc0f0b9b53/packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529", size = 74366 }, + { url = "https://files.pythonhosted.org/packages/b7/b9/c538f279a4e237a006a2c98387d081e9eb060d203d8ed34467cc0f0b9b53/packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529", size = 74366, upload-time = "2026-01-21T20:50:37.788Z" }, ] [[package]] @@ -338,9 +338,9 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "wcwidth" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/a1/96/06e01a7b38dce6fe1db213e061a4602dd6032a8a97ef6c1a862537732421/prompt_toolkit-3.0.52.tar.gz", hash = "sha256:28cde192929c8e7321de85de1ddbe736f1375148b02f2e17edd840042b1be855", size = 434198 } +sdist = { url = "https://files.pythonhosted.org/packages/a1/96/06e01a7b38dce6fe1db213e061a4602dd6032a8a97ef6c1a862537732421/prompt_toolkit-3.0.52.tar.gz", hash = "sha256:28cde192929c8e7321de85de1ddbe736f1375148b02f2e17edd840042b1be855", size = 434198, upload-time = "2025-08-27T15:24:02.057Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/84/03/0d3ce49e2505ae70cf43bc5bb3033955d2fc9f932163e84dc0779cc47f48/prompt_toolkit-3.0.52-py3-none-any.whl", hash = "sha256:9aac639a3bbd33284347de5ad8d68ecc044b91a762dc39b7c21095fcd6a19955", size = 391431 }, + { url = "https://files.pythonhosted.org/packages/84/03/0d3ce49e2505ae70cf43bc5bb3033955d2fc9f932163e84dc0779cc47f48/prompt_toolkit-3.0.52-py3-none-any.whl", hash = "sha256:9aac639a3bbd33284347de5ad8d68ecc044b91a762dc39b7c21095fcd6a19955", size = 391431, upload-time = "2025-08-27T15:23:59.498Z" }, ] [[package]] @@ -353,9 +353,9 @@ dependencies = [ { name = "typing-extensions" }, { name = "typing-inspection" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/69/44/36f1a6e523abc58ae5f928898e4aca2e0ea509b5aa6f6f392a5d882be928/pydantic-2.12.5.tar.gz", hash = "sha256:4d351024c75c0f085a9febbb665ce8c0c6ec5d30e903bdb6394b7ede26aebb49", size = 821591 } +sdist = { url = "https://files.pythonhosted.org/packages/69/44/36f1a6e523abc58ae5f928898e4aca2e0ea509b5aa6f6f392a5d882be928/pydantic-2.12.5.tar.gz", hash = "sha256:4d351024c75c0f085a9febbb665ce8c0c6ec5d30e903bdb6394b7ede26aebb49", size = 821591, upload-time = "2025-11-26T15:11:46.471Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/5a/87/b70ad306ebb6f9b585f114d0ac2137d792b48be34d732d60e597c2f8465a/pydantic-2.12.5-py3-none-any.whl", hash = "sha256:e561593fccf61e8a20fc46dfc2dfe075b8be7d0188df33f221ad1f0139180f9d", size = 463580 }, + { url = "https://files.pythonhosted.org/packages/5a/87/b70ad306ebb6f9b585f114d0ac2137d792b48be34d732d60e597c2f8465a/pydantic-2.12.5-py3-none-any.whl", hash = "sha256:e561593fccf61e8a20fc46dfc2dfe075b8be7d0188df33f221ad1f0139180f9d", size = 463580, upload-time = "2025-11-26T15:11:44.605Z" }, ] [[package]] @@ -365,36 +365,50 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/71/70/23b021c950c2addd24ec408e9ab05d59b035b39d97cdc1130e1bce647bb6/pydantic_core-2.41.5.tar.gz", hash = "sha256:08daa51ea16ad373ffd5e7606252cc32f07bc72b28284b6bc9c6df804816476e", size = 460952 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/ea/28/46b7c5c9635ae96ea0fbb779e271a38129df2550f763937659ee6c5dbc65/pydantic_core-2.41.5-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:3f37a19d7ebcdd20b96485056ba9e8b304e27d9904d233d7b1015db320e51f0a", size = 2119622 }, - { url = "https://files.pythonhosted.org/packages/74/1a/145646e5687e8d9a1e8d09acb278c8535ebe9e972e1f162ed338a622f193/pydantic_core-2.41.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1d1d9764366c73f996edd17abb6d9d7649a7eb690006ab6adbda117717099b14", size = 1891725 }, - { url = "https://files.pythonhosted.org/packages/23/04/e89c29e267b8060b40dca97bfc64a19b2a3cf99018167ea1677d96368273/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:25e1c2af0fce638d5f1988b686f3b3ea8cd7de5f244ca147c777769e798a9cd1", size = 1915040 }, - { url = "https://files.pythonhosted.org/packages/84/a3/15a82ac7bd97992a82257f777b3583d3e84bdb06ba6858f745daa2ec8a85/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:506d766a8727beef16b7adaeb8ee6217c64fc813646b424d0804d67c16eddb66", size = 2063691 }, - { url = "https://files.pythonhosted.org/packages/74/9b/0046701313c6ef08c0c1cf0e028c67c770a4e1275ca73131563c5f2a310a/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4819fa52133c9aa3c387b3328f25c1facc356491e6135b459f1de698ff64d869", size = 2213897 }, - { url = "https://files.pythonhosted.org/packages/8a/cd/6bac76ecd1b27e75a95ca3a9a559c643b3afcd2dd62086d4b7a32a18b169/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2b761d210c9ea91feda40d25b4efe82a1707da2ef62901466a42492c028553a2", size = 2333302 }, - { url = "https://files.pythonhosted.org/packages/4c/d2/ef2074dc020dd6e109611a8be4449b98cd25e1b9b8a303c2f0fca2f2bcf7/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:22f0fb8c1c583a3b6f24df2470833b40207e907b90c928cc8d3594b76f874375", size = 2064877 }, - { url = "https://files.pythonhosted.org/packages/18/66/e9db17a9a763d72f03de903883c057b2592c09509ccfe468187f2a2eef29/pydantic_core-2.41.5-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2782c870e99878c634505236d81e5443092fba820f0373997ff75f90f68cd553", size = 2180680 }, - { url = "https://files.pythonhosted.org/packages/d3/9e/3ce66cebb929f3ced22be85d4c2399b8e85b622db77dad36b73c5387f8f8/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:0177272f88ab8312479336e1d777f6b124537d47f2123f89cb37e0accea97f90", size = 2138960 }, - { url = "https://files.pythonhosted.org/packages/a6/62/205a998f4327d2079326b01abee48e502ea739d174f0a89295c481a2272e/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:63510af5e38f8955b8ee5687740d6ebf7c2a0886d15a6d65c32814613681bc07", size = 2339102 }, - { url = "https://files.pythonhosted.org/packages/3c/0d/f05e79471e889d74d3d88f5bd20d0ed189ad94c2423d81ff8d0000aab4ff/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:e56ba91f47764cc14f1daacd723e3e82d1a89d783f0f5afe9c364b8bb491ccdb", size = 2326039 }, - { url = "https://files.pythonhosted.org/packages/ec/e1/e08a6208bb100da7e0c4b288eed624a703f4d129bde2da475721a80cab32/pydantic_core-2.41.5-cp314-cp314-win32.whl", hash = "sha256:aec5cf2fd867b4ff45b9959f8b20ea3993fc93e63c7363fe6851424c8a7e7c23", size = 1995126 }, - { url = "https://files.pythonhosted.org/packages/48/5d/56ba7b24e9557f99c9237e29f5c09913c81eeb2f3217e40e922353668092/pydantic_core-2.41.5-cp314-cp314-win_amd64.whl", hash = "sha256:8e7c86f27c585ef37c35e56a96363ab8de4e549a95512445b85c96d3e2f7c1bf", size = 2015489 }, - { url = "https://files.pythonhosted.org/packages/4e/bb/f7a190991ec9e3e0ba22e4993d8755bbc4a32925c0b5b42775c03e8148f9/pydantic_core-2.41.5-cp314-cp314-win_arm64.whl", hash = "sha256:e672ba74fbc2dc8eea59fb6d4aed6845e6905fc2a8afe93175d94a83ba2a01a0", size = 1977288 }, - { url = "https://files.pythonhosted.org/packages/92/ed/77542d0c51538e32e15afe7899d79efce4b81eee631d99850edc2f5e9349/pydantic_core-2.41.5-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:8566def80554c3faa0e65ac30ab0932b9e3a5cd7f8323764303d468e5c37595a", size = 2120255 }, - { url = "https://files.pythonhosted.org/packages/bb/3d/6913dde84d5be21e284439676168b28d8bbba5600d838b9dca99de0fad71/pydantic_core-2.41.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b80aa5095cd3109962a298ce14110ae16b8c1aece8b72f9dafe81cf597ad80b3", size = 1863760 }, - { url = "https://files.pythonhosted.org/packages/5a/f0/e5e6b99d4191da102f2b0eb9687aaa7f5bea5d9964071a84effc3e40f997/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3006c3dd9ba34b0c094c544c6006cc79e87d8612999f1a5d43b769b89181f23c", size = 1878092 }, - { url = "https://files.pythonhosted.org/packages/71/48/36fb760642d568925953bcc8116455513d6e34c4beaa37544118c36aba6d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:72f6c8b11857a856bcfa48c86f5368439f74453563f951e473514579d44aa612", size = 2053385 }, - { url = "https://files.pythonhosted.org/packages/20/25/92dc684dd8eb75a234bc1c764b4210cf2646479d54b47bf46061657292a8/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5cb1b2f9742240e4bb26b652a5aeb840aa4b417c7748b6f8387927bc6e45e40d", size = 2218832 }, - { url = "https://files.pythonhosted.org/packages/e2/09/f53e0b05023d3e30357d82eb35835d0f6340ca344720a4599cd663dca599/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bd3d54f38609ff308209bd43acea66061494157703364ae40c951f83ba99a1a9", size = 2327585 }, - { url = "https://files.pythonhosted.org/packages/aa/4e/2ae1aa85d6af35a39b236b1b1641de73f5a6ac4d5a7509f77b814885760c/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2ff4321e56e879ee8d2a879501c8e469414d948f4aba74a2d4593184eb326660", size = 2041078 }, - { url = "https://files.pythonhosted.org/packages/cd/13/2e215f17f0ef326fc72afe94776edb77525142c693767fc347ed6288728d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d0d2568a8c11bf8225044aa94409e21da0cb09dcdafe9ecd10250b2baad531a9", size = 2173914 }, - { url = "https://files.pythonhosted.org/packages/02/7a/f999a6dcbcd0e5660bc348a3991c8915ce6599f4f2c6ac22f01d7a10816c/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:a39455728aabd58ceabb03c90e12f71fd30fa69615760a075b9fec596456ccc3", size = 2129560 }, - { url = "https://files.pythonhosted.org/packages/3a/b1/6c990ac65e3b4c079a4fb9f5b05f5b013afa0f4ed6780a3dd236d2cbdc64/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:239edca560d05757817c13dc17c50766136d21f7cd0fac50295499ae24f90fdf", size = 2329244 }, - { url = "https://files.pythonhosted.org/packages/d9/02/3c562f3a51afd4d88fff8dffb1771b30cfdfd79befd9883ee094f5b6c0d8/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:2a5e06546e19f24c6a96a129142a75cee553cc018ffee48a460059b1185f4470", size = 2331955 }, - { url = "https://files.pythonhosted.org/packages/5c/96/5fb7d8c3c17bc8c62fdb031c47d77a1af698f1d7a406b0f79aaa1338f9ad/pydantic_core-2.41.5-cp314-cp314t-win32.whl", hash = "sha256:b4ececa40ac28afa90871c2cc2b9ffd2ff0bf749380fbdf57d165fd23da353aa", size = 1988906 }, - { url = "https://files.pythonhosted.org/packages/22/ed/182129d83032702912c2e2d8bbe33c036f342cc735737064668585dac28f/pydantic_core-2.41.5-cp314-cp314t-win_amd64.whl", hash = "sha256:80aa89cad80b32a912a65332f64a4450ed00966111b6615ca6816153d3585a8c", size = 1981607 }, - { url = "https://files.pythonhosted.org/packages/9f/ed/068e41660b832bb0b1aa5b58011dea2a3fe0ba7861ff38c4d4904c1c1a99/pydantic_core-2.41.5-cp314-cp314t-win_arm64.whl", hash = "sha256:35b44f37a3199f771c3eaa53051bc8a70cd7b54f333531c59e29fd4db5d15008", size = 1974769 }, +sdist = { url = "https://files.pythonhosted.org/packages/71/70/23b021c950c2addd24ec408e9ab05d59b035b39d97cdc1130e1bce647bb6/pydantic_core-2.41.5.tar.gz", hash = "sha256:08daa51ea16ad373ffd5e7606252cc32f07bc72b28284b6bc9c6df804816476e", size = 460952, upload-time = "2025-11-04T13:43:49.098Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ea/28/46b7c5c9635ae96ea0fbb779e271a38129df2550f763937659ee6c5dbc65/pydantic_core-2.41.5-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:3f37a19d7ebcdd20b96485056ba9e8b304e27d9904d233d7b1015db320e51f0a", size = 2119622, upload-time = "2025-11-04T13:40:56.68Z" }, + { url = "https://files.pythonhosted.org/packages/74/1a/145646e5687e8d9a1e8d09acb278c8535ebe9e972e1f162ed338a622f193/pydantic_core-2.41.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1d1d9764366c73f996edd17abb6d9d7649a7eb690006ab6adbda117717099b14", size = 1891725, upload-time = "2025-11-04T13:40:58.807Z" }, + { url = "https://files.pythonhosted.org/packages/23/04/e89c29e267b8060b40dca97bfc64a19b2a3cf99018167ea1677d96368273/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:25e1c2af0fce638d5f1988b686f3b3ea8cd7de5f244ca147c777769e798a9cd1", size = 1915040, upload-time = "2025-11-04T13:41:00.853Z" }, + { url = "https://files.pythonhosted.org/packages/84/a3/15a82ac7bd97992a82257f777b3583d3e84bdb06ba6858f745daa2ec8a85/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:506d766a8727beef16b7adaeb8ee6217c64fc813646b424d0804d67c16eddb66", size = 2063691, upload-time = "2025-11-04T13:41:03.504Z" }, + { url = "https://files.pythonhosted.org/packages/74/9b/0046701313c6ef08c0c1cf0e028c67c770a4e1275ca73131563c5f2a310a/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4819fa52133c9aa3c387b3328f25c1facc356491e6135b459f1de698ff64d869", size = 2213897, upload-time = "2025-11-04T13:41:05.804Z" }, + { url = "https://files.pythonhosted.org/packages/8a/cd/6bac76ecd1b27e75a95ca3a9a559c643b3afcd2dd62086d4b7a32a18b169/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2b761d210c9ea91feda40d25b4efe82a1707da2ef62901466a42492c028553a2", size = 2333302, upload-time = "2025-11-04T13:41:07.809Z" }, + { url = "https://files.pythonhosted.org/packages/4c/d2/ef2074dc020dd6e109611a8be4449b98cd25e1b9b8a303c2f0fca2f2bcf7/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:22f0fb8c1c583a3b6f24df2470833b40207e907b90c928cc8d3594b76f874375", size = 2064877, upload-time = "2025-11-04T13:41:09.827Z" }, + { url = "https://files.pythonhosted.org/packages/18/66/e9db17a9a763d72f03de903883c057b2592c09509ccfe468187f2a2eef29/pydantic_core-2.41.5-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2782c870e99878c634505236d81e5443092fba820f0373997ff75f90f68cd553", size = 2180680, upload-time = "2025-11-04T13:41:12.379Z" }, + { url = "https://files.pythonhosted.org/packages/d3/9e/3ce66cebb929f3ced22be85d4c2399b8e85b622db77dad36b73c5387f8f8/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:0177272f88ab8312479336e1d777f6b124537d47f2123f89cb37e0accea97f90", size = 2138960, upload-time = "2025-11-04T13:41:14.627Z" }, + { url = "https://files.pythonhosted.org/packages/a6/62/205a998f4327d2079326b01abee48e502ea739d174f0a89295c481a2272e/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:63510af5e38f8955b8ee5687740d6ebf7c2a0886d15a6d65c32814613681bc07", size = 2339102, upload-time = "2025-11-04T13:41:16.868Z" }, + { url = "https://files.pythonhosted.org/packages/3c/0d/f05e79471e889d74d3d88f5bd20d0ed189ad94c2423d81ff8d0000aab4ff/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:e56ba91f47764cc14f1daacd723e3e82d1a89d783f0f5afe9c364b8bb491ccdb", size = 2326039, upload-time = "2025-11-04T13:41:18.934Z" }, + { url = "https://files.pythonhosted.org/packages/ec/e1/e08a6208bb100da7e0c4b288eed624a703f4d129bde2da475721a80cab32/pydantic_core-2.41.5-cp314-cp314-win32.whl", hash = "sha256:aec5cf2fd867b4ff45b9959f8b20ea3993fc93e63c7363fe6851424c8a7e7c23", size = 1995126, upload-time = "2025-11-04T13:41:21.418Z" }, + { url = "https://files.pythonhosted.org/packages/48/5d/56ba7b24e9557f99c9237e29f5c09913c81eeb2f3217e40e922353668092/pydantic_core-2.41.5-cp314-cp314-win_amd64.whl", hash = "sha256:8e7c86f27c585ef37c35e56a96363ab8de4e549a95512445b85c96d3e2f7c1bf", size = 2015489, upload-time = "2025-11-04T13:41:24.076Z" }, + { url = "https://files.pythonhosted.org/packages/4e/bb/f7a190991ec9e3e0ba22e4993d8755bbc4a32925c0b5b42775c03e8148f9/pydantic_core-2.41.5-cp314-cp314-win_arm64.whl", hash = "sha256:e672ba74fbc2dc8eea59fb6d4aed6845e6905fc2a8afe93175d94a83ba2a01a0", size = 1977288, upload-time = "2025-11-04T13:41:26.33Z" }, + { url = "https://files.pythonhosted.org/packages/92/ed/77542d0c51538e32e15afe7899d79efce4b81eee631d99850edc2f5e9349/pydantic_core-2.41.5-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:8566def80554c3faa0e65ac30ab0932b9e3a5cd7f8323764303d468e5c37595a", size = 2120255, upload-time = "2025-11-04T13:41:28.569Z" }, + { url = "https://files.pythonhosted.org/packages/bb/3d/6913dde84d5be21e284439676168b28d8bbba5600d838b9dca99de0fad71/pydantic_core-2.41.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b80aa5095cd3109962a298ce14110ae16b8c1aece8b72f9dafe81cf597ad80b3", size = 1863760, upload-time = "2025-11-04T13:41:31.055Z" }, + { url = "https://files.pythonhosted.org/packages/5a/f0/e5e6b99d4191da102f2b0eb9687aaa7f5bea5d9964071a84effc3e40f997/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3006c3dd9ba34b0c094c544c6006cc79e87d8612999f1a5d43b769b89181f23c", size = 1878092, upload-time = "2025-11-04T13:41:33.21Z" }, + { url = "https://files.pythonhosted.org/packages/71/48/36fb760642d568925953bcc8116455513d6e34c4beaa37544118c36aba6d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:72f6c8b11857a856bcfa48c86f5368439f74453563f951e473514579d44aa612", size = 2053385, upload-time = "2025-11-04T13:41:35.508Z" }, + { url = "https://files.pythonhosted.org/packages/20/25/92dc684dd8eb75a234bc1c764b4210cf2646479d54b47bf46061657292a8/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5cb1b2f9742240e4bb26b652a5aeb840aa4b417c7748b6f8387927bc6e45e40d", size = 2218832, upload-time = "2025-11-04T13:41:37.732Z" }, + { url = "https://files.pythonhosted.org/packages/e2/09/f53e0b05023d3e30357d82eb35835d0f6340ca344720a4599cd663dca599/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bd3d54f38609ff308209bd43acea66061494157703364ae40c951f83ba99a1a9", size = 2327585, upload-time = "2025-11-04T13:41:40Z" }, + { url = "https://files.pythonhosted.org/packages/aa/4e/2ae1aa85d6af35a39b236b1b1641de73f5a6ac4d5a7509f77b814885760c/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2ff4321e56e879ee8d2a879501c8e469414d948f4aba74a2d4593184eb326660", size = 2041078, upload-time = "2025-11-04T13:41:42.323Z" }, + { url = "https://files.pythonhosted.org/packages/cd/13/2e215f17f0ef326fc72afe94776edb77525142c693767fc347ed6288728d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d0d2568a8c11bf8225044aa94409e21da0cb09dcdafe9ecd10250b2baad531a9", size = 2173914, upload-time = "2025-11-04T13:41:45.221Z" }, + { url = "https://files.pythonhosted.org/packages/02/7a/f999a6dcbcd0e5660bc348a3991c8915ce6599f4f2c6ac22f01d7a10816c/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:a39455728aabd58ceabb03c90e12f71fd30fa69615760a075b9fec596456ccc3", size = 2129560, upload-time = "2025-11-04T13:41:47.474Z" }, + { url = "https://files.pythonhosted.org/packages/3a/b1/6c990ac65e3b4c079a4fb9f5b05f5b013afa0f4ed6780a3dd236d2cbdc64/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:239edca560d05757817c13dc17c50766136d21f7cd0fac50295499ae24f90fdf", size = 2329244, upload-time = "2025-11-04T13:41:49.992Z" }, + { url = "https://files.pythonhosted.org/packages/d9/02/3c562f3a51afd4d88fff8dffb1771b30cfdfd79befd9883ee094f5b6c0d8/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:2a5e06546e19f24c6a96a129142a75cee553cc018ffee48a460059b1185f4470", size = 2331955, upload-time = "2025-11-04T13:41:54.079Z" }, + { url = "https://files.pythonhosted.org/packages/5c/96/5fb7d8c3c17bc8c62fdb031c47d77a1af698f1d7a406b0f79aaa1338f9ad/pydantic_core-2.41.5-cp314-cp314t-win32.whl", hash = "sha256:b4ececa40ac28afa90871c2cc2b9ffd2ff0bf749380fbdf57d165fd23da353aa", size = 1988906, upload-time = "2025-11-04T13:41:56.606Z" }, + { url = "https://files.pythonhosted.org/packages/22/ed/182129d83032702912c2e2d8bbe33c036f342cc735737064668585dac28f/pydantic_core-2.41.5-cp314-cp314t-win_amd64.whl", hash = "sha256:80aa89cad80b32a912a65332f64a4450ed00966111b6615ca6816153d3585a8c", size = 1981607, upload-time = "2025-11-04T13:41:58.889Z" }, + { url = "https://files.pythonhosted.org/packages/9f/ed/068e41660b832bb0b1aa5b58011dea2a3fe0ba7861ff38c4d4904c1c1a99/pydantic_core-2.41.5-cp314-cp314t-win_arm64.whl", hash = "sha256:35b44f37a3199f771c3eaa53051bc8a70cd7b54f333531c59e29fd4db5d15008", size = 1974769, upload-time = "2025-11-04T13:42:01.186Z" }, +] + +[[package]] +name = "pydantic-settings" +version = "2.14.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pydantic" }, + { name = "python-dotenv" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/5c/b5/8f48e906c3e0205276e8bd8cb7512217a87b2685304d64be27cad5b3019f/pydantic_settings-2.14.2.tar.gz", hash = "sha256:c19dd64b19097f1de80184f0cc7b0272a13ae6e170cbf240a3e27e381ed14a5f", size = 237700, upload-time = "2026-06-19T13:44:56.324Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/77/c1/6e422f34e569cf8e18df68d1939c81c099d2b61e4f7d9621c8a77560799c/pydantic_settings-2.14.2-py3-none-any.whl", hash = "sha256:a20c97b37910b6550d5ea50fbcc2d4187defe58cd57070b73863d069419c9440", size = 61715, upload-time = "2026-06-19T13:44:55.02Z" }, ] [[package]] @@ -404,36 +418,45 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "six" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432 } +sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432, upload-time = "2024-03-01T18:36:20.211Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892, upload-time = "2024-03-01T18:36:18.57Z" }, +] + +[[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/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892 }, + { 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.22" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/94/01/979e98d542a70714b0cb2b6728ed0b7c46792b695e3eaec3e20711271ca3/python_multipart-0.0.22.tar.gz", hash = "sha256:7340bef99a7e0032613f56dc36027b959fd3b30a787ed62d310e951f7c3a3a58", size = 37612 } +sdist = { url = "https://files.pythonhosted.org/packages/94/01/979e98d542a70714b0cb2b6728ed0b7c46792b695e3eaec3e20711271ca3/python_multipart-0.0.22.tar.gz", hash = "sha256:7340bef99a7e0032613f56dc36027b959fd3b30a787ed62d310e951f7c3a3a58", size = 37612, upload-time = "2026-01-25T10:15:56.219Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/1b/d0/397f9626e711ff749a95d96b7af99b9c566a9bb5129b8e4c10fc4d100304/python_multipart-0.0.22-py3-none-any.whl", hash = "sha256:2b2cd894c83d21bf49d702499531c7bafd057d730c201782048f7945d82de155", size = 24579 }, + { url = "https://files.pythonhosted.org/packages/1b/d0/397f9626e711ff749a95d96b7af99b9c566a9bb5129b8e4c10fc4d100304/python_multipart-0.0.22-py3-none-any.whl", hash = "sha256:2b2cd894c83d21bf49d702499531c7bafd057d730c201782048f7945d82de155", size = 24579, upload-time = "2026-01-25T10:15:54.811Z" }, ] [[package]] name = "redis" version = "6.4.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/0d/d6/e8b92798a5bd67d659d51a18170e91c16ac3b59738d91894651ee255ed49/redis-6.4.0.tar.gz", hash = "sha256:b01bc7282b8444e28ec36b261df5375183bb47a07eb9c603f284e89cbc5ef010", size = 4647399 } +sdist = { url = "https://files.pythonhosted.org/packages/0d/d6/e8b92798a5bd67d659d51a18170e91c16ac3b59738d91894651ee255ed49/redis-6.4.0.tar.gz", hash = "sha256:b01bc7282b8444e28ec36b261df5375183bb47a07eb9c603f284e89cbc5ef010", size = 4647399, upload-time = "2025-08-07T08:10:11.441Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e8/02/89e2ed7e85db6c93dfa9e8f691c5087df4e3551ab39081a4d7c6d1f90e05/redis-6.4.0-py3-none-any.whl", hash = "sha256:f0544fa9604264e9464cdf4814e7d4830f74b165d52f2a330a760a88dd248b7f", size = 279847 }, + { url = "https://files.pythonhosted.org/packages/e8/02/89e2ed7e85db6c93dfa9e8f691c5087df4e3551ab39081a4d7c6d1f90e05/redis-6.4.0-py3-none-any.whl", hash = "sha256:f0544fa9604264e9464cdf4814e7d4830f74b165d52f2a330a760a88dd248b7f", size = 279847, upload-time = "2025-08-07T08:10:09.84Z" }, ] [[package]] name = "six" version = "1.17.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031 } +sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050 }, + { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" }, ] [[package]] @@ -444,22 +467,22 @@ dependencies = [ { name = "greenlet", marker = "platform_machine == 'AMD64' or platform_machine == 'WIN32' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'ppc64le' or platform_machine == 'win32' or platform_machine == 'x86_64'" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/1f/73/b4a9737255583b5fa858e0bb8e116eb94b88c910164ed2ed719147bde3de/sqlalchemy-2.0.48.tar.gz", hash = "sha256:5ca74f37f3369b45e1f6b7b06afb182af1fd5dde009e4ffd831830d98cbe5fe7", size = 9886075 } +sdist = { url = "https://files.pythonhosted.org/packages/1f/73/b4a9737255583b5fa858e0bb8e116eb94b88c910164ed2ed719147bde3de/sqlalchemy-2.0.48.tar.gz", hash = "sha256:5ca74f37f3369b45e1f6b7b06afb182af1fd5dde009e4ffd831830d98cbe5fe7", size = 9886075, upload-time = "2026-03-02T15:28:51.474Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f7/b3/f437eaa1cf028bb3c927172c7272366393e73ccd104dcf5b6963f4ab5318/sqlalchemy-2.0.48-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:e2d0d88686e3d35a76f3e15a34e8c12d73fc94c1dea1cd55782e695cc14086dd", size = 2154401 }, - { url = "https://files.pythonhosted.org/packages/6c/1c/b3abdf0f402aa3f60f0df6ea53d92a162b458fca2321d8f1f00278506402/sqlalchemy-2.0.48-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:49b7bddc1eebf011ea5ab722fdbe67a401caa34a350d278cc7733c0e88fecb1f", size = 3274528 }, - { url = "https://files.pythonhosted.org/packages/f2/5e/327428a034407651a048f5e624361adf3f9fbac9d0fa98e981e9c6ff2f5e/sqlalchemy-2.0.48-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:426c5ca86415d9b8945c7073597e10de9644802e2ff502b8e1f11a7a2642856b", size = 3279523 }, - { url = "https://files.pythonhosted.org/packages/2a/ca/ece73c81a918add0965b76b868b7b5359e068380b90ef1656ee995940c02/sqlalchemy-2.0.48-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:288937433bd44e3990e7da2402fabc44a3c6c25d3704da066b85b89a85474ae0", size = 3224312 }, - { url = "https://files.pythonhosted.org/packages/88/11/fbaf1ae91fa4ee43f4fe79661cead6358644824419c26adb004941bdce7c/sqlalchemy-2.0.48-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:8183dc57ae7d9edc1346e007e840a9f3d6aa7b7f165203a99e16f447150140d2", size = 3246304 }, - { url = "https://files.pythonhosted.org/packages/fa/a8/5fb0deb13930b4f2f698c5541ae076c18981173e27dd00376dbaea7a9c82/sqlalchemy-2.0.48-cp314-cp314-win32.whl", hash = "sha256:1182437cb2d97988cfea04cf6cdc0b0bb9c74f4d56ec3d08b81e23d621a28cc6", size = 2116565 }, - { url = "https://files.pythonhosted.org/packages/95/7e/e83615cb63f80047f18e61e31e8e32257d39458426c23006deeaf48f463b/sqlalchemy-2.0.48-cp314-cp314-win_amd64.whl", hash = "sha256:144921da96c08feb9e2b052c5c5c1d0d151a292c6135623c6b2c041f2a45f9e0", size = 2142205 }, - { url = "https://files.pythonhosted.org/packages/83/e3/69d8711b3f2c5135e9cde5f063bc1605860f0b2c53086d40c04017eb1f77/sqlalchemy-2.0.48-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5aee45fd2c6c0f2b9cdddf48c48535e7471e42d6fb81adfde801da0bd5b93241", size = 3563519 }, - { url = "https://files.pythonhosted.org/packages/f8/4f/a7cce98facca73c149ea4578981594aaa5fd841e956834931de503359336/sqlalchemy-2.0.48-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7cddca31edf8b0653090cbb54562ca027c421c58ddde2c0685f49ff56a1690e0", size = 3528611 }, - { url = "https://files.pythonhosted.org/packages/cd/7d/5936c7a03a0b0cb0fa0cc425998821c6029756b0855a8f7ee70fba1de955/sqlalchemy-2.0.48-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:7a936f1bb23d370b7c8cc079d5fce4c7d18da87a33c6744e51a93b0f9e97e9b3", size = 3472326 }, - { url = "https://files.pythonhosted.org/packages/f4/33/cea7dfc31b52904efe3dcdc169eb4514078887dff1f5ae28a7f4c5d54b3c/sqlalchemy-2.0.48-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:e004aa9248e8cb0a5f9b96d003ca7c1c0a5da8decd1066e7b53f59eb8ce7c62b", size = 3478453 }, - { url = "https://files.pythonhosted.org/packages/c8/95/32107c4d13be077a9cae61e9ae49966a35dc4bf442a8852dd871db31f62e/sqlalchemy-2.0.48-cp314-cp314t-win32.whl", hash = "sha256:b8438ec5594980d405251451c5b7ea9aa58dda38eb7ac35fb7e4c696712ee24f", size = 2147209 }, - { url = "https://files.pythonhosted.org/packages/d2/d7/1e073da7a4bc645eb83c76067284a0374e643bc4be57f14cc6414656f92c/sqlalchemy-2.0.48-cp314-cp314t-win_amd64.whl", hash = "sha256:d854b3970067297f3a7fbd7a4683587134aa9b3877ee15aa29eea478dc68f933", size = 2182198 }, - { url = "https://files.pythonhosted.org/packages/46/2c/9664130905f03db57961b8980b05cab624afd114bf2be2576628a9f22da4/sqlalchemy-2.0.48-py3-none-any.whl", hash = "sha256:a66fe406437dd65cacd96a72689a3aaaecaebbcd62d81c5ac1c0fdbeac835096", size = 1940202 }, + { url = "https://files.pythonhosted.org/packages/f7/b3/f437eaa1cf028bb3c927172c7272366393e73ccd104dcf5b6963f4ab5318/sqlalchemy-2.0.48-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:e2d0d88686e3d35a76f3e15a34e8c12d73fc94c1dea1cd55782e695cc14086dd", size = 2154401, upload-time = "2026-03-02T15:49:17.24Z" }, + { url = "https://files.pythonhosted.org/packages/6c/1c/b3abdf0f402aa3f60f0df6ea53d92a162b458fca2321d8f1f00278506402/sqlalchemy-2.0.48-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:49b7bddc1eebf011ea5ab722fdbe67a401caa34a350d278cc7733c0e88fecb1f", size = 3274528, upload-time = "2026-03-02T15:50:41.489Z" }, + { url = "https://files.pythonhosted.org/packages/f2/5e/327428a034407651a048f5e624361adf3f9fbac9d0fa98e981e9c6ff2f5e/sqlalchemy-2.0.48-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:426c5ca86415d9b8945c7073597e10de9644802e2ff502b8e1f11a7a2642856b", size = 3279523, upload-time = "2026-03-02T15:53:32.962Z" }, + { url = "https://files.pythonhosted.org/packages/2a/ca/ece73c81a918add0965b76b868b7b5359e068380b90ef1656ee995940c02/sqlalchemy-2.0.48-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:288937433bd44e3990e7da2402fabc44a3c6c25d3704da066b85b89a85474ae0", size = 3224312, upload-time = "2026-03-02T15:50:42.996Z" }, + { url = "https://files.pythonhosted.org/packages/88/11/fbaf1ae91fa4ee43f4fe79661cead6358644824419c26adb004941bdce7c/sqlalchemy-2.0.48-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:8183dc57ae7d9edc1346e007e840a9f3d6aa7b7f165203a99e16f447150140d2", size = 3246304, upload-time = "2026-03-02T15:53:34.937Z" }, + { url = "https://files.pythonhosted.org/packages/fa/a8/5fb0deb13930b4f2f698c5541ae076c18981173e27dd00376dbaea7a9c82/sqlalchemy-2.0.48-cp314-cp314-win32.whl", hash = "sha256:1182437cb2d97988cfea04cf6cdc0b0bb9c74f4d56ec3d08b81e23d621a28cc6", size = 2116565, upload-time = "2026-03-02T15:54:38.321Z" }, + { url = "https://files.pythonhosted.org/packages/95/7e/e83615cb63f80047f18e61e31e8e32257d39458426c23006deeaf48f463b/sqlalchemy-2.0.48-cp314-cp314-win_amd64.whl", hash = "sha256:144921da96c08feb9e2b052c5c5c1d0d151a292c6135623c6b2c041f2a45f9e0", size = 2142205, upload-time = "2026-03-02T15:54:39.831Z" }, + { url = "https://files.pythonhosted.org/packages/83/e3/69d8711b3f2c5135e9cde5f063bc1605860f0b2c53086d40c04017eb1f77/sqlalchemy-2.0.48-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5aee45fd2c6c0f2b9cdddf48c48535e7471e42d6fb81adfde801da0bd5b93241", size = 3563519, upload-time = "2026-03-02T15:57:52.387Z" }, + { url = "https://files.pythonhosted.org/packages/f8/4f/a7cce98facca73c149ea4578981594aaa5fd841e956834931de503359336/sqlalchemy-2.0.48-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7cddca31edf8b0653090cbb54562ca027c421c58ddde2c0685f49ff56a1690e0", size = 3528611, upload-time = "2026-03-02T16:04:42.097Z" }, + { url = "https://files.pythonhosted.org/packages/cd/7d/5936c7a03a0b0cb0fa0cc425998821c6029756b0855a8f7ee70fba1de955/sqlalchemy-2.0.48-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:7a936f1bb23d370b7c8cc079d5fce4c7d18da87a33c6744e51a93b0f9e97e9b3", size = 3472326, upload-time = "2026-03-02T15:57:54.423Z" }, + { url = "https://files.pythonhosted.org/packages/f4/33/cea7dfc31b52904efe3dcdc169eb4514078887dff1f5ae28a7f4c5d54b3c/sqlalchemy-2.0.48-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:e004aa9248e8cb0a5f9b96d003ca7c1c0a5da8decd1066e7b53f59eb8ce7c62b", size = 3478453, upload-time = "2026-03-02T16:04:44.584Z" }, + { url = "https://files.pythonhosted.org/packages/c8/95/32107c4d13be077a9cae61e9ae49966a35dc4bf442a8852dd871db31f62e/sqlalchemy-2.0.48-cp314-cp314t-win32.whl", hash = "sha256:b8438ec5594980d405251451c5b7ea9aa58dda38eb7ac35fb7e4c696712ee24f", size = 2147209, upload-time = "2026-03-02T15:52:54.274Z" }, + { url = "https://files.pythonhosted.org/packages/d2/d7/1e073da7a4bc645eb83c76067284a0374e643bc4be57f14cc6414656f92c/sqlalchemy-2.0.48-cp314-cp314t-win_amd64.whl", hash = "sha256:d854b3970067297f3a7fbd7a4683587134aa9b3877ee15aa29eea478dc68f933", size = 2182198, upload-time = "2026-03-02T15:52:55.606Z" }, + { url = "https://files.pythonhosted.org/packages/46/2c/9664130905f03db57961b8980b05cab624afd114bf2be2576628a9f22da4/sqlalchemy-2.0.48-py3-none-any.whl", hash = "sha256:a66fe406437dd65cacd96a72689a3aaaecaebbcd62d81c5ac1c0fdbeac835096", size = 1940202, upload-time = "2026-03-02T15:52:43.285Z" }, ] [[package]] @@ -469,18 +492,18 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "anyio" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/81/69/17425771797c36cded50b7fe44e850315d039f28b15901ab44839e70b593/starlette-1.0.0.tar.gz", hash = "sha256:6a4beaf1f81bb472fd19ea9b918b50dc3a77a6f2e190a12954b25e6ed5eea149", size = 2655289 } +sdist = { url = "https://files.pythonhosted.org/packages/81/69/17425771797c36cded50b7fe44e850315d039f28b15901ab44839e70b593/starlette-1.0.0.tar.gz", hash = "sha256:6a4beaf1f81bb472fd19ea9b918b50dc3a77a6f2e190a12954b25e6ed5eea149", size = 2655289, upload-time = "2026-03-22T18:29:46.779Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/0b/c9/584bc9651441b4ba60cc4d557d8a547b5aff901af35bda3a4ee30c819b82/starlette-1.0.0-py3-none-any.whl", hash = "sha256:d3ec55e0bb321692d275455ddfd3df75fff145d009685eb40dc91fc66b03d38b", size = 72651 }, + { url = "https://files.pythonhosted.org/packages/0b/c9/584bc9651441b4ba60cc4d557d8a547b5aff901af35bda3a4ee30c819b82/starlette-1.0.0-py3-none-any.whl", hash = "sha256:d3ec55e0bb321692d275455ddfd3df75fff145d009685eb40dc91fc66b03d38b", size = 72651, upload-time = "2026-03-22T18:29:45.111Z" }, ] [[package]] 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 } +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 }, + { 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]] @@ -490,18 +513,18 @@ 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 } +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 }, + { 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 = "tzdata" version = "2026.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/19/f5/cd531b2d15a671a40c0f66cf06bc3570a12cd56eef98960068ebbad1bf5a/tzdata-2026.1.tar.gz", hash = "sha256:67658a1903c75917309e753fdc349ac0efd8c27db7a0cb406a25be4840f87f98", size = 197639 } +sdist = { url = "https://files.pythonhosted.org/packages/19/f5/cd531b2d15a671a40c0f66cf06bc3570a12cd56eef98960068ebbad1bf5a/tzdata-2026.1.tar.gz", hash = "sha256:67658a1903c75917309e753fdc349ac0efd8c27db7a0cb406a25be4840f87f98", size = 197639, upload-time = "2026-04-03T11:25:22.002Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b0/70/d460bd685a170790ec89317e9bd33047988e4bce507b831f5db771e142de/tzdata-2026.1-py2.py3-none-any.whl", hash = "sha256:4b1d2be7ac37ceafd7327b961aa3a54e467efbdb563a23655fbfe0d39cfc42a9", size = 348952 }, + { url = "https://files.pythonhosted.org/packages/b0/70/d460bd685a170790ec89317e9bd33047988e4bce507b831f5db771e142de/tzdata-2026.1-py2.py3-none-any.whl", hash = "sha256:4b1d2be7ac37ceafd7327b961aa3a54e467efbdb563a23655fbfe0d39cfc42a9", size = 348952, upload-time = "2026-04-03T11:25:20.313Z" }, ] [[package]] @@ -511,9 +534,9 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "tzdata", marker = "sys_platform == 'win32'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/8b/2e/c14812d3d4d9cd1773c6be938f89e5735a1f11a9f184ac3639b93cef35d5/tzlocal-5.3.1.tar.gz", hash = "sha256:cceffc7edecefea1f595541dbd6e990cb1ea3d19bf01b2809f362a03dd7921fd", size = 30761 } +sdist = { url = "https://files.pythonhosted.org/packages/8b/2e/c14812d3d4d9cd1773c6be938f89e5735a1f11a9f184ac3639b93cef35d5/tzlocal-5.3.1.tar.gz", hash = "sha256:cceffc7edecefea1f595541dbd6e990cb1ea3d19bf01b2809f362a03dd7921fd", size = 30761, upload-time = "2025-03-05T21:17:41.549Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/c2/14/e2a54fabd4f08cd7af1c07030603c3356b74da07f7cc056e600436edfa17/tzlocal-5.3.1-py3-none-any.whl", hash = "sha256:eb1a66c3ef5847adf7a834f1be0800581b683b5608e74f86ecbcef8ab91bb85d", size = 18026 }, + { url = "https://files.pythonhosted.org/packages/c2/14/e2a54fabd4f08cd7af1c07030603c3356b74da07f7cc056e600436edfa17/tzlocal-5.3.1-py3-none-any.whl", hash = "sha256:eb1a66c3ef5847adf7a834f1be0800581b683b5608e74f86ecbcef8ab91bb85d", size = 18026, upload-time = "2025-03-05T21:17:39.857Z" }, ] [[package]] @@ -524,25 +547,25 @@ dependencies = [ { name = "click" }, { name = "h11" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e3/ad/4a96c425be6fb67e0621e62d86c402b4a17ab2be7f7c055d9bd2f638b9e2/uvicorn-0.42.0.tar.gz", hash = "sha256:9b1f190ce15a2dd22e7758651d9b6d12df09a13d51ba5bf4fc33c383a48e1775", size = 85393 } +sdist = { url = "https://files.pythonhosted.org/packages/e3/ad/4a96c425be6fb67e0621e62d86c402b4a17ab2be7f7c055d9bd2f638b9e2/uvicorn-0.42.0.tar.gz", hash = "sha256:9b1f190ce15a2dd22e7758651d9b6d12df09a13d51ba5bf4fc33c383a48e1775", size = 85393, upload-time = "2026-03-16T06:19:50.077Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/0a/89/f8827ccff89c1586027a105e5630ff6139a64da2515e24dafe860bd9ae4d/uvicorn-0.42.0-py3-none-any.whl", hash = "sha256:96c30f5c7abe6f74ae8900a70e92b85ad6613b745d4879eb9b16ccad15645359", size = 68830 }, + { url = "https://files.pythonhosted.org/packages/0a/89/f8827ccff89c1586027a105e5630ff6139a64da2515e24dafe860bd9ae4d/uvicorn-0.42.0-py3-none-any.whl", hash = "sha256:96c30f5c7abe6f74ae8900a70e92b85ad6613b745d4879eb9b16ccad15645359", size = 68830, upload-time = "2026-03-16T06:19:48.325Z" }, ] [[package]] name = "vine" version = "5.1.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/bd/e4/d07b5f29d283596b9727dd5275ccbceb63c44a1a82aa9e4bfd20426762ac/vine-5.1.0.tar.gz", hash = "sha256:8b62e981d35c41049211cf62a0a1242d8c1ee9bd15bb196ce38aefd6799e61e0", size = 48980 } +sdist = { url = "https://files.pythonhosted.org/packages/bd/e4/d07b5f29d283596b9727dd5275ccbceb63c44a1a82aa9e4bfd20426762ac/vine-5.1.0.tar.gz", hash = "sha256:8b62e981d35c41049211cf62a0a1242d8c1ee9bd15bb196ce38aefd6799e61e0", size = 48980, upload-time = "2023-11-05T08:46:53.857Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/03/ff/7c0c86c43b3cbb927e0ccc0255cb4057ceba4799cd44ae95174ce8e8b5b2/vine-5.1.0-py3-none-any.whl", hash = "sha256:40fdf3c48b2cfe1c38a49e9ae2da6fda88e4794c810050a728bd7413811fb1dc", size = 9636 }, + { url = "https://files.pythonhosted.org/packages/03/ff/7c0c86c43b3cbb927e0ccc0255cb4057ceba4799cd44ae95174ce8e8b5b2/vine-5.1.0-py3-none-any.whl", hash = "sha256:40fdf3c48b2cfe1c38a49e9ae2da6fda88e4794c810050a728bd7413811fb1dc", size = 9636, upload-time = "2023-11-05T08:46:51.205Z" }, ] [[package]] name = "wcwidth" version = "0.6.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/35/a2/8e3becb46433538a38726c948d3399905a4c7cabd0df578ede5dc51f0ec2/wcwidth-0.6.0.tar.gz", hash = "sha256:cdc4e4262d6ef9a1a57e018384cbeb1208d8abbc64176027e2c2455c81313159", size = 159684 } +sdist = { url = "https://files.pythonhosted.org/packages/35/a2/8e3becb46433538a38726c948d3399905a4c7cabd0df578ede5dc51f0ec2/wcwidth-0.6.0.tar.gz", hash = "sha256:cdc4e4262d6ef9a1a57e018384cbeb1208d8abbc64176027e2c2455c81313159", size = 159684, upload-time = "2026-02-06T19:19:40.919Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/68/5a/199c59e0a824a3db2b89c5d2dade7ab5f9624dbf6448dc291b46d5ec94d3/wcwidth-0.6.0-py3-none-any.whl", hash = "sha256:1a3a1e510b553315f8e146c54764f4fb6264ffad731b3d78088cdb1478ffbdad", size = 94189 }, + { url = "https://files.pythonhosted.org/packages/68/5a/199c59e0a824a3db2b89c5d2dade7ab5f9624dbf6448dc291b46d5ec94d3/wcwidth-0.6.0-py3-none-any.whl", hash = "sha256:1a3a1e510b553315f8e146c54764f4fb6264ffad731b3d78088cdb1478ffbdad", size = 94189, upload-time = "2026-02-06T19:19:39.646Z" }, ] diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 73896276..7e085462 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -47,8 +47,7 @@ ENV NODE_ENV=production RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs -COPY --from=builder /app/public ./public -COPY --from=builder /app/.env.production ./.env.production +COPY public ./public # Automatically leverage output traces to reduce image size # https://nextjs.org/docs/advanced-features/output-file-tracing diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 8f420e2e..7112a987 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -1,6 +1,6 @@ "use client"; -import { FormEvent, useEffect, useState } from "react"; +import { useState } from "react"; import { Alert, Badge, @@ -8,161 +8,25 @@ import { Card, Col, Container, - Form, - Modal, Row, - Spinner, - Table, } from "react-bootstrap"; - -type FileItem = { - id: string; - title: string; - original_name: string; - mime_type: string; - size: number; - processing_status: string; - scan_status: string | null; - scan_details: string | null; - metadata_json: Record | null; - requires_attention: boolean; - created_at: string; - updated_at: string; -}; - -type AlertItem = { - id: number; - file_id: string; - level: string; - message: string; - created_at: string; -}; - - -function formatDate(value: string) { - return new Intl.DateTimeFormat("ru-RU", { - dateStyle: "short", - timeStyle: "short", - }).format(new Date(value)); -} - -function formatSize(size: number) { - if (size < 1024) { - return `${size} B`; - } - - if (size < 1024 * 1024) { - return `${(size / 1024).toFixed(1)} KB`; - } - - return `${(size / (1024 * 1024)).toFixed(1)} MB`; -} - -function getLevelVariant(level: string) { - if (level === "critical") { - return "danger"; - } - - if (level === "warning") { - return "warning"; - } - - return "success"; -} - -function getProcessingVariant(status: string) { - if (status === "failed") { - return "danger"; - } - - if (status === "processing") { - return "warning"; - } - - if (status === "processed") { - return "success"; - } - - return "secondary"; -} +import { useFilesAndAlerts } from "../hooks/useFilesAndAlerts"; +import { useFileUpload } from "../hooks/useFileUpload"; +import { FileTable } from "../components/FileTable"; +import { AlertTable } from "../components/AlertTable"; +import { UploadModal } from "../components/UploadModal"; export default function Page() { - const [files, setFiles] = useState([]); - const [alerts, setAlerts] = useState([]); - const [isLoading, setIsLoading] = useState(true); - const [isSubmitting, setIsSubmitting] = useState(false); + const { files, alerts, isLoading, error, loadData } = useFilesAndAlerts(); const [showModal, setShowModal] = useState(false); - const [title, setTitle] = useState(""); - const [selectedFile, setSelectedFile] = useState(null); - const [errorMessage, setErrorMessage] = useState(null); - - async function loadData() { - setIsLoading(true); - setErrorMessage(null); - - try { - const [filesResponse, alertsResponse] = await Promise.all([ - fetch(`http://localhost:8000/files`, { cache: "no-store" }), - fetch(`http://localhost:8000/alerts`, { cache: "no-store" }), - ]); - - if (!filesResponse.ok || !alertsResponse.ok) { - throw new Error("Не удалось загрузить данные"); - } - - const [filesData, alertsData] = await Promise.all([ - filesResponse.json() as Promise, - alertsResponse.json() as Promise, - ]); - - setFiles(filesData); - setAlerts(alertsData); - } catch (error) { - setErrorMessage(error instanceof Error ? error.message : "Произошла ошибка"); - } finally { - setIsLoading(false); - } - } - - useEffect(() => { + const { isSubmitting, error: uploadError, uploadFile, setError: setUploadError } = useFileUpload(() => { + setShowModal(false); void loadData(); - }, []); - - async function handleSubmit(event: FormEvent) { - event.preventDefault(); - - if (!title.trim() || !selectedFile) { - setErrorMessage("Укажите название и выберите файл"); - return; - } + }); - setIsSubmitting(true); - setErrorMessage(null); - - const formData = new FormData(); - formData.append("title", title.trim()); - formData.append("file", selectedFile); - - try { - const response = await fetch(`http://localhost:8000/files`, { - method: "POST", - body: formData, - }); - - if (!response.ok) { - throw new Error("Не удалось загрузить файл"); - } - - setShowModal(false); - setTitle(""); - setSelectedFile(null); - await loadData(); - } catch (error) { - setErrorMessage(error instanceof Error ? error.message : "Произошла ошибка"); - } finally { - setIsSubmitting(false); - } - } + const handleUpload = (title: string, file: File) => { + void uploadFile(title, file); + }; return ( @@ -189,9 +53,9 @@ export default function Page() { - {errorMessage ? ( + {(error || uploadError) ? ( - {errorMessage} + {error || uploadError} ) : null} @@ -203,75 +67,7 @@ export default function Page() { - {isLoading ? ( -
- -
- ) : ( -
- - - - - - - - - - - - - - - {files.length === 0 ? ( - - - - ) : ( - files.map((file) => ( - - - - - - - - - - - )) - )} - -
НазваниеФайлMIMEРазмерСтатусПроверкаСоздан
- Файлы пока не загружены -
-
{file.title}
-
{file.id}
-
{file.original_name}{file.mime_type}{formatSize(file.size)} - - {file.processing_status} - - -
- - {file.scan_status ?? "pending"} - - - {file.scan_details ?? "Ожидает обработки"} - -
-
{formatDate(file.created_at)} - -
-
- )} +
@@ -283,85 +79,21 @@ export default function Page() { - {isLoading ? ( -
- -
- ) : ( -
- - - - - - - - - - - - {alerts.length === 0 ? ( - - - - ) : ( - alerts.map((item) => ( - - - - - - - - )) - )} - -
IDFile IDУровеньСообщениеСоздан
- Алертов пока нет -
{item.id}{item.file_id} - {item.level} - {item.message}{formatDate(item.created_at)}
-
- )} +
- setShowModal(false)} centered> -
- - Добавить файл - - - - Название - setTitle(event.target.value)} - placeholder="Например, Договор с подрядчиком" - /> - - - Файл - - setSelectedFile((event.target as HTMLInputElement).files?.[0] ?? null) - } - /> - - - - - - -
-
+ { + setShowModal(false); + setUploadError(null); + }} + onUpload={handleUpload} + isSubmitting={isSubmitting} + />
); } diff --git a/frontend/src/components/AlertTable.tsx b/frontend/src/components/AlertTable.tsx new file mode 100644 index 00000000..743a05cb --- /dev/null +++ b/frontend/src/components/AlertTable.tsx @@ -0,0 +1,55 @@ +import { Badge, Spinner, Table } from "react-bootstrap"; +import { AlertItem } from "../lib/api"; +import { formatDate, getLevelVariant } from "../lib/utils"; + +interface AlertTableProps { + alerts: AlertItem[]; + isLoading: boolean; +} + +export function AlertTable({ alerts, isLoading }: AlertTableProps) { + if (isLoading) { + return ( +
+ +
+ ); + } + + return ( +
+ + + + + + + + + + + + {alerts.length === 0 ? ( + + + + ) : ( + alerts.map((item) => ( + + + + + + + + )) + )} + +
IDFile IDУровеньСообщениеСоздан
+ Алертов пока нет +
{item.id}{item.file_id} + {item.level} + {item.message}{formatDate(item.created_at)}
+
+ ); +} diff --git a/frontend/src/components/FileTable.tsx b/frontend/src/components/FileTable.tsx new file mode 100644 index 00000000..a201ebe0 --- /dev/null +++ b/frontend/src/components/FileTable.tsx @@ -0,0 +1,84 @@ +import { Badge, Button, Spinner, Table } from "react-bootstrap"; +import { FileItem, apiClient } from "../lib/api"; +import { formatDate, formatSize, getProcessingVariant } from "../lib/utils"; + +interface FileTableProps { + files: FileItem[]; + isLoading: boolean; +} + +export function FileTable({ files, isLoading }: FileTableProps) { + if (isLoading) { + return ( +
+ +
+ ); + } + + return ( +
+ + + + + + + + + + + + + + + {files.length === 0 ? ( + + + + ) : ( + files.map((file) => ( + + + + + + + + + + + )) + )} + +
НазваниеФайлMIMEРазмерСтатусПроверкаСоздан
+ Файлы пока не загружены +
+
{file.title}
+
{file.id}
+
{file.original_name}{file.mime_type}{formatSize(file.size)} + + {file.processing_status} + + +
+ + {file.scan_status ?? "pending"} + + + {file.scan_details ?? "Ожидает обработки"} + +
+
{formatDate(file.created_at)} + +
+
+ ); +} diff --git a/frontend/src/components/UploadModal.tsx b/frontend/src/components/UploadModal.tsx new file mode 100644 index 00000000..2bfdc341 --- /dev/null +++ b/frontend/src/components/UploadModal.tsx @@ -0,0 +1,63 @@ +import { FormEvent, useState } from "react"; +import { Button, Form, Modal } from "react-bootstrap"; + +interface UploadModalProps { + show: boolean; + onHide: () => void; + onUpload: (title: string, file: File) => void; + isSubmitting: boolean; +} + +export function UploadModal({ show, onHide, onUpload, isSubmitting }: UploadModalProps) { + const [title, setTitle] = useState(""); + const [selectedFile, setSelectedFile] = useState(null); + + function handleSubmit(event: FormEvent) { + event.preventDefault(); + + if (!title.trim() || !selectedFile) { + return; + } + + onUpload(title.trim(), selectedFile); + setTitle(""); + setSelectedFile(null); + } + + return ( + +
+ + Добавить файл + + + + Название + setTitle(event.target.value)} + placeholder="Например, Договор с подрядчиком" + /> + + + Файл + + setSelectedFile((event.target as HTMLInputElement).files?.[0] ?? null) + } + /> + + + + + + +
+
+ ); +} diff --git a/frontend/src/hooks/useFileUpload.ts b/frontend/src/hooks/useFileUpload.ts new file mode 100644 index 00000000..9a753c40 --- /dev/null +++ b/frontend/src/hooks/useFileUpload.ts @@ -0,0 +1,23 @@ +import { useState } from "react"; +import { apiClient } from "../lib/api"; + +export function useFileUpload(onSuccess: () => void) { + const [isSubmitting, setIsSubmitting] = useState(false); + const [error, setError] = useState(null); + + const uploadFile = async (title: string, file: File) => { + setIsSubmitting(true); + setError(null); + + try { + await apiClient.createFile(title, file); + onSuccess(); + } catch (err) { + setError(err instanceof Error ? err.message : "Произошла ошибка"); + } finally { + setIsSubmitting(false); + } + }; + + return { isSubmitting, error, uploadFile, setError }; +} diff --git a/frontend/src/hooks/useFilesAndAlerts.ts b/frontend/src/hooks/useFilesAndAlerts.ts new file mode 100644 index 00000000..29a5b56b --- /dev/null +++ b/frontend/src/hooks/useFilesAndAlerts.ts @@ -0,0 +1,34 @@ +import { useState, useEffect } from "react"; +import { apiClient, FileItem, AlertItem } from "../lib/api"; + +export function useFilesAndAlerts() { + const [files, setFiles] = useState([]); + const [alerts, setAlerts] = useState([]); + const [isLoading, setIsLoading] = useState(true); + const [error, setError] = useState(null); + + const loadData = async () => { + setIsLoading(true); + setError(null); + + try { + const [filesData, alertsData] = await Promise.all([ + apiClient.getFiles(), + apiClient.getAlerts(), + ]); + + setFiles(filesData); + setAlerts(alertsData); + } catch (err) { + setError(err instanceof Error ? err.message : "Произошла ошибка"); + } finally { + setIsLoading(false); + } + }; + + useEffect(() => { + void loadData(); + }, []); + + return { files, alerts, isLoading, error, loadData }; +} diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts new file mode 100644 index 00000000..c00504bd --- /dev/null +++ b/frontend/src/lib/api.ts @@ -0,0 +1,99 @@ +const API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000"; + +export type FileItem = { + id: string; + title: string; + original_name: string; + mime_type: string; + size: number; + processing_status: string; + scan_status: string | null; + scan_details: string | null; + metadata_json: Record | null; + requires_attention: boolean; + created_at: string; + updated_at: string; +}; + +export type AlertItem = { + id: number; + file_id: string; + level: string; + message: string; + created_at: string; +}; + +class ApiClient { + private baseUrl: string; + + constructor(baseUrl: string) { + this.baseUrl = baseUrl; + } + + private async request( + endpoint: string, + options?: RequestInit + ): Promise { + const response = await fetch(`${this.baseUrl}${endpoint}`, { + ...options, + headers: { + "Content-Type": "application/json", + ...options?.headers, + }, + }); + + if (!response.ok) { + throw new Error(`Request failed: ${response.statusText}`); + } + + return response.json(); + } + + async getFiles(): Promise { + return this.request("/files", { cache: "no-store" }); + } + + async getAlerts(): Promise { + return this.request("/alerts", { cache: "no-store" }); + } + + async getFile(fileId: string): Promise { + return this.request(`/files/${fileId}`); + } + + async createFile(title: string, file: File): Promise { + const formData = new FormData(); + formData.append("title", title); + formData.append("file", file); + + const response = await fetch(`${this.baseUrl}/files`, { + method: "POST", + body: formData, + }); + + if (!response.ok) { + throw new Error(`Failed to create file: ${response.statusText}`); + } + + return response.json(); + } + + async updateFile(fileId: string, title: string): Promise { + return this.request(`/files/${fileId}`, { + method: "PATCH", + body: JSON.stringify({ title }), + }); + } + + async deleteFile(fileId: string): Promise { + await this.request(`/files/${fileId}`, { + method: "DELETE", + }); + } + + getDownloadUrl(fileId: string): string { + return `${this.baseUrl}/files/${fileId}/download`; + } +} + +export const apiClient = new ApiClient(API_BASE_URL); diff --git a/frontend/src/lib/utils.ts b/frontend/src/lib/utils.ts new file mode 100644 index 00000000..3334f880 --- /dev/null +++ b/frontend/src/lib/utils.ts @@ -0,0 +1,46 @@ +export function formatDate(value: string) { + return new Intl.DateTimeFormat("ru-RU", { + dateStyle: "short", + timeStyle: "short", + }).format(new Date(value)); +} + +export function formatSize(size: number) { + if (size < 1024) { + return `${size} B`; + } + + if (size < 1024 * 1024) { + return `${(size / 1024).toFixed(1)} KB`; + } + + return `${(size / (1024 * 1024)).toFixed(1)} MB`; +} + +export function getLevelVariant(level: string) { + if (level === "critical") { + return "danger"; + } + + if (level === "warning") { + return "warning"; + } + + return "success"; +} + +export function getProcessingVariant(status: string) { + if (status === "failed") { + return "danger"; + } + + if (status === "processing") { + return "warning"; + } + + if (status === "processed") { + return "success"; + } + + return "secondary"; +} From 4266a3c02144601113c8433666ec2d1cee8d3b62 Mon Sep 17 00:00:00 2001 From: IreneTayler Date: Fri, 10 Jul 2026 17:20:06 +0300 Subject: [PATCH 2/3] =?UTF-8?q?=D0=9E=D0=B1=D1=8A=D0=B5=D0=B4=D0=B8=D0=BD?= =?UTF-8?q?=D0=B8=D0=BB=20README=20=D0=B8=20REFACTORING=5FSUMMARY=20=D0=B2?= =?UTF-8?q?=20=D0=BE=D0=B4=D0=B8=D0=BD=20=D1=84=D0=B0=D0=B9=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 194 ++++++++++++++++++++++++++++++++++++++++- REFACTORING_SUMMARY.md | 193 ---------------------------------------- 2 files changed, 192 insertions(+), 195 deletions(-) delete mode 100644 REFACTORING_SUMMARY.md diff --git a/README.md b/README.md index 00da8f4c..a74880e4 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,197 @@ 1. ```docker compose -f docker-compose.dev.yml up``` 2. ```docker exec -it backend alembic upgrade head``` +**Открыть фронт:** ```http://localhost:3000/test``` +**Открыть бэк:** ```http://localhost:8000/docs``` -**Открыть фронт:** ```http://localhost:3000/test``` +--- -**Открыть бэк:** ```http://localhost:8000/docs``` +# Refactoring Summary + +## Backend Refactoring + +### Architecture Improvements + +#### 1. Configuration Management (`backend/src/config.py`) +- **Before**: Configuration scattered across `service.py` and `tasks.py` with hardcoded environment variable access +- **After**: Centralized configuration using Pydantic Settings + - Single source of truth for all configuration + - Type-safe configuration with validation + - Environment-based configuration loading + - Computed properties for derived values (e.g., `database_url`) + +#### 2. Database Layer (`backend/src/database.py`) +- **Before**: Duplicate database connection setup in `service.py` and `tasks.py`, no connection pooling configuration +- **After**: Shared database module with optimized connection pooling + - Single engine instance across the application + - Connection pooling with `pool_size=10`, `max_overflow=20` + - `pool_pre_ping=True` for connection health checks + - `pool_recycle=3600` to prevent stale connections + - Dependency injection support via `get_session()` + +#### 3. Repository Pattern (`backend/src/repositories.py`) +- **Before**: Direct SQLAlchemy queries mixed with business logic in service layer +- **After**: Dedicated repository classes for data access + - `FileRepository`: Encapsulates all file-related database operations + - `AlertRepository`: Encapsulates all alert-related database operations + - Clear separation between data access and business logic + - Easier to test and maintain + +#### 4. Service Layer Refactoring (`backend/src/service.py`) +- **Before**: Mixed concerns (configuration, data access, business logic, file operations) +- **After**: Pure business logic layer + - Uses shared configuration from `config.py` + - Uses shared database session from `database.py` + - Uses repositories for data access + - Focuses solely on business operations + +#### 5. File Storage Service (`backend/src/services/file_storage.py`) +- **Before**: File operations scattered across `service.py` and `tasks.py` +- **After**: Dedicated file storage service with async I/O + - `FileStorageService`: Encapsulates all file system operations + - Methods for filename generation, saving, deleting, and checking file existence + - Reusable across service layer and tasks + - Uses `aiofiles` for non-blocking async file operations + - Easier to test with mock storage + +#### 6. File Scanner Service (`backend/src/services/file_scanner.py`) +- **Before**: Threat detection and metadata extraction logic embedded in `tasks.py` +- **After**: Dedicated file scanner service with async I/O + - `FileScannerService`: Encapsulates threat detection and metadata extraction + - `scan_for_threats()`: Centralized threat detection logic + - `extract_metadata()`: Centralized metadata extraction logic using async file reads + - Configurable thresholds (e.g., `MAX_FILE_SIZE_BYTES`, `SUSPICIOUS_EXTENSIONS`) + - Easier to test and extend with new detection rules + +#### 7. Tasks Refactoring (`backend/src/tasks.py`) +- **Before**: Duplicate database setup, direct session manipulation, embedded business logic +- **After**: Uses shared infrastructure and services + - Imports from `config.py` and `database.py` + - Uses repository pattern for data access + - Uses `FileStorageService` for file operations + - Uses `FileScannerService` for threat detection and metadata extraction + - Consistent with main application architecture + +#### 8. Logging (`backend/src/logger.py`) +- **Before**: No logging +- **After**: Structured logging + - Centralized logger configuration + - Consistent log format + - Added to key endpoints in `app.py` + +#### 9. API Layer Cleanup (`backend/src/app.py`) +- **Before**: Direct file path manipulation in download endpoint +- **After**: Uses service layer for file operations + - `download_file` now uses `get_file_path()` from service layer + - Consistent error handling via service layer + - Cleaner separation of concerns + +### Optimizations Implemented + +**1. Database Connection Pooling**: Implemented proper connection pooling with tuned parameters. This eliminates the overhead of creating new connections for each request and improves performance under load. + +**2. Async File I/O**: Converted all blocking file operations to async using `aiofiles`: +- File reads in `FileScannerService.extract_metadata()` are now non-blocking +- File writes in `FileStorageService.save_file()` are now non-blocking +- File operations no longer block the event loop, enabling true concurrent processing + +## Frontend Refactoring + +### Layer Separation + +#### 1. API Client Layer (`frontend/src/lib/api.ts`) +- **Before**: Direct `fetch` calls throughout the component, hardcoded API URL +- **After**: Centralized API client with configurable base URL + - Single source of truth for API endpoints + - Type-safe API methods + - Consistent error handling + - Reusable across the application + - Configurable via `NEXT_PUBLIC_API_BASE_URL` environment variable + +#### 2. Custom Hooks Layer (`frontend/src/hooks/`) +- **Before**: All state and logic in the main component +- **After**: Extracted custom hooks + - `useFilesAndAlerts`: Manages data fetching and state for files and alerts + - `useFileUpload`: Manages file upload logic and state + - Reusable and testable logic separation + +#### 3. Component Layer (`frontend/src/components/`) +- **Before**: 368-line monolithic component +- **After**: Modular components + - `FileTable`: Displays file list with loading states, uses `apiClient.getDownloadUrl()` + - `AlertTable`: Displays alert list with loading states + - `UploadModal`: Handles file upload form + - Each component is focused and reusable + +#### 4. Utility Functions (`frontend/src/lib/utils.ts`) +- **Before**: Helper functions in the main component +- **After**: Extracted utility module + - `formatDate`, `formatSize`, `getLevelVariant`, `getProcessingVariant` + - Reusable across components + - Easier to test + +#### 5. Main Page Refactoring (`frontend/src/app/page.tsx`) +- **Before**: 368 lines with mixed concerns +- **After**: ~100 lines orchestrating components + - Uses custom hooks for state management + - Uses extracted components for UI + - Clean separation of concerns + - Much easier to understand and maintain + +## Benefits + +### Backend +- **Maintainability**: Clear separation of concerns makes the code easier to understand and modify +- **Testability**: Each layer can be tested independently; services can be mocked easily +- **Scalability**: Connection pooling and proper architecture support growth +- **Consistency**: Shared configuration and database setup across all modules +- **Performance**: Optimized connection pooling reduces database overhead; async file I/O eliminates blocking operations +- **Extensibility**: New threat detection rules or metadata extraction logic can be added to `FileScannerService` without touching other layers + +### Frontend +- **Maintainability**: Smaller, focused components are easier to work with +- **Reusability**: Hooks and components can be reused across the application +- **Testability**: Isolated logic in hooks and utilities is easier to test +- **Type Safety**: Centralized types in API client ensure consistency +- **Developer Experience**: Clear structure makes onboarding easier +- **Configurability**: API base URL can be configured for different environments + +## Environment Variables + +To configure the frontend API URL, set `NEXT_PUBLIC_API_BASE_URL` in the frontend environment: + +```bash +# Example for docker-compose.dev.yml +environment: + - NEXT_PUBLIC_API_BASE_URL=http://localhost:8000 +``` + +> **Note on BuildKit issues:** On some Docker Desktop setups, BuildKit may produce cache snapshot errors. If you encounter `failed to commit ... snapshot ... does not exist`, run with `DOCKER_BUILDKIT=0`: +> ```powershell +> $env:DOCKER_BUILDKIT = "0"; docker compose -f docker-compose.dev.yml up --build -d +> ``` + +## Verification Results + +### Backend Tests (performed inside container) +- **Database migrations** completed successfully +- **File upload** returns 201 and stores file metadata +- **Celery worker** processed the file asynchronously: + - `scan_file_for_threats` completed + - `extract_file_metadata` completed + - `send_file_alert` completed +- **File listing** returns updated file with `processing_status: "processed"`, `scan_status: "clean"`, and `metadata_json` populated +- **Alerts listing** returns the generated alert + +### Frontend Tests +- **Build** completed successfully (production Next.js build) +- **Container** starts without errors on port 3000 +- **Page serving** at `/test` returns 200 with rendered HTML + +## Dependencies Added + +### Backend +- `pydantic-settings>=2.0.0` - For configuration management +- `aiofiles>=24.1.0` - For async file operations + +No new frontend dependencies were required. diff --git a/REFACTORING_SUMMARY.md b/REFACTORING_SUMMARY.md deleted file mode 100644 index 893b4021..00000000 --- a/REFACTORING_SUMMARY.md +++ /dev/null @@ -1,193 +0,0 @@ -# Refactoring Summary - -## Backend Refactoring - -### Architecture Improvements - -#### 1. Configuration Management (`src/config.py`) -- **Before**: Configuration scattered across `service.py` and `tasks.py` with hardcoded environment variable access -- **After**: Centralized configuration using Pydantic Settings - - Single source of truth for all configuration - - Type-safe configuration with validation - - Environment-based configuration loading - - Computed properties for derived values (e.g., `database_url`) - -#### 2. Database Layer (`src/database.py`) -- **Before**: Duplicate database connection setup in `service.py` and `tasks.py`, no connection pooling configuration -- **After**: Shared database module with optimized connection pooling - - Single engine instance across the application - - Connection pooling with `pool_size=10`, `max_overflow=20` - - `pool_pre_ping=True` for connection health checks - - `pool_recycle=3600` to prevent stale connections - - Dependency injection support via `get_session()` - -#### 3. Repository Pattern (`src/repositories.py`) -- **Before**: Direct SQLAlchemy queries mixed with business logic in service layer -- **After**: Dedicated repository classes for data access - - `FileRepository`: Encapsulates all file-related database operations - - `AlertRepository`: Encapsulates all alert-related database operations - - Clear separation between data access and business logic - - Easier to test and maintain - -#### 4. Service Layer Refactoring (`src/service.py`) -- **Before**: Mixed concerns (configuration, data access, business logic, file operations) -- **After**: Pure business logic layer - - Uses shared configuration from `config.py` - - Uses shared database session from `database.py` - - Uses repositories for data access - - Focuses solely on business operations - -#### 5. File Storage Service (`src/services/file_storage.py`) -- **Before**: File operations scattered across `service.py` and `tasks.py` -- **After**: Dedicated file storage service - - `FileStorageService`: Encapsulates all file system operations - - Methods for filename generation, saving, deleting, and checking file existence - - Reusable across service layer and tasks - - Easier to test with mock storage - -#### 6. File Scanner Service (`src/services/file_scanner.py`) -- **Before**: Threat detection and metadata extraction logic embedded in `tasks.py` -- **After**: Dedicated file scanner service - - `FileScannerService`: Encapsulates threat detection and metadata extraction - - `scan_for_threats()`: Centralized threat detection logic - - `extract_metadata()`: Centralized metadata extraction logic - - Configurable thresholds (e.g., `MAX_FILE_SIZE_BYTES`, `SUSPICIOUS_EXTENSIONS`) - - Easier to test and extend with new detection rules - -#### 7. Tasks Refactoring (`src/tasks.py`) -- **Before**: Duplicate database setup, direct session manipulation, embedded business logic -- **After**: Uses shared infrastructure and services - - Imports from `config.py` and `database.py` - - Uses repository pattern for data access - - Uses `FileStorageService` for file operations - - Uses `FileScannerService` for threat detection and metadata extraction - - Consistent with main application architecture - -#### 8. Logging (`src/logger.py`) -- **Before**: No logging -- **After**: Structured logging - - Centralized logger configuration - - Consistent log format - - Added to key endpoints in `app.py` - -#### 9. API Layer Cleanup (`src/app.py`) -- **Before**: Direct file path manipulation in download endpoint -- **After**: Uses service layer for file operations - - `download_file` now uses `get_file_path()` from service layer - - Consistent error handling via service layer - - Cleaner separation of concerns - -### Optimization Implemented -**Database Connection Pooling**: The main optimization was implementing proper connection pooling with tuned parameters. This eliminates the overhead of creating new connections for each request and improves performance under load. - -## Frontend Refactoring - -### Layer Separation - -#### 1. API Client Layer (`src/lib/api.ts`) -- **Before**: Direct `fetch` calls throughout the component, hardcoded API URL -- **After**: Centralized API client with configurable base URL - - Single source of truth for API endpoints - - Type-safe API methods - - Consistent error handling - - Reusable across the application - - Configurable via `NEXT_PUBLIC_API_BASE_URL` environment variable - -#### 2. Custom Hooks Layer (`src/hooks/`) -- **Before**: All state and logic in the main component -- **After**: Extracted custom hooks - - `useFilesAndAlerts`: Manages data fetching and state for files and alerts - - `useFileUpload`: Manages file upload logic and state - - Reusable and testable logic separation - -#### 3. Component Layer (`src/components/`) -- **Before**: 368-line monolithic component -- **After**: Modular components - - `FileTable`: Displays file list with loading states, uses `apiClient.getDownloadUrl()` - - `AlertTable`: Displays alert list with loading states - - `UploadModal`: Handles file upload form - - Each component is focused and reusable - -#### 4. Utility Functions (`src/lib/utils.ts`) -- **Before**: Helper functions in the main component -- **After**: Extracted utility module - - `formatDate`, `formatSize`, `getLevelVariant`, `getProcessingVariant` - - Reusable across components - - Easier to test - -#### 5. Main Page Refactoring (`src/app/page.tsx`) -- **Before**: 368 lines with mixed concerns -- **After**: ~100 lines orchestrating components - - Uses custom hooks for state management - - Uses extracted components for UI - - Clean separation of concerns - - Much easier to understand and maintain - -## Benefits - -### Backend -- **Maintainability**: Clear separation of concerns makes the code easier to understand and modify -- **Testability**: Each layer can be tested independently; services can be mocked easily -- **Scalability**: Connection pooling and proper architecture support growth -- **Consistency**: Shared configuration and database setup across all modules -- **Performance**: Optimized connection pooling reduces database overhead -- **Extensibility**: New threat detection rules or metadata extraction logic can be added to `FileScannerService` without touching other layers - -### Frontend -- **Maintainability**: Smaller, focused components are easier to work with -- **Reusability**: Hooks and components can be reused across the application -- **Testability**: Isolated logic in hooks and utilities is easier to test -- **Type Safety**: Centralized types in API client ensure consistency -- **Developer Experience**: Clear structure makes onboarding easier -- **Configurability**: API base URL can be configured for different environments - -## Running the Refactored Application - -The refactored application runs the same way as before: - -```bash -docker compose -f docker-compose.dev.yml up -docker exec -it backend alembic upgrade head -``` - -Frontend: `http://localhost:3000/test` -Backend API: `http://localhost:8000/docs` - -### Environment Variables - -To configure the frontend API URL, set `NEXT_PUBLIC_API_BASE_URL` in the frontend environment: - -```bash -# Example for docker-compose.dev.yml -environment: - - NEXT_PUBLIC_API_BASE_URL=http://localhost:8000 -``` - -> **Note on BuildKit issues:** On some Docker Desktop setups, BuildKit may produce cache snapshot errors. If you encounter `failed to commit ... snapshot ... does not exist`, run with `DOCKER_BUILDKIT=0`: -> ```powershell -> $env:DOCKER_BUILDKIT = "0"; docker compose -f docker-compose.dev.yml up --build -d -> ``` - -## Verification Results - -### Backend Tests (performed inside container) -- **Database migrations** completed successfully -- **File upload** returns 201 and stores file metadata -- **Celery worker** processed the file asynchronously: - - `scan_file_for_threats` completed - - `extract_file_metadata` completed - - `send_file_alert` completed -- **File listing** returns updated file with `processing_status: "processed"`, `scan_status: "clean"`, and `metadata_json` populated -- **Alerts listing** returns the generated alert - -### Frontend Tests -- **Build** completed successfully (production Next.js build) -- **Container** starts without errors on port 3000 -- **Page serving** at `/test` returns 200 with rendered HTML - -## Dependencies Added - -### Backend -- `pydantic-settings>=2.0.0` - For configuration management - -No new frontend dependencies were required. From 5511889c6519259e171b43dde7cc5d5707f18257 Mon Sep 17 00:00:00 2001 From: IreneTayler Date: Fri, 10 Jul 2026 17:23:36 +0300 Subject: [PATCH 3/3] README --- README.md | 218 ++++++++---------------------------------------------- 1 file changed, 29 insertions(+), 189 deletions(-) diff --git a/README.md b/README.md index a74880e4..19c512c8 100644 --- a/README.md +++ b/README.md @@ -19,192 +19,32 @@ --- -# Refactoring Summary - -## Backend Refactoring - -### Architecture Improvements - -#### 1. Configuration Management (`backend/src/config.py`) -- **Before**: Configuration scattered across `service.py` and `tasks.py` with hardcoded environment variable access -- **After**: Centralized configuration using Pydantic Settings - - Single source of truth for all configuration - - Type-safe configuration with validation - - Environment-based configuration loading - - Computed properties for derived values (e.g., `database_url`) - -#### 2. Database Layer (`backend/src/database.py`) -- **Before**: Duplicate database connection setup in `service.py` and `tasks.py`, no connection pooling configuration -- **After**: Shared database module with optimized connection pooling - - Single engine instance across the application - - Connection pooling with `pool_size=10`, `max_overflow=20` - - `pool_pre_ping=True` for connection health checks - - `pool_recycle=3600` to prevent stale connections - - Dependency injection support via `get_session()` - -#### 3. Repository Pattern (`backend/src/repositories.py`) -- **Before**: Direct SQLAlchemy queries mixed with business logic in service layer -- **After**: Dedicated repository classes for data access - - `FileRepository`: Encapsulates all file-related database operations - - `AlertRepository`: Encapsulates all alert-related database operations - - Clear separation between data access and business logic - - Easier to test and maintain - -#### 4. Service Layer Refactoring (`backend/src/service.py`) -- **Before**: Mixed concerns (configuration, data access, business logic, file operations) -- **After**: Pure business logic layer - - Uses shared configuration from `config.py` - - Uses shared database session from `database.py` - - Uses repositories for data access - - Focuses solely on business operations - -#### 5. File Storage Service (`backend/src/services/file_storage.py`) -- **Before**: File operations scattered across `service.py` and `tasks.py` -- **After**: Dedicated file storage service with async I/O - - `FileStorageService`: Encapsulates all file system operations - - Methods for filename generation, saving, deleting, and checking file existence - - Reusable across service layer and tasks - - Uses `aiofiles` for non-blocking async file operations - - Easier to test with mock storage - -#### 6. File Scanner Service (`backend/src/services/file_scanner.py`) -- **Before**: Threat detection and metadata extraction logic embedded in `tasks.py` -- **After**: Dedicated file scanner service with async I/O - - `FileScannerService`: Encapsulates threat detection and metadata extraction - - `scan_for_threats()`: Centralized threat detection logic - - `extract_metadata()`: Centralized metadata extraction logic using async file reads - - Configurable thresholds (e.g., `MAX_FILE_SIZE_BYTES`, `SUSPICIOUS_EXTENSIONS`) - - Easier to test and extend with new detection rules - -#### 7. Tasks Refactoring (`backend/src/tasks.py`) -- **Before**: Duplicate database setup, direct session manipulation, embedded business logic -- **After**: Uses shared infrastructure and services - - Imports from `config.py` and `database.py` - - Uses repository pattern for data access - - Uses `FileStorageService` for file operations - - Uses `FileScannerService` for threat detection and metadata extraction - - Consistent with main application architecture - -#### 8. Logging (`backend/src/logger.py`) -- **Before**: No logging -- **After**: Structured logging - - Centralized logger configuration - - Consistent log format - - Added to key endpoints in `app.py` - -#### 9. API Layer Cleanup (`backend/src/app.py`) -- **Before**: Direct file path manipulation in download endpoint -- **After**: Uses service layer for file operations - - `download_file` now uses `get_file_path()` from service layer - - Consistent error handling via service layer - - Cleaner separation of concerns - -### Optimizations Implemented - -**1. Database Connection Pooling**: Implemented proper connection pooling with tuned parameters. This eliminates the overhead of creating new connections for each request and improves performance under load. - -**2. Async File I/O**: Converted all blocking file operations to async using `aiofiles`: -- File reads in `FileScannerService.extract_metadata()` are now non-blocking -- File writes in `FileStorageService.save_file()` are now non-blocking -- File operations no longer block the event loop, enabling true concurrent processing - -## Frontend Refactoring - -### Layer Separation - -#### 1. API Client Layer (`frontend/src/lib/api.ts`) -- **Before**: Direct `fetch` calls throughout the component, hardcoded API URL -- **After**: Centralized API client with configurable base URL - - Single source of truth for API endpoints - - Type-safe API methods - - Consistent error handling - - Reusable across the application - - Configurable via `NEXT_PUBLIC_API_BASE_URL` environment variable - -#### 2. Custom Hooks Layer (`frontend/src/hooks/`) -- **Before**: All state and logic in the main component -- **After**: Extracted custom hooks - - `useFilesAndAlerts`: Manages data fetching and state for files and alerts - - `useFileUpload`: Manages file upload logic and state - - Reusable and testable logic separation - -#### 3. Component Layer (`frontend/src/components/`) -- **Before**: 368-line monolithic component -- **After**: Modular components - - `FileTable`: Displays file list with loading states, uses `apiClient.getDownloadUrl()` - - `AlertTable`: Displays alert list with loading states - - `UploadModal`: Handles file upload form - - Each component is focused and reusable - -#### 4. Utility Functions (`frontend/src/lib/utils.ts`) -- **Before**: Helper functions in the main component -- **After**: Extracted utility module - - `formatDate`, `formatSize`, `getLevelVariant`, `getProcessingVariant` - - Reusable across components - - Easier to test - -#### 5. Main Page Refactoring (`frontend/src/app/page.tsx`) -- **Before**: 368 lines with mixed concerns -- **After**: ~100 lines orchestrating components - - Uses custom hooks for state management - - Uses extracted components for UI - - Clean separation of concerns - - Much easier to understand and maintain - -## Benefits - -### Backend -- **Maintainability**: Clear separation of concerns makes the code easier to understand and modify -- **Testability**: Each layer can be tested independently; services can be mocked easily -- **Scalability**: Connection pooling and proper architecture support growth -- **Consistency**: Shared configuration and database setup across all modules -- **Performance**: Optimized connection pooling reduces database overhead; async file I/O eliminates blocking operations -- **Extensibility**: New threat detection rules or metadata extraction logic can be added to `FileScannerService` without touching other layers - -### Frontend -- **Maintainability**: Smaller, focused components are easier to work with -- **Reusability**: Hooks and components can be reused across the application -- **Testability**: Isolated logic in hooks and utilities is easier to test -- **Type Safety**: Centralized types in API client ensure consistency -- **Developer Experience**: Clear structure makes onboarding easier -- **Configurability**: API base URL can be configured for different environments - -## Environment Variables - -To configure the frontend API URL, set `NEXT_PUBLIC_API_BASE_URL` in the frontend environment: - -```bash -# Example for docker-compose.dev.yml -environment: - - NEXT_PUBLIC_API_BASE_URL=http://localhost:8000 -``` - -> **Note on BuildKit issues:** On some Docker Desktop setups, BuildKit may produce cache snapshot errors. If you encounter `failed to commit ... snapshot ... does not exist`, run with `DOCKER_BUILDKIT=0`: -> ```powershell -> $env:DOCKER_BUILDKIT = "0"; docker compose -f docker-compose.dev.yml up --build -d -> ``` - -## Verification Results - -### Backend Tests (performed inside container) -- **Database migrations** completed successfully -- **File upload** returns 201 and stores file metadata -- **Celery worker** processed the file asynchronously: - - `scan_file_for_threats` completed - - `extract_file_metadata` completed - - `send_file_alert` completed -- **File listing** returns updated file with `processing_status: "processed"`, `scan_status: "clean"`, and `metadata_json` populated -- **Alerts listing** returns the generated alert - -### Frontend Tests -- **Build** completed successfully (production Next.js build) -- **Container** starts without errors on port 3000 -- **Page serving** at `/test` returns 200 with rendered HTML - -## Dependencies Added - -### Backend -- `pydantic-settings>=2.0.0` - For configuration management -- `aiofiles>=24.1.0` - For async file operations - -No new frontend dependencies were required. +# Что было сделано + +## Backend + +### Архитектура +- Вынес конфигурацию в отдельный модуль `config.py` с использованием Pydantic Settings +- Создал общий модуль для работы с БД `database.py` с настройкой connection pooling +- Внедрил паттерн Repository для работы с данными (`repositories.py`) +- Разделил логику на сервисы: `FileStorageService` и `FileScannerService` +- Добавил структурированное логирование через `logger.py` +- Почистил API слой в `app.py` - теперь он работает только через сервисы + +### Оптимизации +- Настроил connection pooling для БД (pool_size=10, max_overflow=20) +- Перевел все операции с файлами на async I/O с помощью `aiofiles` - теперь чтение и запись файлов не блокируют event loop + +## Frontend + +### Разделение на слои +- Вынес API calls в отдельный клиент `api.ts` +- Создал custom hooks: `useFilesAndAlerts` и `useFileUpload` для работы с данными +- Разбил один большой компонент на несколько: `FileTable`, `AlertTable`, `UploadModal` +- Вынес утилитные функции в `utils.ts` +- Главная страница теперь просто оркестрирует компоненты + +## Зависимости +Добавил в backend: +- `pydantic-settings>=2.0.0` - для конфигурации +- `aiofiles>=24.1.0` - для async работы с файлами