Package flumotion :: Package extern :: Package command :: Package command :: Module manholecmd
[hide private]

Module manholecmd

source code

Line-input oriented interactive interpreter loop.

Provides classes for handling Python source input and arbitrary output interactively from a Twisted application. Also included is syntax coloring code with support for VT102 terminals, control code handling (^C, ^D, ^Q), and reasonable handling of Deferreds.


Author: Jp Calderone

Classes [hide private]
  FileWrapper
Minimal write-file-like object.
  Interpreter
  ManholeInterpreter
Interactive Interpreter with special output and Deferred support.
  Manhole
Mediator between a fancy line source and an interactive interpreter.
  CmdInterpreter
Interactive Interpreter with special output and Deferred support.
  CmdManhole
  CmdServerProtocol
  Stdio
Functions [hide private]
 
runWithProtocol(klass, *args, **kwargs) source code
Variables [hide private]
  CTRL_C = '\x03'
  CTRL_D = '\x04'
  CTRL_BACKSLASH = '\x1c'
  CTRL_L = '\x0c'
  __package__ = 'flumotion.extern.command.command'