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.1.tar.gz (2.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: report_racing-1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 8be755ef67a22810e274d5846727f0a7fef938b040ee71f425baaa8f56fe8a1a
MD5 c8cf0f6bd0548068fd3510a8d4580233
BLAKE2b-256 1f35922dcd91eaa07fcbe447d2a7f1c9e2b5d82314240413103e095aa1bd6958

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