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.3.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: qt5reactor-0.6.3.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for qt5reactor-0.6.3.tar.gz
Algorithm Hash digest
SHA256 c3470a8a25d9a339f9ca6243502a9b2277f181d772b7acbff551d5bc363b7572
MD5 462f9073fe16b420c23707c9416ca58e
BLAKE2b-256 c375fccdd06c4bb72fa578abb4212ef66351f7bd2b3d714ff240fa1e1dc05009

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qt5reactor-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for qt5reactor-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3f01afa5874f51fbfe3cfb7a5fc4cbfcf7b65ddb603824daf145e44c370a225b
MD5 2684d2b6d09a7131251b81f0f570dc1e
BLAKE2b-256 2d59b1628ed0ee00317a7e51ee6c257e84f061bf1ce61474d18ec87771af2213

See more details on using hashes here.

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