Module t.c.manhole

Part of twisted.conch View Source

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.
AuthorJp Calderone
Line # Kind Name Docs
23 Class FileWrapper Minimal write-file-like object.
45 Class ManholeInterpreter Interactive Interpreter with special output and Deferred support.
139 Class Manhole Mediator between a fancy line source and an interactive interpreter.
233 Class VT102Writer Colorizer for Python tokens.
272 Function lastColorizedLine Tokenize and colorize the given Python source.
285 Class ColoredManhole A REPL which syntax colors input as users type it.
def lastColorizedLine(source): (source)

Tokenize and colorize the given Python source.

Returns a VT102-format colorized version of the last line of source.
API Documentation for Twisted, generated by pydoctor at 2008-10-26 16:12:37.