module documentation
(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
Class FileWrapper Minimal write-file-like object.
Class ManholeInterpreter Interactive Interpreter with special output and Deferred support.
Variable CTRL_C Undocumented
Variable CTRL_D Undocumented
Variable CTRL_BACKSLASH Undocumented
Variable CTRL_L Undocumented
Variable CTRL_A Undocumented
Variable CTRL_E Undocumented
Class Manhole Mediator between a fancy line source and an interactive interpreter.
Class VT102Writer Colorizer for Python tokens.
Function lastColorizedLine Tokenize and colorize the given Python source.
Class ColoredManhole A REPL which syntax colors input as users type it.
CTRL_C = (source)

Undocumented

(type: bytes)
CTRL_D = (source)

Undocumented

(type: bytes)
CTRL_BACKSLASH = (source)

Undocumented

(type: bytes)
CTRL_L = (source)

Undocumented

(type: bytes)
CTRL_A = (source)

Undocumented

(type: bytes)
CTRL_E = (source)

Undocumented

(type: bytes)
def lastColorizedLine(source): (source)

Tokenize and colorize the given Python source.

Returns a VT102-format colorized version of the last line of source.

ParameterssourcePython source code (type: str or bytes)
Returnsbytes of colorized source
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.