I wrote this originally for work, so that we could have a page on our IoT dashboard which would check on what the current packages in our repository were and whether or not thee packages currently installed on a given device were up-to-date. It has gotten enough organic outside attention that other people started giving me pull requests, though, so I figured I'd share it with the wider community!