-
-
Notifications
You must be signed in to change notification settings - Fork 252
Expand file tree
/
Copy pathbpython.1
More file actions
140 lines (130 loc) · 4.24 KB
/
bpython.1
File metadata and controls
140 lines (130 loc) · 4.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
.\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH BPYTHON 1 "September 21, 2009"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
bpython, bpython-gtk, bpython-urwid \- a fancy {curses, GTK+, urwid} interface
to the Python interactive interpreter
.SH SYNOPSIS
.B bpython
[\fIoptions\fR] [\fIfile\fR [\fIargs\fR]]
.B bpython-urwid
[\fIoptions\fR] [\fIfile\fR [\fIargs\fR]]
.SH 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.
.B * In\-line syntax highlighting.
.RS
Hilights commands as you type!
.RE
.B * Readline\-like autocomplete with suggestions displayed as you type.
.RS
Press tab to complete expressions when there's only one suggestion.
.RE
.B * Expected parameter list.
.RS
This displays a list of parameters for any function you call. It uses the inspect module, then tries pydoc.
.RE
.B * Rewind.
.RS
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.
.RE
.B * Pastebin code/write to file.
.RS
This posts the current buffer to a pastebin (paste.pocoo.org) or writes it to a file.
.RE
.B * Flush curses screen to stdout.
.RS
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.
.RE
.SH OPTIONS
The long and short forms of options, shown here as alternatives, are
equivalent. If \fBbpython\fR sees an argument it does not know, execution falls
back to the regular Python interpreter.
.IP "\fB\-\-config=\fR\fIconfig\fR" 4
.PD
Use \fIconfig\fR instead of default config file.
.IP "\fB\-h\fR" 4
.PD 0
.IP "\fB\-\-help\fR" 4
.PD
Show the help message and exit.
.IP "\fB\-i\fR" 4
.PD 0
.IP "\fB\-\-interactive\fR" 4
.PD
Drop to \fBbpython\fR shell after running \fIfile\fR instead of exiting.
The PYTHONSTARTUP file is not read.
.IP "\fB\-q\fR" 4
.PD 0
.IP "\fB\-\-quiet\fR" 4
.PD
Do not flush the output to stdout.
.IP "\fB\-V\fR" 4
.PD 0
.IP "\fB\-\-version\fR" 4
.PD
Print \fBbpython\fR's version and exit.
.PP
In addition to the above options, \fBbpython-urwid\fR also supports the following
options if twisted is available:
.IP "\fB\-r \fR\fIreactor\fR" 4
.PD 0
.IP "\fB\-\-reactor=\fR\fIreactor\fR" 4
.PD
Use Twisted's \fIreactor\fR reactor instead of urwid's event loop.
.IP "\fB\-\-help\-reactors\fR" 4
.PD
Display a list of available Twisted reactors.
.IP "\fB\-p \fR\fIplugin\fR" 4
.PD 0
.IP "\fB\-\-plugin=\fR\fIplugin\fR" 4
.PD
Execute a twistd plugin. Use twistd to get a list of available plugins. Use
"\-\-" to pass options to the plugin.
.IP "\fB\-s \fR\fIport\fR" 4
.PD 0
.IP "\fB\-\-s=\fR\fIport\fR" 4
.PD
Run a eval server on port \fIport\fR. This options forces the use of a Twisted
reactor.
.PP
\fBbpython-gtk\fR also supports the following options:
.IP "\fB\-\-socket-id=\fR\fISOCKET_ID\fR" 4
.PD
Embed bpython.
.SH KEYS
\fBbpython\fR's keys are fully configurable. See
http://docs.bpython-interpreter.org/configuration.html#keyboard
.SH FILES
$XDG_CONFIG_HOME/bpython/config
.RS
Your bpython config. See sample-config (in /usr/share/doc/bpython/examples on Debian) for various options you can use, or read
.BR bpython-config (5)
.
.RE
.SH KNOWN BUGS
See http://bitbucket.org/bobf/bpython/issues/ for a list of known issues.
.SH SEE ALSO
.BR bpython-config (5),
.BR python (1).
.SH AUTHOR
bpython was written by Robert Anthony Farrell <robertanthonyfarrel@gmail.com> and his bunch of loyal followers.
.PP
This manual page was written by Jørgen Pedersen Tjernø <jorgen@devsoft.no>,
for the Debian project (but may be used by others).