DevOps

Nuitka – optimizing Python compiler

Nuitka is a compiler that translates Python applications into compiled executables and extension modules. It aims to preserve Python language semantics while applying compiler optimizations and using a native compiler toolchain to generate executable code. This allows developers to compile existing Python applications without rewriting them in another programming language.

Nuitka supports different compilation modes for different purposes. A conventional compiled program can depend on an installed Python environment, while standalone mode collects the runtime components and dependencies required to execute the application independently of that environment. Onefile mode provides another distribution option by combining the application into a single executable. Nuitka also supports extension-module compilation, allowing selected Python modules to be compiled and imported by other Python applications. Its performance characteristics depend on the operations performed by the program and the opportunities available for optimization.

This is free and open source software.

Key Features

  • Compilation of Python applications into native executables.
  • Generation of importable Python extension modules.
  • Source-to-source translation into C code for native compilation.
  • Compiler optimizations including constant folding and propagation.
  • Whole-program analysis of supported Python constructs.
  • Standalone application compilation with dependency collection.
  • Onefile mode for producing single executable application files.
  • Support for including application data and other resources.
  • Plugin system for framework-specific dependency handling.
  • Support for graphical applications using established Python GUI frameworks.
  • Configurable inclusion and exclusion of imported modules.
  • Compilation reports describing processed modules and compiler decisions.
  • Options for controlling debugging information and generated output.
  • Integration with supported native compiler toolchains.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/Nuitka/Nuitka
Support:
Developer: Kay Hayen and Nuitka contributors
License: GNU Affero General Public License v3.0 with Nuitka Runtime Library Exception

Nuitka is written in Python and C. Learn Python with our recommended free books and free tutorials. Learn C with our recommended free books and free tutorials.


Related Software

Compilers
GNU Compiler CollectionThe standard compiler for most Unix-like operating systems
rustcCompiler for the Rust programming language
AOCCAMD Optimizing C/C++ Compiler
LLVMLow-Level Virtual Machine (LLVM) compiler for C/C++
ispcIntel SPMD Program Compiler
BabelJavaScript compiler - use next generation JavaScript
Glasgow Haskell CompilerAn optimizing compiler for Haskell, written in Haskell
ClangC Language Family Frontend for LLVM
NuitkaOptimizing Python compiler
CHICKENCompiler for the Scheme programming language
FreeBASIC32-bit BASIC compiler
NumbaCompiler for Python array and numerical functions
Free PascalAdvanced Pascal compiler for Pascal and Object Pascal
NASMAssembler for the x86 CPU architecture
BiglooPractical Scheme compiler

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted