ZEROLegion/Formula1APP
0
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
# Install Python dependencies
pip install -r requirements.txt
pip install -r requirements-dev.txt
# Run dev server
uvicorn app.main:app --reloadTesting
# Run all tests
pytest
# Run single test
pytest tests/test_api.py::test_root
# Run with coverage
pytest --cov=app --cov-report=htmlLinting
# 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
