Skip to main content

No project description provided

Project description

Report of Monaco 2018 Racing

This package accepts data files as input and forms the standings of the riders

Getting started

The program receives files as input, processes them and passes them to the script.

Files that the program accepts
    start = list(arguments.files.glob('start.log')).pop()
    end = list(arguments.files.glob('end.log')).pop() 
    abbreviations = list(arguments.files.glob('abbreviations.txt')).pop() 
Arguments for working with a script
    parser.add_argument('--files', type=pathlib.Path, required=True)
    parser.add_argument('--asc', action='store_true')
    parser.add_argument('--desc', action='store_true')
    parser.add_argument('--driver', type=str)

Function parse_files

The function reads input files, adds data to a dictionary


start, end, abbreviations - object witch is the result of parser.parse_args()
Returns a dictionary with ordered data about the riders

Function build_report

The function reads out the lap time and sorts the riders according to it. The default is ascending time.


pilots - driver data dictionary
reverse=False - default sort value
Returns an ordered list with member abbreviations

Function print_report

Forms the standings, taking into account the conditions of the problem


abbr_racer - list with riders abbreviations
Returns standings with 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_racing-1.0.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file report_racing-1.0.tar.gz.

File metadata

  • Download URL: report_racing-1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.0

File hashes

Hashes for report_racing-1.0.tar.gz
Algorithm Hash digest
SHA256 3869e1b089972357c1500d70bb33ff9653caf355814fce3512663947665b7920
MD5 d2433d4fc5fe4967923dc1554a08e4b1
BLAKE2b-256 0de9e269e32a8534f4aa169caf9b1379bbb6e641cf1383e33d0d9ec8b17c2979

See more details on using hashes here.

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