PyQtier is a command-line tool and architecture solution that helps you work with PyQt5 projects simpler and faster, providing convenient commands for project creation, UI file conversion, and Qt Designer integration.
- Command-line interface for project management
- Built-in GUI application with modern interface
- Qt Designer integration
- Automatic UI and resource file conversion
- Project scaffolding and architecture solutions
pip install pyqtierNote: You can use
pyqtieror shorterpqrcommand to run the commands.
Create a new PyQt5 project structure:
pyqtier startproject PROJECT_NAMEPROJECT_NAME: Name and path of your project. Use.to create the project in the current directory.
Launch Qt Designer for creating UI files:
pyqtier designerNote: Requires qt5-tools to be installed on your system.
Convert Qt Designer .ui files to Python .py files:
# Convert all .ui files in the project
pyqtier convertui
# Convert a specific .ui file
pyqtier convertui filename.ui
# Convert .ui files and automatically convert associated .qrc files
pyqtier convertui --autorcConvert Qt resource .qrc files to Python .py files:
# Convert all .qrc files in the project
pyqtier convertqrc
# Convert a specific .qrc file
pyqtier convertqrc filename.qrc-
Create a new project:
pyqtier startproject . -
Design your UI:
pyqtier designer
-
Convert UI and resource files:
# Convert all UI files and automatically convert QRC files pyqtier convertui --autorc # Convert a specific UI file pyqtier convertui main_window.ui # Convert a specific resource file pyqtier convertqrc resources.qrc
- Python 3.x
- PyQt5
- qt5-tools (for Qt Designer)
- click (for CLI interface)
MIT
