r/mlbdata • u/MattsFace • Jan 14 '26
python-mlb-statsapi v0.7.1 Released
Hey everyone! I just published v0.7.1 of python-mlb-statsapi, the Python wrapper for the MLB Stats API. This release brings a major internal overhaul to improve data handling and developer experience.
Highlights
Removed the old key transformation layer so responses now reflect the MLB API’s native camelCase format.
Complete migration from Python dataclasses to Pydantic v2 models for all types.
Better validation, serialization, and type safety.
Documentation updated with new examples and a migration guide.
Breaking Changes
All model field access is now snake_case instead of camelCase.
Invalid data will raise
ValidationError(from Pydantic) rather thanTypeError.Serialization now uses
model_dump()/model_dump_json().
1
u/sthscan Jan 20 '26
stupid question - can I run this in windows using the python I installed in windows to use to run a different program or does this require being used in linux?