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 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.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fahrplan-1.1.2.tar.gz.
File metadata
- Download URL: fahrplan-1.1.2.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da0835ae6ee1aefe64f92b82f8a9df7f313e41ec5e429985961a7a9294e24b6c
|
|
| MD5 |
db042bd7083096a7aba82d26164bd398
|
|
| BLAKE2b-256 |
cad173e857060684872d86662f30a86fb6900a315f152f687c23513844d419dd
|
File details
Details for the file fahrplan-1.1.2-py3-none-any.whl.
File metadata
- Download URL: fahrplan-1.1.2-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7a56f328b9d329147875b1fe9d390238bfcd24961e6bb82a70e8d507a9493de
|
|
| MD5 |
0d95c84389ba344ad43da973fb99db94
|
|
| BLAKE2b-256 |
6070d3d53bd449317bcf4a07b8b8cd7b86f10840f4a336da419d31c292c9fc6f
|