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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file mvg_console-2021.2.12.tar.gz.

File metadata

  • Download URL: mvg_console-2021.2.12.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for mvg_console-2021.2.12.tar.gz
Algorithm Hash digest
SHA256 15d54f2da002a1d9f4ed72944b3c89f42ef654b4be29897ca3054b55d6948100
MD5 776764dc5d31d6d2f383b77f9ed5f272
BLAKE2b-256 5dec5309162598f0b6c8c08583c35bded2be6a0c5035c8d3ff6900cdcdbba53d

See more details on using hashes here.

File details

Details for the file mvg_console-2021.2.12-py3-none-any.whl.

File metadata

  • Download URL: mvg_console-2021.2.12-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for mvg_console-2021.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d64e282dddc69b4f501ba21ab1d06f88b426bd9266520187d9d443bc01acbe42
MD5 750e6e926943130f072ca2b9d7468c80
BLAKE2b-256 0ad3c0c057624ee049b7fe84cec0a2845aa78daf7d9c4287d3837b2d197ce7f3

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