{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/6"}],"enrichment":{"capability":"Scrapes baseball data from Baseball Reference, Baseball Savant, and FanGraphs, returning statcast pitch-level data, batting and pitching statistics, standings, and schedule information as pandas DataFrames.","skillfed_tags":["web-scraping","sports-analytics","data-retrieval"],"use_cases":["Retrieve pitch-level statcast data for a date range to analyze pitcher performance metrics like spin rate and release speed.","Pull multi-season batting or pitching statistics from FanGraphs for cohort analysis or player comparison studies.","Fetch a team's game-by-game schedule and results for a historical season to study win-loss patterns.","Query player-specific statcast data using playerid_lookup to build custom performance dashboards.","Combine standings data with schedule results to track division races and playoff implications over time."],"what_it_does":"Pybaseball is a Python library that automates retrieval of Major League Baseball data from three major public sources: Baseball Reference, Baseball Savant, and FanGraphs. Instead of manually navigating websites or parsing HTML, you call functions to fetch statcast pitch-level data, season-level batting and pitching statistics, team standings, game schedules, and awards data as pandas DataFrames. The library handles web scraping using beautifulsoup4, requests, and lxml under the hood.\n\nThe package is designed for baseball analysts, researchers, and enthusiasts who want to work with MLB data programmatically. Data is available at multiple granularities: individual pitches (via statcast), per-player per-season aggregates (via pitching_stats and batting_stats), and custom time ranges. It integrates with pandas and numpy for downstream analysis, and supports matplotlib for visualization. The aging maintenance status means web scraping may occasionally break if target sites change their structure, but the core functionality remains useful for historical and recent data analysis.","worth_installing":"Yes, with conditions. Install if you need to work with MLB data and can tolerate occasional scraping breakage when target websites change. The low install friction, permissive MIT license, and stable dependency stack make it straightforward to add. However, the aging maintenance status (last release 2023-09-08) means you should verify that the specific data sources you need are still accessible before committing to it for production pipelines. No known security vulnerabilities."},"id":"pybaseball","links":{"html":"https://skillfed.io/packages/pybaseball","md":"https://skillfed.io/packages/pybaseball.md","pypi":"https://pypi.org/project/pybaseball/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2023-09-08","license_spdx":null,"license_treatment":"permissive","name":"pybaseball","python_support":"unspecified","summary":"Retrieve baseball data in Python"},"popularity":{"monthly_downloads":290653,"position":7985,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.2.7"}
