Skip to main content

QReactor

Forked from qt5reactor which was forked from qt4reactor and now uses [qtpy](https://github.com/spyder-ide/qtpy) to provide to support both.

Using the QtReactor

Install using pip

pip install qt-reactor

Before running / importing any other Twisted code, invoke:

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

or

app = QApplication(sys.argv) # your code to init QtCore
import qreactor
qreactor.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.

Testing on Python 3

trial does not work on Python3 yet. Use Twisted’s Python 3 test runner instead.

Install the reactor before calling unittest.main().

import qreactor
qreactor.install()
unittest.main(...)

Metadata

Release files for qt-reactor 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for qt-reactor 0.6.1
File Interpreter ABI Platform
qt_reactor-0.6.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / qt_reactor-0.6.1-py2.py3-none-any.whl

Download URL qt_reactor-0.6.1-py2.py3-none-any.whl
Size 7.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6aa809427f30ae84d51e0b917a805312196417f09cadf951d82d297919b2577e
BLAKE2b-256 checksum
How to use checksums
2c225e05e8c2316a46138cabe3af7788ae6ce256228b5659908697025d3bfdf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.6.1 This release

1 release file

0.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page