Skip to main content

Installation

The CLI is automatically installed with tif1:
pip install tif1
```yaml

## Commands

### events

List all events for a year:

```bash
tif1 events 2025
```yaml

### sessions

List all sessions for an event:

```bash
tif1 sessions 2025 "Abu Dhabi Grand Prix"
```yaml

### drivers

List all drivers in a session:

```bash
tif1 drivers 2025 "Abu Dhabi Grand Prix" "Practice 1"
```text

### fastest

Show fastest laps:

```bash
# All drivers
tif1 fastest 2025 "Abu Dhabi Grand Prix" "Qualifying"

# Specific driver
tif1 fastest 2025 "Abu Dhabi Grand Prix" "Qualifying" --driver VER
```yaml

### cache-info

Show cache information:

```bash
tif1 cache-info
```yaml

### cache-clear

Clear cache:

```bash
tif1 cache-clear --yes
```yaml

### version

Show tif1 version:

```bash
tif1 version
```python ### debug

Enable debug logging:

```bash
tif1 debug 2025 "Abu Dhabi Grand Prix" "Practice 1"
```python

## Examples

```bash
# Get 2025 events
tif1 events 2025

# Get sessions for Abu Dhabi GP
tif1 sessions 2025 "Abu Dhabi Grand Prix"

# Get drivers in Practice 1
tif1 drivers 2025 "Abu Dhabi Grand Prix" "Practice 1"

# Get fastest laps in Qualifying
tif1 fastest 2025 "Abu Dhabi Grand Prix" "Qualifying"

# Get VER's fastest lap
tif1 fastest 2025 "Abu Dhabi Grand Prix" "Qualifying" -d VER

# Check cache
tif1 cache-info

# Clear cache
tif1 cache-clear -y
```python