krfkeith / snappy

Automatically exported from code.google.com/p/snappy
Other
0 stars 0 forks source link

snappy needs a command line utility #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To integrate this into shell script pipelines there should be a command line 
utility comparable to `gzip`, `bzip2`, and `xz`.

foo_text | snappy > /bar/foo_text.snappy
snappy -d < /bar/foo_text.snappy | awk | sed | ...

Maybe one of those stages was implemented via something that uses the snappy 
API, but it would be easier to talk to existing unix pipe tools with a command 
line snappy tool.

Original issue reported on code.google.com by brian.olson on 22 Nov 2013 at 5:30

GoogleCodeExporter commented 9 years ago
This is a duplicate of r34; if you want this, there's a defined streaming 
format and at least two separate implementations of it (see the home page).

Original comment by se...@google.com on 22 Nov 2013 at 6:15

GoogleCodeExporter commented 9 years ago
There should be a C reference implementation of the framing format and tool.
Other packages might then link to the C implementation.
Also then I don't have to download some other package.

Original comment by brian.olson on 22 Nov 2013 at 6:28

GoogleCodeExporter commented 9 years ago
OK, well, this is not a priority at the moment. If you want a C implementation 
of the framing format and a tool, you will have to make one yourself.

Original comment by se...@google.com on 22 Nov 2013 at 6:37

GoogleCodeExporter commented 9 years ago
Would you be likely to accept patch which adds a snappy_main.cc which compiles 
to a tool `snappy`? Probably also snappy_framing.{cc,h} which become part of 
the general library.

Original comment by brian.olson on 22 Nov 2013 at 6:55

GoogleCodeExporter commented 9 years ago
snzip (https://github.com/kubo/snzip) is a command line utility which supports 
all known snappy formats including the framing format.

Original comment by kubo.tak...@gmail.com on 23 Nov 2013 at 3:00