Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

man-bpython.rst

Latest commit

 

History

History
113 lines (80 loc) · 3.71 KB

man-bpython.rst

File metadata and controls

113 lines (80 loc) · 3.71 KB
orphan:

bpython manual page

Synopsis

bpython [options] [file [args]]

bpython-curses [options] [file [args]]

bpython-urwid [options] [file [args]]

Description

The idea is to provide the user with all the features in-line, much like modernIDEs, but in a simple, lightweight package that can be run in a terminal window.

In-line syntax highlighting.
Highlights 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 theinspect 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 entirecode. This is error-prone, and mostly useful for defining classes andfunctions.
Pastebin code/write to file.
This posts the current buffer to a pastebin (bpaste.net) or writes itto a file.
Flush curses screen to stdout.
Unlike other curses apps, bpython dumps the screen data to stdout when youquit, so you see what you've done in the buffer of your terminal.

Options

The long and short forms of options, shown here as alternatives, are equivalent.If:program:`bpython` sees an argument it does not know, execution falls back tothe regular Python interpreter.

The following options are supported by all frontends:

--config=<config>
 Use <config> instead of default config file.
-h,--helpShow the help message and exit.
-i,--interactive
 Drop to bpython shell after running file instead ofexiting. The PYTHONSTARTUP file is not read.
-q,--quietDo not flush the output to stdout.
-V,--versionPrint:program:`bpython`'s version and exit.
-l<level>,--log-level=<level>
 Set logging level
-L<file>,--log-output=<file>
 Set log output file

In addition to the above options,:program:`bpython` also supports the followingoptions:

-pfile,--paste=file
 Paste in the contents of a file at startup.

In addition to the common options,:program:`bpython-urwid` also supports thefollowing options if Twisted is available:

-r<reactor>,--reactor=<reactor>
 Use Twisted's <reactor> instead of urwid'sevent loop.
--help-reactors
 Display a list of available Twistedreactors.
-p<plugin>,--plugin=<plugin>
 Execute a:program:`twistd` plugin. Use:program:`twistd` to get a list of availableplugins. Use -- to pass options to theplugin.
-s<port>,--server=<port>
 Run an eval server on port <port>. Thisoption forces the use of a Twisted reactor.

Keys

:program:`bpython`'s keys are fully configurable. Seehttp://docs.bpython-interpreter.org/configuration.html#keyboard

Files

$XDG_CONFIG_HOME/bpython/config

Your bpython config. See sample-config (in /usr/share/doc/bpython/examples onDebian) for various options you can use, or read:manpage:`bpython-config(5)`.

Known bugs

Seehttp://github.com/bpython/bpython/issues/ for a list of known issues.

See also

:manpage:`bpython-config(5)`,:manpage:`python(1)`

Author

:program:`bpython` was written by Robert Anthony Farrell<robertanthonyfarrel@gmail.com> and his bunch of loyal followers.

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


[8]ページ先頭

©2009-2026 Movatter.jp