Package tlib :: Package base :: Module XlsHelper :: Class CsvHelper
[hide private]
[frames] | no frames]

Class CsvHelper

source code

   object --+    
            |    
Helper.Helper --+
                |
               CsvHelper

Instance Methods [hide private]
 
__init__(self, path)
Constructor for class
source code
 
csv2dict(self)
Convert csv data to lists, the result will be stored in data attribute
source code
 
data(self)
The csv data extracted from the file
source code

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

Class Variables [hide private]
  _data = []
  _path = None

Inherited from Helper.Helper: logger

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, path)
(Constructor)

source code 

Constructor for class

Parameters:
  • path - path to the excel file
  • isFirstRowHeader - is the first row of the excel file a header row? If true, the return result for reach row will be dictionary, otherwise, it will be a list
Overrides: object.__init__

data(self)

source code 

The csv data extracted from the file

Decorators:
  • @property