Skip to main content

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 form SVF_Sebastian Vettel_FERRARI)
  • start.log (contains Q1 start time of racers in a form SVF2018-05-24_12:02:58.917)
  • end.log (contains Q1 finish time of racers in a form SVF2018-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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

report_race-0.1.0.tar.gz (79.5 kB view hashes)

Uploaded Source

Built Distribution

report_race-0.1.0-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page