Currently, it is therefore possible to call C functions from Python, but not (yet) Python functions from C.
Check this doc for more info on C language interface.
However, I think there is a workaround until this feature is implemented. (But not a clean approach )
You can have a C function that checks for event, A python function that calls this C function and checks if a flag has been raised. and a python thread that uses this python function.
evt_type = _get_event()
if evt_type == 0: # EVENT
except Exception as e:
Let me know if you are developing a commercial product, If so, this feature could be arranged with the Zerynth team.