A collection of useful debugging tools
Project description
PythonDebuggerTools
This is a collection of useful debugging tools to make your python development process faster.
Installation
Use the package manager pip to install PythonDebuggerTools-0.0.16
pip install PythonDebuggerTools
Usage
Using the Debug.logger decorator
from PythonDebuggerTools.logger import Debug
D = Debug()
D.DEBUG = True
@D.logger(important_params=['x', 'y'])
def add(x, y):
return x + y
Logger Key-word arguments
- important_params
- a python list of paramaters to print in the standard output
Using the Log module
from PythonDebuggerTools.logger import Log
f1_log = Log()
f1_log.DEBUG = True
f2_log = Log()
f2_log.DEBUG = False
def f1(a):
# code that executes
f1_log.log("Debug statements for function f1 that are printed")
#continue execution of code
def f2(x, y):
# code that executes
f2_log.log("Debug statements for function f2 that are not printed!")
Contribution Guidelines
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Github Repository
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
Built Distribution
File details
Details for the file PythonDebuggerTools-0.0.17.tar.gz
.
File metadata
- Download URL: PythonDebuggerTools-0.0.17.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c7529c3d562477f500b107fc3f96770b4fcb15f8945bc70359b28ee34af8859 |
|
MD5 | 1eedba46b2d059de2dfd98933045e9af |
|
BLAKE2b-256 | d08b66841c9604dac12f2fb4579dd1d37379eb9d55e6cd2b10dc54fc144006de |
File details
Details for the file PythonDebuggerTools-0.0.17-py3-none-any.whl
.
File metadata
- Download URL: PythonDebuggerTools-0.0.17-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f547948f13e54bab2c3a7b9aa83c9f18d82ba3fcdfdaab844c327722f03e76a9 |
|
MD5 | b9759c0e16fe430cbaf9c9abb1204b10 |
|
BLAKE2b-256 | d8160ee1dd862ee030820ae288ef4ddc198325e47a0966ce3e684f59a15df9ef |