indygreg / python-zstandard

Python bindings to the Zstandard (zstd) compression library
BSD 3-Clause "New" or "Revised" License
481 stars 84 forks source link

Support headerless format in getFrameParameters and decompress #217

Open swehner opened 3 months ago

swehner commented 3 months ago

Adding support for magic-less format in a few functions:

Testing done:

$ export ZSTD_SLOW_TESTS=1  

$ for i in cext rust cffi; do echo "=== PYTHON_ZSTANDARD_IMPORT_POLICY=$i python setup.py test"; PYTHON_ZSTANDARD_IMPORT_POLICY=$i python setup.py test; done 2>&1 | grep "\(==\|OK\|Ran\|failed\|ERROR\)"
=== PYTHON_ZSTANDARD_IMPORT_POLICY=cext python setup.py test
Ran 292 tests in 13.942s
OK
=== PYTHON_ZSTANDARD_IMPORT_POLICY=rust python setup.py test
Ran 292 tests in 15.512s
OK
=== PYTHON_ZSTANDARD_IMPORT_POLICY=cffi python setup.py test
Ran 292 tests in 20.358s
OK (skipped=26)