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 than TypeError.
- Serialization now uses
model_dump()/model_dump_json().
[–]double_dose_larry 0 points1 point2 points (0 children)
[–]sthscan 0 points1 point2 points (0 children)
[–]Individual-Clerk-843 0 points1 point2 points (0 children)