• Show log

    Commit

  • Hash : f62cd2bc
    Author : jneb
    Date : 2016-12-20T14:41:47

    brotlidump.py: disassemble brotli file (revisited) (#314)
    
    * Create brotlidump.py
    
    Sorry, I am a newbie. I couldn't find my file anymore when I wanted to edit it. Hope I don't waste your time.
    
    * Fixed a bug where it couldn't read its own compression.
    
    The problem was that a prefix code ending with a 16 "repeat" didn't realize the table was full already.
    Also minor bug fixes, comments and stuff.
    
    * Major refactoring
    
    Rewrote almost everything.
    Now can dump its own compression.
    
    * Now more or less complete
    
    Appears to handle all files completely (including metablock data).
    Used as inspiration for the the hex example (see makehexexample.py)
    

  • README.md

  • This directory contains the code for the Python brotli module, bro.py tool, and roundtrip tests.

    Development

    To build the module, execute the following from the root project directory:

    $ python setup.py build

    To test the module, execute the following from the root project directory:

    $ python setup.py test

    Code Style

    Brotli’s code follows the Google Python Style Guide. To automatically format your code, install YAPF:

    $ pip install yapf

    Then, either format a single file:

    $ yapf --in-place FILE

    Or, format all files in a directory:

    $ yapf --in-place --recursive DIR

    See the YAPF usage documentation for more information.