Skip to main content

Monaco racing report builder

Project description

Monaco 2018 — Formula 1 Qualifying Report

A Python CLI tool that parses lap timing data from the 2018 Monaco Formula 1 Q1 qualifying session and prints a ranked report of drivers.

Installation

uv sync

Data

Three input files (stored together in a dedicated data folder):

File Description
start.log Start times of each driver's best lap
end.log End times of each driver's best lap
abbreviations.txt Mapping of driver abbreviations to full name and team

Note: Start/end times are fictional; best lap times are accurate.

Log entry format: SVF2018-05-24_12:02:58.917

  • SVF — driver abbreviation
  • 2018-05-24 — date
  • 12:02:58.917 — time

Q1 Rules

All cars are on track simultaneously for the first 20 minutes. The seven slowest drivers are eliminated and assigned the bottom grid positions. The fastest 15 advance to Q2.

Usage

# Show ranked driver list (ascending by default)
uv run racing_info --files <path_to_data_folder>

# Show in ascending order explicitly
uv run racing_info --files <path_to_data_folder> --sort asc

# Show in descending order
uv run racing_info --files <path_to_data_folder> --sort desc

# Show stats for a specific driver
uv run racing_info --files <path_to_data_folder> --driver "Sebastian Vettel"

Report format

1 . Valtteri Bottas        | MERCEDES                       | 1:12.434
2 . Nico Hulkenberg        | RENAULT                        | 1:13.065
3 . Sebastian Vettel       | FERRARI                        | 1:04.415
...
16. Brendon Hartley        | SCUDERIA TORO ROSSO HONDA      | 1:13.179
17. Marcus Ericsson        | SAUBER FERRARI                 | 1:13.265

Requirements

  • Python 3.14+
  • uv package manager
  • Data files must be in a single folder passed via --files (default: ./racing_data)

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

racing_info-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

racing_info-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: racing_info-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"20.1","id":"ulyssa","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for racing_info-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d96410e16c4cda2a3602db05a5b9eb5c0238cd8e54fed3275a1d600dbff95aec
MD5 f42105338d51540e271e27c1a0a2e9de
BLAKE2b-256 03c6955befeed103e548b398b1d24061c181feb8fa28d404dd53c8561fea2b14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: racing_info-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"20.1","id":"ulyssa","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for racing_info-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64e0fdc6cb6cec8157ab92eb59d820a6ddeb96656cb8b55c9fdc168aa2634651
MD5 dc3c283d798caf0a574f73796c6fb3c6
BLAKE2b-256 450295bc705779f81570e03ea6aebb2787be8ae0d4d5eace92ef44015d917169

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