Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming API #9

Open
oberstet opened this issue Jun 9, 2013 · 8 comments
Open

Streaming API #9

oberstet opened this issue Jun 9, 2013 · 8 comments

Comments

@oberstet
Copy link

oberstet commented Jun 9, 2013

It would be awesome to have streaming compressor/decompressor API as with zlib.compressobj and zlib.decompressobj.

Even more useful would be: being able to set any configuration on the compressor/decompressor objects, like i.e. HC mode and such.

@tsileo
Copy link

tsileo commented Jun 17, 2013

👍

@gojomo
Copy link

gojomo commented Jun 22, 2015

Yes – and specifically, to be able to create or read arbitrarily-large ".lz4" files created by the lz4 command-line. I believe in practice that would mean supporting this: https://docs.google.com/document/d/1cl8N1bmkTdIpPLtnlzbBSFAdUeyNo5fwfHbHU7VRNWY/edit

Can anyone confirm that's what's needed and that it doesn't already exist?

@dreamflasher
Copy link

So far I wasn't able to find any lz4 library that supports streaming, and especially for large files it's a requirement.

@Cyan4973
Copy link

Cyan4973 commented Mar 2, 2017

What about : http://lz4.github.io/lz4/#interoperable-lz4 ?

@dreamflasher
Copy link

I checked out the two in that site and a couple more, but no currently none supports streaming/linewise iteration.

@Cyan4973
Copy link

Cyan4973 commented Mar 2, 2017

Interesting,
both these projects announce streaming capabilities for large files,
though it could be different from what you are looking for exactly.
Little details matter.

@jonathanunderwood
Copy link
Collaborator

The project at github.com/python-lz4 continues this work. We have added frame support, and streaming support is planned for the future.

@dreamflasher
Copy link

@Cyan4973 They support the LZ4 streaming (frame?) interface, but they don't do that in a way that it's compatible with Python bytestreams (io.RawIOBase).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants