| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/calpy/__pycache__/ |
Upload File : |
�
Υ=j� � � � d Z ddlZej xZZej Zej Zej Zej Zej Zedddfd�Z ej
Z
ej ZdS )zCFunctions to compress and decompress data using the Brotli library.� N� � c �| � t ||||�� � }|� | � � |� � � z S )a� Compress a byte string.
Args:
string (bytes): The input data.
mode (int, optional): The compression mode; value 0 should be used for
generic input (MODE_GENERIC); value 1 might be beneficial for UTF-8 text
input (MODE_TEXT); value 2 tunes encoder for WOFF 2.0 data (MODE_FONT).
Defaults to 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 �9/tmp/claude-1015/pip-target-jmvfl800/lib/python/brotli.py�compressr sF � �0 ��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� I� ���� �+� +��+� �#���� ��� � �
�
� �#�� '��"�a� <� <� <� <�: �
�
� �
���r