Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • The best way to achieve something like this would be to package the code into an exe file so that the program is just an executable and not actually source code. The other benefit of this is that the end user won't have to install python to run your code. However, it is key to note, that even exe files can be decompiled into byte code. Even production off the shelf programs can have that done to them. But that's not something the average user knows how to do. Commented Aug 31, 2020 at 16:20
  • Please repeat on topic and how to ask from the intro tour. In particular, we expect you to search for an answer before posting. Commented Aug 31, 2020 at 16:25
  • That's fine, but I want it to be in Python format only Commented Aug 31, 2020 at 16:25
  • 2
    As your newly added criteria do not match stackoverflow.com/questions/3344115/… I've reopened the question. But the short answer is, you can't have all of those. Commented Aug 31, 2020 at 16:32
  • 1
    Yes we are sure. Either you compile to byte code, run it as a service (like @Prune suggested), you let them see the code, or you don't use python. Commented Aug 31, 2020 at 16:43