Skip to main content

A package for processing Formula 1 racing logs

Project description

F1 Racing Report Package

This Python package generates and prints a report for Formula 1 racing, based on logs of start and end times of racers. The package also provides a command-line interface (CLI) to interact with the report generation and allows flexible configuration options.

Features

  • Report Generation: Generate a sorted list of F1 racers by lap times.
  • CLI Interface: Process files from a specified folder and print reports or errors.
  • Error Handling: Provides detailed error messages for problematic records (e.g., invalid times).
  • Custom Report Options: Includes optional sorting and underline settings.

Installation

Install the package using PIP:

    pip install task_6_rakitin_sergey

Usage

Enter the following commands via CMD.

Below are some examples of how to use the CLI.

Basic Report generation (with ascending order by default):

    python -m task_6_rakitin_sergey.f1_report

Generate report with sorting order descending:

  python -m task_6_rakitin_sergey.f1_report --order desc

Print report with custom underline after a specific line (for example, 3):

    python -m task_6_rakitin_sergey.f1_report --underline_after 3

Show only errors:

    python -m task_6_rakitin_sergey.f1_report --errors_only

Show report for a specific driver:

    python -m task_6_rakitin_sergey.f1_report --driver "Sebastian Vettel"

Use an own path to .log and .txt files:

    python -m task_6_rakitin_sergey.f1_report --files <folder_path>

List of commands:

    python -m task_6_rakitin_sergey.f1_report --help

Import package to your project and call:

  from task_6_rakitin_sergey import f1_report

  if __name__ == "__main__":
      f1_report.command_line_input()

Link to package page

    https://pypi.org/project/task-6-rakitin-sergey/

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

task_6_rakitin_sergey-0.0.26.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

task_6_rakitin_sergey-0.0.26-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file task_6_rakitin_sergey-0.0.26.tar.gz.

File metadata

  • Download URL: task_6_rakitin_sergey-0.0.26.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for task_6_rakitin_sergey-0.0.26.tar.gz
Algorithm Hash digest
SHA256 4079961e5ded10c4101b13e2a04226c5e75acc1b57f999427777ace20a7b0090
MD5 57885fef09ae558af8b1635582023e43
BLAKE2b-256 87e302ee3d97959fea432305c55477cea4602bb756c3d9a5bd63d2701873bf14

See more details on using hashes here.

File details

Details for the file task_6_rakitin_sergey-0.0.26-py3-none-any.whl.

File metadata

File hashes

Hashes for task_6_rakitin_sergey-0.0.26-py3-none-any.whl
Algorithm Hash digest
SHA256 8cc4a199e3f67820483168758422bab1ee6395aa08269a609d821d08ce1787e1
MD5 6b14bf82f843a2454681a2a88424754b
BLAKE2b-256 0d053efccfbde03b446b3e9e7ba77173f8714195c44fb0b49561206c43e5a4ac

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