pimlico.utils.communicate module

exception pimlico.utils.communicate.StreamCommunicationError[source]

Bases: exceptions.Exception

class pimlico.utils.communicate.StreamCommunicationPacket(data)[source]

Bases: object

encode()[source]
static read(stream)[source]
length
pimlico.utils.communicate.timeout_process(*args, **kwds)[source]

Context manager for use in a with statement. If the with block hasn’t completed after the given number of seconds, the process is killed.

Parameters:proc – process to kill if timeout is reached before end of block
Returns: