Based on our record, Cython seems to be a lot more popular than py2exe. While we know about 48 links to Cython, we've tracked only 1 mention of py2exe. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.
>Not type safe That's the point. Look up what duck typing means in Python. Your program is meant to throw exceptions if you pass in data that doesn't look and act how it needs to. This means that in Python you don't need to do defensive programming. It's not like in C where you spend many hundreds of lines safe-guarding buffer lengths, memory allocation, return codes, static type sizes, and so on. That means that... - Source: Hacker News / 8 months ago
Https://cython.org can help with that. - Source: Hacker News / about 1 year ago
The approach that I favour is to use Cython. The nice thing with this approach is that your code is still written as (almost) Python, but so long as you define all required types correctly it will automatically create the C extension for you. Early versions of Cython required using Cython specific typing (Python didn't have type hints when Cython was created), but it can now use Python's type hints. Source: almost 2 years ago
Just for reference, * Nuitka[0] "is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11." * Pypy[1] "is a replacement for CPython" with builtin optimizations such as on the fly JIT compiles. * Cython[2] "is an optimising static compiler for both the Python programming language and the extended Cython programming language... Makes writing C... - Source: Hacker News / almost 2 years ago
Profile and optimize the hotspots with cython (or whatever the cool kids are using these days... It's been a while.). Source: about 2 years ago
Sounds like you are on Windows. I think something like https://py2exe.org/ will be what you are after. I'm on Mac / Linux systems only, so I can't really provide info on how to use it, but I know there are some good tutorials out there. Source: over 2 years ago
Numba - Numba gives you the power to speed up your applications with high performance functions written...
PyInstaller - PyInstaller is a program that freezes (packages) Python programs into stand-alone executables...
nuitka - Nuitka is a Python compiler.
cx_Freeze - cx_Freeze is a set of scripts and modules for freezing Python scripts into executables in much the...
PyPy - PyPy is a fast, compliant alternative implementation of the Python language (2.7.1).
bbfreeze - create stand-alone executables from python scripts