A SBB/CFF/FFS commandline based timetable client.
Project description
Goal: Simple access to the sbb timetable service from the commandline with human readable argument parsing.
Relies on the public transport API by opendata.ch: http://transport.opendata.ch/
Installing
To install current version using pip, issue:
$ sudo pip install fahrplan
Usage
fahrplan --help:
Usage: fahrplan [options] arguments Options: -v, --version Show version number -i, --info Verbose output -d, --debug Debug output -h, --help Show this help 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 specifications in your language, like "now", "immediately", "noon" or "midnight". Examples: fahrplan from thun to burgdorf fahrplan via neuchâtel à lausanne de zurich, helvetiaplatz départ 15:35 fahrplan von bern nach basel an um mitternacht
Testing
Prior to testing, you should install the required libraries (preferrably in a virtualenv):
$ virtualenv --no-site-packages VIRTUAL $ . VIRTUAL/bin/activate $ pip install -r requirements.txt $ pip install -r requirements-dev.txt
To run the tests, run the following commands:
$ cd fahrplan $ python -m tests.test
If you have fabric installed, you can also use the test command instead:
$ fab test
Sourcecode
The sourcecode is available on Github: https://github.com/dbrgn/fahrplan
License
The code is licensed as GPLv3. See LICENSE.md 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
File details
Details for the file fahrplan-0.1b6.tar.gz
.
File metadata
- Download URL: fahrplan-0.1b6.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 699433438f50668a8b30751090cd1293e286b2b54f2ff10358e94ffdfab93722 |
|
MD5 | ea922d9383e0b9f056443574c5322131 |
|
BLAKE2b-256 | cbdf3f4a964bf3fe7a36daf3038c73f394c0cb0662d13a45701962d6f991f01f |