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


Instalation

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

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

💻 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.8.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.8-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: report_of_monaco_2018-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 abafa7d5686ef9376ca67b127cdaf789c01909cbbb63aa2c1d0b6e30093b3075
MD5 c991ed3bb4a2646a2104ce6eaf2f0795
BLAKE2b-256 c8f18f45114712b7e061f5c3a10fc06300587d62e79cc23ca99952e0d87bc9fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for report_of_monaco_2018-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 377fcaf861dc3cdf18cdcbc103cc44aa4806ce9c817ddb3d9bd2ca12799985ff
MD5 a714bc47f63bbd893409b3820c54ee8c
BLAKE2b-256 10f547e779f74cdcb60bf7623f73a56f75c0a63a7e5c5b95d7e942d5b5f78b07

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