BPYTHON(1)
π BPYTHON(1) π
okay bestie, sit DOWN, because this is the manual page for bpython β version 0.24"" β and it's lowkey iconic. it's a fancy interface to the Python interactive interpreter, and by fancy I mean it comes in three flavors: curtsies, curses, and urwid. pick your fighter. β¨
π¦ SYNOPSIS π¦
three whole ways to summon it, no cap:
bpython [options] [file [args]]
bpython-curses [options] [file [args]]
bpython-urwid [options] [file [args]]
πΈ DESCRIPTION πΈ
so the whole ~vision~ here? give you every feature in-line, like a modern IDE does, except it's a simple, lightweight little package that just vibes in your terminal window. no bloat. no drama. just you and your REPL. π
here's the rundown, one feature at a time:
- In-line syntax highlighting. it highlights your commands as you type them. literally as you type. main character behavior honestly. π₯
- Readline-like autocomplete with suggestions displayed as you type. press tab to complete expressions when there's only one suggestion. one suggestion = auto-slide into the completion. π«Ά
- Expected parameter list. this one's so helpful β it displays a list of parameters for any function you call. it uses the
inspectmodule first, then triespydoc. teamwork makes the dream work. - Rewind. okay so the name is a bit misleading, ngl, but here's the tea: code that's been entered is remembered, and when you Rewind, it pops the last line and re-evaluates the entire code. β οΈ this is error-prone, bestie β it's mostly useful for defining classes and functions, so don't go wild with it.
- Pastebin code/write to file. this posts the current buffer to a pastebin (that's
bpaste.net) or writes it out to a file. sharing is caring. π - Flush curses screen to stdout. and this is the part that makes bpython different from other curses apps: when you quit, bpython dumps the screen data to
stdout, so you actually see what you've done in the buffer of your terminal. iconic. no notes. π
β¨ OPTIONS β¨
the long and short forms of options, shown here as alternatives, are equivalent. and heads up β if bpython sees an argument it does not know, execution falls back to the regular Python interpreter. so it's forgiving like that. π
π supported by ALL frontends π
--config=<config>β use<config>instead of the default config file. your config, your rules.-h,--helpβ show the help message and exit. the classic.-i,--interactiveβ drop to a bpython shell after running file instead of exiting. oh and heads up, thePYTHONSTARTUPfile is not read when you do this.-q,--quietβ do not flush the output tostdout. shhh. π€«-V,--versionβ print bpython's version and exit.-l <level>,--log-level=<level>β set logging level.-L <file>,--log-output=<file>β set log output file.
π and ALSO these π
-p file,--paste=fileβ paste in the contents of a file at startup. yes the flag is-phere, don't get it twisted, we'll get to why in a sec.
π¦ bpython-urwid exclusives (only if Twisted is available) π¦
in addition to the common options, bpython-urwid also supports the following options β but only if Twisted is available:
-r <reactor>,--reactor=<reactor>β use Twisted's<reactor>instead of urwid's event loop.--help-reactorsβ display a list of available Twisted reactors. (no short form, she stands alone π )-p <plugin>,--plugin=<plugin>β execute a twistd plugin. usetwistdto get a list of available plugins. and use--to pass options to the plugin. (see??-pmeans paste over in common-land and plugin here. context is everything.)-s <port>,--server=<port>β run an eval server on port<port>. β οΈ this option forces the use of a Twisted reactor. no takebacks.
β¨οΈ KEYS β¨οΈ
bpython's keys are fully configurable, periodt. go peek at http://docs.bpython-interpreter.org/configuration.html#keyboard for the deets. π§
π FILES π
$XDG_CONFIG_HOME/bpython/configβ your bpython config. seesample-config(it lives in/usr/share/doc/bpython/exampleson Debian) for the various options you can use, or just readbpython-config(5). iykyk.
π KNOWN BUGS π
see http://github.com/bpython/bpython/issues/ for a list of known issues. it's giving transparency. π
π SEE ALSO π
π AUTHOR π
bpython was written by Robert Anthony Farrell <robertanthonyfarrel@gmail.com> and his bunch of loyal followers. (a whole squad, fr fr.)
this manual page was written by JΓΈrgen Pedersen TjernΓΈ <jorgen@devsoft.no>, for the Debian project (but may be used by others β sharing is literally caring).
π COPYRIGHT π
2008-2023 Bob Farrell, Andreas Stuehrk, Sebastian Ramacher, Thomas Ballinger, et al.
and that's the whole page, bestie!! π this manual page is from Jan 18, 2023, documenting version 0.24"" of bpython. go forth and REPL in style. slay. πβ¨π¦πΈπ
π«Άπ
π¦ where this page comes from
- debian bookworm: bpython 0.24-1 Β· MIT
- ubuntu noble: bpython 0.24-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms