Pluggable post-processing optimizers for Python wheels
Project description
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
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.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wheel_optimizer-0.0.3.tar.gz.
File metadata
- Download URL: wheel_optimizer-0.0.3.tar.gz
- Upload date:
- Size: 50.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9958b2a3e4b465a5f84db66daa418c9ba5c6a85fff5432630d382cad0ebae7b
|
|
| MD5 |
5cf9120d3e43cfa3f713f1fddd05c3d3
|
|
| BLAKE2b-256 |
2ee5e52887b88fa4d7c101bcacf1f03d09317a9f6363baebb086378417be08a6
|
Provenance
The following attestation bundles were made for wheel_optimizer-0.0.3.tar.gz:
Publisher:
release.yml on ryanking13/wheel-optimizer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wheel_optimizer-0.0.3.tar.gz -
Subject digest:
f9958b2a3e4b465a5f84db66daa418c9ba5c6a85fff5432630d382cad0ebae7b - Sigstore transparency entry: 1293585672
- Sigstore integration time:
-
Permalink:
ryanking13/wheel-optimizer@fd72624e991427fd051b671d3f8185526dbb7fee -
Branch / Tag:
refs/tags/0.0.3 - Owner: https://github.com/ryanking13
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fd72624e991427fd051b671d3f8185526dbb7fee -
Trigger Event:
release
-
Statement type:
File details
Details for the file wheel_optimizer-0.0.3-py3-none-any.whl.
File metadata
- Download URL: wheel_optimizer-0.0.3-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85396f6fdee942ceffa99a7241711753844b3b90f060a7adc697a79aeb26a60e
|
|
| MD5 |
eadfd5e5c28ad5b7b20f8975fb3ce431
|
|
| BLAKE2b-256 |
65e50fb51bbdf60fd4bff27fafcd494ada22a4b2beadc2c2430cc17a46eb5484
|
Provenance
The following attestation bundles were made for wheel_optimizer-0.0.3-py3-none-any.whl:
Publisher:
release.yml on ryanking13/wheel-optimizer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wheel_optimizer-0.0.3-py3-none-any.whl -
Subject digest:
85396f6fdee942ceffa99a7241711753844b3b90f060a7adc697a79aeb26a60e - Sigstore transparency entry: 1293585678
- Sigstore integration time:
-
Permalink:
ryanking13/wheel-optimizer@fd72624e991427fd051b671d3f8185526dbb7fee -
Branch / Tag:
refs/tags/0.0.3 - Owner: https://github.com/ryanking13
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fd72624e991427fd051b671d3f8185526dbb7fee -
Trigger Event:
release
-
Statement type: