The most common type of GPS data these days is the Garmin GPX format. We covered this XML format in Chapter 4, Geospatial Python Toolbox, which has become an unofficial industry standard. Because it is an XML format, all of the well-documented rules of XML apply to it. However, there is another type of GPS data that pre-dates XML and GPX, called the National Marine Electronics Association (NMEA). This data is ASCII text sentences that are designed to be streamed.
You occasionally bump into this format from time to time because even though it is older and esoteric, it is still very much alive and well, especially for communicating ship locations via the Automated Identification System (AIS), which tracks ships globally. But as usual, you have a good option in pure Python. The pynmea module is available on PyPI. The following code is a small sample of NMEA sentences...