Skip to main content

Convert your PySimpleGUI or other Python program into binary for easy distribution. GUI uses PySimpleGUI. Back-end compile performed using pyinstaller (so far... others are being added)

Project description

Python GUIs for Humans

psgcompiler

A PySimpleGUI Application

"Compile" your Python programs into an EXE for Windows, an APP for Mac, and a binary for Linux

Installation

Old-school Straight Pip

pip install psgcompiler

pip via python -m pip the python recommended way

If python is your command

python -m pip install psgcompiler

If python3 is your command

python3 -m pip install psgcompiler

Usage

Open a command window and type:

psgcompiler

pyinstaller Back-end with a PySimpleGUI Front-end

The psgcompiler is a front-end GUI for the fantastic pyinstaller program. This program transforms your Python project into an executable that you can distribute to friends, family members, colleagues, the public, other developers, ... Anyone that does not have Python installed on their machine will be able to run your program after you've turned it into a binary executable.

PySimpleGUI users in particular will greatly benefit from the psgcompiler as you'll be able to distribute "Windows Programs". Most likely no one will know you're using Python. On Windows, you can create a single EXE file. This is in fact the default. After converting, you'll be left with a single EXE file.

A Multitude Of Options

pyinstaller has a sh*t-ton of options! Unlike the primitive EXE Maker that the PySimpleGUI project created, the psgcompiler exposes all of the options in an easy to use way.

A Simple EXE

If your program is relatively simple, then you only need to supply the name of your Python file, and an optional icon file.

Here is an example session showing only the .pyw file and the .ico file being supplied.

Additional Back-ends

Currently in the works is support for additional back-ends. cx_freeze is up next.

Create a Shortcut To This Program

If you're a Windows user, then use the psgshortcut application to make a shortcut to this program so that you can then put on your desktop or pin to your taskbar (or any other use that stops the need to type psgresizer ever again).

Release Notes

1.3.0 13 Nov 2021

  • Version number of psgcompiler, PyInstaller both added to right-click-menu and to version popup

1.2.0 13 Nov 2021

  • Added version number in the .py file
  • Added version number to right click menu
  • Added local copy of version for debugging
  • Posted to PyPI

1.0.0 13 Nov 2021

  • Initial release, post to PyPI and GitHub

License

Licensed under an LGPL3 License
Copyright 2021

This PySimpleGUI Application Was Designed and Written By

Tanay Findley as part of The PySimpleGUI Project

Contributing

Like the PySimpleGUI project, this project is currently licensed under an open-source license, the project itself is structured like a proprietary product. Pull Requests are not accepted.

Copyright

Copyright 2021 PySimpleGUI

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

psgcompiler-1.3.0.tar.gz (17.3 kB view hashes)

Uploaded Source

Built Distribution

psgcompiler-1.3.0-py3-none-any.whl (15.6 kB view hashes)

Uploaded Python 3

Supported by

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