Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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

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.


To install the current version using pip, issue:

$ sudo pip install fahrplan

To install from this repository, clone it and use:

$ python fahrplan


fahrplan --help:

usage: fahrplan [--full] [--info] [--debug] [--help] [--version]
                [--proxy PROXY]

A SBB/CFF/FFS commandline based timetable client.

positional arguments:

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)

 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".

 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 de lausanne à vevey arrivée minuit


Testing is done using tox and nosetests.

To run the test script for Python 2 and 3:

$ ./


The sourcecode is available on Github:


The code is licensed as GPLv3. See LICENSE file for more details.

Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
fahrplan-1.0.0-py2.py3-none-any.whl (16.5 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Sep 10, 2017
fahrplan-1.0.0.tar.gz (23.8 kB) Copy SHA256 Checksum SHA256 Source Sep 10, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting