Skip to main content

Twisted Qt Integration

Project description

PyPI version supported Python versions source on GitHub GitHub Actions build status

Using the Qt5Reactor

Qt5Reactor is compatible with both PyQt5 and PySide2.

Install using pip

pip install qt5reactor

Before running / importing any other Twisted code, invoke:

app = QApplication(sys.argv) # your code to init QtCore
from twisted.application import reactors
reactors.installReactor('qt5')

or

app = QApplication(sys.argv) # your code to init QtCore
import qt5reactor
qt5reactor.install()

Testing

trial --reactor=qt5 [twisted] [twisted.test] [twisted.test.test_internet]

Make sure the plugin directory is in path or in the current directory for reactor discovery to work.

There is also pytest-twisted for use with pytest. You can specify to use the qt5reactor by adding --reactor=qt5reactor.

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

qt5reactor-0.6.2.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qt5reactor-0.6.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file qt5reactor-0.6.2.tar.gz.

File metadata

  • Download URL: qt5reactor-0.6.2.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for qt5reactor-0.6.2.tar.gz
Algorithm Hash digest
SHA256 b4533e61d883bc3e824f53bace1f91a0ae531e7eb6bf6b43e210dc9a97165e25
MD5 83049339e5c3914c14399f6fd87dbef7
BLAKE2b-256 45ecbe04c32c066cbfd929682b289bc1696d0ec0db5575fa0d7d62b2c37d06f5

See more details on using hashes here.

File details

Details for the file qt5reactor-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: qt5reactor-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for qt5reactor-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32952ad5371d69b9b0c730220db4b59d8dcc72d5cc49940066ad72d12ed18bc1
MD5 c95928460dfa7e0f0151b08c8a01ee56
BLAKE2b-256 7b60da157ba2adfe93f2046a0c96539d85079bb7e11f2340680c43509370e45d

See more details on using hashes here.

Supported by

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