- Add SQLAlchemy models for User, Translation, ApiKey, UsageLog, PaymentHistory - Add database connection management with PostgreSQL/SQLite support - Add repository layer for CRUD operations - Add Alembic migration setup with initial migration - Update auth_service to automatically use database when DATABASE_URL is set - Update docker-compose.yml with PostgreSQL service and Redis (non-optional) - Add database migration script (scripts/migrate_to_db.py) - Update .env.example with database configuration
35 lines
738 B
Plaintext
35 lines
738 B
Plaintext
fastapi==0.109.0
|
|
uvicorn[standard]==0.27.0
|
|
python-multipart==0.0.9
|
|
openpyxl==3.1.2
|
|
python-docx==1.1.0
|
|
python-pptx==0.6.23
|
|
deep-translator==1.11.4
|
|
python-dotenv==1.0.0
|
|
pydantic==2.5.3
|
|
pydantic[email]==2.5.3
|
|
aiofiles==23.2.1
|
|
Pillow==10.2.0
|
|
matplotlib==3.8.2
|
|
pandas==2.1.4
|
|
requests==2.31.0
|
|
ipykernel==6.27.1
|
|
openai>=1.0.0
|
|
|
|
# SaaS robustness dependencies
|
|
psutil==5.9.8
|
|
python-magic-bin==0.4.14 # For Windows, use python-magic on Linux
|
|
|
|
# Authentication & Payments
|
|
PyJWT==2.8.0
|
|
passlib[bcrypt]==1.7.4
|
|
stripe==7.0.0
|
|
|
|
# Session storage & caching (optional but recommended for production)
|
|
redis==5.0.1
|
|
|
|
# Database (recommended for production)
|
|
sqlalchemy==2.0.25
|
|
psycopg2-binary==2.9.9 # PostgreSQL driver
|
|
alembic==1.13.1 # Database migrations
|