r/Python • u/_khi4 • Oct 20 '26
Discussion Compiling django with Nuitka or Cython ?
Hey, I am working on django development
my client would prefer to slef host the app instead of hosting it on our servers, we dont mind however we would like to make sure we give them a build rather than plain code so we dont expose our code base
I came across compiling with Cython or Nuitka, I cant decide which to use?
Second ask, I heard that I should not compile my whole django apps and rather than that I better do that carefully not to mess up our different imports, how correct is that ?
Thanks in advance
12
Upvotes
View all comments
Show parent comment
12
u/PaluMacil Oct 20 '26
I always say this when people are talking about compiled code, but I've seen enough copying of Python code and people justifying it as "just scripts", that packaging it in a way that makes them feel differently about it might make them behave differently--like when you put a short fence on your yard and people don't wander through it. I don't know if it's just sample size, but I've never seen someone pirate a compiled binary at work.