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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for sweetdebug-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 230ca57000040b10ff92ba38cba0742076705bf4ab64098e2b71341fc4dd9786 |
|
MD5 | bb46c0a04516a9129bd2e283ef75433a |
|
BLAKE2b-256 | c07bbae589f2275b1d197d46ac456f528f7e36cbcb5d3c5a37f39fca2fb00c1e |