What’s coming in python-mlb-statsapi v1.1.0

What’s coming in python-mlb-statsapi v1.1.0

Now that 1.0 is out and I’ve been cleaning up a few bugs, I’ve started planning what I want to tackle in 1.1.0.

The big one is first-class async support.

The goal is to eventually support something like:

from mlbstatsapi import AsyncMlb

async with AsyncMlb() as mlb:
    team = await mlb.get_team(136)

without changing how the existing synchronous Mlb client works.

I don’t want async to become a completely separate implementation either. The plan is for the sync and async clients to share the same models, parsing, exceptions, and endpoint behavior, with separate transport layers underneath.

I’m going to start small with the async adapter and a couple endpoints, get the architecture right, add sync/async parity tests, and then expand endpoint coverage from there.

I also did some pretty rapid development recently with coding agents, which helped me move the project forward quickly, but there are definitely areas I want to go back through and clean up. Some of 1.1.0 will be tightening up the structure, documentation, and anything that feels like it grew too quickly.

I plan to write most of this release myself.

I’ve realized I don’t want to get into the habit of using AI as a button that just writes everything for me. I’m a backend/infrastructure engineer and async Python is something I understand conceptually, but I want a much stronger mental model of what is actually happening underneath it.

I think slowing down a little, cleaning up some of the rapid development, and actually working through the async architecture myself will make both me and the project better.

Should be fun.

Do you guys have any other thoughts? things that should be addressed or improved in future releases?

reddit.com
u/MattsFace — 10 days ago

What’s coming in python-mlb-statsapi v1.1.0

What’s coming in python-mlb-statsapi v1.1.0

Now that 1.0 is out and I’ve been cleaning up a few bugs, I’ve started planning what I want to tackle in 1.1.0.

The big one is first-class async support.

The goal is to eventually support something like:

from mlbstatsapi import AsyncMlb

async with AsyncMlb() as mlb:
    team = await mlb.get_team(136)

without changing how the existing synchronous Mlb client works.

I don’t want async to become a completely separate implementation either. The plan is for the sync and async clients to share the same models, parsing, exceptions, and endpoint behavior, with separate transport layers underneath.

I’m going to start small with the async adapter and a couple endpoints, get the architecture right, add sync/async parity tests, and then expand endpoint coverage from there.

I also did some pretty rapid development recently with coding agents, which helped me move the project forward quickly, but there are definitely areas I want to go back through and clean up. Some of 1.1.0 will be tightening up the structure, documentation, and anything that feels like it grew too quickly.

I plan to write most of this release myself.

I’ve realized I don’t want to get into the habit of using AI as a button that just writes everything for me. I’m a backend/infrastructure engineer and async Python is something I understand conceptually, but I want a much stronger mental model of what is actually happening underneath it.

I think slowing down a little, cleaning up some of the rapid development, and actually working through the async architecture myself will make both me and the project better.

Should be fun.

Do you guys have any other thoughts? things that should be addressed or improved in future releases?

reddit.com
u/MattsFace — 10 days ago

How do I get over being self-consensus about my mental health when it comes to dating?

Hey guys,

40 year old straight male here. My 30s were a rough time. I was hopelessly self medicating with Benzodiazepines and alcohol due to the stress of a career. I lost a good relationship because of it.

Without giving you guys a whole story about my past I've been on a long journey the past six years. I checked my self into treatment and got clean all of that substance abuse. I don't have a solid six years of sobriety under my belt, but I'm getting so much more consistent and if / when a relapse happens (it's only been booze at this point). I catch my self and pull my self right out of it. Then I meet with my medical professional to go over what occurred and also go into some deep self reflection.

I've learned to handle my mental health like an adult. It doesn't mean its perfect, but I journal, I eat right, I practice mindfulness activities, exercise, etc, etc. I've made some much progress in learning to manage my ADHD and emotions.

6 years ago I weighed 240 pounds, and now I weigh 156 pounds.

Friends always tease me about how I don't even try to date despite being a handsome, funny, and intelligent man among other things.

