Skip to main content

PyQt4/PyQt5 compatibility layer.

Project description

PyQt/PySide compatibility layer.


  • At the top level AnyQt exports a Qt5 compatible module namespace along with some minimal renames to better support portability between different versions
  • Which Qt api/backend is chosen can be controlled by a QT_API env variable
  • The api can be chosen/forced programmatically (as long as no PyQt4/PyQt5/PySide/PySide2 was already imported)
  • provides an optional compatibility import hook, that denys imports from conflicting Qt api, or intercepts and fakes a Qt4 api imports, to use a Qt5 compatible API (some monkey patching is involved).

The documentation is hosted at

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for AnyQt, version 0.0.13
Filename, size File type Python version Upload date Hashes
Filename, size AnyQt-0.0.13.tar.gz (38.3 kB) File type Source Python version None Upload date Hashes View
Filename, size AnyQt-0.0.13-py3-none-any.whl (47.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page