Module ImportFrom alias alias alias alias Import alias If AttributeLoad NameLoad attr body Import alias orelse If BoolOpAnd CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body ImportFrom alias Assign NameStore NameLoad Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Import alias Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareGt NameLoad Num body Return Call NameLoad NameLoad Return Str decorator_list FunctionDef arguments args NameParam defaults body Import alias Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Pass decorator_list decorator_list Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Import alias alias alias alias Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AugAssignBitAnd SubscriptStore NameLoad Index Num UnaryOpInvert BinOpBitOr BinOpBitOr BinOpBitOr BinOpBitOr BinOpBitOr BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignBitAnd SubscriptStore NameLoad Index Num UnaryOpInvert AttributeLoad NameLoad attr AugAssignBitAnd SubscriptStore NameLoad Index Num UnaryOpInvert BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignBitOr SubscriptStore NameLoad Index Num AttributeLoad NameLoad attr AugAssignBitAnd SubscriptStore NameLoad Index Num UnaryOpInvert BinOpBitOr BinOpBitOr BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpBitAnd AttributeLoad NameLoad attr UnaryOpInvert AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Return Num decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Pass decorator_list decorator_list Expr Str ClassDef bases NameLoad body Assign NameStore ListLoad ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str FunctionDef arguments args NameParam defaults body ImportFrom alias Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body ImportFrom alias Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr While CompareGt Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num If BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareLt AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad AttributeLoad NameLoad attr attr Index Num Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse Return Num decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse Return Str decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Pass decorator_list decorator_list Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Return Num decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Expr NameLoad decorator_list decorator_list Expr Str ClassDef bases NameLoad body Expr Str Assign NameStore Dict Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str ListLoad Num Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Import alias Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr If CompareIn NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num orelse If CompareLt NameLoad Num body Assign AttributeStore NameLoad attr Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Return NameLoad Return Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Num body Return Str orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Pass decorator_list decorator_list FunctionDef arguments args NameParam defaults NameLoad body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call NameLoad orelse If AttributeLoad NameLoad attr body Return Call NameLoad orelse If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call NameLoad orelse Return IfExp NameLoad Call NameLoad Call NameLoad decorator_list
N/A __future__ absolute_import division print_function unicode_literals N/A pi3d N/A N/A pi3d USE_PYGAME N/A N/A pygame N/A N/A N/A N/A N/A pi3d PLATFORM N/A pi3d PLATFORM_PI N/A N/A pi3d PLATFORM N/A pi3d PLATFORM_ANDROID N/A pyxlib x N/A USE_CURSES True N/A Non-blocking keyboard which requires curses and only works on the current
terminal window or session.
 CursesKeyboard N/A object N/A __init__ N/A N/A self N/A N/A N/A curses N/A N/A self key N/A N/A curses initscr N/A N/A N/A curses cbreak N/A N/A N/A curses noecho N/A N/A N/A N/A self key keypad 1 N/A N/A N/A N/A self key nodelay 1 N/A read N/A N/A self N/A N/A N/A N/A N/A N/A self key getch N/A read_code N/A N/A self N/A N/A N/A c N/A N/A N/A self key getch N/A N/A c -1 N/A N/A N/A chr c N/A N/A close N/A N/A self N/A N/A N/A curses N/A N/A N/A curses nocbreak N/A N/A N/A N/A self key keypad 0 N/A N/A N/A curses echo N/A N/A N/A curses endwin N/A __del__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A self close N/A N/A N/A N/A N/A N/A N/A Blocking keyboard which doesn't require curses and gets any keyboard inputs
