Package obitools :: Package table :: Module csv
[hide private]
[frames] | no frames]

Module csv

source code

obitools.table.csv module provides an iterator adapter allowing to parse csv (comma separatted value) file

Functions [hide private]
iterator
csvIterator(lineIterator, sep=',')
Allows easy parsing of a csv file.
source code
 
_csvParse(line, valueMatcher) source code
Variables [hide private]
  __package__ = 'obitools.table'

Imports: re


Function Details [hide private]

csvIterator(lineIterator, sep=',')

source code 

Allows easy parsing of a csv file. This function convert an iterator on line over a csv text file in an iterator on data list. Each list corresponds to all values present n one line.

Parameters:
  • lineIterator (iterator) - iterator on text lines
  • sep (string) - string of one letter used as separator blank charactere or " is not allowed as separator
Returns: iterator
an iterator on data list