Tags: dflook/python-minifier
Tags
Add renaming transforms: - Rename locals, enabled by default - Rename globals, disabled by default Other changes: - Minified code will no longer have leading or trailing whitespace - Generated names for hoisted literals will have an initial underscore if rename globals is disabled - Suites of simple statements won't create an indented block - All transforms are now functional on all supported python versions - The module docstring is not removed by the remove literal statements transformation if there is a name bound for it Fixes: - Python 3.7 dataclass field annotations are no longer removed when the remove annotation transformation is enabled.
Add source transformations - Combine import statements - Remove annotations, pass statements, and literals in statements - Move string and byte literals into variables that can be referenced Add options to the pyminify command for enabling and disabling these transformations.
PreviousNext