Skip to content

Latest commit

 

History

History

bpython

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

bpython

python:3-alpine-based dockerization of the bpython interpreter

As their homepage says:

bpython is a fancy interface to the Python interpreter for Linux, BSD, OS X and Windows (with some work). bpython is released under the MIT License. It has the following (special) features:

  • In-line syntax highlighting
  • Readline-like autocomplete with suggestions displayed as you type.
  • Expected parameter list for any Python function.
  • "Rewind" function to pop the last line of code from memory and re-evaluate.
  • Send the code you've entered off to a pastebin.
  • Save the code you've entered to a file.
  • Auto-indentation.
  • Python 3 support.

The source code for this image is hosted on GitHub in the backplane/conex repo.

Usage

Interactive

I use the following shell function to run this image:

bpython() {
  docker run \
    --rm \
    --interactive \
    --tty \
    --volume "$(pwd):/work" \
    "$@" \
    "backplane/bpython"
}