Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cybercoder-naj/debriefserver

Flask app to serve F1 season and Race details along with images comparing driver lap times and more.
https://github.com/cybercoder-naj/debriefserver

f1 flask formula1 python rest-api server

Last synced: 8 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](http://ergast.com/mrd/), while the images with telemetry
data will be processed from the [FastF1](https://docs.fastf1.dev/index.html) python library.

## Screenshots

![LEC vs RUS Bahrain 22 Quali](examples/screenshots/ruslec.png)

## API Reference

#### Get Race Schedule

```http
GET /race-schedule/
```

| Parameter | Type | Description |
|:----------|:------|:--------------------------------------------|
| `year` | `int` | Year for desired race schedule. |

#### Get Line Graph Image for Fastest Laps

```http
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`](contributing.md) for ways to get started.

## License

[MIT](LICENSE)

## Authors

- [@cybercoder-naj](https://www.github.com/cybercoder-naj)