I have a compressed byte array received from network and it is LZO Compressed. I need to decompress it using LZO. I already installed the python-lzo-1.0.8
package for python and I checked in the Python Shell, its properly installed but I cannot find any reference on how to use the LZO Decompression or any Documentation for python-lzo. Can anybody help me with this?
Asked
Active
Viewed 4,359 times
1

Biswarup Dass
- 193
- 1
- 5
- 19
1 Answers
3
You can see how to use it checking out the test suite.
In short:
import lzo
d = lzo.decompress(lzo_compressed_bytearray)

David
- 306
- 2
- 17

Filipe Pina
- 2,201
- 23
- 35
-
2this is not clear enough, what type does the argument needs to be? I have tried
and – Aram Maliachi May 22 '20 at 20:58after opening a file with 'rb' permissions and can't get it to work