How can I protect my python source code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I protect my python source code?

Imagine the scenario, I am giving a commercial business solution with python and I just don't want my source code to be leaked so I want to protect them as it's my intellectual property. eventhough python is open source, my application isn't. so how can I protect my program's source. I tried to use py2exe and cxfreeze which helps me to convert the code to exe but still I could find the source code in the built folder. Any solution provider?

14th Aug 2016, 4:17 AM
sundar
sundar - avatar
1 Answer
+ 2
Do you mean the compiled source code is present or the plain text source code? You can just remove it from your distribution folder or completely bundle the code so that only the exe, python dll and library appear. That is bundle_files = 2 on py2exe.
14th Aug 2016, 8:42 AM
Gershon Fosu
Gershon Fosu - avatar