Short description
script2bundle is a command line Python script that bundles an executable, e.g. another (Python) script, into a MacOS application bundle. Compared to py2app, this is a minmal wrapper and allows editable installs (PEP660), but the application bundle will only work on the computer it was created. Script2bundle is of limited use for command line scripts, where Platypus might be a better option. It is intended to be used for GUI (e.g. Qt) executables.
How to use
Simply run the script without any options to generate an example file. Afterwards, you will find example.app in the same folder.
General options:
- -e The filename of the (existing) executable file to be bundled.
- -f The filename of the app to be generated (without .app).
- -i The (existing) png file to be used to generate an icon.
- -d The destination of the .app file: user (~/Applications), system (/Applications) or executable (same as -e).
- --launch Launch the app to register properly.
- --terminal Launch the app via a Terminal
Options to connect a file extension
- -x An (app specific!) file extension to be opened by the app.
- --CFBundleTypeRole The app’s role with respect to the file extension. Can be Editor, Viewer, Shell or None.
Additional modifier options:
The information above will be used to generate reasonable entries in Info.plist. However, these entries can be directly modified using the corresponding argument named according to the Apple documentation. The implemented options are:
- --CFBundleDisplayName Specifies the display name of the bundle, visible to users and used by Siri.
Notes
Due to the internal structure of some entries, they have to be formatted according to RFC 1035. If neccessary, an error is raised by script2bundle, e.g. caused by two subsequent dashes in the filename.
Metadata
Release files for script2bundle 0.3.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 | Provenance | Actions |
|---|---|---|---|---|
| script2bundle-0.3.0.tar.gz | 5.2 kB | Without provenance | Details for script2bundle-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| script2bundle-0.3.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for script2bundle-0.3.0-py2.py3-none-any.whl |
Total release size: 11.1 kB
Release files / script2bundle-0.3.0.tar.gz
| Download URL | script2bundle-0.3.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18a994080ab0579063a093ad02aaf3a7122f75ad4a683768d2430e2f333d5677
|
|
BLAKE2b-256 checksum How to use checksums |
5f54b3ff2809baba7849378b280ef8de54798f54f44787ff386114924f9c73eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / script2bundle-0.3.0-py2.py3-none-any.whl
| Download URL | script2bundle-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8b6d286a07c65c956cc77175ea092fb6827005a0a4adf66b9051ecac2680f938
|
|
BLAKE2b-256 checksum How to use checksums |
c2694d40c7b224ffd98a7b88ee5e26eeb2217f8bd8411ef78e4e58f32ea3b007
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Security for script2bundle 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.