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 SampleReader(DictReader):

    foo = fields.IntegerField()
    bar = fields.DateField()
Example #4
0
class SampleReaderMapped(DictReader):
    foo = fields.IntegerField(index='Foosball')
    bar = fields.DateField(index='Barry')
Example #5
0
 class BadHeaderReader(DictReader):
     foo = fields.IntegerField(index='foo')
     bar = fields.DateField(index='bar')
     baz = fields.Field(index='baz')