Compressed Rich Text Format (RTF) compression and decompression package. It supports the LZFu compression format, based on the Microsoft RTF Compression Algorithm. The current version is 1.0.7, and releases are infrequent, primarily for bug fixes.
pip install compressed-rtfVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to compress and decompress RTF byte data using the `compress` and `decompress` functions.
Ensure that the RTF data you are processing conforms to the LZFu compression scheme used by Microsoft products. For general compression, consider Python's built-in `zlib` or `gzip` modules.
Upgrade to version 1.0.7 or later to benefit from packaging stability fixes: `pip install --upgrade compressed-rtf`.
Ensure the package is installed using pip: `pip install compressed-rtf`
Try updating `pip` and `setuptools` (`pip install --upgrade pip setuptools`). If the issue persists, ensure you have C++ build tools for Python installed (e.g., from Visual Studio Build Tools). A direct fix for the reported upstream issue may require using a pre-compiled wheel or a different environment.
Ensure the data passed to `decompress()` is a byte string obtained from a legitimate compressed RTF source. Verify the integrity of your input data. You might need to inspect the first few bytes of your input to confirm it matches the expected RTF compression signatures (e.g., '#\x00\x00\x00"\x00\x00\x00LZFu' for compressed data or '.\x00\x00\x00"\x00\x00\x00MELA' for raw/uncompressed data as expected by the library).
No dependency data recorded yet.