python-minifier
python-minifier copied to clipboard
Transform Python source code into its most compact representation
It removes the duck typing, maybe it should remove the typing import also.
First of all, huge thanks for providing this fantastic library! 🙌 We've discovered a small issue with type declarations and transitive class inheritance. If we use this sample code: ```...
Hi There, I have found an issue. The description says that Python 2.7 is supported, but it gives and error on "print" function _Missing parentheses in call to 'print'. Did...
This improves the remove_literal_statements-feature and replaces doc-strings in case the module uses __doc__ by the string 'doc-string stripped by python-minifier', which is much shorter in most cases. Draft for issue...
Currently, minifying `from . import test` adds an extra space: ```py from . import test from .b import test ``` This PR removes whitespace around the `.`: ```py from.import test...
Shebang and encoding declare are two types of magic comments in the beginning lines of Python source code. In general, the minifier had better keep these lines as the origin...
When I try to shorten this code with all options enabled it only removes the spaces. ``` equation = input().split("=")[1] grid = [["."]*10 for i in range(10)] for y in...
Modern Python projects define their build requirements in `pyproject.toml`, e.g., ```toml [build-system] requires = [ "setuptools>=42", "wheel", ] build-backend = "setuptools.build_meta" ``` It'd be nice addition of python-minifier could be...
Hey there! First of all, thanks for providing this useful piece of software! It should be improved and find more friends in the Python community. In a [pull request](https://github.com/pyodide/pyodide/pull/1970) for...