maketool
maketool is a command-line utility and helper module that simplifies execution and building PySide6 Python 3.7+ applications into executables using PyInstaller 5.8.0. Note: Windows only
It's especially useful for GUI projects that need embedded resources (e.g., .ui, .qrc) and aim to produce portable .exe builds with minimal setup.
Why Use maketool?
If you build windows desktop apps using PySide6, maketool:
- Saves time when converting
.uiand.qrcfiles - Simplifies PyInstaller builds
- Packages your application with minimal commands
- Automates repetitive tasks like building and cleanup
- Integrates easily with
.batscripts or shell commands - Is great for both beginners and advanced developers using PySide6
Commands
1. run
Purpose: Compile .ui and .qrc files recursively (using pyside6-uic.exe and pyside6-rcc.exe), then run the Python program using pythonw.exe.
ONLY out-of-date pyside components are rebuilt, so we don't waste time rebuilding ui/qrc files if they are unchanged.
Usage:
maketool-run [-h] file
Parameters:
file python file to run
-h, --help show this help message and exit
2. clean
Purpose: Remove build artifacts, caches, generated UI files, PyInstaller output, and spec files.
Removes:
- pycache folders
- *_ui.py, *_rc.py, *.pyc, *.pyo
- PyInstaller build/ and dist/ folders
- .spec files in the current directory
Usage: maketool-clean
3. compile
Purpose: Build an executable using PyInstaller, including UI/QRC compilation, icon embedding, version stamping, and resource embedding.
Features:
- Supports onefile/onedir/console modes
- Auto-generates a PyInstaller .spec file
- Handles .ui/.qrc compilation automatically
- Supports embedding arbitrary files (DLLs, images, data assets, etc.)
- Updates version in the Python file when --version is provided
PyInstaller is conservative and often bundles Qt/OpenSSL DLLs that a given app never actually touches at runtime. This is a well-known PySide6/PyInstaller pain point, so stripping known-unused ones is a common technique to minimize final exe size.
By default, maketool-compile uses an internal list of commonly unused PySide6/Qt/OpenSSL DLLs and excludes them from the final build. This can dramatically shrink the size of the generated exe.
PySide6 DLL Exclusion:
- if --exclude is NOT used then compile uses the following internal default exclude list.
qdirect2d.dll,qpdf.dll,opengl32sw.dll,Qt6Network.dll,Qt6Pdf.dll,Qt6Pdf.dll.dll,Qt6QmlModels.dll,Qt6Qml.dll,libssl-3.dll,Qt6Quick.dll,Qt6Svg.dll,libcrypto-3.dll,QtNetwork.pyd,Qt6VirtualKeyboard.dll,qtuiotouchplugin.dll,qsvgicon.dll,qnetworklistmanager.dll,qtvirtualkeyboardplugin.dll,qwindowsvistastyle.dll,qcertonlybackend.dll,qopensslbackend.dll,qschannelbackend.dll,Qt6OpenGL.dll
- --exclude=""
Exclude nothing; keep all DLLs that PyInstaller bundles for PySide6.
- --exclude=Qt6Svg.dll,Qt6Qml.dll,...
Exclude exactly the DLLs you specify.
If your exe crashes or is strangely missing functionality that otherwise appears when you run the .py file, you may need to reduce or remove exclusions.
Usage:
maketool-compile [-h] --file FILE --type {onefile,onedir,console}
[--icon ICON] [--embed EMBED]
[--exclude EXCLUDE]
[--version VERSION]
Parameters:
-h, --help show this help message and exit
--file FILE python file to compile to exe
--type {onefile,onedir,console}
type of exe to build
--icon ICON ico file
--embed EMBED comma delimited list of files to embed
--exclude EXCLUDE comma-delimited list of DLLs to exclude.
"" means exclude nothing.
If omitted, maketool uses its internal default list.
--version VERSION program version (otherwise use __version__ in py source)
4. sublime
WARNING: This will overwrite existing custom key bindings at that path
Purpose: Install custom Sublime Text 4 shortcuts and commands.
Future: plan for support of vscode editor.
Shortcuts installed:
- CTRL+BACKSPACE - delete line
- CTRL+ALT+E - open windows explorer where current file is located
- CTRL+0 - reset font size
- F1 - insert print statement for variable where cursor is located
- F5 - run pyflakes on current python source
- F6 - maketool-refscan - scan for unused/orphan files in the project
- F7 - build (runs maketool-run on current script via the build system)
- F10 - insert current date/day
Usage:
maketool-sublime [-h] --path PATH
Parameters:
-h, --help show this help message and exit
--path PATH sublime text - data/package/user path
5. refscan
Purpose: Scan for unused/orphan files using string-based heuristics.
This is especially useful for catching forgotten assets like .ui, .qss, .ico, images, etc.
"Unused" means "no string reference found anywhere in .py files".
Default behavior:
maketool-refscan
Show both used and unused:
maketool-refscan --show-used
Write a CSV report:
maketool-refscan --csv refscan-report.csv
Notes:
- This is heuristic (string-based). It may miss dynamically constructed paths/imports and may produce false positives.
- For best results, run it from your project root.
Features
- Simple command-line interface for
.bator.shworkflows - Converts all
.uiand.qrcfiles recursively - Cleans up Python build artifacts
- Packages apps using PyInstaller
- Supports custom
.icoicons - Supports optional resource embedding
Requirements
- Python 3.7+
- PySide6
- Tested with PyInstaller 5.8
Installation
Install maketool helper from PyPI with following command:
pip install maketool
License
MIT License
Copyright 2026 Alan Lilly
Metadata
Release files for maketool 0.8.44
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 |
|---|---|---|---|---|
| maketool-0.8.44.tar.gz | 19.4 kB | Without provenance | Details for maketool-0.8.44.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| maketool-0.8.44-py3-none-any.whl | Python 3 | none | any | Details for maketool-0.8.44-py3-none-any.whl |
Total release size: 38.9 kB
Release files / maketool-0.8.44.tar.gz
| Download URL | maketool-0.8.44.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5f8724aa12c6cc38d8f79f2fe0891ca97a5fc29bac241120f2f28c4eb0dd937
|
|
BLAKE2b-256 checksum How to use checksums |
d869a30f16d137fd4a67f22cc7834bcf5b0b8e20a831365f8ea21fbcd616e35c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Release files / maketool-0.8.44-py3-none-any.whl
| Download URL | maketool-0.8.44-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a691b951cc58717f8ae855d44e721d86460bc598093b1f2b7da897711ad00d35
|
|
BLAKE2b-256 checksum How to use checksums |
8f57cd165b24344c06d013eb5515233e91342e035a169f15e7df1234abce04e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Security for maketool 0.8.44
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.