Skip to main content

Monaco 2018 Q1 lap-time report generator

Project description

🏎️ Application to create Formula 1 Report

This tool can build a Formula 1 report. It works from CLI and you from import in your code. The app reads and analyzes some files from a passing directory in CLI (read data by default package), or you can import it in your code and pass your own files


Installation

Report-of-monaco-2018 can be installed by running

pip install report-of-monaco-2018==0.0.12

💻 Run from CLI

You can use this package to run it from CLI and receive a report by default this command:

report-monaco - you can pass optional --asc | --desc to sort it;

or you can choose some driver and receive a result by him:

report-monaco --file --driver 'Sebastian Vettel'

💻 Import in your project

You can import this package in your code and pass your own files:

import report_of_monaco_2018

report_of_monaco_2018.race_report()

After import, you should pass a path to directory with files to read, to cli

Options flag:

  • --file - directory with files to read
  • --desc or --asc - sort report
  • --driver - show info for a specific driver

📁 Requirements to directory

abbreviations.txt: contains driver abbreviations, full names, and team names. start.log: contains timestamps of when each driver's start race. end.log: contains timestamps of when each driver's end race.

Example entry for start.log and end.log files:

SVF2018-05-24_12:02:58.917

  • SVF: Driver abbreviation
  • 2018-05-24: Date
  • 12:02:58.917: Start or end time (used for lap duration calculation)

Example entry for abbreviations.txt:

DRR_Daniel Riccardo_RED BULL RACING TAG HEUER

  • DRR: Driver abbreviation
  • Daniel Riccardo: Driver name
  • RED BULL RACING TAG HEUER: Driver team

🏁 Report print Example

After parsing and calculating lap times, the output will look like:

1. Daniel Ricciardo      | RED BULL RACING TAG HEUER     | 1:12.013

2. Sebastian Vettel      | FERRARI                       | 1:12.415

3. ...

------------------------------------------------------------------------

16. Brendon Hartley   | SCUDERIA TORO ROSSO HONDA         | 1:13.179

17. Marcus Ericsson  | SAUBER FERRARI                     | 1:13.265

License

MIT

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_of_monaco_2018-0.0.12.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

report_of_monaco_2018-0.0.12-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file report_of_monaco_2018-0.0.12.tar.gz.

File metadata

  • Download URL: report_of_monaco_2018-0.0.12.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for report_of_monaco_2018-0.0.12.tar.gz
Algorithm Hash digest
SHA256 c4edf98a10c63c555914d1b7b43ae3ffa8b37d16fcbde22cc37762ad8750734c
MD5 59253bf30d34cfc7682a75c92a6a5e97
BLAKE2b-256 bd5bd3c30ad72a01e112d0935a8ea2a45d6aa54dfaeb000b24ac8bd4184a6f82

See more details on using hashes here.

File details

Details for the file report_of_monaco_2018-0.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for report_of_monaco_2018-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 18664afd5e48cac05560520855a2a9637f6bba9551931c581214ba10d88164d8
MD5 6bbb9d843cdd221a94fbf7cd54504a39
BLAKE2b-256 a443cff72c7a3979dbf6832701f322c22aac2ecddaad8431720630c096f07b1f

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