skillfed

pyrtcm

RTCM3 protocol parser

pyrtcm v1.2.0 124.4K downloads/30d#11,869 on PyPI114
Permissive license BSD-3-Clause Active released

What it is and what it does

pyrtcm is a Python 3 parser for the RTCM3 differential GNSS protocol, a proprietary standard published by the Radio Technical Commission for Maritime Services. It reads RTCM3 messages from streams (serial, file, or socket), parses them into immutable RTCMMessage objects with named data fields (DF002, DF003, etc.), and exposes those fields as object attributes. The parser handles multiple signal messages (MSM) with configurable output formats (RINEX codes or frequency bands) and supports validation, error handling modes, and extensibility for additional message types.

Typical usage involves creating an RTCMReader with a data stream and iterating through messages, or parsing individual binary RTCM3 frames directly. The library depends only on pynmeagps and installs as a pure Python wheel, making it portable across Windows, macOS, and Linux. It is actively maintained, supports Python 3.10 through 3.14, and carries no known security vulnerabilities.

Use it for:

  • Integrate RTCM3 correction data from a base station into a real-time kinematic GNSS application.
  • Log and analyze RTCM3 messages from a stream for debugging or auditing differential GPS streams.
  • Parse archived RTCM3 binary files to extract and validate satellite correction fields for post-processing.
  • Build a GNSS receiver application that consumes RTCM3 messages and applies differential corrections.
  • Extend the parser with custom message types for proprietary or vendor-specific RTCM3 variants.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Parses RTCM3 differential GNSS protocol messages into structured data fields, enabling reading and serialization of GPS/GNSS correction data from streams, files, or sockets.

Yes. pyrtcm is production-stable, actively maintained, has low install friction, carries no known vulnerabilities, and is the only general-purpose RTCM3 parser in the Python ecosystem. Install it if you work with differential GNSS systems, RTK applications, or need to parse RTCM3 correction streams. The BSD-3-Clause license imposes no restrictions on use or redistribution.

Install

pyrtcm on PyPI

pip

pip install pyrtcm

uv

uv add pyrtcm

poetry

poetry add pyrtcm

Installing pyrtcm

Before you install

Low friction: pure Python wheel with a single runtime dependency. Active maintenance with a release 31 days old and recent commits. Supports Python 3.10 through 3.14.

License in practice

BSD-3-Clause (permissive): you can use, modify, and distribute this package freely in commercial or private projects, provided you include the license notice and disclaimer.

Quickstart

from pyrtcm import RTCMReader, ERR_LOG

rtr = RTCMReader(stream, quitonerror=ERR_LOG, labelmsm=1)
raw_data, parsed_data = rtr.read()
if parsed_data is not None:
    print(parsed_data)

Requires Python >=3.10; requires an active stream object (file, serial, or socket) that supports read(n) -> bytes method.

Verify before relying

  • Which RTCM3 message types are currently implemented beyond the reference to RTCM_MSGIDS in rtcmtypes_core.py.
  • Performance characteristics when parsing high-frequency RTCM streams or large batch files.
  • Thread-safety guarantees beyond the statement that RTCMReader.read() is thread-safe if the stream is thread-safe.

Package facts

License BSD-3-Clause (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 1 — pynmeagps
Maintenance actively maintained — 31 days since the last release
Last repo commit
First released
Downloads 124,447/month — #11,869 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pyrtcm-1.2.0-py3-none-any.whl

Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: MacOS XEnvironment :: Win32 (MS Windows)Environment :: X11 ApplicationsIntended Audience :: DevelopersIntended Audience :: End Users/DesktopIntended Audience :: Science/ResearchOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: GISTopic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities

Tags

RTCM3 parserGNSS differential correctionGPS protocol parsingDGPS message decoderRTCM message readersatellite correction dataGNSS protocol library
gnss-gpsprotocol-parserdifferential-correction

More Python Modules packages