This module is inspired by pry for Ruby.
Install locally from source:
git clone https://github.com/Puhapig/peek.git
cd peek
pip install -e .
Simply drop the following snippet into your Python code to open an interactive session at that point in time.
import peek
# your code here
peek.at()
# rest of your code here
or for a one-liner:
import peek; peek.at()