> I was trying to do a CouchDB emperor plugin, and it is somewhat
> functional now, but doing it in C is PITA, especially doing a continuous
> http connection for the _changes feed.
> Or I might need to add dependency to libcurl or something.
>
> But another idea has come to me, since the API that an emperor plugin
> needs to use is basically:
>   * emperor_add
>   * emperor_get
>   * emperor_stop
>   * emperor_respawn
>   * and access to uwsgi.emperor_tyrant and maybe ues->arg
> is it possible to make those available as a Python API and start a
> python/gevent module in the process space of the emperor so that I can
> make my plugin in Python?

calling python is possible (and pretty easy, an emperor_python plugin will
be nore more than 50 lines), but integrating gevent is impossibile as the
emperor as its low level event libray while gevent uses higher level
libev.

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to