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 --workspace-id my-analysis

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

# Analyze lap times
pitlane analyze lap-times --workspace-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 --workspace-id my-analysis --year 2024 --gp Monaco --session Q
pitlane analyze tyre-strategy --workspace-id my-analysis --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 --workspace-id my-analysis

# List workspaces
pitlane workspace list

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

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

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

Requirements

  • Python 3.12, 3.13, or 3.14
  • 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.3.1.tar.gz (139.7 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.3.1-py3-none-any.whl (121.5 kB view details)

Uploaded Python 3

File details

Details for the file pitlane_agent-0.3.1.tar.gz.

File metadata

  • Download URL: pitlane_agent-0.3.1.tar.gz
  • Upload date:
  • Size: 139.7 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.3.1.tar.gz
Algorithm Hash digest
SHA256 97c6ed67c46bb2997b338069ebd7b791b3f7623c1b97de5fcb7349abdcc5fb61
MD5 22d5a66d0e41336fb998f6cae8754b85
BLAKE2b-256 301bae88fcdac2be4e230e711093df2398ee938a3fc86b23b66a373107f0f2b7

See more details on using hashes here.

File details

Details for the file pitlane_agent-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: pitlane_agent-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 121.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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fca4b46d700b33242c26a9600ec81f92c6d6760a90cbb1bd33d23fcc73e429c4
MD5 506f5ba97c15a5babf3fbfeb05cd74a3
BLAKE2b-256 3f16f2e3eb1ce24927ce33e5c3196fb8a5db0239970b3105518eeb40bf0501d8

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