pyndler
Description
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.
How does it work?
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.
Usage
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>
Metadata
Release files for pyndler 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyndler-0.1.0.tar.gz | 757.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyndler-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 1.5 MB
Release files / pyndler-0.1.0.tar.gz
| Download URL | pyndler-0.1.0.tar.gz |
|---|---|
| Size | 757.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2c7f0e8d8486710f0f9df64f7815261ee222e12162cc78d412b23bb627c2698
|
|
BLAKE2b-256 checksum How to use checksums |
57f2473f5551188345a15cdf12f402cc5ec1c5267fac648f7682a15052df0c95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / pyndler-0.1.0-py2.py3-none-any.whl
| Download URL | pyndler-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 758.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d7e0efc5bdce2bc4f74cd2d0a27c28d7df9d0d0940af6c6a48c670758ab25499
|
|
BLAKE2b-256 checksum How to use checksums |
416c6a0e0571d2069c700409bc323a16e02dc91bf9098e02946bc573df677ff6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|