Automatic pdb invoker
Project description
sweetdebug - Feel easy to debug
Automatic pdb invoker, Telegram support
Install
pip install sweetdebug
or (To use Telegram notification)
pip install sweetdebug[telegram]
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.
- To get Telegram authentication token, See Telegram Botfather for details.
# Assume you have Telegram tokens and corresponding chat ids.
token = "123456789:ABCDEF_VGRXDZKwvHS8@Xca5e2EnZdfsgTw"
chat_ids = ["13852425", '29384594']
sweetdebug(telegram=True, telegram_api_token=token, chat_ids=chat_ids)
1/0 # Error !!
- Also, If you have used your tokens and chat ids, then you can use cached token and chat ids.
sweetdebug(telegram=True)
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.7.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for sweetdebug-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25392cfd64c0c5dad9e58238b91f0b7dfc0469ebb39d4960f64d0c462f849c77 |
|
MD5 | 84e00344235ce0e42ca1abcd59b5634b |
|
BLAKE2b-256 | 7d1806a67dc34c297e0d2f14e2cd2a38428780056c9e76eadaadbba5f44b247b |