Px4 mini -gps module

is there any python code or package that i can use in order to get the location data the the gps module of pixhawk 4 mini send?, configuration the module?

new to this hardware.

Pymavlink is one that can be used.
Perhaps this will be of help:
https://mavlink.io/en/mavgen_python/

Good luck