Package kenozooid :: Package driver :: Class DataParser

Class DataParser

source code

object --+
         |
        DataParser

Diving computer data parser interface.

Depending on dive computer firmware capabilities, driver implementing the interface shall dump all possible data from dive computer like

Instance Methods
 
dump(self)
Get raw data from dive computer.
source code
 
dives(self, data)
Parse dive data from raw data.
source code
 
gases(self, data)
Get list of gases per dive.
source code
 
version(self, data)
Extract model and version information from dive computer raw data.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  driver = None
Properties

Inherited from object: __class__

Method Details

dives(self, data)

source code 

Parse dive data from raw data.

Iterator of dives is returned.

Parameters:
  • data - Raw dive computer data.

gases(self, data)

source code 

Get list of gases per dive.

Iterator of tuples of gases is returned. A tuple of gases is list of gases used during a dive.

Parameters:
  • data - Raw dive computer data.

version(self, data)

source code 
Extract model and version information from dive computer raw data.
Parameters:
  • data - Raw dive computer data.