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.16.tar.gz
.
File metadata
- Download URL: PythonDebuggerTools-0.0.16.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 | 92715792ef375c8bce40f84bc65ea0c9818e4abf118ebc7126e9f3731bebc5aa |
|
MD5 | c1d31c6b67c7447d1858e9f158b69e01 |
|
BLAKE2b-256 | 39c355cfad9c89e7be3c5abbd7b739c065c004db6ead74392dd4891c98334e4e |
File details
Details for the file PythonDebuggerTools-0.0.16-py3-none-any.whl
.
File metadata
- Download URL: PythonDebuggerTools-0.0.16-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 | f61641155fa99d01a8a7f80bd4149b377f7a09c7a36a4d7529d683671ef5f8c0 |
|
MD5 | a84fd52cf8ecb8edbf2a4a7532d42c32 |
|
BLAKE2b-256 | 9c1433b371800979639dc4185d4f0736583a071c95d3d7559c3deabab41385ba |