Nuitka but support compile as Windows service
Project description
Nuitka-winsvc User Manual
Nuitka-winsvc is a forked version of Nuitka, it supports compiling EXE as a Windows service.
Install
You can install Nuitka-winsvc by pip:
pip install nuitka-winsvc
Usage
In addition to supporting all the command line arguments of Nuitka, Nuitka-winsvc also provides 5 additional arguments for compiling the Windows services:
-
--windows-service
Enable Windows service mode, works only when compiling for Windows and onefile mode enabled.
-
--windows-service-name
Name of the Windows service. If not provided, the target program name will be used as the service name.
-
--windows-service-display-name
Display name of the Windows service. If not provided, the product name will be attempted to use.
-
--windows-service-description
Description of the Windows service. If not provided, the file description will be attempted to use.
-
--windows-service-cmdline
Additional command line arguments that will be passed to the service, such as
--config config.json --output output.log
.
Use the following command to build a Windows service:
python -m nuitka --onefile --output-dir=build --windows-service --windows-service-name=myservice --windows-service-display-name="My Service" --windows-service-description="This is the description of my service" --windows-service-cmdline="-c config.yml -o output.log" main.py
When the python program is compiled successfully, you can use the following command to install the service:
.\main.exe install
Also you can use the following command to uninstall the service:
.\main.exe uninstall
Note: Administrator privileges is required when installing and uninstalling the Windows services. You should run the above commands as administrator.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Nuitka_winsvc-1.4.8-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0c4ffec3eb3cf9ff39f8f8d4c0bdd319f6cc0a11e4bcdedafa141b521f93163 |
|
MD5 | c7de5a116829312221d6fbd59d4ab50e |
|
BLAKE2b-256 | 5ec4a3507b80b2518d8428e994bd1a150b8cd62a7ac0f43659ae108700ffb4a7 |