IPWorks ZIP 2020 Python Edition

Questions / Feedback?

compression_level Property

The compression level to use.

Syntax

def get_compression_level() -> int: ...
def set_compression_level(value: int) -> None: ...

compression_level = property(get_compression_level, set_compression_level)

Default Value

3

Remarks

This property is only applicable when using the LZMA compression_method. This property specifies the level of compression to be used,valid values are: 1, 2, 3, 4 and 5. Higher values will cause the class to compress better; lower values will cause the class to compress faster. The default value is 3.

You may optionally set this property from within the on_begin_file event to apply different levels of compression to different files.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks ZIP 2020 Python Edition - Version 20.0 [Build 8300]