Requirements
- Python: 3.11 or higher
- OS: Windows, macOS, or Linux
Quick Install
1
Choose a package manager
tif1 is available on PyPI. Install it with a package manager.2
Install the optional extras
Add the
polars extra for the Polars backend.3
Verify the installation
Run this check to confirm that the installation works:
Configuration
Environment Variables
Configuretif1 with environment variables. They are useful in CI/CD environments.
The default cache directory follows the FastF1 platform layout. It uses
tif1 as the application directory:
- Windows:
%LOCALAPPDATA%/Temp/tif1 - macOS:
~/Library/Caches/tif1 - Linux and other POSIX systems:
~/.cache/tif1when~/.cacheexists, otherwise~/.tif1
TIF1_CACHE_DIR, or set cache_dir in .tif1rc, to override the default.
Config File (.tif1rc)
For permanent settings, create a.tif1rc (JSON) file in the home directory:
Advanced Troubleshooting
HTTP/2 SSL Errors
HTTP/2 SSL Errors
tif1 uses niquests for HTTP/2 support. If SSL errors occur, update the system openssl version. Also check that the certificate store has a correct configuration.SQLite Database Locking
SQLite Database Locking
“Database is locked” errors show that multiple processes write to the cache at the same time.
tif1 uses WAL mode to reduce this problem. Very high concurrency on slow disks can still trigger the error.Polars Version Mismatch
Polars Version Mismatch
Use
polars>=1.40.1 to avoid compatibility issues with the tif1 categorical optimization.Related Pages
Quickstart
Start using tif1
Configuration
Configure tif1
Troubleshooting
Solve common issues
Environment Variables
Configure with environment variables