This is a good place to mention https://nuitka.net/ which aims to compile python programs into standalone binaries. - Source: Hacker News / 8 days ago
For Python, you could make a proper deployment binary using Nuitka (in standalone mode – avoid onefile mode for this). I'm not pretending it's as easy as building a Go executable: you may have to do some manual hacking for more unusual unusual packages, and I don't think you can cross compile. I think a key element you're getting at is that Go executables have very few dependencies on OS packages, but with Python... - Source: Hacker News / 24 days ago
There is already an AOT compiler for Python: Nuitka[0]. But I don't think it's much faster. And then there is mypyc[1] which uses mypy's static type annotations but is only slightly faster. And various other compilers like Numba and Cython that work with specialized dialects of Python to achieve better results, but then it's not quite Python anymore. [0] https://nuitka.net/ [1] - Source: Hacker News / 4 months ago
Nuitka deals pretty well with those in general: https://nuitka.net/. - Source: Hacker News / 9 months ago
Have a look at Nuitka, which is a "real" Python compiler into C. It uses CPython in its backend and should be completely compatible to "regular" Python. The compiled code can, but does not have to improve performance. It's probably worth looking into. Source: about 1 year ago
And to deploy your program you can use one of the programs that will compile your Python code in to an executable such as PyInstaller or Nuitka. Source: about 1 year ago
Https://nuitka.net/ is a great compiler for python code. Another option that isn't as obfuscated is the official compiler used in mypy if you have 100% type coverage: https://mypyc.readthedocs.io/en/latest/. Source: about 1 year ago
You probably already know about this, but Nuitka[0] is pretty great for building distributable Python apps. [0]: https://nuitka.net. - Source: Hacker News / over 1 year ago
Try nuitka BTW I have used the mentioned here pyinstaller, pex … last time I needed to this, nuitka worked flawlessly and better than pyinstaller. Source: over 1 year ago
Nuitka works on Windows, Linux and Mac https://nuitka.net/. - Source: Hacker News / over 1 year ago
Another similar project: https://nuitka.net/. Source: over 1 year ago
Just to complete what /u/AtomicShoelace gave you, NuitKa is not in the FAQ but is a very impressive python compiler. Source: over 1 year ago
Packaging a Python application including dependencies for all platforms is another hard problem. For now, briefcase works best for me, but nuitka is a strong competitor. Source: over 1 year ago
You can write Python code in a statically typed way using type hints, check for type errors using mypy, and you can compile any Python using Nuitka. So, if you mix them both, you get statically typed, compiled Python code! - Source: dev.to / over 1 year ago
If you're looking for a version of this which actually does what it promises including for multithreaded code and code that uses complex extensions, check out Nuitka. It is actively incredible. https://nuitka.net/. - Source: Hacker News / over 1 year ago
Honest question: How does pycom compare to similar tools like Nuitka, prometeo, or mypyc? Source: over 1 year ago
Python is no longer slow (I used https://nuitka.net) since there is a module to compile it. Source: almost 2 years ago
You can also do this with other programming languages which traditionally aren't compiled. For example, we could use Nuitka to convert Python into machine code. Source: almost 2 years ago
You can use Nuitka [1] to compile your Python app. It's going to be fairly weak against someone trying to prise out your logic with a decompiler, especially since a lot of Python metadata is left in there (e.g. For generating stack traces), but good enough for most purposes, and unlike some "compilers" it does not have a hidden copy of the original Python buried in it. If you use standalone mode (not... - Source: Hacker News / about 2 years ago
I personally have good experiences using https://nuitka.net/, it can be a little annoying to set up on Windows, but once running it works like a charm, just remember to put most of your constants in a config file to be able to change them if needs be, as you have to recompile your exe if you want to change stuff, can be very annoying. And these exes's tend to be very big, as they contain your python environment,... Source: about 2 years ago
I managed to solve the problem by stumbling onto Nuitka, which apparently compiles my Python code into something resembling C, as opposed to just packaging it with an interpreter which is what PyInstaller did. It took a fair bit of playing around with to get working right, but it's very smooth now I've figured it out. It's a bit hard to know for sure, but apparently I can expect some significant performace... Source: about 2 years ago
Do you know an article comparing nuitka to other products?
Suggest a link to a post with product alternatives.
This is an informative page about nuitka. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.