However, I still have this deep down fear to let a woman close to me. Every woman I've cared about I've chased a way because my mental health gets away from me. I always figure my mental health problem out (or at least figured out how to manage it) and get back on track with many of the resources I've learned to depend on over the years.

It would be nice to feel good about dating woman again. I feel like I have a lot to offer and would like to share a life with someone.

What are your guys thoughts? How would you approach this? Feel free to ask questions.

I just feel like a man with mental health challenges is toxic despite his intelligence and work ethic to manage it. I don't need a woman to hold my hand, but some understanding would be nice.

reddit.com
u/MattsFace — 15 days ago
▲ 15 r/mlbdata+1 crossposts

python-mlb-statsapi 0.9.0: Better HTTP errors and a path to 1.0

I’ve been working on version 0.9.0 of my Python MLB Stats API wrapper, and the final release PR is ready for review.

I’ll go through the code again after I finish my shit cashiering shift today. I miss working tech…

Anyway,

This release adds a public retry policy, richer HTTP errors, an optional strict mode, compatibility warnings, and a versioned User-Agent while keeping the existing return behavior as the default.

It also starts preparing users for a possible breaking change in 1.0.0. Right now most non-404 4xx responses return an empty result for compatibility. In 1.0.0, strict HTTP handling may become the default, meaning those responses would raise an actual exception instead.

The project also has a much stronger offline test suite and release validator now.

I’d appreciate any feedback before I merge and publish it.

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

u/MattsFace — 16 days ago
▲ 49 r/mlbdata+1 crossposts

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.

u/MattsFace — 19 days ago
▲ 1 r/kroger

I've got a second job now and want to begin to reduce my hours at QFC.

Hey guys,

I've got a second part time job that provides more opportunity and enjoyment out of my time. It however doesn't offer health insurance.

I was hired on at QFC to be a backup bookkeeper, but told them I wouldn't mind some extra hours cashiering. Also I really like and am friends with the bookkeeper that trained me and taught me retail. I'm not ready to walk out on her yet.

I'm very positive the contract I signed said "Part time".

So far I've been slowly changing my long term availability time on UKG as I pick up shifts at my other job.

I should probably review my contract and call my union rep right?

So far my requests for long term availability time have been accepted. We'll see if this next one comes through because that'll only give them four days they can schedule me.

I want to get down to two book keeping shifts and a eight hour cashiering shift. I've been very reliable compared to many of the other employees so I've been using that as a bit of leverage.

reddit.com
u/MattsFace — 1 month ago
▲ 69 r/kroger

This place is worse than high school

Hey guys,

I gotta vent real fast.

I was hired as a backup bookkeeper with zero retail experience. I have 14 years of tech and development experience but have been struggling in interviews.

I’ll figure it out but this experience has been an eye opening and humbling experience. Half my coworkers show up late (don’t call) or call out allll the time. Everyone is way too nice and just puts up with it. I’m a back up bookkeeper and cashier for the hours. I’m getting 40 a week which is awesome but Jesus Christ.

How do people spend their lives doing this!? My customer services skills are amazing for someone who has never done this before but wtf.

I’m loosing my mind guys. My current mindset is “it’s just groceries”, but I like to make friends with my coworkers, but some of these people are so stupid and lazy…. They take this crap way too seriously. Not everyone I have some great coworkers, but some really drag us down I feel like.

I’m not hating and I understand but how do I go about this??
I’m looking for another full time job or a second part time job so I don’t have to cashier as much but this is ridiculous.

I’m really not trying to judge but today was so rough. I had my 6 AM and 8 AM cashiers call out (again) and I had to do the books AND cover for them all for minimum wage.

Uplift me please

reddit.com
u/MattsFace — 2 months ago

Level 100

:)

Lots of people goop I wasn’t expecting tonight either

u/MattsFace — 3 months ago
▲ 136 r/Marathon

I love this game

Can I get a fist bump?

Seriously I’ve been going through some rough shit the last two months. This game gives me something to decompress too.

I can’t wait for Season 2 everyone let’s have some fun.

reddit.com
u/MattsFace — 3 months ago