spyder-ide/qtpy
Provides an uniform layer to support PyQt5, PySide2, PyQt6, PySide6 with a single codebase observed · 2026-08-28
Health v2 · maintenance only
60/100
- Activity 77
- Release rhythm 16
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 98
- age_days: 4141
- days_rel: 568
- days_push: 143
- n_releases_24m: 2
Adoption not part of the score
1102 stars · 163 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
QtPy is a Python library providing a uniform abstraction layer over the PyQt5, PyQt6, PySide2, and PySide6 Qt bindings, letting developers write a single codebase that works with any of them. It auto-detects the installed binding, normalizes module layouts, and handles API incompatibilities between Qt5 and Qt6.
Use cases
- write a python gui app that works with both pyqt and pyside
- support qt5 and qt6 from a single codebase
- port a pyqt5 application to qt6 incrementally
- avoid conditional imports for different qt bindings
- let users choose their preferred qt binding via an environment variable
When to choose
- you are building a desktop GUI in Python and want binding flexibility
- you maintain a library that must support multiple Qt bindings
- you are migrating a Qt5 codebase toward Qt6
When to avoid
- you have already committed to a single Qt binding and never plan to change
- you need Qt bindings installed - QtPy does not bundle PyQt or PySide itself
- you are building a non-GUI application
Facets
library · maturity active
gui ui-components developer-tools cross-platform desktop-applications developer-tools python cross-platform qt pyqt pyside qt-bindings abstraction-layer desktop-gui desktop
2 sources
- readme: https://github.com/spyder-ide/qtpy · fetched 2026-08-28 · dfde37c6ca04
- registry_pypi: https://pypi.org/pypi/qtpy/json · fetched 2026-08-29 · d5a479674b9c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spyder-ide/qtpy | main | 60 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem