chessCalc: парсер chess-results.com + FIDE Swiss + Docker

Принимает URL турнира, показывает пары следующего тура в Telegram-формате.
- parser.py: парсинг chess-results.com
- swiss.py: FIDE Dutch System
- display.py: форматирование для Telegram
- Docker: docker compose run --rm chess-calc 'URL'
This commit is contained in:
Roman Vrubel 2026-06-14 13:57:32 +00:00
commit cf7fafd2ba
10 changed files with 1093 additions and 0 deletions

21
Dockerfile Normal file
View file

@ -0,0 +1,21 @@
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY swiss_calc/ /app/swiss_calc/
# Create entry point
RUN python3 -c "from swiss_calc import parser; print('✅ Module loaded')"
ENTRYPOINT ["python3", "-m", "swiss_calc"]
CMD ["--help"]