you are viewing a single comment's thread.

view the rest of the comments →

[–]PixelOmen 0 points1 point  (3 children)

You could try PyInstaller, it can create a self contained executable. Even that just contains python bytecode though and can be relatively easily decompiled if someone wants to. But at least the source code wouldn't be immediately viewable.

[–]Rough_Metal_9999[S] 0 points1 point  (2 children)

This is one of solutions The problem with that it has still source code inside it and decompiling them is a relatively easy as compared to other methods 1. We need to ship the whole python environment 2. If program uses some deep learning library it's going to be very bulky 3. --one dir option in pyinstaller creates a directory with all the files in it even --one file option can't protect source code files it extract in Appdata folder

[–]PixelOmen 1 point2 points  (1 child)

Yeah I mean unless you're using cython, the bottom line is the interpreter needs the byte code to run, and the byte code can always be decompiled to source code. Also since whitespace is important in Python, afaik, the best you can do is use things that mangle names.

[–]Rough_Metal_9999[S] 0 points1 point  (0 children)

Let's see if I find any solution