1 2 3
Library for building powerful interactive command lines in Python. prompt_toolkit could be a replacement for GNU readline, but it can be much more than that.