rattail.csvutil

CSV File Utilities

Contains various utilities relating to CSV file processing.

Note

This module is named csvutil instead of csv primarily as a workaround to the problem of PythonService.exe insisting on doing relative imports.

class rattail.csvutil.DictWriter(f, fieldnames, restval='', extrasaction='raise', dialect='excel', *args, **kwds)[source]

Convenience implementation of csv.DictWriter.

This exists only to provide the writeheader() method on Python 2.6.

class rattail.csvutil.UTF8Recoder(fileobj, encoding, errors='strict')[source]

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

Note

This class was stolen from the Python 2.7 documentation.