Twisted reactor based on gevent
Project description
gevent_reactor
A reactor which make twisted compatible with gevent
Installation
pip install greenreactor
Usage
# Usually we need monkey patch
import gevent.monkey
gevent.monkey.patch_all()
# Install greenreactor
import greenreactor
greenreactor.install()
from twisted.internet import reactor
reactor.run()
Then you can use any gevent api such as spawn
, spawn_later
, `1etc.
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
greenreactor-0.1.4.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for greenreactor-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f94077860b52369a1d6104856e303b491affaf73ca9bc5a5288917925ef58f5 |
|
MD5 | a4a84dbf56c432e4f5367bcd24b97186 |
|
BLAKE2b-256 | 6a1a45c3f8d1330d7311e77345ceb1267c5a08aaac45802095ae32fca08fcc22 |