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


Release history Release notifications | RSS feed

This version

1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

script_for_create_standings-1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: script_for_create_standings-1.1.tar.gz
  • Upload date:
  • Size: 3.1 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 script_for_create_standings-1.1.tar.gz
Algorithm Hash digest
SHA256 ef58b13d5b243406c234f9e25b5447676aec341158d0ae00555b4150843935a0
MD5 bc3c4d4b4721e01af4ee21b2e61190bb
BLAKE2b-256 8265c6f9eeb227e1ba68bd2a515e5de504c71e263373241b7712c3fdf0609a37

See more details on using hashes here.

File details

Details for the file script_for_create_standings-1.1-py3-none-any.whl.

File metadata

  • Download URL: script_for_create_standings-1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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 script_for_create_standings-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8bfbbe842aaa3e2b606a1fc2a5acb5a782febb1bbff6e1a4117a23120816b0a5
MD5 59c8e7a4a456e53790e30cd10339bd09
BLAKE2b-256 77fb8b04011915fd0fa5b52c62ed0110c81b48ed8e7e1a2eee163001711efb88

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