Skip to main content

A SBB/CFF/FFS commandline based timetable client.

Project description

Build status Coverage status PyPI download stats

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, including changes
 -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 test script:

$ ./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


Download files

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

Source Distribution

fahrplan-0.2.3.tar.gz (22.7 kB view details)

Uploaded Source

Built Distributions

fahrplan-0.2.3-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

fahrplan-0.2.3-py2-none-any.whl (14.8 kB view details)

Uploaded Python 2

File details

Details for the file fahrplan-0.2.3.tar.gz.

File metadata

  • Download URL: fahrplan-0.2.3.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fahrplan-0.2.3.tar.gz
Algorithm Hash digest
SHA256 2f59656cb67d8c9e5e914d5adef992310e7e75263986cf074e2914b9ee36e23d
MD5 6121f1d2fc16d4b9472ddacdef3f8421
BLAKE2b-256 2d320bf5bae60f3dbea082d4f9f29de6cbc1912530dce98bff9621585ca7987c

See more details on using hashes here.

File details

Details for the file fahrplan-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for fahrplan-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 93bf2d03e41d886014e523641a6938950e6be4d091255f244b9d957f39a92ed2
MD5 ba5c27af8948f69b330fa2d1816b70d5
BLAKE2b-256 b439dbb84226beec13b8e8000f7c0a092704ece3d646abda7fed75df00518cb3

See more details on using hashes here.

File details

Details for the file fahrplan-0.2.3-py2-none-any.whl.

File metadata

File hashes

Hashes for fahrplan-0.2.3-py2-none-any.whl
Algorithm Hash digest
SHA256 c8c99df6511c729747f4962fdc8783d5cbf8cb4361c83d7d4eb411eb61d45ea1
MD5 9729d5ec6113083e33b8e994a9710649
BLAKE2b-256 cfc87b37308b18038337e843a888b61ec88c22576d975be34ff4685688f7c1e8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page