Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wheel_optimizer-0.0.2.tar.gz (50.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wheel_optimizer-0.0.2-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file wheel_optimizer-0.0.2.tar.gz.

File metadata

  • Download URL: wheel_optimizer-0.0.2.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

Hashes for wheel_optimizer-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4f96c4e5d9679ced5d575f27353e9330e90236cc11130fa2d53b0b996b1ac2d5
MD5 cccb11737e23034319783468ffe9b6e4
BLAKE2b-256 30602fda01a4af8fe73e5f465064bdbb3606d5b8c57e8298b6519b4a409a72fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for wheel_optimizer-0.0.2.tar.gz:

Publisher: release.yml on ryanking13/wheel-optimizer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wheel_optimizer-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for wheel_optimizer-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa0ceaf3938558abf8fb1d95817bd897fc909645bca27011fe376486d21dbfc0
MD5 ad0a6d473c9fe2ecf74730402f794f52
BLAKE2b-256 394e2517afba82f157a8fa3733bfaf40a29731ba6a66de2ca25bdd02537ba375

See more details on using hashes here.

Provenance

The following attestation bundles were made for wheel_optimizer-0.0.2-py3-none-any.whl:

Publisher: release.yml on ryanking13/wheel-optimizer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page