Welcome to csv_ojbect_reader’s documentation!¶
Contents:
csv_object_reader¶

Homepage¶
Visit the home of csv_object_reader on the web at https://github.com/fireyone29/csv_object_reader or check out the docs at http://csv-object-reader.readthedocs.org/en/latest/
Summary¶
A simple module which mimics the reader classes from python’s csv module but returns an object whose attributes are the members of the header instead of a list or dict.
The ObjectReader also provides a way to make fields required to be present and required to be not empty.
Installation¶
At the command line:
$ easy_install csv_object_reader
Or, if you have virtualenvwrapper installed:
$ mkvirtualenv csv_object_reader
$ pip install csv_object_reader
Usage¶
To use csv_object_reader in a project:
import csv_object_reader
with open("somefile.csv") as f:
reader = csv_object_reader.ObjectReader(f)
for line in reader:
print(line)