A SBB/CFF/FFS commandline based timetable client.
Project description
Goal: Simple access to the SBB/CFF/FFS timetable service from the commandline with human readable argument parsing.
Relies on the public transport API by opendata.ch: http://transport.opendata.ch/
Fahrplan supports Python 2.7 and 3.5. PyPy should be working (except for the tests), but there is no official support until the tests are fixed.
Installing
To install the current version using pip, issue:
$ sudo pip install fahrplan
To install from this repository, clone it and use:
$ python setup.py fahrplan
Usage
fahrplan --help:
usage: fahrplan [--full] [--info] [--debug] [--help] [--version] [--proxy PROXY] ... A SBB/CFF/FFS commandline based timetable client. positional arguments: request optional arguments: --full, -f Show full connection info, including changes --info, -i Verbose output --debug, -d Debug output --help, -h Show this help --version, -v Show version number --proxy PROXY, -p PROXY Use proxy for network connections (host:port) Arguments: You can use natural language arguments using the following keywords in your desired language: en -- from, to, via, departure, arrival de -- von, nach, via, ab, an fr -- de, à, via, départ, arrivée You can also use natural time and date specifications in your language, like - "now", "immediately", "at noon", "at midnight", - "tomorrow", "monday", "in 2 days", "22/11". Examples: fahrplan from thun to burgdorf fahrplan via bern nach basel von zürich, helvetiaplatz ab 15:35 fahrplan de lausanne à vevey arrivée minuit fahrplan from Bern to Zurich departure 13:00 monday fahrplan -p proxy.mydomain.ch:8080 de lausanne à vevey arrivée minuit
Testing
Testing is done using tox and nosetests.
To run the test script for Python 2 and 3:
$ ./test.sh
Sourcecode
The sourcecode is available on Github: https://github.com/dbrgn/fahrplan
License
The code is licensed as GPLv3. See LICENSE file for more details.
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 fahrplan-1.0.0.tar.gz
.
File metadata
- Download URL: fahrplan-1.0.0.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d01f4f94f1f6d50eb7b038d6995765905dfae1255fbc6efb297c960178f9d0d |
|
MD5 | f2f2acae66d5c17b3ab502535e2221b4 |
|
BLAKE2b-256 | faf8d982e9d52241781cbc13ba6a8700d9865498806190735172b7ca641282ca |
File details
Details for the file fahrplan-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: fahrplan-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 595c459e68a89e7e0a88f9277cbd3703126822a3bbf8a5d3da7afc59efb43639 |
|
MD5 | 53abeaa95f2967abe736d88048e2059a |
|
BLAKE2b-256 | a92e7f7f4aacec77d17840334b0e1ab0af7b2fd933036406baa072191276158d |