The data used in this package is provided by SABR and is licensed under CC BY-SA 3.0. The data was last updated based on the source data available from https://sabr.org/lahman-database/ on 2025-07-18.
The surrounding software is licensed under the MIT License.
Installation
The pylahman package can be installed via pip.
pip install pylahman
Documentation and Usage
Each table in the Lahman Baseball Database has a corresponding data loading function in pylahman with the same name. For example, the Pitching table is accessed via the Pitching() function. Descriptions of each data table can be found in the documentation for the corresponding data loading function in the API Reference.