Whitelist python created exe's to make them bat scripts.
Project description
winzy-whitelist
Whitelist python created exe's to make them bat scripts.
Installation
First configure your Winzy project to use Winzy.
Then install this plugin in the same environment as your Winzy application.
pip install winzy-whitelist
Usage
Some orgs doesn't allow using exe created by python, this plugin will create and equivalent batch file that can be used.
usage: Lets say winzy.exe created by pip install winzy is not usable, do this to call it wiz
winzy wlist winzy --alt-app-name wiz
This will create a wiz.bat in the correct place and now you can use winzy using the new name wiz. If alt-app-name is not provided winzy.bat gets created.
How it Works
When you run winzy wlist <app_name>, the tool performs the following steps:
- Finds the Executable: It searches for the
<app_name>.exefile in your system's PATH. - Creates a Companion Script: In the same directory as the executable, it creates a Python script named
<app_name>-script.py. This script is designed to call the main function of your application. The tool automatically detects the correct module to import and function to call by inspecting theconsole_scriptsentry points defined in your application's packaging. - Creates a Batch File: Finally, it creates a batch file (e.g.,
<app_name>.bator an alternative name if specified) that executes the companion script usingpython. This allows you to run your application through the batch file without directly using the.exe.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd winzy-whitelist
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
Running Tests
To run the tests:
python -m pytest
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file winzy_whitelist-0.1.0.tar.gz.
File metadata
- Download URL: winzy_whitelist-0.1.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce3a08f3c5c9f8c7a6fbe06e77441f2a5f290e1d6beef306c8bd4593ac625856
|
|
| MD5 |
304585e4a95437badee691ad09c1f09d
|
|
| BLAKE2b-256 |
ca0c4c3f465436a2ec1ff1267948e564ec95bfec662f17f29af5e3bcd9bafee5
|
Provenance
The following attestation bundles were made for winzy_whitelist-0.1.0.tar.gz:
Publisher:
publish.yml on sukhbinder/winzy-whitelist
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
winzy_whitelist-0.1.0.tar.gz -
Subject digest:
ce3a08f3c5c9f8c7a6fbe06e77441f2a5f290e1d6beef306c8bd4593ac625856 - Sigstore transparency entry: 1338348385
- Sigstore integration time:
-
Permalink:
sukhbinder/winzy-whitelist@f66df4aff435845082730f86b255a3fa9875bd12 -
Branch / Tag:
refs/tags/v0.1.0b - Owner: https://github.com/sukhbinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f66df4aff435845082730f86b255a3fa9875bd12 -
Trigger Event:
release
-
Statement type:
File details
Details for the file winzy_whitelist-0.1.0-py3-none-any.whl.
File metadata
- Download URL: winzy_whitelist-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40457b8c020c5b5ece4abaee967837403d3c6e3f96215ad921ce80701f4f9c1d
|
|
| MD5 |
984c7bfeaf991238ae375ef69cba5f3a
|
|
| BLAKE2b-256 |
16e8bab5b5c41f01eb01d96154d05489e0cdbc520b60ddbe1df7f04b4d61a621
|
Provenance
The following attestation bundles were made for winzy_whitelist-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on sukhbinder/winzy-whitelist
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
winzy_whitelist-0.1.0-py3-none-any.whl -
Subject digest:
40457b8c020c5b5ece4abaee967837403d3c6e3f96215ad921ce80701f4f9c1d - Sigstore transparency entry: 1338348459
- Sigstore integration time:
-
Permalink:
sukhbinder/winzy-whitelist@f66df4aff435845082730f86b255a3fa9875bd12 -
Branch / Tag:
refs/tags/v0.1.0b - Owner: https://github.com/sukhbinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f66df4aff435845082730f86b255a3fa9875bd12 -
Trigger Event:
release
-
Statement type: