# ==============================================
# Python зависимости для Django Backend
# ==============================================

# Core Django
Django==4.2.7
whitenoise==6.6.0
djangorestframework==3.14.0
django-cors-headers==4.3.0
django-filter==23.5

# Database
psycopg2-binary==2.9.9
dj-database-url==2.1.0

# Redis & Caching
redis==5.0.1
django-redis==5.4.0
hiredis==2.2.3

# Celery
celery==5.3.4
django-celery-beat==2.5.0
django-celery-results==2.5.1
flower==2.0.1

# Channels (WebSocket)
channels==4.0.0
channels-redis==4.1.0
daphne==4.0.0

# Authentication & Security
djangorestframework-simplejwt==5.3.0
PyJWT==2.8.0
cryptography==41.0.7

# API Documentation
drf-yasg==1.21.7

# File Upload & Storage
Pillow==10.1.0
django-storages==1.14.2
boto3==1.29.7

# Email
django-ses==3.5.2

# Forms & Validation
django-phonenumber-field==7.2.0
phonenumbers==8.13.26

# Telegram Integration
python-telegram-bot==20.7

# Payments
yookassa==3.0.0

# OpenAI (для AI проверки ДЗ)
openai==1.3.7

# Markdown + MathML для отображения ответов ИИ (feedback: $a$, **bold** → HTML)
markdown>=3.5
latex2mathml>=3.78
bleach>=6.0

# PDF: извлечение текста для проверки ДЗ (pypdf → pymupdf → pdfminer; конверт в .txt и чтение из файла)
pypdf>=4.0
pymupdf>=1.24
pdfminer.six>=20221105

# Calendar Export
icalendar==5.0.11

# Payment Systems
stripe==7.8.0
yookassa==3.0.0

# Utilities
python-decouple==3.8
python-dotenv==1.0.0
pytz==2023.3.post1
python-dateutil==2.8.2
babel==2.15.0

# LiveKit (старый клиент, можно удалить после миграции)
livekit==1.0.23

# LiveKit API (официальный SDK для генерации токенов)
livekit-api>=1.0.0

# HTTP & Requests
requests==2.31.0
urllib3>=1.26.11,<3.0
httpx==0.25.2

# Data Processing
pandas==2.1.4
numpy==1.26.2

# Report Generation
openpyxl==3.1.2  # Excel export
reportlab==4.0.7  # PDF export
xlsxwriter==3.1.9  # Advanced Excel export

# Testing
pytest==7.4.3
pytest-django==4.7.0
pytest-cov==4.1.0
factory-boy==3.3.0
faker==20.1.0
responses==0.24.1

# Code Quality
flake8==6.1.0
black==23.12.0
isort==5.13.2
pylint==3.0.3
mypy==1.7.1

# Monitoring & Logging
sentry-sdk==1.38.0
django-debug-toolbar==4.2.0
django-silk==5.0.4

# WSGI Server
gunicorn==21.2.0
uvicorn[standard]==0.25.0

# Utilities
ipython==8.18.1
django-extensions==3.2.3

# Testing
pytest==7.4.3
pytest-django==4.7.0
pytest-cov==4.1.0
pytest-asyncio==0.21.1
factory-boy==3.3.0
faker==20.1.0

