Runtime microdebugger for Python, inspire by Ruby's pry gem.
Project description
Prython
Inspired by Ruby's pry gem and this snippet.
Prython is a debugging aid, made to be lightweight and very easy to use. If you want to take a look at Python's official debugger, this is it.
Installation
Python 3
Install from PyPi with:
pip install prython
or, in case you have 2 versions in your system and hasn't mapped Python 3 as the main one:
pip3 install prython
Usage
All of this package's methods are listed below (I told you it was lightweight and easy to use).
Remember to import prython at the top of your file.
pry()
import prython
a = "Are you prying?"
def example_function():
b = "With prython?"
prython.pry()
c = "Yep!"
If you run this file, say, from the command line, a REPL interpreter will pop up at the context of the line calling prython.pry(), which means you will have access to variables a and b but not c, as the line wasn't ran when prython was called.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prython-0.0.2.1-py3-none-any.whl.
File metadata
- Download URL: prython-0.0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1c18ede96eeb9d1ac678d7526922048c48ef9eef815bfb3f81e4e50fe51cb24
|
|
| MD5 |
31635c99dcfbb182388de493a1c29d6f
|
|
| BLAKE2b-256 |
1079cecd4c962c95e7d956375a0edf6e3c00ab1cb03ba2b479e30be2a0fbd3ae
|