Skip to main content

A report generation package for results of Monaco 2018 Racing

Project description

Formula 1 Monaco 2018 Racing Report Generator

This Python package provides a tool for generating reports based on the start and end data of the best lap for each racer of Formula 1 - Monaco 2018 Racing during the first stage of the qualification (Q1).

Installation

To use the package, you need to install it first. You can do this using pip:

pip install report-volo

Usage

The package provides a command-line interface with several options.

Generating a Report

You can generate a report for the first 20 minutes of the Monaco 2018 Racing by providing the path to the folder containing the data files. The --asc or --desc flag allows you to specify the sorting order (default is ascending).

report.py --files <folder_path> [--asc | --desc]

Driver Statistics

To get statistics about a specific driver, use the --driver option along with the folder path.

report.py --files <folder_path> --driver "Sebastian Vettel"

Package Structure

The package consists of the following components:

  • Record Class: Represents a racer record with start and end times.
  • FileNotFound Exception: Raised when a specified file is not found.
  • ReportInvalidOrder Exception: Raised for an invalid sorting order in the report.
  • build_report Function: Compiles a report summarizing valid and invalid records.
  • print_report Function: Prints a formatted report based on ordered results.
  • cli Function: Parses command-line arguments and orchestrates the report generation process.

Example

import report.py
#(update later)
# Command-line interface
args = formula1_report.Record.cli()

# Build the report
good_records, bad_records = formula1_report.Record.build_report(args.files, args.sort)

# Filter records if a specific driver is provided
if args.driver:
    good_records = [rec for rec in good_records if rec.driver == args.driver]
    bad_records = [rec for rec in bad_records if rec.driver == args.driver]

# Print the report
print(report.Record.print_report(good_records, bad_records))

License

This package is licensed under the MIT License - see the LICENSE file for details.

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

report_volo-0.1.2.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

report_volo-0.1.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file report_volo-0.1.2.tar.gz.

File metadata

  • Download URL: report_volo-0.1.2.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for report_volo-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d1421ce6a5acf086c9966bbd38695c581edee8c5d4689476e38406264d2a21ba
MD5 244da06118f78bdaa2995dea8f7bfeaa
BLAKE2b-256 5ab4889ead003d2f6ecbd0a2e7c0ba315508099cbf0feaa3bd434ed0c5c2b4c1

See more details on using hashes here.

File details

Details for the file report_volo-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: report_volo-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for report_volo-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 022c53e5913ebe34a7854e6ad1d51b08f1d4f8bc1bbda081a1ce4cd5d779673c
MD5 c098636701744c2de81ec5d44ec00f66
BLAKE2b-256 1e63dcdf243a3d8a7d45afaa3d76c13fbdb7fe81144b49cb0d07e3fc5fe8b998

See more details on using hashes here.

Supported by

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