pyds.parse

pyds.parse(byte_string)

Return a Label parsed from byte_string.

Parameters
  • byte_string (bytes or mmap.mmap)

    A string of bytes that contains a valid PDS label. Other data may follow the PDS label, but bytes must start with a valid PDS label.

Raises
  • ParsingError

    If byte_string does not start with a valid PDS label.