pyminifier
pyminifier copied to clipboard
Add option for obfuscation imports
I propose you to add possibility to obfuscate imports. So, instead of having:
from numpy import array
import re
...
array(...)
re.match(...)
we can have:
from numpy import array as σΣΕξ
import re as αβ
...
σΣΕξ(...)
αβ.match(...)
I think it's not hard to do, it will increase unreadability.
match is still readable. I think that monkey patching can help, but it can break some code:
import re as αβ
αβ.γx = αβ.match
This one will be an interesting technical challenge so I'm definitely going to try it!
I was just trying this, and it seems like this feature was already added...