Welcome to csv_ojbect_reader’s documentation!

Contents:

csv_object_reader

https://travis-ci.org/fireyone29/csv_object_reader.svg?branch=develop https://coveralls.io/repos/fireyone29/csv_object_reader/badge.svg?branch=develop Documentation Status https://badge.fury.io/py/csv_object_reader.png

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)

History

Version 0.1.1 (2015-02-08)

  • Minor documenation fix.

Version 0.1 (2015-02-08)

  • First release.

Version 0.0 (2015-02-08)

  • Initial revision. Basic interface and functionality.

Indices and tables