Python 3 class for neo-6M GPS
geopy library if you want to geolocalize your gps point
https://github.com/geopy/geopy
from neo6 import GpsNeo6
gps=GpsNeo6(port="/dev/ttyUSB0",debit=9600,diff=2) #diff is difference between utc time en local time
while True:
gps.traite()
print(gps) # print all info
print(gps.latitude,gps.longitude)
heure: 15h49m20s
latitude: 41.5906788889
longitude: 8.7393938889
vitesse: 0.251 km/h
altitude: 147.4 metre(s)
precision: 1 metre(s)
Nombre de satelites vue: 13
Sorry for french text in results