Skip to main content

A Python package for parsing NMEA data from GPS devices

Project description

NmeaParseC

A Python package for parsing NMEA data from GPS devices. This package provides tools to read and process NMEA sentences from GPS log files, with support for common NMEA message types like GPRMC and GPGGA.

Features

  • Parse NMEA sentences from files
  • Support for GPRMC and GPGGA message types
  • Convert coordinates between DDMM.MMMMM and decimal degrees
  • Calculate distances between GPS points using the Haversine formula
  • Extract timestamps, coordinates, and other GPS data
  • Type hints and dataclass support for better code organization

Installation

pip install nmeaparsec

Usage

from nmeaparsec import NMEAParser

# Create a parser instance
parser = NMEAParser()

# Parse a NMEA file
gps_data = parser.parse_file("path/to/your/nmea/file.nmea")

# Get coordinates
coordinates = parser.get_coordinates()

# Get timestamps
timestamps = parser.get_timestamps()

# Calculate distances between consecutive points
distances = parser.get_distances()

Supported NMEA Sentences

  • GPRMC (Recommended Minimum Navigation Information)
  • GPGGA (Global Positioning System Fix Data)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nmeaparsec-0.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nmeaparsec-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file nmeaparsec-0.1.0.tar.gz.

File metadata

  • Download URL: nmeaparsec-0.1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for nmeaparsec-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c4f66201a7de4ba6fbf48a9ac78726e50bf1c0e6cda7f4ed8ee3324693020900
MD5 52e933eaad9883bf26ea9b7a712d6e44
BLAKE2b-256 5d43ec80509c29d59090f73fc8d723ba6d6f0c63a9f4146f026ec7d4e3702138

See more details on using hashes here.

File details

Details for the file nmeaparsec-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nmeaparsec-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for nmeaparsec-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a0c01463002f4b3d4195cc41775a08b3976d5888c882eb20b88f0db1763f3e6
MD5 60033e37d9f4f8ad8b20f70cfa2c2896
BLAKE2b-256 c19fc417a9b5a60ead6934f9c18c47150917bd8b81d4c95d688e055ecbad3120

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page