Skip to main content

Analysis of Formula 1 qualification results.

Project description

monaco-qualifying

License: MIT
GitLab Repo

Python-пакет для аналізу даних кваліфікації Формули 1 - Monaco 2018, який читає дані з трьох файлів:

обчислює найкращі часи кіл, сортує гонщиків за часом кола та виводить звіт, що показує в таблиці топ-15 гонщиків та решту, яка не ввійшла до топ-15.


Зміст


Посилання проекту


Встановлення

pip install monaco-qualifying

Використання

CLI

  • Для виводу повного звіту гонщиків:
python -m monaco-qualifying.driver_3_version

Документація

  1. Відкрити Python-інтерпретатор:
python
  1. Імпортувати модуль і викликати help():
from .driver_3_version import RecordData
help(RecordData)

Приклади

Приклад звіту

1. Sebastian Vettel | FERRARI | 1:4.415
2. Valtteri Bottas | MERCEDES | 1:12.434
3. Stoffel Vandoorne | MCLAREN RENAULT | 1:12.463
...
----------------------------------------------------------------------
16. Daniel Ricciardo | RED BULL RACING TAG HEUER | 2:47.987
17. Sergey Sirotkin | WILLIAMS MERCEDES | 4:47.294

Оновлення пакету

pip install --upgrade monaco-qualifying

Тестування

  1. Клонувати репозиторій:
git clone https://git.foxminded.ua/liliia-shpytsia-mentoring/task_6_report_of_monaco_2018_racing.git 
cd task_6_report_of_monaco_2018_racing
  1. Створити середовище та встановити залежності за допомогою uv:
uv venv
uv pip install -r uv.lock
  1. Використати ruff для перевірки стилю коду.
ruff check .--fix
  1. Запустити тести:
pytest

Структура проекту

task_6_report_of_monaco_2018_racing/
|-- data/
|   +-- abbreviations.txt
|   +-- end.log
|   +-- start/log
|-- src/
|   +-- monaco_qualifying/
|   |   +-- __init__.py
|   |   +-- driver_3_version.py
|-- tests/
|   +-- __init__.py
|   +-- test_driver.py
|-- .gitignore
|-- .gitlab-ci.yml
|-- LICENSE
|-- main.py
|-- pyproject.toml
|README.md
|--uv.lock

Пошук проблем

  • Якщо виникли проблеми, створити Issue на GitLab.

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

monaco_qualifying-0.1.2.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

monaco_qualifying-0.1.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file monaco_qualifying-0.1.2.tar.gz.

File metadata

  • Download URL: monaco_qualifying-0.1.2.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for monaco_qualifying-0.1.2.tar.gz
Algorithm Hash digest
SHA256 08f135626fda45e6d849b63cd45beea705ff68d20d64d1a8f6916ae06d7495ec
MD5 402e8f21aa65237419b38473ebe02f05
BLAKE2b-256 0a0a10ca36d591ff5a269d42ffcb203e6a83d5a5dbfbd9347f2a747cd80541dd

See more details on using hashes here.

File details

Details for the file monaco_qualifying-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for monaco_qualifying-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5405e64443a68bd3ce19aaf0c8bed30a61d9df8e055c431da375ffc768251f8d
MD5 bd08c9200f38330ee94f9ec1e5759d17
BLAKE2b-256 36e55dc3b476abfd529bcb6def042d01b1a3dffe2caadda85c2ea2a7e33d4102

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page