get_testing_session#

fastf1.get_testing_session(year, test_number, session_number, *, backend=None)[source]#

Create a Session object for testing sessions based on year, test event number and session number.

Parameters:
  • year (int) – Championship year

  • test_number (int) – Number of the testing event (usually at most two)

  • session_number (int) – Number of the session within a specific testing event. Each testing event usually has three sessions.

  • backend (Optional[Literal['fastf1', 'f1timing']]) –

    select a specific backend as data source, options:

    • 'fastf1': FastF1’s own backend, full support for 2018 to now

    • 'f1timing': uses data from the F1 live timing API, sessions

      for which no timing data is available are not listed (supports 2018 to now)

    When no backend is specified, 'fastf1' is used as a default and f1timing is used as a fallback in case the default is not available.

Return type:

Session

Added in version 2.2.