I haven’t kept up with python too much over the past year or two and learned a couple new things from this code. Namely, match/case and generic class typing. Makes me wonder what else is new, off to the python docs!
very good example to learn async , will try it
It's 736 LOC now.
Last 2 lines, 735 and 736: