A Python-Qt based framework for building user interfaces for control systems
Project description
PyDM: Python Display Manager
PyDM is a Python-Qt based framework for building user interfaces for control systems.
The goal is to provide a no-code, drag-and-drop system to make simple screens,
as well as a straightforward Python framework to build complex applications.
« Explore PyDM docs and tutorials »
Report bug
·
Request feature
·
How to Contribute
·
Support
Python Qt Wrapper
PyDM project uses the qtpy as the abstraction layer for the Qt Python wrappers (PyQt5/PyQt4/PySide2/PySide6). All tests are performed with PyQt5.
Prerequisites
- Python >= 3.10, <= 3.12
- Qt 5.6 or higher
- qtpy
- PyQt5 >= 5.7 or PySide6 >= 6.9.2
Note: If you'd like to use Qt Designer (drag-and-drop tool to build interfaces) you'll need to make sure you have the PyQt5/PySide6 plugin for Designer installed. This usually happens automatically when you install PyQt5/PySide6 from source, but if you install it from a package manager, it may be left out.
Python package requirements are listed in the requirements.txt file, which can be used to install all requirements from pip: 'pip install -r requirements.txt'
Related Projects
PyDMConverter: A new tool for converting legacy control system displays (eg. EDM) into PyDM.
Related Projects: a list of some active projects built using PyDM.
Getting Started
For developers who wish to contribute to PyDM and modify the source code, please follow the "Getting Started!" instructions found here: https://github.com/slaclab/pydm/blob/master/CONTRIBUTING.rst#get-started.
For users who want to just install and run PyDM, follow the "Installation" instructions found in the docs: https://slaclab.github.io/pydm/installation.html
Running the Tests
In order to run the tests you will need to install some dependencies that are not part of the runtime dependencies of PyDM.
Assuming that you have cloned this repository do:
pip install -r dev-requirements.txt
python run_tests.py
If you want to see the coverage report do:
python run_tests.py --show-cov
Running the Examples
There are various examples of some of the features of the display manager. To launch a particular display run 'python scripts/pydm '.
There is a 'home' display in the examples directory with buttons to launch all the examples:
pydm examples/home.ui
Building the Documentation Locally
In order to build the documentation you will need to install some dependencies that are not part of the runtime dependencies of PyDM.
Assuming that you have cloned this repository do:
pip install -r docs-requirements.txt
cd docs
make html
This will generate the HTML documentation for PyDM at the <>/docs/build/html
folder. Look for the index.html file and open it with your browser.
Online Documentation
Documentation is available at http://slaclab.github.io/pydm/. Documentation is somewhat sparse right now, unfortunately.
Widget Designer Plugins
PyDM widgets are written in Python, and are loaded into Qt Designer via the PyQt5/PySide6 Qt Designer Plugin.
For PyQt5, if you want to use the pydm widgets in Qt Designer, add the pydm directory
(which holds register_pydm_designer_plugin.py) to your PYQTDESIGNERPATH environment variable.
For PySide6, add the pydm directory to your PYSIDE_DESIGNER_PLUGINS environment variable instead.
Eventually, this will happen automatically in some kind of setup script.
Easy Installing PyDM
Using the source code
git clone https://github.com/slaclab/pydm.git
cd pydm
pip install .[all]
Using Anaconda
When using Anaconda to install PyDM at a Linux Environment it will automatically define the PYQTDESIGNERPATH environment variable pointing to /etc/pydm which will have a file named designer_plugin.py which will make all the PyDM widgets available to the Qt Designer. For more information please see our installation guide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydm-1.28.2.tar.gz.
File metadata
- Download URL: pydm-1.28.2.tar.gz
- Upload date:
- Size: 18.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1768a06997686bd4d3d899e52047054452646a2381e2c495719bf710fe45ab92
|
|
| MD5 |
62407e0ea1c7f4a3ce06aef654a6da24
|
|
| BLAKE2b-256 |
1af7f561e3bc7341f688855d78aaa007e7d96853ad2de42c644a0bfc7a078152
|
Provenance
The following attestation bundles were made for pydm-1.28.2.tar.gz:
Publisher:
publish-to-pypi.yml on slaclab/pydm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydm-1.28.2.tar.gz -
Subject digest:
1768a06997686bd4d3d899e52047054452646a2381e2c495719bf710fe45ab92 - Sigstore transparency entry: 938338875
- Sigstore integration time:
-
Permalink:
slaclab/pydm@c19bfb3cf7dafad1b4fb25d59814ba1f86bf1759 -
Branch / Tag:
refs/tags/v1.28.2 - Owner: https://github.com/slaclab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@c19bfb3cf7dafad1b4fb25d59814ba1f86bf1759 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pydm-1.28.2-py3-none-any.whl.
File metadata
- Download URL: pydm-1.28.2-py3-none-any.whl
- Upload date:
- Size: 769.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5d9c48adf50c423c32b05e7fc480b66b0996fea04bb1d80c793cda793583e7e
|
|
| MD5 |
174fc42a20578d1adc5409e7a26abdb7
|
|
| BLAKE2b-256 |
e17a4fdbf3ebc35f045c564141ca69b648c83c053fc38dac300c668b6e7b3939
|
Provenance
The following attestation bundles were made for pydm-1.28.2-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on slaclab/pydm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydm-1.28.2-py3-none-any.whl -
Subject digest:
e5d9c48adf50c423c32b05e7fc480b66b0996fea04bb1d80c793cda793583e7e - Sigstore transparency entry: 938338882
- Sigstore integration time:
-
Permalink:
slaclab/pydm@c19bfb3cf7dafad1b4fb25d59814ba1f86bf1759 -
Branch / Tag:
refs/tags/v1.28.2 - Owner: https://github.com/slaclab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@c19bfb3cf7dafad1b4fb25d59814ba1f86bf1759 -
Trigger Event:
release
-
Statement type: