Production quick wins for improved observability and scalability: Sentry Error Tracking: - Add sentry-sdk[fastapi] dependency - Initialize Sentry in main.py with FastAPI/SQLAlchemy integrations - Add Celery integration for background task error tracking - Feature-flagged via SENTRY_DSN (disabled when empty) Cloudflare R2 Storage: - Add boto3 dependency for S3-compatible API - Create storage_service.py with StorageBackend abstraction - LocalStorageBackend for development (default) - R2StorageBackend for production cloud storage - Feature-flagged via STORAGE_BACKEND setting CloudFlare CDN/Proxy: - Create middleware/cloudflare.py for CF header handling - Extract real client IP from CF-Connecting-IP - Support CF-IPCountry for geo features - Feature-flagged via CLOUDFLARE_ENABLED setting Documentation: - Add docs/deployment/cloudflare.md setup guide - Update infrastructure.md with dev vs prod requirements - Add enterprise upgrade checklist for scaling beyond 1000 users - Update installation.md with new environment variables All features are optional and disabled by default for development. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
50 lines
904 B
Plaintext
50 lines
904 B
Plaintext
# requirements.txt - Python 3.13.5 compatible
|
|
# Core FastAPI and web framework
|
|
starlette==0.41.3
|
|
fastapi==0.115.5
|
|
uvicorn[standard]==0.32.1
|
|
pydantic==2.10.3
|
|
pydantic-settings==2.6.1
|
|
pydantic[email]==2.10.3
|
|
|
|
# Database
|
|
sqlalchemy==2.0.36
|
|
psycopg2-binary==2.9.10
|
|
alembic==1.14.0
|
|
|
|
# Authentication and Security
|
|
python-jose[cryptography]==3.3.0
|
|
passlib[bcrypt]==1.7.4
|
|
bcrypt==4.0.1 # Changed from 4.2.1 for Python 3.13.5 compatibility
|
|
python-multipart==0.0.20
|
|
|
|
# Data processing
|
|
pandas==2.2.3
|
|
requests==2.32.3
|
|
|
|
# Image processing
|
|
Pillow>=10.0.0
|
|
|
|
# System monitoring
|
|
psutil>=5.9.0
|
|
|
|
# PDF generation
|
|
weasyprint==62.3
|
|
|
|
# Environment and configuration
|
|
python-dotenv==1.0.1
|
|
|
|
# Payment processing
|
|
stripe>=7.0.0
|
|
|
|
# Task queue (Celery with Redis)
|
|
celery[redis]==5.3.6
|
|
redis==5.0.1
|
|
kombu==5.3.4
|
|
flower==2.0.1
|
|
|
|
# Error tracking
|
|
sentry-sdk[fastapi]>=2.0.0
|
|
|
|
# Cloud storage (S3-compatible - Cloudflare R2)
|
|
boto3>=1.34.0 |