Formula 1 Monaco 2018 Racing Report Generator
This Python package provides a tool for generating reports based on the start and end data of the best lap for each racer of Formula 1 - Monaco 2018 Racing during the first stage of the qualification (Q1).
Installation
To use the package, you need to install it first. You can do this using pip:
</code></pre>
<h2 id="user-content-usage">Usage<a href="#user-content-usage" aria-label="Link to heading 'Usage'" data-heading-content="Usage" class="anchor"></a></h2>
<p>The package provides a command-line interface with several options.</p>
<h3 id="user-content-generating-a-report">Generating a Report<a href="#user-content-generating-a-report" aria-label="Link to heading 'Generating a Report'" data-heading-content="Generating a Report" class="anchor"></a></h3>
<p>You can generate a report for the first 20 minutes of the Monaco 2018 Racing by providing the path to the folder containing the data files. The <code>--asc</code> or <code>--desc</code> flag allows you to specify the sorting order (default is ascending).</p>
<pre><code class="language-bash">report.py --files <folder_path> [--asc | --desc]
Driver Statistics
To get statistics about a specific driver, use the --driver option along with the folder path.
report.py --files <folder_path> --driver "Sebastian Vettel"
Package Structure
The package consists of the following components:
RecordClass: Represents a racer record with start and end times.FileNotFoundException: Raised when a specified file is not found.ReportInvalidOrderException: Raised for an invalid sorting order in the report.build_reportFunction: Compiles a report summarizing valid and invalid records.print_reportFunction: Prints a formatted report based on ordered results.cliFunction: Parses command-line arguments and orchestrates the report generation process.
Example
import report.py
#(update later)
# Command-line interface
args = formula1_report.Record.cli()
# Build the report
good_records, bad_records = formula1_report.Record.build_report(args.files, args.sort)
# Filter records if a specific driver is provided
if args.driver:
good_records = [rec for rec in good_records if rec.driver == args.driver]
bad_records = [rec for rec in bad_records if rec.driver == args.driver]
# Print the report
print(report.Record.print_report(good_records, bad_records))
License
This package is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for report-vp 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| report_vp-0.0.6.tar.gz | 10.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| report_vp-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.5 kB
Release files / report_vp-0.0.6.tar.gz
| Download URL | report_vp-0.0.6.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
059138660dacf3de681ddbc0e99dbc4332b3a012f03f88be4fe2f7a66eac939f
|
|
BLAKE2b-256 checksum How to use checksums |
8a09fbcabacee361000e05fb88f1621a6ba4b299fc3462aa5da6674cde2dd4a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Release files / report_vp-0.0.6-py3-none-any.whl
| Download URL | report_vp-0.0.6-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
917c6ee580da8828fcd49dfd990b3386205eafc98e7fca4fe4cbd29652ee4bca
|
|
BLAKE2b-256 checksum How to use checksums |
d4c6070b315bf8952748e3a3c07880c7e658cb3ff59af66aaa5f056d7ef921d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Security for report-vp 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.