[project] name = "core-api" version = "0.1.0" description = "FastAPI-based integrated backend for IoT device management" requires-python = ">=3.11" dependencies = [ # Web framework "fastapi>=0.115.0", "uvicorn[standard]>=0.30.0", # MariaDB ORM "sqlmodel>=0.0.22", "sqlalchemy[asyncio]>=2.0.35", "aiomysql>=0.2.0", # Migration "alembic>=1.14.0", "pymysql>=1.1.0", # MongoDB ODM "beanie>=1.27.0", "motor>=3.6.0", # Redis "redis[hiredis]>=5.2.0", # Auth "python-jose[cryptography]>=3.3.0", "passlib[bcrypt]>=1.7.4", "httpx>=0.27.0", # MQTT "fastapi-mqtt>=2.1.0", # WebSocket (Socket.IO) "python-socketio>=5.11.0", # Background tasks "celery[redis]>=5.4.0", "flower>=2.0.0", # Admin "sqladmin>=0.19.0", # Data processing "pandas>=2.2.0", "numpy>=2.1.0", "polars>=1.12.0", # Logging "structlog>=24.4.0", # Settings "pydantic-settings>=2.6.0", # Email "aiosmtplib>=3.0.0", # Utils "python-multipart>=0.0.12", ] [project.optional-dependencies] dev = [ "pytest>=8.3.0", "pytest-asyncio>=0.24.0", "pytest-cov>=6.0.0", "factory-boy>=3.3.0", "httpx>=0.27.0", "ruff>=0.7.0", "mypy>=1.13.0", "pre-commit>=4.0.0", ] [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.ruff] target-version = "py311" line-length = 100 [tool.ruff.lint] select = ["E", "F", "I", "N", "W", "UP"] [tool.mypy] python_version = "3.11" strict = true plugins = ["pydantic.mypy"] [tool.pytest.ini_options] asyncio_mode = "auto" testpaths = ["tests"]