Metadata-Version: 2.4
Name: wheel-optimizer
Version: 0.0.3
Summary: Pluggable post-processing optimizers for Python wheels
Project-URL: Homepage, https://github.com/pyodide/wheel-optimizer
Project-URL: Bug Tracker, https://github.com/pyodide/wheel-optimizer/issues
Project-URL: Documentation, https://wheel-optimizer.readthedocs.io/
Author: Gyeongjae Choi
License: MIT
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# wheel-optimizer

Pluggable post-processing optimizers for Python wheels. Reduce wheel size by stripping docstrings, type hints, and other unnecessary data from `.py` files before distribution.

## Installation

```
pip install wheel-optimizer
```

## Quick start

```python
from pathlib import Path

from wheel_optimizer import OptimizerConfig, OptimizerPipeline

config = OptimizerConfig(
    remove_docstrings=True,
    remove_type_annotations=True,
    remove_assertions=True,
    remove_comments=True,
)
pipeline = OptimizerPipeline(config)
pipeline.run(Path("unpacked-wheel-directory/"))
```

## Documentation

Full documentation is available at [wheel-optimizer.readthedocs.io](https://wheel-optimizer.readthedocs.io/).

## License

MIT
