sigmf-python icon indicating copy to clipboard operation
sigmf-python copied to clipboard

Support for compressed archives

Open Teque5 opened this issue 2 years ago • 2 comments

Back when this repo was the spec, we considered it out-of-scope to handle the compression side, but I think if we wanted we could support .sigmf.7z and .sigmf.zip files with this module. If anyone thinks this is a good idea I can work up a PR.

Teque5 avatar Sep 08 '23 16:09 Teque5

This would be an excellent addition!

aromanielloNTIA avatar Oct 12 '23 21:10 aromanielloNTIA

For my own reference this can easily be done with our existing implementation using tarfile.TarFile which should allow x.sigmf.gz, x.sigmf.bz2, and x.sigmf.xz.

To allow x.sigmf.zip I believe we would need to use the similar zipfile.ZipFile object.

To allow x.sigmf.7z I see there is py7zr.SevenZipFile although I need to investigate further.

Teque5 avatar Jan 07 '25 17:01 Teque5