Skip to main content

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)

Uploaded Source

Built Distribution

greenreactor-0.1.4-py2.py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 2 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