Module Import alias Import alias ImportFrom alias Assign NameStore Str Assign NameStore Call NameLoad ListLoad Num Num Num Num Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpMult Num Num BinOpMult Num Num BinOpMult Num Num BinOpMult Num Num BinOpMult Num Num BinOpMult Num Num BinOpMult Num Num BinOpMult Num Num Num Num Num Num Num Num Num Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Str TryExcept body Assign SubscriptStore NameLoad Index Str Str handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad BinOpMult NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad NameLoad keyword Call NameLoad NameLoad keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad AttributeLoad NameLoad attr Num For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr CompareGtGt Num BinOpSub SubscriptLoad NameLoad Index Str Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareGtGt Num BinOpSub SubscriptLoad NameLoad Index Str Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call NameLoad NameLoad body If UnaryOpNot BinOpMod NameLoad Num body Assign NameStore BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad AugAssignAdd NameStore BinOpMult NameLoad Str AugAssignAdd NameStore NameLoad Assign NameStore Call NameLoad NameLoad AugAssignAdd NameStore BinOpAdd Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore IfExp Call AttributeLoad NameLoad attr NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd NameLoad BinOpMult BinOpSub NameLoad Num Str Str AugAssignAdd NameStore NameLoad Print NameLoad Print NameLoad Print NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest N/A re snap7 util N/A test_spec 

4	    ID	         INT
6	    NAME	 STRING[4]

