-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add support for 7z archive file format #23
Comments
Any suggestions for a Python module for this functionality? |
I'm looking at the pylzma library, using their py7zlib module. This would open and decompress the files for us, however it will not allow for us to perform any type of seeking into the files. Therefore, we will have to read in the whole files into a file stream in memory or temporary file. |
This one you mean: https://pypi.python.org/pypi/pylzma ? For context what we normally look at regarding new dependencies: https://github.com/log2timeline/plaso/wiki/Adding-a-new-dependency
This does not sound like an optimal solution, but we do somewhat the same for sqlite due to other limitations. I opt we get a temporary file manager in place before that or see if the seek functionality could be added to pylzma? |
Agreed, I have currently implemented the 7z support using pylzma. It uses temporary files to read the files within the archive, but it should be trivial to change this to use the temporary file manager when its ready. Therefore, I would like to submit this for code review. |
python-lzma that is shipped with Ubuntu: https://launchpad.net/pyliblzma Fedora python-backports-lzma.x86_64 |
I will be able to get back to writing this next week. |
Sounds good to me, I've been looking at xz compressed stream support. I might implement something based on Python lzma for that, seeing it's integrated in Python 3 and back ported for Python 2. However this will not provide 7z archive file support. |
No description provided.
The text was updated successfully, but these errors were encountered: