How would you protect Python source code on a physical product (like a IoT device), which comes with Ubuntu installed on a mini-PC running Python code?
Few methods we thought about:
Compiling the Python code (using PyInstaller, or other products).
Obfuscating the source code.
Linux-permissions-based solution: Configure a low-permissions user that can't even access the code, and the code running from a different user using the weak user's display.
Any other idea?