Bpython is a lightweight Python parser that includes common IDE features. Features include syntax highlighting, expected parameter lists, automatic indentation, and automatic completion (the following is a usage demo).
Bpython is not a complete IDE, its main purpose is to quickly realize the inspiration in a practical and lightweight way. Bpython can be a substitute for a regular Python parser that can be used to quickly test problem solutions, or test method modules, without the need to create temporary files.
Installation and use
If you have already installed the PIP, install it using the following command line:
$ pip Install Bpython
After installation, in the terminal input Bpython to open the Bpython. As with other interactive Python parsers, you can close Bpython by entering the exit () command or by pressing <control-D>.
Functional Characteristics
1, automatic completion, in the input display code hints.
2, syntax highlighting. This project uses pygments to format and display the color of the code.
3. List of expected parameters. Bpython can display a list of parameters, like other Ides, when calling a function.
4, fallback function. In order to avoid confusion with the usual undo (undo), use the term fallback (rewind). The basic idea is that all of the code is stored in memory, and when the fallback function is used, the last line of code is removed, and then rerun the previous code, equivalent to the previous state of the entire session. Use to rollback.
5, allow the use of other text editors to edit the current line of code or the entire session code. Press the code to open the current session in a text editor. If you make a change in the text editor, the change is also reflected in the current session.
6, support Pastebin. Press to upload the contents of the screen to Pastebin, and return its URL.
7, reload the module that has already been imported. Press the code that clears the contents of the Sys.modules and then re-run the current session. Can be used to test the change of module.