Skip to main content

##A simple and sometimes naive python lzo library.

This is a python library deals with lzo files compressed with lzop. There is a python-lzo module in github, but it's for compressing strings using lzo. This module is for lzop generate file. It parses the header structures and check the checksum.

One possible usage is unpack Android(linux) kernel boot.img. And actually it's why I create this ugly module.

##Usage## You can use it as command line tools:

python minilzo.py file_to_compress

Or import it into your script

import minilzo
f = minilzo.open('compressed.lzo', 'wb')
data = #some data
f.write(data)

Open boot.img:

from minilzo import LzoFile
f = open('boot.img', 'rb')
f.seek(#calculate your offset)
LzoFile(fileobj=f, mode = 'rb')

Known issues: crc32 checksum not supported, because no such function in minilzo library filter not supported, but version number not current path name not supported mtime read but not set

TODO: check if liblzo presents. Use it if so, otherwise use builtin minilzo figure out why signature check fails like lzop does

Metadata

Release files for minilzo 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minilzo 1.2
File Size Uploaded Provenance Actions
minilzo-1.2.tar.gz 76.6 kB Without provenance Details for minilzo-1.2.tar.gz

Release files / minilzo-1.2.tar.gz

Download URL minilzo-1.2.tar.gz
Size 76.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4cdcc0dc3e8558a29d8a6fed5c66a1ae3c8014e12d0a27554890c4248f76b141
BLAKE2b-256 checksum
How to use checksums
9fcf70409b35fbd32f5456fe72f410bf5fb30e279d3226e8a2228f11daede5f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for minilzo 1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page