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

Improved python module architecture and added algos. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KOLANICH
Copy link
Contributor

  • Splitted core and algos
  • Introduced a new API
  • Added zstd, brotli and bzip
  • Added paramaters for all algos

@KOLANICH KOLANICH force-pushed the python_fixes branch 2 times, most recently from 9c7d7e1 to 3f3bb1b Compare July 15, 2019 23:56
@KOLANICH
Copy link
Contributor Author

@GreyCat, any progress merging this?

@GreyCat
Copy link
Member

GreyCat commented Jul 20, 2019

Currently, run-python in tests fails with:

ascii_text
Traceback (most recent call last):
  File "./test-python.py", line 33, in <module>
    obj = test_class.from_file('compressed/%s.%s' % (name, ext))
  File "$HOME/.local/lib/python3.7/site-packages/kaitaistruct.py", line 35, in from_file
    return cls(KaitaiStream(f))
  File "$HOME/git/kaitai_compress/_test/compiled/python/test_lz4.py", line 16, in __init__
    self._read()
  File "$HOME/git/kaitai_compress/_test/compiled/python/test_lz4.py", line 20, in _read
    _process = kaitai.compress.Lz4()
  File "$HOME/git/kaitai_compress/python/kaitai/compress/algorithms/lz4.py", line 8, in __init__
    self.obj = lz4.frame.LZ4FrameCompressor(block_size=block_size, block_linker=linker, compression_level=compression_level, content_checksum=frame_checksum, block_checksum=block_checksum, return_bytearray=False)
TypeError: __init__() got an unexpected keyword argument 'block_linker'

README.md Outdated Show resolved Hide resolved
* Splitted core and algos
* Introduced a new API
* Added zstd, brotli, snappy, lzham, implode and bzip
* Fixed brotli files extension
* Added paramaters for all the algos
* Some improvements in packaging.
* Improved testing.
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

Successfully merging this pull request may close these issues.

2 participants