bpython - a fancy curses interface to the Python interactive
bpython [options] [file [args]]
The idea is to provide the user with all the features in-line, much
like modern IDEs, but in a simple, lightweight package that can be run
in a terminal window.
* In-line syntax highlighting.
Hilights commands as you type!
* Readline-like autocomplete with suggestions displayed as you type.
Press tab to complete expressions when there’s only one
* Expected parameter list.
This displays a list of parameters for any function you call. It
uses the inspect module, then tries pydoc.
This is a bit misleading, but it code that has been entered is
remembered, and when you Rewind, it pops the last line and
re-evaluates the entire code. This is error-prone, and mostly
useful for defining classes and functions.
* Pastebin code/write to file.
This posts the current buffer to a pastebin (paste.pocoo.org) or
writes it to a file.
* Flush curses screen to stdout.
Unlike other curses apps, bpython dumps the screen data to
stdout when you quit, so you see what you’ve done in the buffer
of your terminal.
The long and short forms of options, shown here as alternatives, are
equivalent. If bpython sees an argument it does not know, execution
falls back to the regular Python interpreter.
Use config instead of default config file.
Show the help message and exit.
Drop to bpython shell after running file instead of exiting.
Do not flush the output to stdout.
Print bpython’s version and exit.
bpython’s keys are fully configurable. See http://docs.bpython-
Your bpython config. See sample-config (in
/usr/share/docs/bpython/examples on Debian) for various options
you can use, or read bpython-config(5)
See http://bitbucket.org/bobf/bpython/issues/ for a list of known
bpython was written by Robert Anthony Farrell
<email@example.com> and his bunch of loyal followers.
This manual page was written by Jørgen Pedersen Tjernø
<firstname.lastname@example.org>, for the Debian project (but may be used by
September 21, 2009