Hi! I have a Kedro pipeline which I want to obfusc...
# questions
Hi! I have a Kedro pipeline which I want to obfuscate or convert to a wheel file and then deploy in a cluster? Does any one know if it is possible or are there any tools that could help me do that?
hi @Shubham Agrawal. when talking about obfuscation, it's important to bear in mind that it's not possible to fully obfuscate a piece of code - a sufficiently motivated user with lots of time on their hands will find a way to de-obfuscate it (even if the original variable names are lost etc)
this is not specific to Kedro, but to Python in general
in particular, wheels are just zip files that get decompressed when installed:
Copy code
~> file /tmp/black-23.1.0-py3-none-any.whl 
/tmp/black-23.1.0-py3-none-any.whl: Zip archive data, at least v2.0 to extract, compression method=deflate
👍 1
I've briefly looked at using https://github.com/dashingsoft/pyarmor for this, but rather took the route of explaining why obfuscation isn't the way to go. But, if it's a requirement, you can try it. 🙂
Thanks a lot both! Will check out pyarmor as well!