Skip to content

A Python repository for analyzing and visualizing Formula 1 data. Includes tools for race statistics, performance comparisons, and custom visualizations.

License

Notifications You must be signed in to change notification settings

Maxbleu/F1Analisys

Repository files navigation

Buy Me A Coffee

F1Analisys

Estado Framework Licencia

Banner principal del proyecto

F1 project to analyze the data of the F1 championship making use of the pandas library to handle the data and the matplotlib library to plot different analisys like:

  • Track dominance Sesión Oficial Sesión Oficial
  • Top speed Sesión Oficial Sesión Oficial
  • Lap time average Sesión Oficial Sesión Oficial
  • Lap time distribution Sesión Oficial
  • Team performance Sesión Oficial Sesión Oficial
  • Fastest laps Sesión Oficial Sesión Oficial
  • Race position evolution Sesión Oficial Sesión Oficial
  • Fatest drivers each compound Sesión Oficial Sesión Oficial
  • Comparative lap time Sesión Oficial Sesión Oficial
  • Throttle usage Sesión Oficial Sesión Oficial
  • Braking usage Sesión Oficial Sesión Oficial
  • Long runs Sesión Oficial Sesión Oficial
  • Optimal lap impact Sesión Oficial Sesión Oficial Sesión Oficial

Sections

  1. Instalation
  2. Requirements
  3. Run
  4. Get analisys
  5. Swagger
  6. Contributing

Instalation

To install the repository, you can make a fork of the repository or cloning my repository using the following command:

git clone git@github.com:Maxbleu/F1Analisys.git

Requirements

This is the requirements needs to run this proyect.

Run

How this proyect use Docker to run it, so you will need to create a new image of the proyect.

docker build -t f1analisys:latest .

To run the project, execute the following command:

docker run -p 8000:8000 f1analisys:latest

Get analisys

This project is designed to get every analisys named before for normal persons out of the tech word interested in the technical part of F1 and developers.

In every endpoint of this project, after the url, you can put if you want convert the image to bytes putting ?convert_img=True in the url, because, ?convert_img=False is enabled by default.

In image

/api/official/track_dominance/2024/10/Q?convert_img=False or /official/track_dominance/2024/10/Q

In this case the url would be: this example

ejemplo de obtener un analisis sin convertir a bytes

In bytes

/api/official/track_dominance/2024/10/Q?convert_img=True

In this case the url would be: this example

ejemplo de obtener un analisis convertido a bytes

Swagger

To see the endpoints of the project you only need to this link

Contributing

For contributing to this project, you need to read first of all CONTRIBUTING.md

Special mention

I want to thank to Fastf1 project for the data, and to the F1 community for the passion and the love for the sport. If that project don't exist, this project wouldn't exist. I only have one word in my mind: THANK YOU.

Notice

F1Analisys is unofficial and are not associated in any way with the Formula 1 companies. F1, FORMULA ONE, FORMULA 1, FIA FORMULA ONE WORLD CHAMPIONSHIP, GRAND PRIX and related marks are trade marks of Formula One Licensing B.V.

About

A Python repository for analyzing and visualizing Formula 1 data. Includes tools for race statistics, performance comparisons, and custom visualizations.

Topics

Resources

License

Contributing

Stars

Watchers

Forks