package documentation

Undocumented

Module console No module docstring; 0/1 variable, 3/5 classes documented
Module repr Object representations for debugging purposes. Unlike the default repr, these expose more information and produce HTML instead of ASCII.
Module tbtools No module docstring; 0/3 variable, 0/7 constant, 1/2 function, 4/4 classes documented

From __init__.py:

Class ​Debugged​Application Enables debugging support for a given application:
Function get​_machine​_id Undocumented
Function get​_pin​_and​_cookie​_name No summary
Function hash​_pin Undocumented
Constant PIN​_TIME Undocumented
Class _​Console​Frame Helper class so that we can reuse the frame console code for the standalone console.
Variable ​_machine​_id Undocumented
PIN_TIME =

Undocumented

Value
((60*60)*24)*7
def hash_pin(pin):

Undocumented

Parameters
pin:strUndocumented
Returns
strUndocumented
_machine_id: t.Optional[t.Union[str, bytes]] =

Undocumented

def get_machine_id():

Undocumented

Returns
t.Optional[t.Union[str, bytes]]Undocumented
def get_pin_and_cookie_name(app):

Given an application object this returns a semi-stable 9 digit pin code and a random key. The hope is that this is stable between restarts to not make debugging particularly frustrating. If the pin was forcefully disabled this returns None.

Second item in the resulting tuple is the cookie name for remembering.

Parameters
app:WSGIApplicationUndocumented
Returns
t.Union[t.Tuple[str, str], t.Tuple[None, None]]Undocumented