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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: report_racing-1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 de8baee04a934e2a3056a2543cd56874c43027982ad885c7fd77dee1d6ae1f4d
MD5 c7edcd79d57c6a77a090ac48cf91c58c
BLAKE2b-256 05f214aee72fd3dbc54248fe7ff9e03bb93f9743b43b0947a64f8f9cbb167f48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: report_racing-1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e745735b636caeb36cfbf4f3fcf33cc4a0278e8fb19ed0cf130675a2f574d2a8
MD5 01470e04ebfc7acc07009333d21eb19a
BLAKE2b-256 83ea9e69096119f9bd5b851f67ba43fa00f727e11051e7aa49617c7818c6ae3e

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