12.0	testbool1    BOOL
12.1	testbool2    BOOL
12.2	testbool3    BOOL
12.3	testbool4    BOOL
12.4	testbool5    BOOL
12.5	testbool6    BOOL
12.6	testbool7    BOOL
12.7	testbool8    BOOL
13      testReal     REAL
17      testDword    DWORD
 N/A _bytearray N/A bytearray N/A 0 0 4 4 N/A ord t N/A ord e N/A ord s N/A ord t N/A N/A N/A N/A N/A N/A N/A N/A 128 0 N/A 64 0 N/A 32 0 N/A 16 0 N/A 8 1 N/A 4 1 N/A 2 1 N/A 1 1 68 78 211 51 255 255 255 255 TestS7util N/A N/A unittest TestCase N/A test_get_string N/A N/A self N/A N/A N/A 
        Text extraction from string from bytearray
         N/A test_array N/A bytearray _bytearray N/A row N/A N/A util DB_Row test_array test_spec layout_offset 4 N/A N/A N/A self assertTrue N/A N/A row N/A NAME test N/A test_write_string N/A N/A self N/A N/A N/A test_array N/A bytearray _bytearray N/A row N/A N/A util DB_Row test_array test_spec layout_offset 4 N/A N/A row N/A NAME abc N/A N/A N/A self assertTrue N/A N/A row N/A NAME abc N/A N/A row N/A NAME N/A N/A N/A self assertTrue N/A N/A row N/A NAME N/A N/A N/A N/A row N/A NAME waaaaytoobig N/A N/A N/A ValueError N/A N/A N/A N/A N/A self assertTrue N/A N/A row N/A NAME N/A test_get_int N/A N/A self N/A N/A N/A test_array N/A bytearray _bytearray N/A row N/A N/A util DB_Row test_array test_spec layout_offset 4 N/A x N/A row N/A ID N/A N/A N/A self assertTrue N/A x 0 N/A test_set_int N/A N/A self N/A N/A N/A test_array N/A bytearray _bytearray N/A row N/A N/A util DB_Row test_array test_spec layout_offset 4 N/A N/A row N/A ID 259 N/A N/A N/A self assertTrue N/A N/A row N/A ID 259 N/A test_get_bool N/A N/A self N/A N/A N/A test_array N/A bytearray _bytearray N/A row N/A N/A util DB_Row test_array test_spec layout_offset 4 N/A N/A N/A self assertTrue N/A N/A row N/A testbool1 1 N/A N/A N/A self assertTrue N/A N/A row N/A testbool8 0 N/A test_set_bool N/A N/A self N/A N/A N/A test_array N/A bytearray _bytearray N/A row N/A N/A util DB_Row test_array test_spec layout_offset 4 N/A N/A row N/A testbool8 1 N/A N/A row N/A testbool1 0 N/A N/A N/A self assertTrue N/A N/A row N/A testbool8 1 N/A N/A N/A self assertTrue N/A N/A row N/A testbool1 0 N/A test_db_creation N/A N/A self N/A N/A N/A test_array N/A bytearray N/A _bytearray 10 N/A test_db N/A N/A util DB 1 test_array test_spec row_size N/A len _bytearray size 10 layout_offset 4 db_offset 0 N/A N/A N/A self assertTrue N/A N/A len N/A test_db index 10 N/A N/A i row test_db N/A N/A N/A N/A self assertTrue N/A N/A row N/A testbool1 1 N/A N/A N/A self assertTrue N/A N/A row N/A testbool2 1 N/A N/A N/A self assertTrue N/A N/A row N/A testbool3 1 N/A N/A N/A self assertTrue N/A N/A row N/A testbool4 1 N/A N/A N/A self assertTrue N/A N/A row N/A testbool5 0 N/A N/A N/A self assertTrue N/A N/A row N/A testbool6 0 N/A N/A N/A self assertTrue N/A N/A row N/A testbool7 0 N/A N/A N/A self assertTrue N/A N/A row N/A testbool8 0 N/A N/A N/A self assertTrue N/A N/A row N/A NAME test N/A test_get_real N/A N/A self N/A N/A N/A test_array N/A bytearray _bytearray N/A row N/A N/A util DB_Row test_array test_spec layout_offset 4 N/A N/A N/A self assertTrue N/A 0.01 N/A N/A row N/A testReal 827.3 -0.1 N/A test_set_real N/A N/A self N/A N/A N/A test_array N/A bytearray _bytearray N/A row N/A N/A util DB_Row test_array test_spec layout_offset 4 N/A N/A row N/A testReal 1337.1337 N/A N/A N/A self assertTrue N/A 0.01 N/A N/A row N/A testReal 1337.1337 -0.01 N/A test_set_dword N/A N/A self N/A N/A N/A test_array N/A bytearray _bytearray N/A row N/A N/A util DB_Row test_array test_spec layout_offset 4 N/A N/A row N/A testDword 9999999 N/A N/A N/A self assertTrue N/A N/A row N/A testDword 9999999 N/A test_get_dword N/A N/A self N/A N/A N/A test_array N/A bytearray _bytearray N/A row N/A N/A util DB_Row test_array test_spec layout_offset 4 N/A N/A N/A self assertTrue N/A N/A row N/A testDword 4294967295 N/A test_export N/A N/A self N/A N/A N/A test_array N/A bytearray _bytearray N/A row N/A N/A util DB_Row test_array test_spec layout_offset 4 N/A data N/A N/A row export N/A N/A N/A self assertTrue N/A testDword data N/A N/A N/A self assertTrue N/A testbool1 data N/A N/A N/A self assertTrue N/A N/A data N/A testbool5 0 N/A N/A print_row N/A N/A data N/A N/A N/A print a single db row in chr and str
     N/A index_line N/A pri_line1 N/A chr_line2 N/A asci N/A N/A re compile [a-zA-Z0-9 ] N/A N/A i xi N/A enumerate data N/A N/A N/A N/A i 5 N/A N/A diff N/A N/A len pri_line1 N/A len index_line N/A i N/A str i N/A index_line N/A diff N/A index_line i N/A str_v N/A str xi N/A pri_line1 N/A N/A str xi , N/A c N/A chr xi N/A c N/A N/A N/A asci match c c N/A w N/A len str_v N/A c N/A N/A c N/A N/A w 1 , N/A chr_line2 c N/A index_line N/A pri_line1 N/A chr_line2 N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main