Metadata-Version: 2.1
Name: ns-api
Version: 0.0.1
Summary: Wrapper for the NS api
Home-page: http://github.com/Shiqan/ns-api
Author: Shiqan
License: MIT
Keywords: api ns nederlandse spoorwegen dutch railway
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Requires-Dist: aiohttp
Requires-Dist: dataclasses-json
Requires-Dist: requests

# [NS API](https://www.ns.nl/en/travel-information/ns-api)

[![PyPI](https://img.shields.io/pypi/v/fortnite-replay-reader.svg)](https://pypi.org/project/fortnite-replay-reader/)

Unofficial wrapper for the Dutch railway [API](https://www.ns.nl/en/travel-information/ns-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

```python
from nsapi import NSAPI

ns = NSAPI('yourkey')
ns.get_all_stations()
```

```python
from nsapi import AsyncNSAPI

async def example():
    async with AsyncNSAPI('yourkey') as ns:
        await ns.get_all_stations()
```

## License

Licensed under the [MIT License](LICENSE).


