greenhouse.compat – Greenlet and Compatibility Hacks

greenhouse.compat.main_greenlet

This module attribute should always be set to the main root greenlet.

greenhouse.compat.getcurrent()

get the current greenlet

class greenhouse.compat.GreenletExit

The GreenletExit exception from whichever greenlet module (py.magic or the newer standalone greenlet package). Refer to your greenlet package’s documentation.