r/PythonProjects2 • u/JulyIGHOR • Apr 02 '26
Info How to Turn a Python Script into a macOS App with Parall.app
I am the developer of Parall, and I have been using it for a very practical workflow on macOS that makes local Python GUI development much more convenient.
Instead of opening Terminal every time, activating an environment, typing a command, and launching the script manually, I create a lightweight app bundle for the project and pin it to the Dock. Then the loop becomes very simple. Edit code, quit the app, click the Dock icon, and immediately run the latest code from the project folder.
This is especially nice for learning Python GUI development, testing small local tools, and iterating on a project without extra friction.
Here is a simple example using PyQt6.
1. Create a PyQt6 project in a new folder
Create a new folder for the example project:
mkdir ~/Downloads/PyQtParallDemo
cd ~/Downloads/PyQtParallDemo
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install PyQt6Create main.py:
import sys
import os
from PyQt6.QtWidgets import QApplication, QWidget, QVBoxLayout, QLabel, QPushButton
class DemoWindow(QWidget):
def __init__(self):
super().__init__()
profile = os.environ.get("DEMO_PROFILE", "default")
self.setWindowTitle(f"PyQt Parall Demo - {profile}")
self.resize(420, 220)
layout = QVBoxLayout()
label1 = QLabel("Hello from a simple PyQt app")
label2 = QLabel(f"Profile: {profile}")
label3 = QLabel(f"PID: {os.getpid()}")
button = QPushButton("Quit")
button.clicked.connect(self.close)
layout.addWidget(label1)
layout.addWidget(label2)
layout.addWidget(label3)
layout.addWidget(button)
self.setLayout(layout)
app = QApplication(sys.argv)
window = DemoWindow()
window.show()
sys.exit(app.exec())Test it once from Terminal:
cd ~/Downloads/PyQtParallDemo
./.venv/bin/python ./main.pyIf the window opens, the project is ready to use with Parall.
2. Run Parall and select Command Shortcut mode
Open Parall and create a new shortcut using Command Shortcut mode.

This is the mode that lets you launch a local command as a normal macOS app, with its own Dock icon and the window created by your Python code. This is not limited to PyQt. It can also work with other Python GUI frameworks, and more broadly with terminal apps that you want to launch through a normal macOS app shortcut.
3. Enter the binary path, argument, and environment variable
For this example, use the Python binary from the virtual environment as the command.
Binary path:
~/Downloads/PyQtParallDemo/.venv/bin/pythonArgument:
~/Downloads/PyQtParallDemo/main.pyYou can also add environment variables if your project needs them. For example, if you want to make sure the app runs with the project folder as the working context, or if your code depends on custom variables, define them in Parall here.

4. Configure the shortcut name and icon
Give the shortcut a clean name, for example:
PyQt Parall DemoThen choose an icon for it. This is a small detail, but it makes the shortcut feel much more like a real app once it is pinned to the Dock.

5. Optionally enable Dock icon animations
If you want, enable Dock icon animations in Parall.
This is optional, but it adds something that most Mac apps do not have. Instead of trying to mimic a normal app experience, it gives the shortcut a more dynamic and distinctive feel.

6. Export the app bundle, approve it, and use it
Export the shortcut as an app bundle.

macOS may ask you to approve or confirm the app the first time, depending on your system settings. Approve it, then launch it.
After that, you can pin it to the Dock and use it like a normal app.

Why this is useful for learning and testing
This setup is great for local Python GUI development because it shortens the feedback loop.
- You keep your source code in a normal project folder.
- You edit the Python files whenever you want.
- You quit the running app.
- You click the Dock icon again.
- The latest code from the folder runs immediately.
That makes experimentation much easier than going through Terminal every time. It is especially useful when you are learning PyQt6, testing UI changes, or building small local desktop tools that you want to relaunch often during development.
This is not about packaging a frozen standalone build for distribution. It is about making local development feel smoother and more natural on macOS.
Parall is available on the Mac App Store and can do much more than this post covers. Learn more here: https://parall.app