šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

ns-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ns-api

Wrapper for the NS api

0.0.1
PyPI
Maintainers
1

NS API

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.

Keywords

api ns nederlandse spoorwegen dutch railway

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts