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.25.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.25-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: task_6_rakitin_sergey-0.0.25.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.25.tar.gz
Algorithm Hash digest
SHA256 2fa3a21f66422fd0f7bb4b28b68dc96e3db9dd83876736c5c6b5230cf1f57fc6
MD5 ae4b231409ff2d0267787faffc08fc7a
BLAKE2b-256 2ac90d1be28d7b0da2aca238ff96a386568f457b9cae0e18b523176ca6caeb05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for task_6_rakitin_sergey-0.0.25-py3-none-any.whl
Algorithm Hash digest
SHA256 a3873bce787403a7a1050de998c699a9eb28e69f8017aeddb75ea60633f0dff0
MD5 b25ec7939bca55a0306a7df77e2fe92c
BLAKE2b-256 12b3bbf07a5ec9dfae4c4a497c3545453833f26fc0f8d5b8ae9620fdf06ab501

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