CoolFace
Apppublic

ZEROLegion/Formula1APP

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
App README

F1 Monte Carlo Simulation

A Monte Carlo simulation app for F1 race outcomes using Python (NumPy) for high-performance simulations and FastAPI for the web interface.

Setup

bash
# Install Python dependencies
pip install -r requirements.txt
pip install -r requirements-dev.txt
# Run dev server
uvicorn app.main:app --reload

Testing

bash
# Run all tests
pytest
# Run single test
pytest tests/test_api.py::test_root
# Run with coverage
pytest --cov=app --cov-report=html

Linting

bash
# Python
ruff check .
ruff format .

Architecture

  • FastAPI: Web framework with async support
  • NumPy: High-performance Monte Carlo simulations
  • httpx: Async HTTP client for live F1 API data