All Projects → maxmouchet → locomotive

maxmouchet / locomotive

Licence: MIT license
Python API clients and a CLI for France's railways.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to locomotive

trainline-python
Non-official Python wrapper and CLI tool for Trainline
Stars: ✭ 41 (+32.26%)
Mutual labels:  sncf, train
lockdown-maps-R
Population Movements at Spring 2020 Lockdown in France - Interactive Data Visualizations
Stars: ✭ 19 (-38.71%)
Mutual labels:  france
subwayclock
Display clock for NYC subways
Stars: ✭ 29 (-6.45%)
Mutual labels:  train
BARIS
Use the French Open Data Portal API features from R
Stars: ✭ 21 (-32.26%)
Mutual labels:  france
ttv
A command line tool for splitting files into test, train, and validation sets.
Stars: ✭ 38 (+22.58%)
Mutual labels:  train
trener
A simple programming challenge for implementing a train station app
Stars: ✭ 28 (-9.68%)
Mutual labels:  train
Libre-TrainSim
Train Simulator written in Godot Engine - Free for everyone.
Stars: ✭ 170 (+448.39%)
Mutual labels:  train
MobileApp
電車LCDを再現したスマホアプリ
Stars: ✭ 14 (-54.84%)
Mutual labels:  train
api-jours-feries-france
Une API REST pour les jours fériés en France
Stars: ✭ 14 (-54.84%)
Mutual labels:  france
omsp
Open Mobility Security Project is an open source project dedicated to standardize a framework of technical controls to evaluate security in all types of vehicles.
Stars: ✭ 45 (+45.16%)
Mutual labels:  train
covid-france
Visualize evolution of the number of people hospitalized in French departments due to COVID-19 infection
Stars: ✭ 23 (-25.81%)
Mutual labels:  france
12306formac
An unofficial 12306 Client for Mac
Stars: ✭ 2,796 (+8919.35%)
Mutual labels:  train
TGVmax
🚂 Get a notification when your TGVmax seat is available
Stars: ✭ 31 (+0%)
Mutual labels:  sncf
railrouter-sg
A progressive web app that lets you explore MRT and LRT rail routes in Singapore
Stars: ✭ 29 (-6.45%)
Mutual labels:  train
european-transport-operators
NOT UP-TO-DATE ANYMORE, UNMAINTAINED. CHECK european-transport-feeds INSTEAD. List of european long-distance transport operators, available API endpoints, GTFS feeds and client modules.
Stars: ✭ 47 (+51.61%)
Mutual labels:  train
rasa-train-test-gha
A GitHub action to run easily rasa train and rasa test in the CIs.
Stars: ✭ 26 (-16.13%)
Mutual labels:  train
12306GoHome
2021年控制浏览器,自动抢票插件
Stars: ✭ 70 (+125.81%)
Mutual labels:  train
grafikon
Timetables for model railway. Useful for meets with modules (like FREMO, Free-mo etc).
Stars: ✭ 19 (-38.71%)
Mutual labels:  train
postal-codes-json-xml-csv
Collection of postal codes in different formats, ready for importing.
Stars: ✭ 181 (+483.87%)
Mutual labels:  france
data.gouv.fr
Ce dépôt rassemble les tickets techniques qui portent sur data.gouv.fr.
Stars: ✭ 50 (+61.29%)
Mutual labels:  france


Python API clients and a CLI for France's railways

Installation

locomotive requires Python 3.6+ and can be installed using pip:

pip install locomotive

API Clients

Module Features Status
oui_v3 Travel Request oui_v3
gc Board Request oui_v3

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].