"""A file-like interface to NMEA parsing. >>> import ais >>> import json >>> with ais.open('test/data/typeexamples.nmea') as src: ... msg = next(src) ... print(json.dumps(next(msg), indent=4, sort_keys=True)) { "decoded": { "day": 0, "fix_type": 1, "hour": 24, "id": 4, "md5": "7ecb187e7edc1789de436b0c2ccf2963", "minute": 60, "mmsi": 3669713, "month": 0, "position_accuracy": 0, "raim": false, "repeat_indicator": 0, "second": 60, "slot_number": 2105, "slot_timeout": 2, "spare": 0, "sync_state": 1, "transmission_ctl": 0, "x": 181.0, "y": 91.0, "year": 0 }, "line_nums": [ 1 ], "line_type": "USCG", "lines": [ "!AIVDM,1,1,,A,403Ovl@000Htt