Rle#

class Rle#

Rle encoding and decoding.

classmethod decode(data: Optional[str]) str#

Decodes RLE encoded string.

Supports RLE groups, ie strings like “3(a2b)4b”

classmethod encode(line: str) str#

RLE encodes string, ie “aaabbbb” becomes “3a4b”.

EOL: Final[str] = '|'#
GROUP_END: Final[str] = ')'#
GROUP_START: Final[str] = '('#