pyfarm.agent.manhole module

Manhole

Provides a way to access the internals of the agent via the telnet protocol.

class pyfarm.agent.manhole.LoggingManhole(namespace=None)[source]

Bases: twisted.conch.manhole.ColoredManhole

A slightly modified implementation of ColoredManhole which logs information to the logger so we can track activity in the agent’s log.

connectionMade()[source]
connectionLost(reason)[source]
lineReceived(line)[source]
class pyfarm.agent.manhole.TransportProtocolFactory(portal)[source]

Bases: object

Glues together a portal along with the TelnetTransport and AuthenticatingTelnetProtocol objects. This class is instanced onto the protocol attribute of the ServerFactory class in build_manhole().

class pyfarm.agent.manhole.TelnetRealm[source]

Bases: object

Wraps together ITelnetProtocol, TelnetBootstrapProtocol, ServerProtocol and ColoredManhole in requestAvatar() which will provide the interface to the manhole.

NAMESPACE = None
requestAvatar(_, *interfaces)[source]
pyfarm.agent.manhole.show(x=<object object>)[source]

Display the data attributes of an object in a readable format

pyfarm.agent.manhole.manhole_factory(namespace, username, password)[source]

Produces a factory object which can be used to listen for telnet connections to the manhole.