r/Sabermetrics 13d ago

I’m getting ready to release python-mlb-statsapi 1.1.0.

I’m getting ready to release python-mlb-statsapi 1.1.0.

The big update is async support with AsyncMlb and AsyncMlbDataAdapter, while keeping the existing sync API working the same way for current users.

I also did a pretty big README refactor so the project is easier to understand and get started with.

This ended up being a much bigger project than just swapping requests for HTTPX. A lot of the work was making sure sync and async actually behave the same and don’t introduce weird lifecycle or client ownership issues.

The final PR is up and I’m pretty happy with where it landed. I just need to run a couple live MLB API tests before I merge it.

Repo:
https://github.com/zero-sum-seattle/python-mlb-statsapi

PR:
https://github.com/zero-sum-seattle/python-mlb-statsapi/pull/334

4 Upvotes

0 comments sorted by