https://github.com/theOehrly/Fast-F1
FastF1 is a python package for accessing and analyzing Formula 1 results, schedules, timing data and telemetry
https://github.com/theOehrly/Fast-F1
datascience formula1 motorsport
Last synced: over 1 year ago
JSON representation
FastF1 is a python package for accessing and analyzing Formula 1 results, schedules, timing data and telemetry
- Host: GitHub
- URL: https://github.com/theOehrly/Fast-F1
- Owner: theOehrly
- License: mit
- Created: 2020-04-18T10:00:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-05T20:58:40.000Z (over 1 year ago)
- Last Synced: 2025-03-10T14:11:24.867Z (over 1 year ago)
- Topics: datascience, formula1, motorsport
- Language: Python
- Homepage: https://docs.fastf1.dev
- Size: 14.9 MB
- Stars: 2,689
- Watchers: 36
- Forks: 284
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-car-simulation - FastF1
- awesome-public-real-time-datasets - Formula 1 Stats & Telemetry - Python package that provides an easy-to-use API into live and historical F1 data. (Free / Other)
- starred - theOehrly/Fast-F1 - FastF1 is a python package for accessing and analyzing Formula 1 results, schedules, timing data and telemetry (Python)
- StarryDivineSky - theOehrly/Fast-F1 - F1是一款基于Python的开源工具库,专注于为用户提供高效访问和分析一级方程式(F1)赛事数据的能力。该项目通过直接对接F1官方API和历史数据源,能够快速获取包括比赛结果、赛程安排、实时计时数据以及赛车遥测信息在内的多维度数据,支持从2010年至今的完整赛事记录。其核心特色在于通过预处理和结构化存储技术,将原始数据转化为易于操作的Pandas DataFrame格式,用户可直接使用类似`fastf1.get_session()`的简洁方法调用数据,无需手动解析复杂文件格式。项目特别优化了数据加载速度,通过缓存机制减少重复请求,同时支持按赛事类型(如排位赛、正赛)和年份筛选数据,还能提取赛车速度、刹车点、轮胎压力等遥测参数进行深度分析。开发者可通过可视化功能生成赛道热力图或性能对比图表,适合赛事研究、数据挖掘和教学场景使用。Fast-F1的代码文档和示例教程完整,用户可通过`pip install fastf1`快速安装,配合Jupyter Notebook等工具即可开展数据分析工作,是F1数据处理领域的重要工具。 (Python程序 / 资源传输下载)
- awesome-f1 - FastF1 - Python library for timing, telemetry, weather, sessions, and strategy analysis. The de facto standard for F1 data in Python. (Formula 1 / APIs and Libraries)
README
# FastF1
FastF1 is a python package for accessing and analyzing Formula 1 results,
schedules, timing data and telemetry.

## Main Features
- Access to F1 timing data, telemetry, sessions results and more
- Full support for the Ergast compatible [jolpica-f1](https://github.com/jolpica/jolpica-f1/blob/main/docs/README.md) API to access current and
historical F1 data
- All data is provided in the form of extended Pandas DataFrames to make
working with the data easy while having powerful tools available
- Adds custom functions to the Pandas objects specifically to make working
with F1 data quick and simple
- Integration with Matplotlib to facilitate data visualization
- Implements caching for all API requests to speed up your scripts
## Installation
It is recommended to install FastF1 using `pip`:
```commandline
pip install fastf1
```
Alternatively, a wheel or a source distribution can be downloaded from Pypi.
You can also install using `conda`:
```commandline
conda install -c conda-forge fastf1
```
#### Installation in Pyodide, JupyterLite and other WASM-based environments
FastF1 should be mostly compatible with Pyodide and other WASM-based
environments, although this is not extensively tested. Currently, the
installation and usage require some additional steps. You can find more
information and a guide in
[this external repository](https://github.com/f1datajunkie/jupyterlite-fastf1)
and the discussion in [this issue](https://github.com/theOehrly/Fast-F1/issues/667).
### Third-party packages
- R package that wraps FastF1: https://cran.r-project.org/package=f1dataR
Third-party packages are not directly related to the FastF1 project. Questions
and suggestions regarding these packages need to be directed at their
respective maintainers.
## Documentation
The official documentation can be found here:
[docs.fastf1.dev](https://docs.fastf1.dev)
## Supporting the Project
If you want to support the continuous development of FastF1, you can sponsor me
on GitHub or buy me a coffee.
https://github.com/sponsors/theOehrly
## Notice
FastF1 and this website are 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.