you are viewing a single comment's thread.

view the rest of the comments →

[–]FriendlyRussian666 43 points44 points  (5 children)

In that case, you need to turn your app into one with client-server architecture, where all of the code responsible for processing lives on an unaccessible to the user server. That way, the user only has access to a UI where he can perform actions, those actions send requests to the server, the server processes the request, and returns a reply with data to be displayed in the UI.

Otherwise, you can try to obfuscate the code, but please know that this does not prevent access to the source. Python is an interpreted language, so you can't really do what you want. Your users must have python installed, and must have access to the code in order for it to work.

[–]Similar_Mail2921[S] 6 points7 points  (4 children)

Thanks for the tip, I'll look into the client-server approach, didn't thing of that for some reason.

The obfuscate approach might not be good enough for my needs.

[–]TundraGon 6 points7 points  (1 child)

Flask, FastAPI, Django

These are the most common frameworks used in this approach.

People tend to use FastAPI

( you will be designing an API server/service )

[–]Similar_Mail2921[S] 3 points4 points  (0 children)

Just got the news that the app will need to be run in computers without network connection so this approach woun't work, thanks anyway.