Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
/ ns-api Public archive

Python 3 wrapper for the ns api (nederlandse spoorwegen / dutch railway)

License

Notifications You must be signed in to change notification settings

Shiqan/ns-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI

Unofficial wrapper for the Dutch railway API (Nederlandse Spoorwegen). The NS API currently features the following services:

  • Prices
  • 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()

License

Licensed under the MIT License.

About

Python 3 wrapper for the ns api (nederlandse spoorwegen / dutch railway)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages