Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 392 Bytes

readme.md

File metadata and controls

15 lines (11 loc) · 392 Bytes

OCF LZW Decompress

Implements "OCF decompresion" as used by Cerner.

Python port of https://gist.github.com/pgodwin/7d66729444173146ad698d154f2b9b6c

from ocflzw_decompress.lzw import LzwDecompress
lzw = LzwDecompress()

uncompressed = lzw.decompress(blob_contents)
for bt in uncompressed:
    uncompressed_text += chr(bt)
uncompressed_text = uncompressed_text.rstrip('\x00')