class SampleReader(DictReader): foo = fields.IntegerField(required=True) bar = fields.DateField(required=True) baz = fields.Field(required=True, regex='[A-Z0-9_]{3,9}')
class MultiMappedReader(DictReader): foo = fields.IntegerField(index='foo') bar = fields.DateField(index='bar') baz = fields.Field(index='foo')
class SampleIndexedDictReader(DictReader): foo = fields.Field(index=1) bar = fields.Field(index=3) baz = fields.Field(index=10)
class BadReader(DictReader): foo = fields.Field() bar = fields.Field() baz = fields.Field(index=0)
class BadHeaderReader(DictReader): foo = fields.IntegerField(index='foo') bar = fields.DateField(index='bar') baz = fields.Field(index='baz')