Automatic pdb invoker
Project description
sweetdebug - Feel easy to debug
Automatic pdb, telegram support
Install
pip install sweetdebug
Main Feature
- Just add one(or two) line.
from sweetdebug import sweetdebug
sweetdebug()
1/0 # Error !!
- This will invoke pdb automatically.
Traceback (Most recent call last):
3 /main.py <module> --> 1/0
ZeroDivisionError: division by zero
> /main.py(3)<module>()
-> 1/0
(Pdb)
Other feature(s)
- You can receive error message with Telegram, too.
- prerequisite : python-telegram-bot (this module will not be automatically installed.)
pip install python-telegram-bot
# Assume you have Telegram tokens and corresponding chat ids.
token = "123456789:ABCDEF_VGRXDZKwvHS8@Xca5e2EnZdfsgTw"
chat_ids = ["13852425", '29384594']
sweetdebug(telegram_api_token=token, chat_ids=chat_ids)
1/0 # Error !!
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 Distribution
sweetdebug-1.0.6.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for sweetdebug-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54daa7077b389f64e28b6504df0d57d246a9757c1f79102381d9989317de14b1 |
|
MD5 | 2403147ff6ce22ef9ea46662a76ffda1 |
|
BLAKE2b-256 | d17a21126655687e69e3ba707af6cb6a836840b2c1f8c2d70bb677b77be0a8e8 |