# GT 2.0 Tenant Backend Dependencies (Production)

# FastAPI Core
fastapi==0.121.2
uvicorn[standard]==0.38.0
pydantic==2.12.4
pydantic-settings==2.1.0

# Database - PostgreSQL + PGVector (Enterprise Unified Storage)
sqlalchemy==2.0.44
alembic==1.16.2
asyncpg==0.30.0              # High-performance PostgreSQL async driver
psycopg2-binary==2.9.9       # PostgreSQL adapter for SQLAlchemy (binary version)

# Authentication & Security
python-jose[cryptography]==3.4.0
passlib[bcrypt]==1.7.4
python-multipart==0.0.32
bcrypt==4.1.3
PyJWT==2.13.0

# HTTP Client & Requests
httpx==0.28.1
requests==2.34.2
aiohttp==3.14.1

# WebSocket Support
python-socketio==5.16.2
websockets==12.0

# File Handling & Upload
python-magic==0.4.27
aiofiles==23.2.1

# Document Processing for RAG Pipeline
pypdf==6.16.1           # PDF text extraction (migrated from abandoned PyPDF2)
python-docx==1.1.0     # DOCX text extraction
beautifulsoup4==4.12.2 # HTML parsing
lxml==6.1.1            # XML/HTML processing
openpyxl==3.1.2        # Excel file support
markdown==3.10.2        # Markdown processing
pandas==2.0.3          # CSV processing
numpy==1.24.4          # Required by pandas, pin to 1.x to avoid binary incompatibility

# Message Queue
aio_pika==9.3.1  # RabbitMQ async client for GT 2.0 message bus

# Validation & Utilities
email-validator==2.1.0
python-dateutil==2.8.2

# Monitoring & Logging
prometheus-client==0.19.0
structlog==23.2.0
psutil==5.9.6

# Environment & Configuration
python-dotenv==1.2.2

# Vector Database - PGVector Integration
pgvector==0.4.1  # PGVector Python client for vector operations

# Note: Embeddings are generated by the Resource Cluster's BGE-M3 service
# sentence-transformers is NOT needed here - removed to save 2.5GB+
