# AILOOS Backend Requirements for Production

# Web Framework
fastapi==0.104.1
uvicorn[standard]==0.24.0

# Database
psycopg2-binary==2.9.9
sqlalchemy==2.0.23
alembic==1.12.1

# Authentication & Security
python-jose[cryptography]==3.3.0
PyJWT==2.8.0
passlib[bcrypt]==1.7.4
python-multipart==0.0.6

# AI/ML
torch==2.1.1
transformers[vision]==4.35.2
sentence-transformers>=2.7.0
sentencepiece>=0.1.99
accelerate==0.24.1
datasets==2.15.0
scikit-learn==1.3.2
numpy==1.26.2
pandas==2.1.4
Pillow>=10.0.0

# Cryptography & Blockchain
cryptography==41.0.7
tenseal==0.3.14

# Vector Databases
pinecone-client>=2.2.0
qdrant-client>=1.6.0
faiss-cpu>=1.7.0

# Graph Database
neo4j==5.18.0

# NLP for Entity Extraction
spacy==3.7.2

# Federated Learning
# flwr==1.6.0  # Commented out due to protobuf conflict with web3
phe==1.4.0

# IPFS
ipfshttpclient==0.8.0a2

# Web3
# web3==6.15.0  # Commented out due to protobuf conflict with flwr

# External APIs
openai==1.3.7
anthropic==0.7.8
elevenlabs==0.2.27

# WebSocket
websockets==12.0

# Utilities
pydantic==2.5.0
python-dotenv==1.0.0
aiofiles==23.2.1
httpx==0.25.2
aiohttp==3.9.1
cachetools==5.3.0

# Cache backends
redis==5.0.1
pymemcache==4.0.0

# Monitoring & Logging
structlog==23.2.0
sentry-sdk[fastapi]==1.38.0

# Testing (only for development)
pytest==7.4.3
pytest-asyncio==0.21.1

# Development tools
black==23.11.0
isort==5.12.0
flake8==6.1.0

# GitOps
kubernetes==28.1.0
requests==2.31.0
GitPython==3.1.40
aiohttp==3.9.1