Download data from the NRE DTD
Project description
nre-dtd
A tool for downloading data from the National Rail Enquiries' data feed.
This code is licensed under the WTFPL or the CC0 (at your discretion), but its output is not. Any NRE data included in the output of this program is subject to these terms and conditions.
Useful links
- DTD on the Open Rail Data Wiki
- Fares and Associated Data Feed Interface Specification by the Rail Delivery Group
- National Routeing Guide Data Feed Specification by the Rail Delivery Group
- Timetable Information Data Feed Interface Specification by the Rail Delivery Group
- How to use the National Routeing Guide by the Rail Delivery Group (not HTTPS)
- The National Routeing Guide in detail by the Rail Delivery Group (not HTTPS)
Get started
Get an account
- Register for an account on the National Rail Data Portal.
- Subscribe to the Fares, Routeing and Timetable feed.
Use the tool
From PyPI
- Run
python3 -m pip install nre-dtd.
From source
- Run
python3 -m pip install poetryif you have not got Poetry. - Run
poetry initto set up the environment. - Run
poetry shellto enter the environment. - Or, prepend
poetry run --to every command.
Examples
Get usage instructions
nre-dtd --help
Download everything
nre-dtd --fares <filename>.zip --routeing <filename>.zip --timetable <filename>.zip
This will ask you for a password. The downloaded files are zipped.
Supply the username and password on the command line
nre-dtd --username sarah@example.com --password "correct-horse-battery-staple" <...>
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 nre_dtd-1.1.1.tar.gz.
File metadata
- Download URL: nre_dtd-1.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cdd820649fe932f1f951ab5da323046051d26435717650c3652e2d576082166
|
|
| MD5 |
99477c35e52361833cf59a27e82c8718
|
|
| BLAKE2b-256 |
9fdb2306658d426755b0f0191a9ba20e3563041294716ad2b69ba7c04093e1cd
|
File details
Details for the file nre_dtd-1.1.1-py3-none-any.whl.
File metadata
- Download URL: nre_dtd-1.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.4 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
867d0fac979800175d16e136c8a4c2b439320ee48f400e7c70780acb33e13acb
|
|
| MD5 |
6a8576ae406db3980e2ddb5079c61d63
|
|
| BLAKE2b-256 |
72914f250ee63359711366cba81f021d5ed1c6cb39012c1b0c19e65d269977fb
|