Protocol which will read a serialized environment dict from a process and expose it to interested parties.

Method parseChunks No summary

Inherited from UtilityProcessProtocol:

Instance Variable programName The name of the program to run.
Class Method run Run a Python process connected to a new instance of this protocol class. Return the protocol instance.
Method __init__ Undocumented
Method getResult Return a Deferred which will fire with the result of parseChunks when the child process exits.
Method outReceived Accumulate output from the child process in a list.
Method processEnded Handle process termination by parsing all received output and firing any waiting Deferreds.
Method _fireResultDeferreds Callback all Deferreds returned up until now by getResult with the given result object.

Inherited from ProcessProtocol (via UtilityProcessProtocol):

Method childDataReceived Called when data arrives from the child process.
Method errReceived Some data was received from stderr.
Method childConnectionLost Called when a file descriptor associated with the child process is closed.
Method inConnectionLost This will be called when stdin is closed.
Method outConnectionLost This will be called when stdout is closed.
Method errConnectionLost This will be called when stderr is closed.
Method processExited This will be called when the subprocess exits.

Inherited from BaseProtocol (via UtilityProcessProtocol, ProcessProtocol):

Method makeConnection Make a connection to a transport and a server.
Method connectionMade Called when a connection is made.
def parseChunks(self, chunks):

Parse the output from the process to which this protocol was connected, which is a single unterminated line of \0-separated strings giving key value pairs of the environment from that process. Return this as a dictionary.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.