api wrapper for Dutch Railways (NS)
Query the Dutch railways about your routes, getting info on delays and more. See below for the syntax and example output.
Assuming you already are inside a virtualenv:
pip install nsapi
Create a new virtualenv (if you are not already in one) and install the necessary packages:
git clone https://github.com/aquatix/ns-api.git cd ns-api mkvirtualenv ns-api pip install -r requirements.txt
As part of ns-notifications
Alternatively, follow the installation instructions of ns-notifications, which makes extensive use of this library to serve notifications to for example a smartphone. The requirements of both packages can be installed in the same ns-notifications one mentioned in the project; ns-api will be installed through pip from PyPI.
Also take a look at nsmaps
Bart Römgens created a fascinating contour map called nsmaps based on ns-api. It visualises Dutch railways travel information with OpenLayer 3 contour maps to show how long it takes to get somewhere in the Netherlands by train and bicycle.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size nsapi-3.0.0.zip (14.5 kB)||File type Source||Python version None||Upload date||Hashes View hashes|