PyQtier
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.
Features
- 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
- Modular plugin system for Serial, CAN, and Modbus communication
Installation
# Base installation (no communication protocols)
pip install pyqtier
# With specific protocol support
pip install pyqtier[serial] # Serial/USB communication
pip install pyqtier[can] # CAN bus support
pip install pyqtier[modbus] # Modbus RTU/TCP support
# Multiple protocols
pip install pyqtier[serial,modbus]
# All protocols
pip install pyqtier[all]
Commands
Note: You can use
pyqtieror shorterpqrcommand to run the commands.
Start a New Project
Create a new PyQt5 project structure:
pyqtier startproject PROJECT_NAME
PROJECT_NAME: Name and path of your project. Use.to create the project in the current directory.
Open Qt Designer
Launch Qt Designer for creating UI files:
pyqtier designer
Note: Requires qt5-tools to be installed on your system.
Convert UI Files
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 --autorc
Convert Resource Files
Convert 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
Examples
- 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
Requirements
- Python 3.11+
- PyQt5
Optional Dependencies
| Extra | Package | Description |
|---|---|---|
serial |
pyserial | Serial/USB communication |
can |
python-can | CAN bus interface |
modbus |
pymodbus | Modbus RTU/TCP protocol |
License
MIT
Metadata
Release files for PyQtier 1.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyqtier-1.4.5.tar.gz | 47.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyqtier-1.4.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 109.2 kB
Release files / pyqtier-1.4.5.tar.gz
| Download URL | pyqtier-1.4.5.tar.gz |
|---|---|
| Size | 47.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37f4c8d396c9def5ebb6d2e62eee5a9e0a651e89f10433f495cd797214471aae
|
|
BLAKE2b-256 checksum How to use checksums |
15ef02ac0d0f7c74ce807fa5a8bec2eeb8422ec89534c0d0662eaa36e85cc996
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / pyqtier-1.4.5-py3-none-any.whl
| Download URL | pyqtier-1.4.5-py3-none-any.whl |
|---|---|
| Size | 61.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
478619680cbc29c13beca243657b9d8d94aebac0a9aa28340c45c89b3fc33c08
|
|
BLAKE2b-256 checksum How to use checksums |
49fd0a983f54d86bb2e651e9377d0f17254c848f222c92bdab3fbce3207a3f6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|