/DebriefServer

Flask app to serve F1 season and Race details along with images comparing driver lap times and more.

Primary LanguagePythonMIT LicenseMIT

Debrief Server

Flask app to serve F1 season and Race details along with images comparing driver lap times and more. Some responses will be taken directly from Ergast, while the images with telemetry data will be processed from the FastF1 python library.

Screenshots

LEC vs RUS Bahrain 22 Quali

API Reference

Get Race Schedule

  GET /race-schedule/<year>
Parameter Type Description
year int Year for desired race schedule.

Get Line Graph Image for Fastest Laps

  GET /fastest-laps/line-graph
Parameter Type Description
x string Field for x-axis: Speed, RPM, nGear, Throttle, Brake, DRS, Distance, Time.
y string Field for y-axis: Speed, RPM, nGear, Throttle, Brake, DRS, Distance, Time.
gp string Name of the circuit.
year int Year of the F1 Season.
drivers list[str] Comma-separated(,) list of drivers to compare. Use driver code in block letters

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

License

MIT

Authors