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.10

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: report_of_monaco_2018-0.0.10.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.10.tar.gz
Algorithm Hash digest
SHA256 a0c4bf3b1b2c0d724c1e804959a2aa2166254d5ce9635d8ca67bcfac18b37ae8
MD5 91aebb6ad274635314a683ff6ced2420
BLAKE2b-256 1e7cdcca1c496507af43a7a2e1af5704c16f2697ccae73666cb471ff3fbb5af3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for report_of_monaco_2018-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 183cf11cf419c12b6a73266ffa53a2f86109903c57199fa932014185a8deb1a4
MD5 cae89b86e235981f0a1b1c049f425ac2
BLAKE2b-256 04bda31e9e86c6479f7a4f0d82997506ee79f216b48d2eb0ff11536a141bcde0

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