Skip to main content

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.

Metadata

Release files for ns-api 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ns-api 0.0.1
File Size Uploaded
ns-api-0.0.1.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ns-api 0.0.1
File Interpreter ABI Platform
ns_api-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / ns-api-0.0.1.tar.gz

Download URL ns-api-0.0.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4f76a3d97d22d8dc4bb50370a70d59560088835d444d4b23c45f229695fe0534
BLAKE2b-256 checksum
How to use checksums
1cae0663e21eb43717612822ea68996af2c925c3c4cd499046bef29b46e07308
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

Release files / ns_api-0.0.1-py3-none-any.whl

Download URL ns_api-0.0.1-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b14a4bec3dcad5fc6bab29888b89a1231eb53e6b8637847c16f9485bd99ef55
BLAKE2b-256 checksum
How to use checksums
d01a2dc473965e6ab1f6130fc0e9644710a41e7ea90eed45157ccb4a0059d582
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page