Python Forum

Full Version: delivery exe without source code py
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
This post on stackoverflow shows methods for all major OS.
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?