В последнее время я работаю над запуском процессов в tulip: PEP 3156 и реализация на гуглокоде
Состояние дел на сегодня
Базовые конструкции выглядят так:
Транспорт:
class BaseTransport:
"""Base ABC for transports."""
def get_extra_info(self, name, default=None):
"""Get optional transport information."""
def close(self):
"""Closes the transport.
Buffered data will be flushed asynchronously. No more data
will be received. After all buffered data is flushed, the
protocol's connection_lost() method will (eventually) called
with None as its argument.
"""
class SubprocessTransport(BaseTransport):
def get_pid(self):
"""Get subprocess id."""
def get_returncode(self):
"""Get subprocess returncode.
See also
http://docs.python.org/3/lib