{"library":"pybaseball","title":"pybaseball","description":"pybaseball is a Python library for retrieving and analyzing baseball data from sources like Baseball Savant, FanGraphs, and Baseball-Reference. Version 2.2.7 (current) fixes FanGraphs leaderboard URLs and adds new features like PitchingBot/Stuff+ stat enums and strike zone plotting. Release cadence is irregular, with minor patches every few months.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pybaseball"],"cli":null},"imports":["from pybaseball import statcast","from pybaseball import batting_stats","from pybaseball import playerid_lookup"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pybaseball import statcast\nimport pandas as pd\n# Disable cache to avoid stale data\nfrom pybaseball import cache\ndf = statcast(start_dt='2024-05-01', end_dt='2024-05-02')\nprint(df.head())","lang":"python","description":"Retrieve Statcast data for two days in May 2024. Cache is disabled by default, but if enabled, use cache.disable() to ensure fresh data.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}