Can I turn Python code in Libraries to binary on publish?

I’m developing a plugin in rhino8 with python3. I’m testing the build using the publishing script, but the python code in Libraries is showing the original code. I don’t want the original code to be displayed when I deploy the plugin. How can I convert the python code in Libraries to binary when I run the build?

@eirannejad please help.

Hello,

You can compile to bytecode to make it a little harder to find How to obfuscate Python code effectively? - Stack Overflow.

This has a cost - it takes time at every release, makes it harder to debug and prevents users from helping you to understand or improve your code. Python itself is given freely and openly to the world by its creators and contributors. Is the value of hiding the code worth the effort involved ? Only you can judge this :smiley:

2 Likes