Wrapper for the NS api
Unofficial wrapper for the Dutch railway API (Nederlandse Spoorwegen). The NS API currently features the following services:
- Current departure times
- Disruptions and engineering work
- The station list, with all stations in the Netherlands including Geodata
- Travel recommendations from station to station
from nsapi import NSAPI ns = NSAPI('yourkey') ns.get_all_stations()
from nsapi import AsyncNSAPI async def example(): async with AsyncNSAPI('yourkey') as ns: await ns.get_all_stations()
Licensed under the MIT License.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.