The schedule module¶
-
class
pygtfs.schedule.Schedule(db_connection)[source]¶ Represents the full database.
The schedule is the most important object in pygtfs. It represents the entire dataset. Most of the properties come straight from the gtfs reference. Two of them were renamed: calendar is called services, and calendar_dates service_exceptions. One addition is the feeds table, which is here to support more than one feed in a database.
Each of the properties is a list created upon access by sqlalchemy. Then, each element of the list as attributes following the gtfs reference. In addition, if they are related to another table, this can also be accessed by attribute.
Parameters: db_conection – Either a sqlalchemy database url or a filename to be used with sqlite. -
agencies¶ A list of
pygtfs.gtfs_entities.Agencyobjects
-
agencies_by_id(id)¶ A list of
pygtfs.gtfs_entities.Agencyobjects with matching id
-
agencies_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.Agencyobjects
-
fare_rules¶ A list of
pygtfs.gtfs_entities.FareRuleobjects
-
fare_rules_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.FareRuleobjects
-
fares¶ A list of
pygtfs.gtfs_entities.Fareobjects
-
fares_by_id(id)¶ A list of
pygtfs.gtfs_entities.Fareobjects with matching id
-
fares_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.Fareobjects
-
feed_infos¶ A list of
pygtfs.gtfs_entities.FeedInfoobjects
-
feed_infos_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.FeedInfoobjects
-
feeds¶ A list of
pygtfs.gtfs_entities.Feedobjects
-
feeds_by_id(id)¶ A list of
pygtfs.gtfs_entities.Feedobjects with matching id
-
feeds_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.Feedobjects
-
frequencies¶ A list of
pygtfs.gtfs_entities.Frequencyobjects
-
frequencies_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.Frequencyobjects
-
routes¶ A list of
pygtfs.gtfs_entities.Routeobjects
-
routes_by_id(id)¶ A list of
pygtfs.gtfs_entities.Routeobjects with matching id
-
routes_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.Routeobjects
-
service_exceptions¶ A list of
pygtfs.gtfs_entities.ServiceExceptionobjects
-
service_exceptions_by_id(id)¶ A list of
pygtfs.gtfs_entities.ServiceExceptionobjects with matching id
-
service_exceptions_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.ServiceExceptionobjects
-
services¶ A list of
pygtfs.gtfs_entities.Serviceobjects
-
services_by_id(id)¶ A list of
pygtfs.gtfs_entities.Serviceobjects with matching id
-
services_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.Serviceobjects
-
shapes¶ A list of
pygtfs.gtfs_entities.ShapePointobjects
-
shapes_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.ShapePointobjects
-
stop_times¶ A list of
pygtfs.gtfs_entities.StopTimeobjects
-
stop_times_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.StopTimeobjects
-
stops¶ A list of
pygtfs.gtfs_entities.Stopobjects
-
stops_by_id(id)¶ A list of
pygtfs.gtfs_entities.Stopobjects with matching id
-
stops_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.Stopobjects
-
transfers¶ A list of
pygtfs.gtfs_entities.Transferobjects
-
transfers_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.Transferobjects
-
translations¶ A list of
pygtfs.gtfs_entities.Translationobjects
-
translations_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.Translationobjects
-
trips¶ A list of
pygtfs.gtfs_entities.Tripobjects
-
trips_by_id(id)¶ A list of
pygtfs.gtfs_entities.Tripobjects with matching id
-
trips_query¶ A
sqlalchemy.orm.Queryobject to fetchpygtfs.gtfs_entities.Tripobjects
-