I am a Twisted process protocol for communicating with a process running an executable you've compiled, via STDIO.

Method __init__ Undocumented
Method shutdown Shuts down the process.
Method connectionMade Upon connection to the executable process via stdio, releases the initial lock.
Method cmd Sends function arguments to the executable via stdin, returning a Deferred that fires with the result received via stdout, with numeric conversions.
Method outReceived Processes a line of response data from the executable.
def __init__(self):
Undocumented
def shutdown(self):

Shuts down the process.

def connectionMade(self):

Upon connection to the executable process via stdio, releases the initial lock.

@defer.inlineCallbacks
def cmd(self, *args):

Sends function arguments to the executable via stdin, returning a Deferred that fires with the result received via stdout, with numeric conversions.

def outReceived(self, data):

Processes a line of response data from the executable.

If the line isn't blank and someone is waiting for it by having acquired my DeferredLock, writes the data to my response attribute and releases the lock.

API Documentation for ade, generated by pydoctor at 2022-11-17 13:13:22.