Tools for acquiring and analyzing baseball data from sources such as Statcast, Fangraphs, and Baseball-Reference.
pastime
can be installed via pip:
pip install pastime
Due to the large file size, the Chadwick Bureau lookup table is not installed by default. To download it, follow these steps:
pip show pastime
This should print something like this to the screen:
Name: pastime
...
Location: <INSTALLATION_LOCATION>
mkdir "<INSTALLATION_LOCATION>/pastime/data"
python -m pastime.lookup --table --refresh -o "<INSTALLATION_LOCATION>/pastime/data/lookup_table.csv"
If you ever believe that the table is out of date and want to update it, re-run the command from step 3.