Skip to main content

Monaco 2018 Racing Q1 Report Generator

Project description

Monaco 2018 Racing Q1 Report

A Python CLI tool for generating Formula 1 Monaco 2018 Q1 qualification reports.

Features

  • Parse race data from log files
  • Generate sorted race reports
  • Filter by specific driver
  • Sort ascending or descending by lap time
  • Show top 15 racers with separator

Installation

pip install monaco-racing-alexxstep

Usage

Show all racers (ascending order - default)

# Using entry point (recommended)
uv run monaco-report --files data/

# OR using Python module
python -m src.races.cli --files data/

Show all racers (descending order)

uv run monaco-report --files data/ --desc

Show specific driver statistics

uv run monaco-report --files data/ --driver "Sebastian Vettel"

Help

uv run monaco-report --help

Example Output

======================================================================
MONACO 2018 RACING Q1 REPORT (ASC ORDER)
======================================================================

 1. Sebastian Vettel          | FERRARI                          | 1:04.415
 2. Valtteri Bottas           | MERCEDES                         | 1:12.434
 3. Stoffel Vandoorne         | MCLAREN RENAULT                  | 1:12.463
...
15. Kevin Magnussen           | HAAS FERRARI                     | 1:13.393
---------------------------------------------------------------------------
16. Brendon Hartley           | SCUDERIA TORO ROSSO HONDA        | 1:13.179
...

Data Format

abbreviations.txt

DRR_Daniel Ricciardo_RED BULL RACING TAG HEUER
SVF_Sebastian Vettel_FERRARI

start.log

SVF2018-05-24_12:02:58.917
DRR2018-05-24_12:14:12.054

end.log

SVF2018-05-24_12:04:03.332
DRR2018-05-24_12:15:24.067

Development

Install for development

git clone <repo-url>
cd task6-report-of-monaco-2018-racing

# Install dependencies using uv
uv sync

# OR install in editable mode
uv pip install -e .

Activate virtual environment

# On Windows (Git Bash)
source .venv/Scripts/activate

# On Linux/Mac
source .venv/bin/activate

Run tests

# With uv run (no activation needed)
uv run pytest tests/ -v
uv run pytest tests/ --cov=src/races --cov-report=term-missing

# OR with activated venv
pytest tests/ -v
pytest tests/ --cov=src/races --cov-report=term-missing

Code quality

# Check linting and auto-fix
uv run ruff check . --fix

# Format code
uv run ruff format .

# Run all checks
uv run ruff check .

License

MIT License - see LICENSE file

Author

Oleksiy Stypanets (Alex Step) Email: astep2004@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monaco_racing_alexxstep-0.1.0.tar.gz (37.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

monaco_racing_alexxstep-0.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file monaco_racing_alexxstep-0.1.0.tar.gz.

File metadata

File hashes

Hashes for monaco_racing_alexxstep-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0c1d52cba96c0fc7292b63f64ba21a487e045ed7873ded915879d4e82b08a92e
MD5 532cf741f0f9193063163c0529544584
BLAKE2b-256 f77a2e1e08c657be5efc69be6555b3cd8c2b4220168ca4be4dc9522d95a71af3

See more details on using hashes here.

File details

Details for the file monaco_racing_alexxstep-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for monaco_racing_alexxstep-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be1bfc787cc41ff762272bb5b793be5657baf736df6f51d0b36038029c1a862a
MD5 a91a1eaeca184881f974758414298031
BLAKE2b-256 695467346f5b1d6f846999b1d1021f938be1c3b97c2c113ee466fd1ef4c0963b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page