The tif1 CLI provides a powerful command-line interface for accessing Formula 1 data directly from your terminal. Built with Typer and Rich, it offers an intuitive and visually appealing way to explore F1 events, sessions, drivers, and lap data.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TracingInsights/tif1/llms.txt
Use this file to discover all available pages before exploring further.
Installation
The CLI is included when you install tif1:Quick Start
List all events for a specific year:Basic Usage
The CLI follows a simple command structure:Getting Help
View all available commands:Key Features
Rich Terminal Output
All commands use Rich formatting for beautiful, readable output:- Color-coded tables and text
- Progress indicators for data loading
- Structured information display
Fast Data Access
The CLI leverages tif1’s high-performance data pipeline:- Automatic caching for instant repeat queries
- CDN-backed data fetching
- Optimized DataFrame operations
Event and Session Navigation
Easily explore the F1 calendar hierarchy:- List events by year
- View sessions for an event
- Drill down into session details
Driver and Lap Analysis
Access detailed performance data:- Driver rosters with team information
- Fastest lap times by driver
- Session-wide fastest lap rankings
Common Workflows
Explore a Race Weekend
Check Specific Driver Performance
Manage Cache
Event Name Matching
Event names are flexible and case-insensitive. The following all work:Session Types
Valid session names include:Practice 1,Practice 2,Practice 3QualifyingSprint Qualifying(for sprint weekends)SprintRace
FP1,FP2,FP3Q,QualifyingS,SprintR,Race
Year Range
The CLI supports data from 2018 to the current season. Attempting to query years outside this range will result in an error.Performance Tips
Use Cache Effectively
First-time queries download data from the CDN. Subsequent queries use cached data for instant results:Check Cache Size
Monitor your cache to manage disk space:- Cache directory location
- Number of cached files
- Total cache size in MB
Error Handling
The CLI provides clear error messages for common issues:Debug Mode
Enable detailed logging for troubleshooting:- Enables DEBUG-level logging
- Shows all HTTP requests and cache operations
- Displays data loading progress
- Reports session statistics
Next Steps
Command Reference
Detailed documentation for all CLI commands
Python API
Use tif1 programmatically in Python
Caching Guide
Learn about cache configuration and management
Examples
See real-world usage examples