lino.utils.ucsv

(This module's source code is available here.)

Classes

UTF8Recoder(f, encoding)

Iterator that reads an encoded stream and reencodes the input to UTF-8

UnicodeReader(f[, dialect, encoding])

A CSV reader which will iterate over lines in the CSV file "f", which is encoded in the given encoding.

UnicodeWriter(f[, dialect, encoding])

A CSV writer which will write rows to CSV file "f", which is encoded in the given encoding.

class lino.utils.ucsv.UTF8Recoder(f, encoding)

Bases: object

Iterator that reads an encoded stream and reencodes the input to UTF-8

class lino.utils.ucsv.UnicodeReader(f, dialect=<class 'csv.excel'>, encoding='utf-8', **kwds)

Bases: object

A CSV reader which will iterate over lines in the CSV file "f", which is encoded in the given encoding.

class lino.utils.ucsv.UnicodeWriter(f, dialect=<class 'csv.excel'>, encoding='utf-8', **kwds)

Bases: object

A CSV writer which will write rows to CSV file "f", which is encoded in the given encoding.