Skip to main content

PyQt5/PyQt6 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.

Source Distribution

AnyQt-0.2.0.tar.gz (45.6 kB view hashes)

Uploaded Source

Built Distribution

AnyQt-0.2.0-py3-none-any.whl (56.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page