fahrplan
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 3.5+.
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 tests on supported Python versions:
$ ./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.
Metadata
Release files for fahrplan 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fahrplan-1.1.2.tar.gz | 21.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fahrplan-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.5 kB
Release files / fahrplan-1.1.2.tar.gz
| Download URL | fahrplan-1.1.2.tar.gz |
|---|---|
| Size | 21.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da0835ae6ee1aefe64f92b82f8a9df7f313e41ec5e429985961a7a9294e24b6c
|
|
BLAKE2b-256 checksum How to use checksums |
cad173e857060684872d86662f30a86fb6900a315f152f687c23513844d419dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
|
Release files / fahrplan-1.1.2-py3-none-any.whl
| Download URL | fahrplan-1.1.2-py3-none-any.whl |
|---|---|
| Size | 23.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7a56f328b9d329147875b1fe9d390238bfcd24961e6bb82a70e8d507a9493de
|
|
BLAKE2b-256 checksum How to use checksums |
6070d3d53bd449317bcf4a07b8b8cd7b86f10840f4a336da419d31c292c9fc6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
|