We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Brotli is now a widely supported compression type. We should include that too.
The text was updated successfully, but these errors were encountered:
It would be nice to have this also in this library, however it looks like brotli for now has no fixed file signature, although this has been proposed.
In the meantime you can check if something is brotli compressed by try to decompressing it using brotlipy.
For example:
import brotli a = brotli.compress(b'test') # brotli compressed b = b'test' # normal def x(y): try: return bool(brotli.decompress(y)) except brotli.brotli.Error: return False >>> x(a) True >>> x(b) False
Sorry, something went wrong.
No branches or pull requests
Brotli is now a widely supported compression type. We should include that too.
The text was updated successfully, but these errors were encountered: