PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Baseball Python Packages

Python packages with the GitHub topic baseball. Sorted by monthly downloads, with stars and forks.
jldbc
pybaseball

Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)

139K 2K 430
benjamincrom
baseball

Library to download, analyze, and visualize events in Major League Baseball games

6K 107 16
nicko4o
polars-baseball

Asynchronous Python library for retrieving baseball data (Statcast, Baseball Reference, FanGraphs, Lahman, Retrosheet, MLB Stats API) as Polars DataFrames.

3K 0 0
rozelie
pyretrosheet

Load, analyze, and enrich retrosheet.org MLB data.

3K 4 1
cbwinslow
chadwickpy

Pure-Python port of the Chadwick baseball tools (cwevent, cwgame, cwdaily, cwsub, cwcomment, cwbox). pip install, no compiler.

2K 0 0
yasumorishima
savant-extras

Python package: Baseball Savant leaderboards with date ranges and season checks (bat tracking, ABS challenges, minors)

1K 2 0
daviddalpiaz
pylahman

⚾ Python package for access to the Lahman Baseball Database

1K 5 1
zachpanz88
mlbgame

A Python API to retrieve and read MLB GameDay data

746 551 109
hedgertronic
fungo

Python tools for baseball data from Statcast, the MLB Stats API, FanGraphs, Baseball-Reference, Retrosheet, and the Lahman Database.

742 3 0
mgula57
mlb-showdown-bot

Showdown Bot is the simplest way of creating custom MLB Showdown cards. Simply enter a player's name, season, and image. The Showdown Bot takes care of the rest. Check it out https://showdownbot.com

643 37 5
yasumorishima
baseball-field-viz

Python package: matplotlib baseball field, Statcast spray charts and strike-zone plots

566 3 0
CodeMateo15
ncaa-bbstats

ncaa_bbStats is an open-source Python package for retrieving, parsing, and analyzing college baseball data: NCAA Division I, II, and III team statistics (2002–2026), player statistics (2021–2026), MLB Draft history (1965–2026), draft detail with signing bonuses (2021–2026), and more!

546 11 0
JacobLee23
sabrmetrics

A library of web-scraping software for popular SABRmetrics websites.

472 4 0
joesmi9
baseballdc

Baseball Data Center

447 0 0
ss77995ss
baseball-stats-python

A package that get baseball data

407 15 3
i-am-david-weinstein
espn-fantasy-mcp

ESPN Fantasy MCP

285 1 2
bdilday
pychadwick

Python package to interface with chadwick library

255 10 4
droher
boxball-schemas

Prebuilt Docker images with Retrosheet's complete baseball history data for many analytical frameworks. Includes Postgres, cstore_fdw, MySQL, SQLite, Clickhouse, Drill, Parquet, and CSV.

244 134 22
evansloan
sports-py

A simple Python package to gather live sports scores

228 63 17
harlanljones
saberkit

A Rust statistics engine for baseball sabermetrics (plus/minus stats, percentile rankings) exposed to Python via PyO3 with zero-copy Arrow interchange. Zero required runtime Python dependencies—bring your own data source.

201 0 0
bdilday
pybbda

Python Baseball Data and Analysis

198 36 3
prs-watch
hof

Not practical tool to make Baseball Hall of Fame as you want.

195 1 0
JLpython-py
fangraphs

A library for scraping data off of the FanGraphs webpages.

184 17 1
kmac
mlbv

Command-line interface MLB game information. Game schedule, scores, and standings

168 59 26
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology