BPYTHON(1)
π BPYTHON(1) π
okay bestie, gather round, because this is bpython β the fancy {curtsies, curses, urwid} interface to the Python interactive interpreter, manual section 1, version 0.26, and honestly? it's giving main character energy for your terminal. πβ¨
π SYNOPSIS π
bpython [options] [file [args]]
bpython-curses [options] [file [args]]
bpython-urwid [options] [file [args]]
β¨ DESCRIPTION β¨
so the whole idea, the vision, the concept, is that you get all the features in-line, much like modern IDEs, but in a simple, lightweight package that can be run in a terminal window. no bloat, no waiting, just vibes and features. π«Ά
Here's the lineup, and yes each of these is iconic:
- In-line syntax highlighting. β Highlights commands as you type! literally as you type, it's like your code is glowing at you. β¨
- Readline-like autocomplete with suggestions displayed as you type. β Press tab to complete expressions when there's only one suggestion. (one suggestion = one tap, slay.)
- Expected parameter list. β This displays a list of parameters for any function you call. It uses the
inspectmodule, then triespydoc. so like, it tries its best and then tries again. π - Rewind. β ok this name is a bit misleading, bestie, i'm not gonna lie to you. What it actually does: code that has been entered is remembered, and when you Rewind, it pops the last line and re-evaluates the entire code. And heads up β this is error-prone, and mostly useful for defining classes and functions. use with love and caution. π
- Pastebin code/write to file. β This posts the current buffer to a pastebin (
bpaste.net) or writes it to a file. sharing is caring. π - 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. no disappearing act, she stays visible. π
π₯ OPTIONS π₯
The long and short forms of options, shown here as alternatives, are equivalent. And one thing to know: if bpython sees an argument it does not know, execution falls back to the regular Python interpreter. (it's not confused, it's just delegating. π€)
The following options are supported by all frontends:
--config=<config>β Use<config>instead of default config file. your config, your rules. π-h,--helpβ Show the help message and exit. the classic. π«‘-i,--interactiveβ Drop to bpython shell after running file instead of exiting. Heads up: thePYTHONSTARTUPfile is not read. π-q,--quietβ Do not flush the output to stdout. shhh. π€«-V,--versionβ Print bpython's version and exit. identity check! β-l <level>,--log-level=<level>β Set logging level-L <file>,--log-output=<file>β Set log output file
In addition to the above options, bpython also supports the following:
-p file,--paste=fileβ Paste in the contents of a file at startup. πβ¨
In addition to the common options, bpython-urwid also supports the following options if Twisted is available (iykyk):
-r <reactor>,--reactor=<reactor>β Use Twisted's<reactor>instead of urwid's event loop. π--help-reactorsβ Display a list of available Twisted reactors.-p <plugin>,--plugin=<plugin>β Execute atwistdplugin. Usetwistdto get a list of available plugins. Use--to pass options to the plugin.-s <port>,--server=<port>β Run an eval server on port<port>. This option forces the use of a Twisted reactor. (no takebacksies π)
π KEYS π
bpython's keys are fully configurable. See <http://docs.bpython-interpreter.org/configuration.html#keyboard> β go customize, make it yours, it's literally your keyboard era. β¨οΈπ
π¦ FILES π¦
$XDG_CONFIG_HOME/bpython/config
Your bpython config. See sample-config (in /usr/share/doc/bpython/examples on Debian) for various options you can use, or read bpython-config(5). π
π KNOWN BUGS π
See <http://github.com/bpython/bpython/issues/> for a list of known issues. (we're aware, we're working on it, we're all in this together bestie π«Ά)
πΈ SEE ALSO πΈ
π AUTHOR π
bpython was written by Robert Anthony Farrell <robertanthonyfarrel@gmail.com> and his bunch of loyal followers. (the squad!! π)
This manual page was written by JΓΈrgen Pedersen TjernΓΈ <jorgen@devsoft.no>, for the Debian project (but may be used by others).
Copyright
2008-2022 Bob Farrell, Andreas Stuehrk, Sebastian Ramacher, Thomas Ballinger, et al.
okay that's the whole page, you're fully caught up, no notes. π
this was BPYTHON(1), version 0.26, from Mar 26, 2026 β mwah, bye bestie, go type some Python and feel iconic doing it π§π
π¦ where this page comes from
- ubuntu stonking: bpython 0.26-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms