API Reference#

class wheel_optimizer.OptimizerConfig(disable_all=False, remove_docstrings=False, remove_type_annotations=False, remove_assertions=False, remove_comments=False, remove_tests=False, remove_typestubs=False, remove_pycache=False, remove_c_source=False, remove_cython_source=False, minify_whitespace=False, compile_pyc=False)#
disable_all: bool = False#
remove_docstrings: bool = False#
remove_type_annotations: bool = False#
remove_assertions: bool = False#
remove_comments: bool = False#
remove_tests: bool = False#
remove_typestubs: bool = False#
remove_pycache: bool = False#
remove_c_source: bool = False#
remove_cython_source: bool = False#
minify_whitespace: bool = False#
compile_pyc: bool = False#
class wheel_optimizer.OptimizerPipeline(config)#
run(wheel_dir)#
Return type:

None

class wheel_optimizer.WheelOptimizer#
name: str#
description: str#
default_enabled: bool = False#
order: int = 500#
abstractmethod should_process(file_path)#
Return type:

bool

abstractmethod process_file(full_path)#
Return type:

None

class wheel_optimizer.base.WheelOptimizer#
name: str#
description: str#
default_enabled: bool = False#
order: int = 500#
abstractmethod should_process(file_path)#
Return type:

bool

abstractmethod process_file(full_path)#
Return type:

None

class wheel_optimizer.config.OptimizerConfig(disable_all=False, remove_docstrings=False, remove_type_annotations=False, remove_assertions=False, remove_comments=False, remove_tests=False, remove_typestubs=False, remove_pycache=False, remove_c_source=False, remove_cython_source=False, minify_whitespace=False, compile_pyc=False)#
disable_all: bool = False#
remove_docstrings: bool = False#
remove_type_annotations: bool = False#
remove_assertions: bool = False#
remove_comments: bool = False#
remove_tests: bool = False#
remove_typestubs: bool = False#
remove_pycache: bool = False#
remove_c_source: bool = False#
remove_cython_source: bool = False#
minify_whitespace: bool = False#
compile_pyc: bool = False#
class wheel_optimizer.pipeline.OptimizerPipeline(config)#
run(wheel_dir)#
Return type:

None