afimb/gtfslib-python

Proposal: partial reads by date

invisiblefunnel opened this issue · 1 comments

from gtfslib.dao import Dao
from gtfslib.csvgtfs import read_dates

# or any particularly interesting date
earliest_date = min(read_dates("gtfs.zip"))

dao = Dao()
dao.load_gtfs("gtfs.zip", dates=[earliest_date])

Sorry, I accidentally submitted before I finished. I will close this and reopen with the complete proposal.