| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/__pycache__/ |
Upload File : |
�
���dJ � �� � d Z ddlZej xZZej Zej
Zej Zej Zej Zedddfd�Z ej Z
ej Zy)zCFunctions to compress and decompress data using the Brotli library.� N� � c �d � t ||||�� }|j | � |j � z S )aa Compress a byte string.
Args:
string (bytes): The input data.
mode (int, optional): The compression mode can be MODE_GENERIC (default),
MODE_TEXT (for UTF-8 format text input) or MODE_FONT (for WOFF 2.0).
quality (int, optional): Controls the compression-speed vs compression-
density tradeoff. The higher the quality, the slower the compression.
Range is 0 to 11. Defaults to 11.
lgwin (int, optional): Base 2 logarithm of the sliding window size. Range
is 10 to 24. Defaults to 22.
lgblock (int, optional): Base 2 logarithm of the maximum input block size.
Range is 16 to 24. If set to 0, the value will be set based on the
quality. Defaults to 0.
Returns:
The compressed byte string.
Raises:
brotli.error: If arguments are invalid, or compressor fails.
)�mode�quality�lgwin�lgblock)�
Compressor�process�finish)�stringr r r r �
compressors �(/usr/lib/python3/dist-packages/brotli.py�compressr s6 � �, ��w�e�$+�-�J����f�%�
�(9�(9�(;�;�;� )�__doc__�_brotli�__version__�version�MODE_GENERIC� MODE_TEXT� MODE_FONTr
�Decompressorr �
decompress�error� r r �<module>r s� �� J� � �+�+� +��+� �#�#����� ���� � �
�
�
� �#�#�� '��"�a� <�6 �
�
�
� �
�
�r