Skip to main content

A Command Line Tool to get the MVG departures for a station.

Project description

A console program to request the departure time from the MVG

This python script is a Command Line wrapper to get the departures from any station/stop in the MVG(Münchner Verkehrsgesellschaft) network. Based on the mvg_api project.

Getting started

  • install the package: pip install mvg-console

Usage

usage:
mvg [--help][version][dest][search]

Commands:
dest: Print departure info for destination
-----
usage: mvg dest [OPTIONS] STATION

Arguments:
  STATION  [required] Destination Station to display ifno for.

Options:
  --limit INTEGER  [default: 10]
  --mode TEXT
  --help           Show this message and exit.

search: find nearest stops to the address
-------
Usage: mvg search [OPTIONS] QUERY

Arguments:
  QUERY  [required] address to find nearest stops for.

Options:
  --help  Show this message and exit.

version: display package version
--------
Usage: mvg version

Demo

screenshot

Changelog

12.02.2021

  • Move to Typer instead of argparse.
  • Handle some errors.
  • Move to prettytable instead of Texttable.
  • Disable HistoryManager.

12.11.2018

  • We're on PyPi! Now you can easily install the script using pip!
  • You can now search for the nearest station/stop from an address! Use the --search/-s [adress]
  • You can choose the Transportation mode to be displayed using the --mode/-m arguement. Available modes: bus, ubahn, sbahn, tram.
  • A lot of Bug Fixes.

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

mvg_console-2021.2.12.tar.gz (4.4 kB view hashes)

Uploaded source

Built Distribution

mvg_console-2021.2.12-py3-none-any.whl (6.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page