Python Forum
delivery exe without source code py - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: delivery exe without source code py (/thread-41820.html)



delivery exe without source code py - loky62 - Mar-23-2024

Hi everyone, I'm new to Python but I program using visual studio c#.

How do I deliver to my customer an exe of a python/streamlit script with everything necessary without source code ?

Following an internet guide I created a wrapper and, using pyinstaller, I created the exe.

Everything works but I am forced to deliver not only the wrapper exe but also the .py source file of the script.

How can I avoid handing over the .py source to the client?

How do you do it?

Are there other solutions?

Thank you.


RE: delivery exe without source code py - Larz60+ - Mar-25-2024

This post on stackoverflow shows methods for all major OS.


RE: delivery exe without source code py - loky62 - Apr-04-2024

Hi Larz60+, thanks for the reply.

I am able to create my exe from the Python wrapper but I am forced also to deliver the source .py which uses streamlit.

It's a known problem and I think not solved in the post which is very old and I hope there is a new solution.

Other suggestions?