Skip to main content

AI agent for F1 data analysis using Claude Agent SDK and FastF1

Project description

PitLane Agent

AI agent for F1 data analysis using Claude Agent SDK and FastF1.

Quick Start

# Install with pip/uv
pip install pitlane-agent

# Create a workspace
pitlane workspace create --session-id my-analysis

# Fetch session data
pitlane fetch session-info --session-id my-analysis --year 2024 --gp Monaco --session R

# Analyze lap times
pitlane analyze lap-times --session-id my-analysis --year 2024 --gp Monaco --session Q --drivers VER --drivers HAM

Features

  • F1 Data Analysis - Lap times, tyre strategy, race telemetry, and more
  • Skills-Based Architecture - Specialized skills for different analysis domains
  • Workspace Management - Isolated analysis sessions with persistent data
  • FastF1 Integration - Direct access to comprehensive F1 data
  • Chart Generation - Matplotlib-based visualizations
  • Tool Permissions - Domain-restricted web access for safe agent operation

Skills

f1-analyst

Lap time and tyre strategy analysis with visualizations.

Examples:

pitlane analyze lap-times --session-id my-session --year 2024 --gp Monaco --session Q
pitlane analyze tyre-strategy --session-id my-session --year 2024 --gp Monaco --session R

f1-drivers

Driver information queries via the Ergast API.

Examples:

pitlane fetch drivers --year 2024
pitlane fetch driver-info --driver-code VER

f1-schedule

Event calendars and session schedules.

Examples:

pitlane fetch schedule --year 2024
pitlane fetch event-info --year 2024 --round 6

Workspace Management

# Create workspace
pitlane workspace create --session-id my-analysis

# List workspaces
pitlane workspace list

# Get workspace info
pitlane workspace info --session-id my-analysis

# Clean old workspaces (older than 7 days)
pitlane workspace clean --older-than 7

# Remove specific workspace
pitlane workspace remove --session-id my-analysis

Requirements

  • Python 3.11 or higher (up to 3.13)
  • Claude API key (for AI agent functionality)

Dependencies

  • Claude Agent SDK - AI agent orchestration
  • FastF1 - F1 data access and telemetry
  • Matplotlib - Chart generation
  • Click - CLI framework
  • OpenTelemetry - Optional tracing support

Architecture

The agent uses a skills-based architecture where each skill handles a specific F1 analysis domain:

  • Skills invoke Python scripts through the agent's tool system
  • FastF1 provides data access and telemetry processing
  • Matplotlib generates visualizations
  • Tool permissions restrict web access to approved F1 data sources

License

Apache-2.0

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pitlane_agent-0.1.2.dev3.tar.gz (48.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pitlane_agent-0.1.2.dev3-py3-none-any.whl (49.5 kB view details)

Uploaded Python 3

File details

Details for the file pitlane_agent-0.1.2.dev3.tar.gz.

File metadata

  • Download URL: pitlane_agent-0.1.2.dev3.tar.gz
  • Upload date:
  • Size: 48.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pitlane_agent-0.1.2.dev3.tar.gz
Algorithm Hash digest
SHA256 14cd98f91393e07d5b1355e7eb0623e199a6331c848ff7c9cab92fce6a957ae2
MD5 134713a47e91bb3dddccf64aa1d6454b
BLAKE2b-256 d8357ef3de0513ea15d2a5d85cec3e254e566ce4ead1ceb0df25dd7b2a682b79

See more details on using hashes here.

File details

Details for the file pitlane_agent-0.1.2.dev3-py3-none-any.whl.

File metadata

  • Download URL: pitlane_agent-0.1.2.dev3-py3-none-any.whl
  • Upload date:
  • Size: 49.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pitlane_agent-0.1.2.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 95800049c7e99f812752ac7a0b2f937422943519efb87ef10ab329ad1d287840
MD5 4e0bd37608b9b1850f31a4534afe3a56
BLAKE2b-256 a71b07e3526d6f26bd5cbda2624beb9bfa1d141f23cf3f28b7a396bb9274d6ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page