Module Import alias Import alias Import alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Import alias identifier TryExcept body Import alias handlers ExceptHandler type NameLoad body Import alias identifier ImportFrom alias alias alias alias alias alias Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr UnaryOpNot Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot CompareLtLt Num AttributeLoad NameLoad attr BinOpPow Num Num body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr TryExcept body For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad attr body If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults Num body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareNotEq AttributeLoad NameLoad attr Num body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore Call NameLoad While BoolOpAnd CompareGt NameLoad Num AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Num body Break orelse If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore NameLoad AugAssignSub NameStore Num orelse Break If BoolOpAnd NameLoad CompareGt Call AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Break Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpDiv BinOpMult Num Call NameLoad NameLoad AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareGt NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Raise NameLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TryExcept body While Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TryExcept body While Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list NameLoad decorator_list If CompareEq NameLoad Str body Import alias Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr
N/A N/A logging N/A numbers N/A time N/A N/A N/A urlparse N/A N/A N/A ImportError N/A N/A urllib.parse urlparse N/A N/A N/A queue N/A N/A N/A ImportError N/A N/A Queue queue serial.serialutil SerialBase SerialException to_bytes iterbytes writeTimeoutError portNotOpenError N/A LOGGER_LEVELS N/A debug info warning error N/A logging DEBUG N/A logging INFO N/A logging WARNING N/A logging ERROR Serial N/A SerialBase N/A N/A Serial port implementation that simulates a loop back connection in plain software. N/A BAUDRATES N/A 50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 19200 38400 57600 115200 __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super Serial self __init__ args kwargs N/A N/A self buffer_size 4096 N/A N/A self queue None N/A N/A self logger None N/A open N/A N/A self N/A N/A N/A         Open port with current settings. This may throw a SerialException
        if the port cannot be opened.
         N/A N/A self is_open N/A N/A N/A SerialException Port is already open. N/A N/A self logger None N/A N/A self queue N/A N/A queue Queue N/A self buffer_size N/A N/A N/A self _port None N/A N/A N/A SerialException Port must be configured before it can be used. N/A N/A N/A self from_url N/A self port N/A N/A N/A self _reconfigure_port N/A N/A self is_open True N/A N/A N/A self _dsrdtr N/A N/A N/A N/A self _update_dtr_state N/A N/A N/A self _rtscts N/A N/A N/A N/A self _update_rts_state N/A N/A N/A self reset_input_buffer N/A N/A N/A self reset_output_buffer N/A close N/A N/A self N/A N/A N/A N/A self is_open N/A N/A N/A self is_open False N/A N/A N/A N/A N/A N/A self queue put_nowait None N/A N/A N/A N/A queue Full N/A N/A N/A N/A N/A N/A super Serial self close N/A _reconfigure_port N/A N/A self N/A N/A N/A         Set communication parameters on opened port. For the loop://
        protocol all settings are ignored!
         N/A N/A N/A N/A isinstance N/A self _baudrate N/A numbers Integral N/A N/A 0 N/A self _baudrate N/A 2 32 N/A N/A N/A ValueError N/A invalid baudrate: %r N/A self _baudrate N/A N/A self logger N/A N/A N/A N/A N/A self logger info _reconfigure_port() N/A from_url N/A N/A self url N/A N/A N/A extract host and port from an URL string N/A parts N/A N/A urlparse urlsplit url N/A N/A N/A parts scheme loop N/A N/A N/A SerialException N/A expected a string in the form "loop://[?logging={debug|info|warning|error}]": not starting with loop:// (%r) N/A N/A parts scheme N/A N/A N/A N/A option values N/A N/A N/A N/A urlparse parse_qs N/A parts query True items N/A N/A N/A option logging N/A N/A N/A N/A logging basicConfig N/A N/A self logger N/A N/A logging getLogger pySerial.loop N/A N/A N/A N/A self logger setLevel N/A LOGGER_LEVELS N/A N/A values N/A 0 N/A N/A N/A N/A self logger debug enabled logging N/A N/A N/A ValueError N/A unknown option: %r N/A option N/A N/A N/A ValueError N/A e N/A N/A N/A SerialException N/A expected a string in the form "loop://[?logging={debug|info|warning|error}]": %s e N/A in_waiting N/A N/A self N/A N/A N/A Return the number of bytes currently in the input buffer. N/A N/A N/A self is_open N/A N/A portNotOpenError N/A N/A self logger N/A N/A N/A N/A N/A self logger debug N/A in_waiting -> %d N/A N/A N/A N/A self queue qsize N/A N/A N/A N/A self queue qsize N/A property read N/A N/A self size N/A 1 N/A N/A         Read size bytes from the serial port. If a timeout is set it may
        return less characters as requested. With no timeout it will block
        until the requested number of bytes is read.
         N/A N/A N/A self is_open N/A N/A portNotOpenError N/A N/A N/A N/A self _timeout None N/A N/A self _timeout 0 N/A N/A timeout N/A N/A N/A time time N/A self _timeout N/A N/A timeout None N/A data N/A bytearray N/A N/A N/A size 0 N/A self is_open N/A N/A N/A N/A b N/A N/A N/A self queue get timeout N/A self _timeout N/A N/A N/A N/A queue Empty N/A N/A N/A N/A self _timeout 0 N/A N/A N/A N/A N/A data None N/A N/A data b N/A size 1 N/A N/A N/A N/A timeout N/A N/A N/A time time timeout N/A N/A N/A self logger N/A N/A N/A N/A N/A self logger info read timeout N/A N/A N/A bytes data N/A write N/A N/A self data N/A N/A N/A         Output the given byte string over the serial port. Can block if the
        connection is blocked. May raise SerialException if the connection is
        closed.
         N/A N/A N/A self is_open N/A N/A portNotOpenError N/A data N/A to_bytes data N/A time_used_to_send N/A N/A 10.0 N/A len data N/A self _baudrate N/A N/A N/A N/A self _write_timeout None N/A time_used_to_send N/A self _write_timeout N/A N/A N/A N/A time sleep N/A self _write_timeout N/A writeTimeoutError N/A byte N/A iterbytes data N/A N/A N/A N/A N/A self queue put byte timeout N/A self _write_timeout N/A N/A len data N/A reset_input_buffer N/A N/A self N/A N/A N/A Clear input buffer, discarding all that is in the buffer. N/A N/A N/A self is_open N/A N/A portNotOpenError N/A N/A self logger N/A N/A N/A N/A N/A self logger info reset_input_buffer() N/A N/A N/A N/A N/A N/A self queue qsize N/A N/A N/A N/A N/A self queue get_nowait N/A N/A N/A N/A queue Empty N/A N/A N/A reset_output_buffer N/A N/A self N/A N/A N/A         Clear output buffer, aborting the current output and
        discarding all that is in the buffer.
         N/A N/A N/A self is_open N/A N/A portNotOpenError N/A N/A self logger N/A N/A N/A N/A N/A self logger info reset_output_buffer() N/A N/A N/A N/A N/A N/A self queue qsize N/A N/A N/A N/A N/A self queue get_nowait N/A N/A N/A N/A queue Empty N/A N/A N/A _update_break_state N/A N/A self N/A N/A N/A         Set break: Controls TXD. When active, to transmitting is
        possible.
         N/A N/A self logger N/A N/A N/A N/A N/A self logger info N/A _update_break_state(%r) N/A N/A self _break_state N/A _update_rts_state N/A N/A self N/A N/A N/A Set terminal status line: Request To Send N/A N/A self logger N/A N/A N/A N/A N/A self logger info N/A _update_rts_state(%r) -> state of CTS N/A N/A self _rts_state N/A _update_dtr_state N/A N/A self N/A N/A N/A Set terminal status line: Data Terminal Ready N/A N/A self logger N/A N/A N/A N/A N/A self logger info N/A _update_dtr_state(%r) -> state of DSR N/A N/A self _dtr_state N/A cts N/A N/A self N/A N/A N/A Read terminal status line: Clear To Send N/A N/A N/A self is_open N/A N/A portNotOpenError N/A N/A self logger N/A N/A N/A N/A N/A self logger info N/A CTS -> state of RTS (%r) N/A N/A self _rts_state N/A N/A self _rts_state N/A property dsr N/A N/A self N/A N/A N/A Read terminal status line: Data Set Ready N/A N/A self logger N/A N/A N/A N/A N/A self logger info N/A DSR -> state of DTR (%r) N/A N/A self _dtr_state N/A N/A self _dtr_state N/A property ri N/A N/A self N/A N/A N/A Read terminal status line: Ring Indicator N/A N/A N/A self is_open N/A N/A portNotOpenError N/A N/A self logger N/A N/A N/A N/A N/A self logger info returning dummy for RI N/A False N/A property cd N/A N/A self N/A N/A N/A Read terminal status line: Carrier Detect N/A N/A N/A self is_open N/A N/A portNotOpenError N/A N/A self logger N/A N/A N/A N/A N/A self logger info returning dummy for CD N/A True N/A property N/A N/A N/A __name__ __main__ N/A N/A sys N/A s N/A Serial loop:// N/A N/A N/A N/A sys stdout write N/A %s
 s N/A N/A N/A N/A sys stdout write write...
 N/A N/A N/A s write hello
 N/A N/A N/A s flush N/A N/A N/A N/A sys stdout write N/A read: %s
 N/A N/A s read 5 N/A N/A N/A s close