Useful tools for debugging Python code
Project description
lets-debug
Inside debug.py
you will find useful tools for debugging in Python.
The main feature of this file is terminal
variable, an istance of _Terminal
class that allows you to print anything on terminal with different colors. Some methods of this class are similar to JavaScript Console
native class.
Another useful tool for debugging is the stopwatch
decorator method from DecoratorTools
class. It allows you to verify how much longer is the waiting time for any function.
from lets_debug import terminal, DecoratorTools as tools
@tools.stopwatch
def greeting():
terminal.count('Greeting function')
greeting()
The example code above will give an output like this:
Greeting function: 1
Waiting time for greeting: 0.04291534423828125
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lets-debug-0.0.2.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for lets_debug-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0166f7a9f8253ff6347aa619f74b23700443fdee691d3f869b51208119cb6715 |
|
MD5 | b67d8e8d8fb81697fd06d2b50b0f89a6 |
|
BLAKE2b-256 | aa4baead57a872f0a487554ca2efff159c1efee98cb1a7b2f4cee7fec1b86934 |