Wrapper for the NS api
Project description
NS API
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ns-api-0.0.1.tar.gz
(7.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ns-api-0.0.1.tar.gz.
File metadata
- Download URL: ns-api-0.0.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f76a3d97d22d8dc4bb50370a70d59560088835d444d4b23c45f229695fe0534
|
|
| MD5 |
bf688778e1cea5e39fd9d441d66aeae9
|
|
| BLAKE2b-256 |
1cae0663e21eb43717612822ea68996af2c925c3c4cd499046bef29b46e07308
|
File details
Details for the file ns_api-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ns_api-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b14a4bec3dcad5fc6bab29888b89a1231eb53e6b8637847c16f9485bd99ef55
|
|
| MD5 |
8421e00d0f9ed9d3fbf4cfe534409922
|
|
| BLAKE2b-256 |
d01a2dc473965e6ab1f6130fc0e9644710a41e7ea90eed45157ccb4a0059d582
|