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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file report_race-0.1.0.tar.gz.

File metadata

  • Download URL: report_race-0.1.0.tar.gz
  • Upload date:
  • Size: 79.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for report_race-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4142f2c6402983faa7792385d0f559b5abaf50dab052782f74c0b192c0a1258a
MD5 854bb321c88c69844de7ba4610d5b97e
BLAKE2b-256 028da007080bc2bc377b602b7c13ac25a3bdb89a5beba0446d2604a912d901c4

See more details on using hashes here.

File details

Details for the file report_race-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: report_race-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for report_race-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4f7913ed5dd1529308c2f379a1347e9139a956df3fbf4149c6849e960f8cd02
MD5 fd0997db460eb6d28e22de05a7af72ed
BLAKE2b-256 387cf4ea7902ad91b9c411339171040dcc943fe7a9277acb96ae23d8a357d68f

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