Example #1
0
class Trip(BaseModel('Trip', _fields)):
    __filename__ = 'trips.txt'
    __required__ = (
        'route_id',
        'service_id',
        'trip_id'
    )
Example #2
0
class Stop(BaseModel('Stop', _fields)):
    __filename__ = 'stops.txt'
    __required__ = (
        'stop_id',
        'stop_name',
        'stop_lat',
        'stop_lon',
    )
Example #3
0
class Route(BaseModel('Route', _fields)):
    __filename__ = 'routes.txt'
    __required__ = (
        'route_id',
        'route_short_name',
        'route_long_name',
        'route_type'
    )
Example #4
0
class FareAttribute(BaseModel('FareAttribute', _fields)):
    __filename__ = 'fare_attributes.txt'
    __required__ = _fields[:-1]
Example #5
0
class FareRule(BaseModel('FareRule', _fields)):
    __filename__ = 'fare_rules.txt'
    __required__ = ('fare_id')
Example #6
0
class Transfer(BaseModel('Transfer', _fields)):
    __filename__ = 'transfers.txt'
    __required__ = _fields[:-1]
Example #7
0
class Frequency(BaseModel('Frequency', _fields)):
    __filename__ = 'frequencies.txt'
    __required__ = _fields[:-1]
Example #8
0
class CalendarDate(BaseModel('CalendarDate', _fields)):
    __filename__ = 'calendar_dates.txt'
    __required__ = _fields
Example #9
0
class Agency(BaseModel('Agency', _fields)):
    __filename__ = 'agency.txt'
    __required__ = ('agency_name', 'agency_url', 'agency_timezone')
Example #10
0
class Shape(BaseModel('Shape', _fields)):
    __filename__ = 'shapes.txt'
    __required__ = _fields[:-1]
Example #11
0
class FeedInfo(BaseModel('FeedInfo', _fields)):
    __filename__ = 'feed_info.txt'
    __required__ = _fields[:-2]
Example #12
0
class StopTime(BaseModel('StopTime', _fields)):
    __filename__ = 'stop_times.txt'
    __required__ = ('trip_id', 'arrival_time', 'departure_time', 'stop_id',
                    'stop_sequence')
Example #13
0
class Calendar(BaseModel('Calendar', _fields)):
    __filename__ = 'calendar.txt'
    __required__ = _fields