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

Uploaded Source

Built Distribution

report_racing-1.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: report_racing-1.4.tar.gz
  • Upload date:
  • Size: 3.0 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.4.tar.gz
Algorithm Hash digest
SHA256 8a7987a182f9dc8b71e6cb9c06f00100f0fcb302e05d659a35ee95044e47a01f
MD5 2e4db5ef1b3333f6020ee4d2e2818886
BLAKE2b-256 44016dcda91c7d613d8d05d1690ed79a65c41b6d566435979d882572e0796e68

See more details on using hashes here.

File details

Details for the file report_racing-1.4-py3-none-any.whl.

File metadata

  • Download URL: report_racing-1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c527c4410bdb54139846204b77cb3824f382325d71fad8bb471e6c898ad111cb
MD5 750a0d081c320a7528ab070f0933b8bb
BLAKE2b-256 2697b825dec339f914924c08ce4112f467e1c3d77e75f1ab6e6f9d36ab74dd8e

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