Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install fahrplan

How to install fahrplan

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install fahrplan
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.1b5
0.2.1Never BuiltWhy not?
0.1b5 Available View build log
0.1b2 Available View build log
Linux (64-bit)
0.2.1 Available View build log
0.1b5 Available View build log
0.1b2 Available View build log
 
Author
License
GPLv3
Lastest release
version 0.2.1 on Jan 9th, 2014
Build status

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/

Fahrplan support both Python 2.6 and 2.7. PyPy should be working (except for the tests), but there is no official support until the tests are fixed. Python 3.3 support is under way.

Installing

To install current version using pip, issue:

$ sudo pip install fahrplan

Usage

fahrplan --help:

Usage:
 fahrplan [options] arguments

Options:
 -f, --full    Show full connection info
 -i, --info    Verbose output
 -d, --debug   Debug output
 -v, --version Show version number
 -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
Screenshot

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:

$ python -m fahrplan.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 file for more details.

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.