Skip to main content

Whitelist python created exe's to make them bat scripts.

Project description

winzy-whitelist

PyPI Changelog Tests License

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:

  1. Finds the Executable: It searches for the <app_name>.exe file in your system's PATH.
  2. 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 the console_scripts entry points defined in your application's packaging.
  3. Creates a Batch File: Finally, it creates a batch file (e.g., <app_name>.bat or an alternative name if specified) that executes the companion script using python. 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


Download files

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

Source Distribution

winzy_whitelist-0.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

winzy_whitelist-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

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

Hashes for winzy_whitelist-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce3a08f3c5c9f8c7a6fbe06e77441f2a5f290e1d6beef306c8bd4593ac625856
MD5 304585e4a95437badee691ad09c1f09d
BLAKE2b-256 ca0c4c3f465436a2ec1ff1267948e564ec95bfec662f17f29af5e3bcd9bafee5

See more details on using hashes here.

Provenance

The following attestation bundles were made for winzy_whitelist-0.1.0.tar.gz:

Publisher: publish.yml on sukhbinder/winzy-whitelist

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file winzy_whitelist-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for winzy_whitelist-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40457b8c020c5b5ece4abaee967837403d3c6e3f96215ad921ce80701f4f9c1d
MD5 984c7bfeaf991238ae375ef69cba5f3a
BLAKE2b-256 16e8bab5b5c41f01eb01d96154d05489e0cdbc520b60ddbe1df7f04b4d61a621

See more details on using hashes here.

Provenance

The following attestation bundles were made for winzy_whitelist-0.1.0-py3-none-any.whl:

Publisher: publish.yml on sukhbinder/winzy-whitelist

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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