Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Raise Call NameLoad Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareNotEq AttributeLoad NameLoad attr Str CompareGt Call NameLoad NameLoad Num body Assign NameStore NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str While AttributeLoad NameLoad attr body TryExcept body AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad name NameStore body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Break ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Break While NameLoad body If CompareNotIn Str NameLoad body Break Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Return NameLoad If UnaryOpNot BoolOpOr BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad CompareIn Str NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str While AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Break TryExcept body Expr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad GeneratorExp CompareIn NameLoad NameLoad comprehension NameStore NameLoad body Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body Break If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd AttributeStore NameLoad attr Num Break If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list
N/A N/A Abstract base interface for vehicle data sources. __future__ print_function N/A threading N/A logging N/A string N/A sys N/A datetime openxc.formats.binary ProtobufStreamer ProtobufFormatter openxc.formats.json JsonStreamer JsonFormatter N/A LOG N/A N/A logging getLogger __name__ MissingPayloadFormatError N/A Exception N/A N/A N/A DataSource N/A N/A threading Thread N/A N/A Interface for all vehicle data sources. This inherits from Thread and
    when a source is added to a vehicle it attempts to call the ``start()``
    method if it exists. If an implementer of DataSource needs some background
    process to read data, it's just a matter of defining a ``run()`` method.

    A data source requires a callback method to be specified. Whenever new data
    is received, it will pass it to that callback.
     __init__ N/A N/A self callback log_mode payload_format N/A None None None N/A N/A Construct a new DataSource.

        By default, DataSource threads are marked as ``daemon`` threads, so they
        will die as soon as all other non-daemon threads in the process have
        quit.

        Kwargs:
            callback - function to call with any new data received
         N/A N/A N/A N/A super DataSource self __init__ N/A N/A self callback callback N/A N/A self daemon True N/A N/A self running True N/A N/A self _streamer None N/A N/A self _formatter None N/A N/A self format payload_format N/A N/A self logger N/A SourceLogger self log_mode N/A format N/A N/A self N/A N/A N/A N/A self _format N/A property format N/A N/A self value N/A N/A N/A N/A self _format value N/A N/A value json N/A N/A N/A self streamer N/A JsonStreamer N/A N/A self formatter JsonFormatter N/A N/A N/A value protobuf N/A N/A N/A self streamer N/A ProtobufStreamer N/A N/A self formatter ProtobufFormatter N/A N/A format setter streamer N/A N/A self N/A N/A N/A N/A N/A self _streamer None N/A N/A N/A MissingPayloadFormatError Unable to auto-detect payload format, must specify manually with --format [json|protobuf] N/A N/A self _streamer N/A property streamer N/A N/A self value N/A N/A N/A N/A self _streamer value N/A N/A streamer setter formatter N/A N/A self N/A N/A N/A N/A N/A self _formatter None N/A N/A N/A MissingPayloadFormatError Unable to auto-detect payload format, must specify manually with --format [json|protobuf] N/A N/A self _formatter N/A property formatter N/A N/A self value N/A N/A N/A N/A self _formatter value N/A N/A formatter setter bytes_received N/A N/A self N/A N/A N/A N/A N/A self streamer bytes_received N/A property start N/A N/A self N/A N/A N/A N/A N/A N/A self logger start N/A N/A N/A N/A super DataSource self start N/A stop N/A N/A self N/A N/A N/A N/A N/A N/A self logger stop N/A N/A self running False N/A read N/A N/A self timeout N/A None N/A N/A Read data from the source.

        Kwargs:
            timeout (float) - if the source implementation could potentially
                block, timeout after this number of seconds.
         N/A N/A NotImplementedError Don't use DataSource directly N/A read_logs N/A N/A self timeout N/A None N/A N/A Read log data from the source.

        Kwargs:
            timeout (float) - if the source implementation could potentially
                block, timeout after this number of seconds.
         N/A N/A NotImplementedError Don't use DataSource directly N/A N/A SourceLogger N/A N/A threading Thread N/A N/A FILENAME_TEMPLATE %d-%m-%Y.%H-%M-%S __init__ N/A N/A self source mode N/A off N/A N/A N/A N/A N/A super SourceLogger self __init__ N/A N/A self daemon True N/A N/A self source source N/A N/A self mode mode N/A N/A self file None N/A N/A self running True N/A N/A N/A self mode file N/A N/A filename N/A openxc-logs-%s.txt N/A N/A N/A N/A N/A datetime datetime now strftime N/A self FILENAME_TEMPLATE N/A N/A self file N/A open filename wa N/A stop N/A N/A self N/A N/A N/A N/A self running False N/A record N/A N/A self message N/A N/A N/A N/A N/A N/A self mode None N/A N/A self mode off N/A N/A len message 0 N/A N/A log_file None N/A N/A N/A self mode stderr N/A N/A log_file N/A sys stderr N/A N/A N/A N/A N/A self mode file N/A N/A self file None N/A N/A log_file N/A self file N/A N/A print N/A LOG: %s message file log_file N/A run N/A N/A self N/A N/A N/A Continuously read data from the source and attempt to parse a valid
        message from the buffer of bytes. When a message is parsed, passes it
        off to the callback if one is set.
         N/A message_buffer N/A N/A self running N/A N/A N/A N/A message_buffer N/A N/A N/A self source read_logs N/A N/A N/A DataSourceError N/A e N/A N/A N/A self running N/A N/A N/A N/A LOG warn Can't read logs from data source -- stopping: %s e N/A N/A N/A NotImplementedError N/A e N/A N/A N/A N/A LOG info N/A %s doesn't support logging self N/A N/A True N/A N/A N/A message_buffer N/A N/A N/A N/A record _ remainder N/A N/A message_buffer partition N/A N/A N/A self record record N/A message_buffer remainder N/A N/A BytestreamDataSource N/A DataSource N/A N/A A source that receives data is a series of bytes, with discrete messages
    separated by a newline character.

    Subclasses of this class need only to implement the ``read`` method.
     __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A N/A super BytestreamDataSource self __init__ kwargs N/A N/A self corrupted_messages 0 N/A N/A self running True N/A _message_valid N/A N/A self message N/A N/A N/A N/A N/A hasattr message __iter__ N/A N/A False N/A N/A N/A N/A N/A name message N/A value message N/A N/A id message N/A data message N/A N/A id message N/A bus message N/A command_response message N/A N/A False N/A True N/A run N/A N/A self N/A N/A N/A Continuously read data from the source and attempt to parse a valid
        message from the buffer of bytes. When a message is parsed, passes it
        off to the callback if one is set.
         N/A N/A self running N/A N/A N/A N/A payload N/A N/A self read N/A N/A N/A DataSourceError N/A e N/A N/A N/A self running N/A N/A N/A N/A LOG warn Can't read from data source -- stopping: %s e N/A N/A N/A N/A N/A self streamer N/A N/A N/A MissingPayloadFormatError N/A N/A json_chars N/A N/A N/A N/A json_chars extend N/A string printable N/A N/A all N/A N/A char json_chars N/A char payload N/A N/A N/A self format json N/A N/A N/A self format protobuf N/A N/A N/A N/A self streamer receive payload N/A True N/A N/A message N/A N/A N/A self streamer parse_next_message N/A N/A message None N/A N/A N/A N/A N/A N/A self _message_valid message N/A N/A N/A self corrupted_messages 1 N/A N/A N/A N/A self callback None N/A N/A N/A N/A self callback message N/A N/A N/A self _receive_command_response message N/A _receive_command_response N/A N/A self message N/A N/A N/A N/A self open_requests N/A getattr self open_requests N/A N/A open_request N/A self open_requests N/A N/A N/A N/A open_request put message N/A N/A DataSourceError N/A Exception N/A N/A N/A