Dependency Changes
-
Support for Python 3.9 is dropped. Python 3.10 is the new minimum version.
-
Pydantic is added as a new dependency.
-
The minimum required versions for selected dependencies are increased as follows:
- matplotlib>=3.8.0
- numpy>=1.26.0
- pandas>=2.1.1
- requests>=2.30.0
- scipy>=1.11.0
New Features
-
Missing speed trap values are now filled in by FastF1 when possible (#834).
-
A new submodule
fastf1.exceptionsis introduced. This submodule contains all public
custom exceptions going forward. Importing exceptions from other parts of FastF1 is deprecated. -
FastF1 is now able to auto-generate (with limitations) team name and color constants that are
required for full functionality of thefastf1.plottingsubmodule. This is done based on
data from the F1 API. It serves as a fallback in case of team (name) changes or when plotting
data of a future season where FastF1 has no built-in constants (yet).
Note that auto-generated team name constants may be imperfect. When auto-generated,
all color schemes will follow the 'official' color scheme. (#848) -
Preliminary team name and color constants for 2026 have been added. Further changes may be
made at the beginning of the season to better capture the teams identities and branding and
to make the color palette more distinguishable. (#848)
Bug Fixes
-
Prevent support race drivers from being included in the driver list and result data. This
previously occurred in some edge cases due to bad source data. (#836) -
RateLimitExceededErroris now raised as intended an no longer captured and hidden by
internal error handling (#748, #842).
Deprecations
-
Importing
ErgastError,ErgastJsonErrorandErgastInvalidRequestErrorfrom
fastf1.ergast.interfaceis deprecate. Import fromfastf1.exceptionsinstead. -
Importing
NoLapDataError,DataNotLoadedErrorandInvalidSessionErrorfrom
fastf1.coreis deprecate. Import fromfastf1.exceptionsinstead. -
Importing
RateLimitExceededErrorfromfastf1is deprecated. Import from
fastf1.exceptionsinstead.
Note: Deprecated API is removed two minor releases after its deprecation.