pyminifier
pyminifier copied to clipboard
Pyminifier is a Python code minifier, obfuscator, and compressor.
The pyminifier can't minify python indent like this: if 1==1: print("Hi") --pyminifier-->exec(b'if 1==1:\nF=print\n F("Hi")\n') I run into this problem when I run the code minified with pyminifier link To solve...
This PR proposes dropping Python 2 support to fix problems with setup.py. It also drops use of distutils as it is slated for removal in Python 3.12. The changes are...
root@kali-linux:/tmp/pyminifier# python3 setup.py install ``` Traceback (most recent call last): File "/tmp/pyminifier/setup.py", line 2, in import pyminifier File "/tmp/pyminifier/pyminifier/__init__.py", line 71, in from collections import Iterable ImportError: cannot import name...
So when i execute the pip install pyminifier it shows this 
https://github.com/liftoff/pyminifier/blob/master/setup.py#L19 https://stackoverflow.com/questions/69100275/error-while-downloading-the-requirements-using-pip-install-setup-command-use-2
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 pyminifier could be...
The following file ``` # -*- coding: utf-8 -*- """Compatibility layer for optional functionality.""" def _tqdm(it, *_args, **_kwargs): # noqa return it try: from tqdm.auto import tqdm except ImportError: tqdm...
```python class MyApplicationException(Exception): """My custom exception.""" def foo(): raise MyApplicationException() ``` is minified into ```python class MyApplicationException(Exception): def foo(): raise MyApplicationException() ``` I can work around this using `pass`, but...