regardless of which window is in front.
From http://stackoverflow.com/a/6599441/43839
 SysKeyboard N/A object N/A __init__ N/A N/A self N/A N/A N/A termios fcntl sys os N/A N/A self fd N/A N/A N/A sys stdin fileno N/A N/A self flags_save N/A N/A fcntl fcntl N/A self fd N/A fcntl F_GETFL N/A N/A self attrs_save N/A N/A termios tcgetattr N/A self fd N/A attrs N/A list N/A self attrs_save N/A N/A attrs N/A 0 N/A N/A N/A N/A N/A N/A N/A N/A N/A termios IGNBRK N/A termios BRKINT N/A termios PARMRK N/A termios ISTRIP N/A termios INLCR N/A termios IGNCR N/A termios ICRNL N/A termios IXON N/A N/A attrs N/A 1 N/A N/A termios OPOST N/A N/A attrs N/A 2 N/A N/A N/A termios CSIZE N/A termios PARENB N/A N/A attrs N/A 2 N/A termios CS8 N/A N/A attrs N/A 3 N/A N/A N/A N/A N/A N/A termios ECHONL N/A termios ECHO N/A termios ICANON N/A termios ISIG N/A termios IEXTEN N/A N/A N/A termios tcsetattr N/A self fd N/A termios TCSANOW attrs N/A N/A N/A fcntl fcntl N/A self fd N/A fcntl F_SETFL N/A N/A self flags_save N/A N/A os O_NONBLOCK N/A read N/A N/A self N/A N/A N/A N/A N/A N/A ord N/A N/A N/A sys stdin read N/A N/A N/A KeyboardInterrupt N/A N/A 0 N/A read_code N/A N/A self N/A N/A N/A N/A close N/A N/A self N/A N/A N/A N/A N/A termios tcsetattr N/A self fd N/A termios TCSAFLUSH N/A self attrs_save N/A N/A N/A fcntl fcntl N/A self fd N/A fcntl F_SETFL N/A self flags_save N/A __del__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A self close N/A N/A N/A N/A N/A N/A N/A Keyboard using x11 functionality
 x11Keyboard N/A object N/A N/A KEYBOARD N/A N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 27 Escape N/A 49 1 N/A 50 2 N/A 51 3 N/A 52 4 N/A 53 5 N/A 54 6 N/A 55 7 N/A 56 8 N/A 57 9 N/A 48 0 N/A 45 - N/A 61 = N/A 8 BackSpace N/A 9 Tab N/A 113 q N/A 119 w N/A 101 e N/A 114 r N/A 116 t N/A 121 y N/A 117 u N/A 105 i N/A 111 o N/A 112 p N/A 91 [ N/A 93 ] N/A 13 Return N/A 0 Control_L N/A 97 a N/A 115 s N/A 100 d N/A 102 f N/A 103 g N/A 104 h N/A 106 j N/A 107 k N/A 108 l N/A 59 ; N/A 39 ' N/A 96 ` N/A 0 Shift_L N/A 35 # N/A 122 z N/A 120 x N/A 99 c N/A 118 v N/A 98 b N/A 110 n N/A 109 m N/A 44 , N/A 46 . N/A 47 / N/A 0 Shift_R N/A 0 N/A 0 Alt_L N/A 32 space N/A 0 Caps N/A 145 F1 N/A 146 F2 N/A 147 F3 N/A 148 F4 N/A 149 F5 N/A 150 F6 N/A 151 F7 N/A 152 F8 N/A 153 F9 N/A 154 F10 N/A 0 Num_Lock N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 92 \ N/A 155 F11 N/A 156 F12 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 0 N/A 13 KP_Enter N/A 0 Control_R N/A 0 N/A 0 N/A 0 Alt_R N/A 0 N/A 129 Home N/A 134 Up N/A 130 Page_Up N/A 136 Left N/A 137 Right N/A 132 End N/A 135 Down N/A 133 Page_Down N/A 128 Insert N/A 131 DEL __init__ N/A N/A self N/A N/A pi3d.Display Display N/A N/A self display N/A Display INSTANCE N/A N/A self key_num 0 N/A N/A self key_code N/A _update_event N/A N/A self N/A N/A N/A N/A N/A self display None N/A pi3d.Display Display N/A N/A self display N/A Display INSTANCE N/A N/A N/A len N/A N/A self display event_list 0 N/A N/A e N/A N/A N/A N/A self display event_list pop 0 N/A N/A N/A N/A e type N/A x KeyPress N/A N/A N/A e xkey keycode N/A len N/A self KEYBOARD N/A N/A N/A self key_num N/A N/A N/A self KEYBOARD N/A N/A N/A e xkey keycode N/A 0 N/A N/A self key_code N/A N/A N/A self KEYBOARD N/A N/A N/A e xkey keycode N/A 1 N/A True N/A False N/A read N/A N/A self N/A N/A N/A N/A N/A self _update_event N/A N/A N/A self key_num N/A N/A -1 N/A read_code N/A N/A self N/A N/A N/A N/A N/A self _update_event N/A N/A N/A self key_code N/A N/A N/A close N/A N/A self N/A N/A N/A N/A __del__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A self close N/A N/A N/A N/A N/A N/A N/A Android keyboard - TODO all of this
 AndroidKeyboard N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A read N/A N/A self N/A N/A N/A -1 N/A read_code N/A N/A self N/A N/A N/A N/A close N/A N/A self N/A N/A N/A N/A __del__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A self close N/A N/A N/A N/A passwindows N/A N/A N/A Windows keyboard - uses pygame
 PygameKeyboard N/A object N/A N/A  In this case KEYBOARD maps pygame codes to the X11 codes used above
   N/A KEYBOARD N/A 282 283 284 285 286 287 288 289 290 291 60 292 293 271 305 306 308 307 278 273 280 276 275 279 274 281 277 127 304 303 301 13 8 N/A 145 F1 N/A 146 F2 N/A 147 F3 N/A 148 F4 N/A 149 F5 N/A 150 F6 N/A 151 F7 N/A 152 F8 N/A 153 F9 N/A 154 F10 N/A 92 \ N/A 155 F11 N/A 156 F12 N/A 13 KP_Enter N/A 0 Control_R N/A 0 Control_L N/A 0 Alt_L N/A 0 Alt_R N/A 129 Home N/A 134 Up N/A 130 Page_Up N/A 136 Left N/A 137 Right N/A 132 End N/A 135 Down N/A 133 Page_Down N/A 128 Insert N/A 131 DEL N/A 0 Shift_L N/A 0 Shift_R N/A 0 Caps N/A 0 Return N/A 0 BackSpace __init__ N/A N/A self N/A N/A N/A N/A self key_list N/A N/A pygame N/A N/A N/A pygame init N/A N/A N/A N/A pygame key set_repeat 500 25 N/A N/A self key_num 0 N/A N/A self key_code N/A read N/A N/A self N/A N/A N/A pygame N/A N/A N/A N/A pygame event get N/A pygame KEYUP N/A N/A N/A N/A self key_list extend N/A N/A N/A pygame event get N/A pygame KEYDOWN N/A N/A N/A len N/A self key_list 0 N/A N/A key N/A N/A N/A self key_list N/A 0 key N/A N/A key N/A self KEYBOARD N/A N/A N/A self key_code N/A N/A N/A self KEYBOARD N/A key N/A 1 N/A key N/A N/A N/A self KEYBOARD N/A key N/A 0 N/A N/A N/A key 256 N/A N/A N/A self key_code N/A chr key N/A N/A N/A self key_code N/A N/A self key_list N/A N/A self key_list N/A 1 N/A key N/A -1 N/A read_code N/A N/A self N/A N/A N/A key N/A N/A self read N/A N/A key -1 N/A N/A N/A N/A N/A self key_code N/A close N/A N/A self N/A N/A N/A N/A __del__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A self close N/A N/A N/A N/A N/A N/A Keyboard N/A N/A use_curses N/A USE_CURSES N/A N/A N/A N/A pi3d PLATFORM N/A pi3d PLATFORM_ANDROID N/A N/A N/A AndroidKeyboard N/A N/A N/A pi3d USE_PYGAME N/A N/A N/A PygameKeyboard N/A N/A N/A N/A pi3d PLATFORM N/A pi3d PLATFORM_PI N/A N/A N/A x11Keyboard N/A N/A N/A use_curses N/A CursesKeyboard N/A SysKeyboard N/A