mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #38] add Python port of bro utility and scripts to test Brotli extension #622
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/google/brotli/pull/38
State: closed
Merged: Yes
The
bro.pyaccepts the same options as thebrocommand-line utility, and supports piping to/from the standard streams.The test scripts are simple Python ports of
compatibility_test.shandroundtrip_test.shshell script.I made that to be able to test the Brotli Python extension against the same data used by the test shell scripts.
The scripts are especially useful on Windows, which doesn't include the bash shell, and where the
broutility fails to compile using the native MSVC compiler.Please note that
bro.pydepends on @khaledhosny's #36 patch, since it just callsbrotli.decompress(string)and expects the decompression buffer to be dynamically allocated.Thank you.
Cosimo