Skip to main content

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 .ui and .qrc files
  • Simplifies PyInstaller builds
  • Packages your application with minimal commands
  • Automates repetitive tasks like building and cleanup
  • Integrates easily with .bat scripts 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.

Note: it will ONLY rebuild pyside components that are out of date, so that execution is fast as possible, yet always includes any changes. FYI: python program is run with pythonw.exe so that the terminal window does not appear.

usage: maketool-run [-h] file

parameters:
  file        python file to run

parameters:
  -h, --help  show this help message and exit

2. clean

Purpose: Remove build artifacts, caches, generated UI files, PyInstaller output, and spec files.

  • __pycache__ folders
  • *_ui.py, *_rc.py, *.pyc, *.pyo
  • PyInstaller build/ and dist/ folders
  • .spec files in the current directory

Run it like this:

maketool-clean

3. compile

Purpose: Build an executable using PyInstaller, including UI/QRC compilation, icon embedding, version stamping, and resource embedding.

  • Supports onefile/onedir/console modes.

  • AutoGenerates a PyInstaller .spec file

  • Handles .ui/.qrc compilation automatically.

  • Supports embedding arbitrary files which is useful for DLLs or data assets.

  • Runs PyInstaller with the provided options

  • Updates version if exists in python file with --version value if provided

usage: maketool-compile [-h] --file FILE --type {onefile,onedir,console} [--icon=ICON] [--embed=EMBED] [--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
  --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.

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 is unused only:

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 .bat or .sh workflows
  • Converts all .ui and .qrc files recursively
  • Cleans up Python build artifacts
  • Packages apps using PyInstaller
  • Supports custom .ico icons
  • Supports optional resource embedding

Requirements


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.32

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maketool 0.8.32
File Size Uploaded Provenance Actions
maketool-0.8.32.tar.gz 18.5 kB Without provenance Details for maketool-0.8.32.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for maketool 0.8.32
File Interpreter ABI Platform Actions
maketool-0.8.32-py3-none-any.whl Python 3 none any Details for maketool-0.8.32-py3-none-any.whl

Total release size: 37.5 kB

Release files / maketool-0.8.32.tar.gz

Download URL maketool-0.8.32.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6751b54c49748dd6490070f92515ab501476c2e8a0192a39ef70c8260fb1944b
BLAKE2b-256 checksum
How to use checksums
825044ca37a6c5506e119eacd69f8cc16d3efe9395a25d469d8944364e71a041
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.32-py3-none-any.whl

Download URL maketool-0.8.32-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b18ebf1614e2f8304042526535ba5d84261a5db9beb0ca5aa1c575597b69d68d
BLAKE2b-256 checksum
How to use checksums
8391ce5da9b406fe25ec9d83e2890ef5983c55ee820d2e73f3ea9111ee213733
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.32

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.

Release history Release notifications | RSS feed

This release

0.8.32 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page