[libarchive](https://github.com/libarchive/libarchive) supports many standard archive formats for reading and writing. a set of bindings for lo would be nice if anyone has time to look at that.