Cli for report of Monaco race.
Project description
Overview
The report package provides command-line interface to get information about Monaco Race 2019:
- date of the race ;
- start time of the race;
- number of the racers;
- report of the race;
- information about driver;
- list of all racers in the race;
- list of all teams in the race;
- list of all racers in specific team;
System Requirements
report is written for Python 3. The following sub-versions are supported:
- Python 3.9
- Python 3.10
Install
pip install report
CLI Usage Example
For all reports --files
argument is required.
--files
argument is path of directory where report files are located.
Example of the report files:
abbreviations.txt
(contains information about racer in a formSVF_Sebastian Vettel_FERRARI
)start.log
(contains Q1 start time of racers in a formSVF2018-05-24_12:02:58.917
)end.log
(contains Q1 finish time of racers in a formSVF2018-05-24_12:04:03.332
)
NOTE: Name of the files and content form should be exactly as in example.
More information about usage
pyhton -m report.report -h
Date of the race:
python -m report.report -f <path> --date
Start time of the race:
python -m report.report -f <path> --time
Number of the racers:
python -m report.report -f <path> --racers-number
Report of the race:
python -m report.report -f <path> --report
Information about driver:
python -m report.report -f <path> --driver <full name>
List of the racers:
python -m report.report -f <path> --racers <[asc, desc]>
List of the teams:
python -m report.report -f <path> --teams <[asc, desc]>
List of the racers from specific team:
python -m report.report -f <path> --team-racers <team name>
NOTE: More than one argument can be passed in one time. Example:
python -m report.report -f <path> --report -d -t --racers asc
Package can be used in your project:
from report_race import race
race_valid = race.LogFilesValidator("path/to/directory")
race = race_valid.init_race()
Ande then you can use it like that:
race.get_racer("name_of_the_racer")
race.get_number_of_racers()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for report_race-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4f7913ed5dd1529308c2f379a1347e9139a956df3fbf4149c6849e960f8cd02 |
|
MD5 | fd0997db460eb6d28e22de05a7af72ed |
|
BLAKE2b-256 | 387cf4ea7902ad91b9c411339171040dcc943fe7a9277acb96ae23d8a357d68f |