Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Pyndler is a lightweight tool for bundling a pyz file in an exe file. If an executable is deployed, it can also be useful to set an executable icon or additional metadata (product name, company name, versions, ...).
Python projects must be bundled using shiv, zipapp or any other pyz-like packaging tool, before they can be bundled as .exe files using Pyndler.
Pyndler uses the fantastic python distlib launcher mentioned in PEP 397.
First, the pylauncher is copied to the target path. Then the pyz file is appended to the launcher. Afterwards, an additional icon or metadata is set using rcedit - a great project usually used for branding electron project.
Install the latest pyndler release using pip:
pip install pyndler
Run pyndler:
pyndler <SOURCE>
-c, --config VALUE:ExistingFile Path to config file for setting additional metadata
--gui Set to true, if source is a GUI application
-i, --icon VALUE:ExistingFile Path to exe icon
--refresh Refresh Windows icon cache after building
-t, --target VALUE:ExistingFile Path to output file. If not set, the source path is taken
Example call:
pyndler example.pyz --icon icon.ico --config app.cfg
The metadata config file must be written using INI-like syntax with keys listed here, grouped in a VERSIONINFO
section like:
[VERSIONINFO]
<key>=<value>
FAQs
Executable bundler for Windows
We found that pyndler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.