Skip to main content

Python compiler with full language support and CPython compatibility

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 Windows service. Just like --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 install 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Nuitka-winsvc-1.4.7.tar.gz (3.4 MB view details)

Uploaded Source

Built Distribution

Nuitka_winsvc-1.4.7-cp310-cp310-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.10 Windows x86-64

File details

Details for the file Nuitka-winsvc-1.4.7.tar.gz.

File metadata

  • Download URL: Nuitka-winsvc-1.4.7.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for Nuitka-winsvc-1.4.7.tar.gz
Algorithm Hash digest
SHA256 1ba894147df0a5aef80fa757190739be465eabfc80024a84dfe01c56b6ef36b7
MD5 11bb788534046f5b4b63f2163cc02e56
BLAKE2b-256 843d62f45f0639437a285c3a0a2420527ed9156668d382574ef36fd0cba1c560

See more details on using hashes here.

File details

Details for the file Nuitka_winsvc-1.4.7-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for Nuitka_winsvc-1.4.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4d974f63c5fe49afb3f75a08616224acaade4562dc48e4bac7bfb8d1086548a4
MD5 b5ffd077ab266cb5dad2a3befd4ec65e
BLAKE2b-256 c1006252216582b19b935989491b763a3dc34d6218faedbd0d6c83dbb94dc328

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page