bpython

BPYTHON(1)                  General Commands Manual                 BPYTHON(1)



NAME
       bpython - a fancy curses interface to the Python interactive
       interpreter

SYNOPSIS
       bpython rc-file

DESCRIPTION
       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
              suggestion.
       * Expected parameter list.
              This displays a list of parameters for any function you call. It
              uses the inspect module, then tries pydoc.
       * Rewind.
              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 (rafb.net/paste for
              now) or writes it to a file.
       * Flush curses screen to stdout.
              Unlike other curses apps, it dumps the screen data to stdout
              when you quit, so you see what you've done in the buffer of your
              terminal.


KEYS
       <C-d> Exit
              Exits the interpreter, like normal interactive Python.
       <C-r> Rewind
              Rewinds and "undoes" the last statement, read DESCRIPTION for
              more info.
       <F2> Save
              Saves the current buffer to a file.
       <F8> Pastebin
              Posts the current buffer to http://rafb.net/paste (will probably
              become configurable), and displays the URL.
       <Tab> Autocomplete
              If there's an unambigious completion of the expression, fill it
              in.


FILES
       ~/.bpythonrc
              Your bpython config. See sample-rc (in
              /usr/share/docs/bpython/examples on Debian) for various options
              you can use, or read bpythonrc(5)
               .


SEE ALSO
       bpythonrc(5), python(1).


KNOWN BUGS
       Triple quoted strings over multiple lines work, but they're not
       highlighted properly.


AUTHOR
       bpython was written by Robert Anthony Farrell
       <robertanthonyfarrel@gmail.com>.

       This manual page was written by Jørgen Pedersen Tjernø
       <jorgen@devsoft.no>, for the Debian project (but may be used by
       others).



                                August 13, 2008                     BPYTHON(1)