Output the report of the best lap of riders in qualification
Project description
Racing report
Installation
To use this package in your project, use dependency manager to install it:
pip install report-racing-pack==0.0.1
Usage
The result of use this program - reads logs of statistics from the specified catalog, and returns statistics on the result of the best round in the qualification
arguments
- --folder argument "folder" should be a name of folder where placed files with datas
- --asc sort by first to last, asc is default
- --desc sort by last to first
- --driver information about the pilot, enter the name in ' '
python -m log_report --desc
python -m log_report --driver <name driver in "">
Documentation function and classes the package has 2 classes and 2 function
args_parser() add arguments and parse, return namespace with them
parse_call(args_cm=<namespace_args>) takes namespace of args from previous func and call something it depends what args were parsed
class Log
obj Log parameters path
Log.read_data
read data from files in path
Log.get_logs
validate for usage and return three lists with abbreviations start_time and end_time
class Report
obj Report parameters abbr_list, start_list, end_list
Report.get_diff calculate difference
between start and end time
Report.concatenate_sort_data
concatenate diff time with abbr and then sort it
Report.output
print statistic about all drivers
Report.driver
takes name and get statistic about driver
Report.solo_output
print statistic about driver work with previous method
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_racing_pack-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d9a2bc493c190714aaf51c95776807d53fdeede600526f737d449bcaccff79c |
|
MD5 | ae02c25e233781b6e29c8dd4e88b6c03 |
|
BLAKE2b-256 | cf072e258ef1d991e3e3f94de89876aca4749326b03d1446e7bd4bf7e295e4d3 |