Skip to content

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

License

Notifications You must be signed in to change notification settings

GlennTatum/PyMTA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages