Skip to main content

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

Metadata

Release files for wheel-optimizer 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wheel-optimizer 0.0.3
File Size Uploaded Provenance
wheel_optimizer-0.0.3.tar.gz 50.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wheel-optimizer 0.0.3
File Interpreter ABI Platform
wheel_optimizer-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 64.0 kB

Release files / wheel_optimizer-0.0.3.tar.gz

Download URL wheel_optimizer-0.0.3.tar.gz
Size 50.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f9958b2a3e4b465a5f84db66daa418c9ba5c6a85fff5432630d382cad0ebae7b
BLAKE2b-256 checksum
How to use checksums
2ee5e52887b88fa4d7c101bcacf1f03d09317a9f6363baebb086378417be08a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.

Transparency log

Release files / wheel_optimizer-0.0.3-py3-none-any.whl

Download URL wheel_optimizer-0.0.3-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85396f6fdee942ceffa99a7241711753844b3b90f060a7adc697a79aeb26a60e
BLAKE2b-256 checksum
How to use checksums
65e50fb51bbdf60fd4bff27fafcd494ada22a4b2beadc2c2430cc17a46eb5484
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.

Transparency log

Security for wheel-optimizer 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wheel_optimizer-0.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page