/peek

A little debugging utility for Python code

Primary LanguagePython

Peek

Take a peek at your code in action

This module is inspired by pry for Ruby.

Install

Install locally from source:

git clone https://github.com/Puhapig/peek.git
cd peek
pip install -e .

Use

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()