pyminifier icon indicating copy to clipboard operation
pyminifier copied to clipboard

Add option for obfuscation imports

Open rominf opened this issue 11 years ago • 2 comments

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

rominf avatar Jun 02 '14 10:06 rominf

This one will be an interesting technical challenge so I'm definitely going to try it!

liftoff avatar Jun 05 '14 02:06 liftoff

I was just trying this, and it seems like this feature was already added...

TheTechRobo avatar Jun 22 '20 20:06 TheTechRobo