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.1.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

fahrplan-1.1.1-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fahrplan-1.1.1.tar.gz
  • Upload date:
  • Size: 21.3 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.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

File hashes

Hashes for fahrplan-1.1.1.tar.gz
Algorithm Hash digest
SHA256 362f5992c4993bd50ce126e179807078a02cad3edf7684a42d56be3d5940b6d1
MD5 b2cc68c6aa3ce14b4d0c47588dabcaa7
BLAKE2b-256 afdf155ee4211ec23beb1322e89facb047b8219859d5ae8c391f66744abc4e19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fahrplan-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.2 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.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

File hashes

Hashes for fahrplan-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 54e797b82b685f81a10ab38ff4181766ebf6cf425cb216e1d84f6d439a1e00be
MD5 3e485356dbf168a9e5be3c342d068303
BLAKE2b-256 0e46ed85cb95191e97deacff1ca586130d1f18b5d2ea13c88b5aba28ee758cef

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