Skip to main content

A SBB/CFF/FFS commandline based timetable client.

Project description

Build status

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
Screenshot

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


Download files

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

Source Distribution

fahrplan-1.1.0.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

fahrplan-1.1.0-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fahrplan-1.1.0.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

File hashes

Hashes for fahrplan-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4b6e1844579e458d29a7b436b92360e3e9c45708921117f90aab9e5533974c0b
MD5 7a8e814027f0ef469b291e8c835dc7ff
BLAKE2b-256 b9fc5e056c6224fd6750deac1ef934581784ced612c6f0d26e3ac5821eb848cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fahrplan-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 26.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

File hashes

Hashes for fahrplan-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b30eaa473529c8ef3bbce68b45094ad6f50c97a4e75c2a3e6acf2542f8d2d5df
MD5 da6f5e9dca2d3954f729d030fa9abf10
BLAKE2b-256 120f44bc7c78f11ae34d059f6146e109cdc6ed30ca8aaaaf1f05f7ce8716a9d2

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