Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 331 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 331 Bytes

PyMTA

A Python API Wrapper built around the MTA's GTFS based protobuf api.

Example

def main():
    mta = TransitService("SECRETKEY")

    line = mta.service(Subway, "ACE")

    stop = line.stop("A02S")

    for event in stop:
        print(event.arrival)

Dependencies

  • requests

  • protobuf

  • pydantic