r/mlbdata • u/MattsFace • 9d ago
Looking for feedback on python-mlb-statsapi v1.1.0 before release
Hey guys I maintain python-mlb-statsapi, a Python wrapper for the MLB Stats API, and I’m working on v1.1.0.
The biggest addition is first-class async support with AsyncMlb. I’m also updating and cleaning up the README/docs so the project is easier to understand and use.
Before I release it, I’d really appreciate some outside eyes on it.
There is no ego here. If something about the API feels weird, the async design looks wrong, the docs are confusing, the tests seem excessive, or there’s something I’m overengineering, I want to hear it.
Honestly I’d love to talk about retry logic. I want to make something that works well for us.
I’ve got a real cool project that uses my module coming to show you guys. Async will be awesome for all of us.
GitHub: @Mattsface
Repo:
https://github.com/zero-sum-seattle/python-mlb-statsapi
Send me GitHub names!
1
u/MattsFace 9d ago
I’m also over looking how to stream line stats outside of the module if that makes more sense.
3
u/JamminOnTheOne 9d ago
I'm excited for async support. I haven't used python-mlb-statsapi much yet, because just making the http calls myself has been good enough. But I have some projects that make many HTTP calls, and I'd prefer to make those calls async. So async support in your library will be the feature that gets me to give it a real go.
I read the docs for info about the new async support. But I don't quite grasp how to make the calls. Can you share an example of code that uses it? Thanks!