上QQ阅读APP看书,第一时间看更新
ptpython
ptpython (https://github.com/jonathanslenders/ptpython/) is another approach to the topic of advanced Python shells. What is interesting about this project is that core prompt utilities implementation is available as a separate package, called prompt_toolkit (from the same author). This allows us to easily create various aesthetically pleasing interactive command-line interfaces.
It is often compared to bpython in functionalities, but the main difference is that it enables compatibility mode with IPython and its syntax enables additional features, such as %pdb, %cpaste, or %profile.