This is a python package for the minecraft java query protocol, which implements methods for the basic stat and full stat requests as described on Minecraft Wiki and returns the structured reply in a dictionary. For access to e.g. a server icon you will need to use the Server List Ping, which is NOT part of this module.
You may be interested in mcstatus if you want complete functionality across versions.
Querymc is available on PyPi and can be installed with:
python3 -m pip install mcstatus