Import from command line
Import from JSON
python -m nuitka
--module
--standalone
--onefile
--python-debug
--mode="accelerated"
--python-flag=
--python-for-scons="undefined"
--prefer-source-code
--follow-imports
--nofollow-imports
--follow-stdlib
--onefile-no-compression
--onefile-as-archive
--onefile-tempdir-spec="{TEMP}/onefile_{PID}_{TIME}"
--onefile-child-grace-time="5000"
--warn-implicit-exceptions
--warn-unusual-code
--assume-yes-for-downloads
--run
--debugger
--full-compat
--remove-output
--no-pyi-file
--no-pyi-stubs
--output-filename="<program_name>"
--output-dir="./"
--deployment
--debug
--no-debug-immortal-assumptions
--unstripped
--profile
--trace-execution
--low-memory
--generate-c-only
--xml="undefined"
--devel-missing-code-helpers
--devel-missing-trust
--devel-recompile-c-only
--devel-internal-graph
--clang
--mingw64
--lto="auto"
--static-libpython="auto"
--msvc="undefined"
--jobs="undefined"
--cf-protection="auto"
--disable-ccache
--disable-dll-dependency-cache
--force-dll-dependency-cache-update
--disable-cache=
--clean-cache=
--pgo-c
--report-diffable
--quiet
--show-scons
--no-progressbar
--show-progress
--show-memory
--show-modules
--verbose
--report="undefined"
--show-modules-output="undefined"
--verbose-output="undefined"
--force-stdout-spec="undefined"
--force-stderr-spec="undefined"
--windows-uac-admin
--windows-uac-uiaccess
--windows-console-mode="force"
--onefile-windows-splash-screen-image="undefined"
--macos-create-app-bundle
--macos-sign
--macos-app-mode="gui"
--macos-target-arch="native"
--macos-app-icon="python"
--macos-signed-app-name="undefined"
--macos-app-name="undefined"
--macos-sign-identity="ad-hoc"
--macos-app-version="undefined"
--linux-icon="undefined"
--company-name="undefined"
--product-name="undefined"
--file-version="undefined"
--product-version="undefined"
--file-description="undefined"
--copyright="undefined"
--trademarks="undefined"
--plugin-list
--enable-plugins=
--disable-plugins=
--target="undefined"
--show-anti-bloat-changes
{
"main": {
"value": [],
"user_provides_choices": {
"main": {
"i18n": "",
"command": {
"original": "main.py"
},
"enabled": true,
"user_provide": true
}
}
},
"onefile_child_grace_time": {
"value": "time",
"user_provides_choices": {
"time": {
"i18n": "",
"command": {
"original": "5000"
},
"enabled": true,
"user_provide": true
}
}
}
}
Command line output
JSON output
Module mode (--module)
Standalone mode (--standalone)
Onefile mode (--onefile)
Python debug (--python-debug)
Mode (--mode)
Accelerated mode (accelerated)
Python flags (--python-flag)
Select
Python path for Scons (--python-for-scons)
Select
Main program path (--main)
Select
Prefer source code (--prefer-source-code)
Include package (--include-package)
Select
Include module (--include-module)
Select
Include plugin directory (--include-plugin-directory)
Select
Include plugin files (--include-plugin-files)
Select
Follow all imports (--follow-imports)
Do not recurse into any imports (--nofollow-imports)
Follow imports into stdlib (--follow-stdlib)
Follow import to module (--follow-import-to)
Select
Do not follow import to module (--nofollow-import-to)
Select
No compression for onefile (--onefile-no-compression)
Use archive for onefile (--onefile-as-archive)
Onefile temp directory location (--onefile-tempdir-spec)
User temp directory ({TEMP}/onefile_{PID}_{TIME})
Onefile child process grace time (--onefile-child-grace-time)
5000
Include package data (--include-package-data)
Select
Include data files (--include-data-files)
Select
Include data directory (--include-data-dir)
Select
Do not include data files (--noinclude-data-files)
Select
Include external data for onefile (--include-onefile-external-data)
Select
List package data (--list-package-data)
Select
Include raw directory (--include-raw-dir)
Select
Include distribution metadata (--include-distribution-metadata)
Select
Do not include DLLs (--noinclude-dlls)
Select
List package DLLs (--list-package-dlls)
Select
List EXE files for the given package (--list-package-exe)
Select
Warn about implicit exceptions (--warn-implicit-exceptions)
Warn about unusual code (--warn-unusual-code)
Assume yes for downloads (--assume-yes-for-downloads)
Disable mnemonic warning (--nowarn-mnemonic)
Select
Run immediately (--run)
Run in debugger (--debugger)
Full CPython compatibility (--full-compat)
User package config files (--user-package-configuration-files)
Select
File reference choice (--file-reference-choice)
Select
Module name choice (--module-name-choice)
Select
Remove build folder (--remove-output)
Do not create .pyi file (--no-pyi-file)
Do not create pyi stubs (--no-pyi-stubs)
Output filename (--output-filename)
Program name (<program_name>)
Output directory (--output-dir)
Current directory (./)
Deployment mode (--deployment)
No deployment flag (--no-deployment-flag)
Select
Force runtime environment variable (--force-runtime-environment-variable)
Select
Debug mode (--debug)
Disable debug checks for Immortal Objects (--no-debug-immortal-assumptions)
Do not remove debug info (--unstripped)
Profiling (--profile)
Trace execution (--trace-execution)
Low memory mode (--low-memory)
Generate C source only (--generate-c-only)
Output XML (--xml)
Select
Experimental (--experimental)
Select
Create environment from report (--create-environment-from-report)
Select
Devel - missing code helpers (--devel-missing-code-helpers)
Devel - missing trust (--devel-missing-trust)
Devel - recompile C source only (--devel-recompile-c-only)
Devel - internal graph (--devel-internal-graph)
Force clang (--clang)
Force mingw64 (--mingw64)
Link time optimization (--lto)
auto (auto)
Use Python static library (--static-libpython)
auto (auto)
Use specific MSVC version (--msvc)
Select
Number of parallel compile tasks (--jobs)
Select
gcc compiler CF protection mode (--cf-protection)
Automatic (auto)
Disable ccache (--disable-ccache)
Disable DLL dependency cache (--disable-dll-dependency-cache)
Force DLL dependency cache update (--force-dll-dependency-cache-update)
Disable cache (--disable-cache)
Select
Clean cache (--clean-cache)
Select
Profile Guided Optimization (--pgo-c)
PGO arguments (--pgo-args)
Select
PGO executable (--pgo-executable)
Select
Report diffable (--report-diffable)
Quiet mode (--quiet)
Show scons (--show-scons)
No progress bar (--no-progressbar)
Show progress (--show-progress)
Show memory (--show-memory)
Show modules (--show-modules)
Verbose mode (--verbose)
Output report (--report)
Select
Show modules output path (--show-modules-output)
Select
Verbose output path (--verbose-output)
Select
Report user provided (--report-user-provided)
Select
Report template (--report-template)
Select
Force standard output spec (--force-stdout-spec)
Select
Force standard error spec (--force-stderr-spec)
Select
Request Windows UAC admin privileges (--windows-uac-admin)
Request Windows UAC UIAccess (--windows-uac-uiaccess)
Windows console mode (--windows-console-mode)
Force mode (force)
Onefile Windows splash screen image (--onefile-windows-splash-screen-image)
Select
Windows icon (ico file) (--windows-icon-from-ico)
Select
Windows icon (exe file) (--windows-icon-from-exe)
Select
Create macOS application bundle (--macos-create-app-bundle)
macOS signing notarization (--macos-sign)
macOS application mode (--macos-app-mode)
GUI mode (gui)
macOS target architecture (--macos-target-arch)
Native architecture (native)
Path to macOS application icon (--macos-app-icon)
Python icon (python)
macOS signed application name (--macos-signed-app-name)
Select
macOS application name (--macos-app-name)
Select
macOS signing identity (--macos-sign-identity)
Ad-hoc signing (ad-hoc)
macOS application version (--macos-app-version)
1.0
Request macOS protected resource permission (--macos-app-protected-resource)
Select
Linux icon (--linux-icon)
Select
Company name (--company-name)
Select
Product name (--product-name)
Select
File version (--file-version)
Select
Product version (--product-version)
Select
File description (--file-description)
Select
Copyright text (--copyright)
Select
Trademarks text (--trademarks)
Select
Plugin list (--plugin-list)
Enable plugins (--enable-plugins)
Select
Disable plugins (--disable-plugins)
Select
User plugin (--user-plugin)
Select
Module parameter (--module-parameter)
Select
Show source changes (--show-source-changes)
Select
Target (--target)
Select
Show anti-bloat changes (--show-anti-bloat-changes)
No-include setuptools mode (--noinclude-setuptools-mode)
Select
No-include pytest mode (--noinclude-pytest-mode)
Select
No-include unittest mode (--noinclude-unittest-mode)
Select
No-include pydoc mode (--noinclude-pydoc-mode)
Select
No-include IPython mode (--noinclude-IPython-mode)
Select
No-include dask mode (--noinclude-dask-mode)
Select
No-include numba mode (--noinclude-numba-mode)
Select
No-include default mode (--noinclude-default-mode)
Select
No-include custom mode (--noinclude-custom-mode)
Select
playwright include browser (--playwright-include-browser)
Select
spaCy language model (--spacy-language-model)
Select
Basic settings
Control which modules and packages to include in the result
Control imported modules
Onefile options
Data files
Metadata support
DLL (dynamic link library) files
Control warnings issued by Nuitka
Execute immediately after compilation
Compilation options
Output options
Deployment control
Environment control
Debug features
Nuitka development features
Backend C compiler choice
Cache control
PGO (Profile Guided Optimization) compilation options
Tracing features
General OS settings
Windows-specific controls
macOS-specific controls
Linux-specific controls
Binary version information
Plugin control
Cross-compilation
'Anti-bloat' plugin options (Category: Core)
'Playwright' plugin options
Spacy plugin options (Category: package support)
Input
Output
Edit