-A Django-like declarative framework for reading/writing CSV files.
+A Django-like declarative framework for working with CSV files.
+CSVModels main features are:
+* a convenient way to read/write CSV files
+* *easy* validation of CSV data
+Apart from that, CSVModels, also features a small and easy to extend
+codebase and a comprehensive test-suite.
In order to parse this file, all you have to do is to define a class that
declares the structure of each csv's rows::
from csvmodels import RowModel, StringColumn, IntegerColumn, FloatColumn
type of each column (string, integer, float etc)::
from csvmodels import Reader
- from models import MyRow
+ from models import MyRow
- with open(filename, "r") as f:
+ with open("test.csv", "r") as f:
reader = Reader(MyRow, f)
print(row.node, row.load_case, row.moment)