Skip to main content

OCFLZW Decompress

Project description

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')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocflzw-decompress-1.0.0.tar.gz (15.7 kB view hashes)

Uploaded Source

Built Distribution

ocflzw_decompress-1.0.0-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page