Skip to main content

Define module-level imports.

Project description

PyRMVtransport :bus:

Python library to make use of transport information from

CircleCI PyPi PyPi PyPi codecov Maintainability Downloads


$ pip install PyRMVtransport


import asyncio
import aiohttp
from RMVtransport import RMVtransport

async def main():
    """The main part of the example script."""
    async with aiohttp.ClientSession() as session:
        rmv = RMVtransport(session)

        # Get the data
            # Departures for station 3006907 (Wiesbaden Hauptbahnhof)
            # max. 5 results
            # only specified products (S-Bahn, U-Bahn, Tram)
            data = await rmv.get_departures(station_id='3006907',
                                            products=['S', 'U-Bahn', 'Tram'],

            # Use the JSON output

            # or pretty print
            await rmv.output()
        except TypeError:

loop = asyncio.get_event_loop()

Project details

Download files

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

Files for PyRMVtransport, version 0.2.8
Filename, size File type Python version Upload date Hashes
Filename, size PyRMVtransport-0.2.8-py3-none-any.whl (16.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size PyRMVtransport-0.2.8.tar.gz (13.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page