Example #1
0
class SampleReader(DictReader):

    foo = fields.IntegerField(required=True)
    bar = fields.DateField(required=True)
    baz = fields.Field(required=True, regex='[A-Z0-9_]{3,9}')
Example #2
0
        class MultiMappedReader(DictReader):

            foo = fields.IntegerField(index='foo')
            bar = fields.DateField(index='bar')
            baz = fields.Field(index='foo')
Example #3
0
class SampleIndexedDictReader(DictReader):
    foo = fields.Field(index=1)
    bar = fields.Field(index=3)
    baz = fields.Field(index=10)
Example #4
0
 class BadReader(DictReader):
     foo = fields.Field()
     bar = fields.Field()
     baz = fields.Field(index=0)
Example #5
0
 class BadHeaderReader(DictReader):
     foo = fields.IntegerField(index='foo')
     bar = fields.DateField(index='bar')
     baz = fields.Field(index='baz')