# Версии библиотек, подтверждённые в контуре Источник истины для агентов: **писать код под эти версии**, не под «последние». Колонка «Шаблон» — базовый шаблон платформы; «Боевое» — версия, которая уже прошла деплой в контуре (значит, есть в Nexus). Новая версия попадает сюда только после деплоя или `pip install` в JupyterHub — с датой. Обновлено: 2026-11-09. ## Python | | Версия | Откуда | |--|--------|--------| | FastAPI (бэк) | 3.11 | проверенная конфигурация локального образа | | Airflow | 3.12 (target black) | проверенная конфигурация линтера | ## FastAPI — бэкенд (`api/requirements.txt`) | Пакет | Шаблон | Боевое | |-------|--------|----------------------------------------| | fastapi | 0.115.7 | 0.116.1 | | pydantic | 2.10.6 | 2.12.5 | | pydantic-settings | 2.7.1 | 2.12.0 | | uvicorn | 0.34.0 | 0.37.0 | | starlette | 0.45.3 | (транзитивно) | | python-dotenv | 1.0.1 | 1.2.1 | | python-multipart | 0.0.20 | 0.0.27 | | email_validator | 2.2.0 | 2.2.0 | | httpx | 0.27.2 | 0.28.1 | | openpyxl | 3.1.5 | 3.1.5 | | orjson / ujson | 3.10.15 / 5.10.0 | — | | sqlalchemy | — | 2.0.45 | | alembic | — | 1.16.1 | | asyncpg | — | 0.30.0 | | psycopg2-binary | — | 2.9.10 | | pandas | — | 3.0.1 | | PyJWT | — | 2.8.0 | | cryptography | — | 42.0.8 | | miniopy-async | — | 1.23.4 | | pytest | — | 9.0.2 | | factory_boy / faker | — | 3.3.3 / 40.1.2 | PostgreSQL локально: `postgres:15` / `postgres:15-alpine`. ## FastAPI — фронтенд (`web/package.json`) | Пакет | Шаблон | Боевое | |-------|--------|--------------------------------| | react / react-dom | ^18.3.1 | 18.3.1 | | typescript | ^5.7.3 | 5.7.3 | | @rsbuild/core | ^1.2.4 | 1.2.4 | | @rsbuild/plugin-react | ^1.1.0 | 1.1.0 | | @biomejs/biome | 1.9.4 | 1.9.4 | | tailwindcss | ^3.4.13 | 3.4.13 | | daisyui | ^4.12.10 | 4.12.10 | | react-daisyui | ^5.0.5 | 5.0.5 | | raisa-ui | ^1.0.0 | — | | antd | — | 6.3.0 | | axios | — | 1.13.5 | | react-router-dom | — | 7.13.0 | | zustand | — | 5.0.11 | | recharts | — | 3.10.0 | | raisa-fastapi-protected-web | — | от платформы (не в package.json) | Node локально: `node:18-alpine`. Версии во фронте фиксировать точно (без `^`), как в боевом. ## Streamlit (`requirements.txt`) | Пакет | Шаблон | Боевое | |-------|--------|---------------------| | streamlit | из `streamlit-app-base:2.1.0` | 1.40.1 | | streamlit-oauth | 0.1.8 | — | | pyjwt[crypto] | 2.8.0 | — | | python-decouple | 3.8 | — | | openpyxl | 3.1.2 | 3.1.5 | | pandas | — | 2.2.3 | | matplotlib | — | 3.9.2 | | st-theme | — | 1.2.3 | | pytest | — | 8.3.4 | ## Airflow (`requirements.txt` / `requirements-dev.txt`) | Пакет | Шаблон | Боевое | |-------|--------|----------------------| | apache-airflow (dev, для локалки) | 2.9.2 | 2.9.2 | | hydra-core | 1.3.2 | 1.3.2 | | omegaconf | — | 2.3.0 | | SQLAlchemy | — | 2.0.36 | | alembic | — | 1.14.0 | | psycopg2-binary | — | 2.9.9 | | pytest | 8.2.2 | 8.2.2 | | python-dotenv | — | 1.0.1 | Airflow 2.9 API: `schedule_interval`, `DummyOperator`, `PythonVirtualenvOperator` — не писать под Airflow 3. ## Линтеры | Инструмент | Шаблоны | Боевое | |------------|---------|--------| | black | 24.4.2 | pre-commit rev 26.5.1 (бэк), line-length 90 | | isort | 5.13.2 | profile black | | flake8 | 7.0.0 | 7.4.1, max-line 90 | | pylint | 3.2.3 | — | | pre-commit | — | 3.7.1 (airflow) | | bandit / autoflake | — | 1.9.4 / 2.4.0 (бэк) |