Add devtools.debug() to python builtins
python-devtools is a tool with multiple debug functionality. As described in the docs you can add its toolset to the python builtins with a little trick. But instead of adding the import to sitecustomize.py
or usercustomize.py
you can also write it to a *.py
file in the site-packages
directory and also add a *.pth
file which then imports the first file. This package does exactly that.
Simply install this package alongside devtools
and you have its toolset available without an explicit import:
$ pip install devtools py-devtools-builtin
If you do not have devtools
installed, py-devtools-builtin
will install it for you.