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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file ocflzw-decompress-1.0.0.tar.gz.

File metadata

  • Download URL: ocflzw-decompress-1.0.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for ocflzw-decompress-1.0.0.tar.gz
Algorithm Hash digest
SHA256 812113a19e50267e3ec2b23ffebc7787ef771992c72559308e6fa6a78a48f2d6
MD5 75ea7afb6079f2c07b1f940aaee09ca7
BLAKE2b-256 840b648018e7ba1dbfb8e52258c6bb0dc0adfe3a5846b554477e9a4570491af5

See more details on using hashes here.

File details

Details for the file ocflzw_decompress-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ocflzw_decompress-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4034f129f50e305b7aed0f04c65a40a86c531e186f6b5b35a7e35b8baae07c02
MD5 8f111e28c15137a5e65a19bf3d2f63c5
BLAKE2b-256 d09704e351550a49d01223f7e56064f6d0a12c4e6e9403ccc540bb7d99af957a

See more details on using hashes here.

Supported by

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