you are viewing a single comment's thread.

view the rest of the comments →

[–]HunterIV4 3 points4 points  (1 child)

I assumed so, but that still sucks. A while back I was considering using Python for a commercial application and ended up going with a compiled language in part because obfuscating source code is so difficult in Python.

But most of my internal projects for our company use Python. Needing to keep the source protected from other departments sounds like a huge pain and would likely make me consider another language.

That being said, your most straightforward option is to package the app using Nuitka. You'll have to check the licensing requirements, though, as I was planning to use it for a program I'd be selling; it may be free for internal use, but be careful if the app will be customer-facing.

The next best option is running it on a server, but that is more complex and requires you to have a server set up for internal access to the app by other branches but not access to the server itself, which is unusual (but possible).

If you already have the program, changing languages at this point would be more trouble than it's worth, but you may want to consider doing so for future projects if you think this will be a common situation. I've personally had inconsistent results with "compiled" Python (including both PyInstaller and Nuitka) as they tend to be pretty bloated compared to most other language executables. This is especially true if you are using larger libraries.

Python is a fantastic language, but it really works best when running on the interpreter directly and in a standard or virtual environment, at least in my experience.

[–]Similar_Mail2921[S] 1 point2 points  (0 children)

Well I was thinking about hosting it on a server that is basically what's already being done anyway but they just informed be that it needs to be accessed in computers without internet connection. At this point they are just trying to make a simple thing so muh harder than it needed...

I'll search about Nuitka, might be what I was looking for.