# AliothPress — Python Dependencies
# Install: pip install -r requirements.txt

# ── Core Framework ──────────────────────────────────────────────────────────
Flask>=3.0.0,<4.0              # Web framework
Flask-SQLAlchemy>=3.1.0,<4.0   # Database ORM
Flask-Login>=0.6.0,<1.0        # User session management
Werkzeug>=3.0.0,<4.0           # WSGI utilities (Flask dependency)

# ── Security ────────────────────────────────────────────────────────────────
Flask-WTF>=1.2.0,<2.0          # CSRF protection for all forms
Flask-Limiter>=3.5,<5.0        # Rate limiting (login, AI, forms, global)
bleach>=6.0,<7.0               # HTML sanitization (XSS prevention)
cryptography>=41.0.0,<48.0     # Fernet encryption for SMTP passwords, API keys & licenses

# ── Content & Rendering ────────────────────────────────────────────────────
markdown>=3.5.1,<4.0           # Markdown → HTML conversion
Pillow>=10.0.0,<14.0           # Image processing, optimization, EXIF stripping
python-slugify>=8.0.0,<9.0     # URL-safe slug generation

# ── Data & Config ───────────────────────────────────────────────────────────
python-dotenv>=1.0.0,<2.0      # .env file loading

# ── Database Drivers ────────────────────────────────────────────────────────
psycopg2-binary>=2.9.0,<3.0    # PostgreSQL driver (optional — only for PostgreSQL)

# ── External Services ───────────────────────────────────────────────────────
anthropic>=0.25.0,<1.0         # Anthropic API (AI features)
requests>=2.31.0,<3.0          # HTTP client (license validation, auto-updates)
