Skip to main content

Python Automation tool for building PySide6 UI and PyInstaller EXE.

Project description

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.

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 or PyQt, 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

Executes the Python program after recursively builds all .ui and .qrc files in the current directory and subdirectories using pyside6-uic.exe and pyside6-rcc.exe. Then run python source code.

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

positional parameters:
  file        python file to run

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

2. clean

Removes temporary files and build artifacts, including:

  • __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

Builds your python app into an executable using PyInstaller.

  • Compiles .ui and .qrc and image resources
  • Generates a PyInstaller .spec file
  • 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="myicon.ico"] [--embed="sqlite3.dll"]

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

Update local Sublime Text 4 installation with these useful shortcuts:

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

Scans the current folder (and subfolders) and lists candidate unused/orphan files by doing a fast string reference scan. This is especially useful for catching forgotten assets like .ui, .qss, .ico, images, etc.

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 2025 Alan Lilly

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

maketool-0.8.11.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

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

maketool-0.8.11-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file maketool-0.8.11.tar.gz.

File metadata

  • Download URL: maketool-0.8.11.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for maketool-0.8.11.tar.gz
Algorithm Hash digest
SHA256 2d51003a23757b5d6b49c39b5d3859c609835851bdbcf26ad99eaf8879aac7c2
MD5 dd7b44a5642159664fe39bba3fdc877f
BLAKE2b-256 23c3f1037ae3cdc578ab3134e3078d7b3121f8729d1a89fa46d992a3aca15e4c

See more details on using hashes here.

File details

Details for the file maketool-0.8.11-py3-none-any.whl.

File metadata

  • Download URL: maketool-0.8.11-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for maketool-0.8.11-py3-none-any.whl
Algorithm Hash digest
SHA256 e07ccaaea92ab7bc124c1cfb66da36afdff6d965daaa55eda4a57f9919ac57ec
MD5 2133a5e4eb94a988fb990fd4bcbb8293
BLAKE2b-256 9cb3609bc6086766f39a25f3cb0b9c26a3ebcbacc95a4b7f75eb2a9ad2e0dbb7

See more details on using hashes here.

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