Make C module compatible with gevent at runtime.
Currently greenify only supports ELF format modules, and is tested on Linux.
Install from source
greenify module is installed using setuptools or pip:
python setup.py install
pip install greenify
Once activated, the green C functions will, on potentially blocking operation, pass control to gevent’s main event loop, which may switch to other ready greenlet which is also in one of the green functions. So, make sure your C code can handle this kind of execution pause and resume. A thread safe program usually is ready for greenify, but remember that all the switches happen in a single thread.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|greenify-0.3.2-cp27-cp27m-manylinux1_x86_64.whl (103.5 kB) Copy SHA256 hash SHA256||Wheel||cp27||Nov 18, 2016|
|greenify-0.3.2-cp27-cp27mu-manylinux1_x86_64.whl (103.6 kB) Copy SHA256 hash SHA256||Wheel||cp27||Nov 18, 2016|
|greenify-0.3.2-cp35-cp35m-manylinux1_x86_64.whl (111.8 kB) Copy SHA256 hash SHA256||Wheel||cp35||Nov 18, 2016|
|greenify-0.3.2.tar.gz (9.3 kB) Copy SHA256 hash SHA256||Source||None||Nov 18, 2016|