Python API clients and a CLI for France's railways.
Project description
Python API clients and a CLI for France's railways :sparkles:
Installation
locomotive
requires Python 3.6+ and can be installed using pip:
pip install locomotive
API Clients
Module | Features | Status |
---|---|---|
oui_v3 | Travel Request | |
gc | Board Request |
CLI
locomotive is easy to use. Find below simple examples:
locomotive search --help
# Search by city name
locomotive search Amsterdam Paris
# Search by train station code (Amsterdam to Paris here)
locomotive search NLAMA FRPAR
# Specify the date and the travel class
locomotive search Brest Paris --date 2019/07/14 --class first
Development
poetry install
poetry run locomotive
# pre-commit
poetry run pre-commit install
poetry run pre-commit run --all-files
Releases
poetry version X.Y.Z # e.g. v0.4.0
git tag vX.Y.Z
git push --tags
Licenses
locomotive is released under the MIT license.
The train stations database (stations-lite.csv
) is derived from stations.csv
(trainline-eu/stations) released under the Open Database License (ODbL) license.
Logo: Train Tickets by b farias from the Noun Project.
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
Built Distribution
File details
Details for the file locomotive-0.9.3.tar.gz
.
File metadata
- Download URL: locomotive-0.9.3.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.6.10 Linux/5.3.0-1020-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d40803a7544ff0359bca1bf98037de7fba099b32bd62481aa0d0f885910a5850 |
|
MD5 | 692a6cfd15b849fa2e653bb3bdf7b4a9 |
|
BLAKE2b-256 | 6cf2e5b450a51c2505d22607593326713e73337b9718b8ac7e562c06dc33710c |
File details
Details for the file locomotive-0.9.3-py3-none-any.whl
.
File metadata
- Download URL: locomotive-0.9.3-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.6.10 Linux/5.3.0-1020-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 247fc468ea909b467c7049b750074e0e58d0ccd7cea83c5c47cfc34aa3edbd78 |
|
MD5 | 95ff898903eabe5063c86ec08057a916 |
|
BLAKE2b-256 | 1c483fcd28d6d5d0ee8598c4bfd497ee7eaa08ccac7f802aafb3abd1f28d0531 |