system-prompts-and-models-o.../salesflow-saas/backend/requirements.txt
Claude b0c3d038f8
feat: Finalize all systems + add 20 production libraries
Finalized implementations:
- skill_registry.py: CRM skill system with policy enforcement
- autopilot.py: Safe autopilot (simulation/approval-gated modes)
- escalation.py: Human escalation with Arabic packets
- signal_intelligence.py: Real-time signal scoring and watchlists
- alert_delivery.py: Multi-channel alerts with Arabic templates
- behavior_intelligence.py: Rep performance and pattern detection
- intelligence.py: Full API for signals/alerts/patterns/escalations

Added 20 production libraries to requirements.txt:
- Security: PyJWT (replaces abandoned python-jose), slowapi
- Arabic: camel-tools, pyarabic, hijridate, phonenumbers
- AI: litellm (unified LLM), instructor (structured outputs), statsforecast
- WhatsApp: pywa (direct Cloud API)
- Email: resend (transactional)
- PDF: weasyprint (Arabic RTL)
- Performance: fastapi-cache2, celery-redbeat, structlog
- Monitoring: sentry-sdk, prometheus-fastapi-instrumentator
- Testing: pytest-asyncio, pytest-cov, factory-boy

https://claude.ai/code/session_01LsnvBa7HwF5hs99VZbgLGj
2026-04-11 07:56:24 +00:00

86 lines
2.6 KiB
Plaintext

# === Core Framework ===
fastapi==0.115.5
uvicorn[standard]==0.32.1
pydantic==2.9.2
pydantic-settings==2.6.1
pydantic-extra-types[phonenumbers]>=2.0.0 # Saudi phone validation (+966)
python-multipart==0.0.12
# === Database ===
sqlalchemy==2.0.36
asyncpg==0.30.0
psycopg2-binary==2.9.10
alembic==1.14.0
pgvector==0.3.6
# === AI / LLM Providers ===
litellm>=1.40.0 # Unified LLM provider (Groq/OpenAI/Claude/Gemini) with fallback
instructor>=1.14.0 # Structured LLM outputs via Pydantic models
groq==0.12.0
openai==1.57.0
langchain==0.3.9
langchain-groq==0.2.1
langchain-community==0.3.9
langchain-anthropic==0.2.0
langgraph==0.2.53
crewai==0.80.0
mem0ai==0.1.18
# === Arabic NLP ===
camel-tools>=1.5.0 # Arabic morphology, NER, dialect detection (NYU Abu Dhabi)
pyarabic>=0.6.15 # Arabic text normalization, diacritics removal
# === WhatsApp Business API ===
pywa>=3.0.0 # Direct WhatsApp Cloud API (async, webhooks, templates)
twilio==9.3.7 # Twilio fallback
# === Communication ===
httpx==0.27.2
resend>=2.0.0 # Transactional email API (free tier, FastAPI-native)
# === Saudi-specific ===
hijridate>=2.4.0 # Hijri-Gregorian calendar (Umm al-Qura, official Saudi)
phonenumbers>=8.13.0 # Saudi phone number validation and formatting
# === PDF Generation (Arabic RTL) ===
weasyprint>=60.0 # HTML/CSS to PDF with Arabic RTL support
# === Security ===
PyJWT[crypto]>=2.8.0 # JWT (replaces abandoned python-jose)
passlib[bcrypt]==1.7.4
bcrypt>=4.0.1,<5
slowapi>=0.1.9 # API rate limiting with Redis backend
# === Caching & Performance ===
redis==5.2.0
fastapi-cache2>=0.2.1 # Response caching with Redis backend
celery-redbeat>=2.2.0 # Dynamic Celery Beat scheduler (Redis-backed)
# === Monitoring & Logging ===
sentry-sdk[fastapi]>=2.0.0 # Error tracking + performance monitoring
prometheus-fastapi-instrumentator>=7.0.0 # Prometheus metrics
structlog>=24.0.0 # Structured JSON logging with tenant context
# === Testing ===
pytest>=8.0.0
pytest-asyncio>=0.23.0 # Async test support
pytest-cov>=5.0.0 # Coverage reporting
factory-boy>=3.3.0 # Test data factories for SQLAlchemy models
# === Forecasting ===
statsforecast>=1.7.0 # Fast statistical time-series forecasting
# === Data & Utilities ===
beautifulsoup4==4.12.3
lxml==5.3.0
requests==2.32.3
python-dateutil==2.9.0
pandas==2.2.3
numpy==2.1.3
python-decouple==3.8
paramiko==3.5.0
qrcode==8.0
Pillow==11.0.0
xmltodict==0.14.2
email-validator>=2.1.0