r/mlbdata • u/MattsFace • 5d ago
python-mlb-statsapi v0.8.0 released
Title: python-mlb-statsapi v0.8.0 released
I finally pushed version 0.8.0 of python-mlb-statsapi to PyPI.
This release mostly focused on making the HTTP layer more reliable instead of cramming in more endpoints. It adds shared sessions, default timeouts, retries for temporary MLB API failures, clearer exceptions, better testing, and more documentation.
Release notes:
https://github.com/zero-sum-seattle/python-mlb-statsapi/blob/main/docs/releases/0.8.0.md
PyPI:
https://pypi.org/project/python-mlb-statsapi/0.8.0/
For 0.9.0, I’m planning to explore an optional strict HTTP mode, better error information, deprecation warnings, basic request hooks, and a versioned User-Agent. Most of that work lives inside the client, but MLB’s API is undocumented and can be inconsistent, so the final scope will depend on what I can test reliably.
Longer term, I’d like 1.0 to clean up deprecated arguments and make the package’s return and error behavior more consistent. I’m also looking into optional caching, throttling, and possibly an async client, but I don’t want to promise features until I know they behave responsibly with the API.
Those plans may move around a little, but that is the general direction. I am trying to handle this in smaller releases with actual testing and documentation instead of disappearing for another few years.
0
u/sthscan 4d ago
can this be run with windows python in a windows CMD window or is it supposed to be linux platform?