It is pointless when you add CachyOS repos to the mix, there's no API for that, when writing my script I went with generic local db probing instead.
Yeah, I did write a solution to that, I initially wanted to post it here, but it's just not worth the effort for so little performance uplift in my case and a waste of time waiting for tracking verification to finish so I just abandoned the idea without optimising it.
I don't know the lore around your work here, I don't think anyone would be offended by a python script, but meh, the world has become so fragile in recent years that I’ve simply lost faith in people