Registry / serialization / pyrtcm

pyrtcm

JSON →
library1.1.12pypypi✓ verified 86d ago

PyRTCM is a RTCM3 protocol parser and generator for Python. Version 1.1.12 supports Python >=3.10. It provides classes for reading, writing, and manipulating RTCM3 messages, commonly used in GNSS applications. Release cadence is irregular.

pip install pyrtcm
INSTALL
IMPORT
SIG · PYRTCM
P
pyrtcm
serializationpythonv1.1.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RTCMReader
from pyrtcm import RTCMReader
from pyrtcm.rtcm import RTCMReader
RTCMReader is exported at package level, not from submodule rtcm.
RTCMMessage
from pyrtcm import RTCMMessage
Correct import for message object.
RTCMStream
from pyrtcm import RTCMStream
from pyrtcm.stream import RTCMStream
RTCMStream is exported at package level.

Basic usage: create an RTCMReader from bytes and iterate over messages.

from pyrtcm import RTCMReader # Read from a binary string data = b'\xd3\x00...' # RTCM3 raw bytes rtr = RTCMReader(data) for (raw, parsed) in rtr: if parsed: print(parched.identity) print(parched)
Debug
Known issues
gotchaRTCMReader expects bytes, not str. Passing a string will raise TypeError or silently fail.
fix
Use bytes or a bytes-like object. If reading from a file, open in binary mode.
affects: all
gotchaRTCMReader is an iterator that yields tuples (raw_bytes, parsed_message). The second element can be None if parsing fails. Always check parsed is not None before accessing attributes.
fix
Iterate as: for raw, parsed in reader: if parsed: ...
affects: all
gotchaOnly RTCM3 messages are supported; previous versions (RTCM2) are not handled. Attempting to parse RTCM2 data will result in errors.
fix
Ensure input data conforms to RTCM3 standard (0xD3 sync byte).
affects: all
gotchaWhen installing via pip, ensure wheel is available. On some platforms missing wheel may cause compilation issues for the C extension.
fix
Install wheel: pip install wheel, then retry pip install pyrtcm.
affects: >=1.0.0
Errors
Common errors & fixes
TypeError: a bytes-like object is required, not 'str'
Passing a string instead of bytes to RTCMReader.
fix
Encode the string to bytes: data = data_str.encode('latin-1') or open file in binary mode 'rb'.
pyrtcm.exceptions.RTCMStreamError: something went wrong
Malformed RTCM data or incomplete stream (e.g., missing sync byte).
fix
Ensure the data is a valid RTCM3 stream starting with 0xD3. Use RTCMReader with proper bytes input.
ImportError: cannot import name 'RTCMReader'
Older version of pyrtcm (<1.0) may have different API. Or installed package is incomplete.
fix
Upgrade to latest version: pip install --upgrade pyrtcm. Check import path: from pyrtcm import RTCMReader.
AttributeError: 'NoneType' object has no attribute 'identity'
Attempting to access parsed message attributes when parsed is None (parsing failed).
fix
Always check if parsed is not None before accessing attributes.
Upgrade
Version history
1.1.12latest on PyPI · released Mar 21, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
pyrtcm — pip install pyrtcm · libregistry