Skip to main content

PyRMVtransport :bus:

Python library to make use of transport information from opendata.rmv.de.

GitHub Actions PyPi

PyPi codecov Maintainability Downloads

Installation

$ pip install PyRMVtransport

Usage

import asyncio
import aiohttp
from RMVtransport import RMVtransport

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

        # Get the data
        try:
            # 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"], max_journeys=5
            )

            # Use the JSON output
            print(data)

            # or pretty print
            rmv.print()
        except TypeError:
            pass

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Release files for PyRMVtransport 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyRMVtransport 0.3.3
File Size Uploaded
PyRMVtransport-0.3.3.tar.gz 39.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyRMVtransport 0.3.3
File Interpreter ABI Platform
PyRMVtransport-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 48.6 kB

Release files / PyRMVtransport-0.3.3.tar.gz

Download URL PyRMVtransport-0.3.3.tar.gz
Size 39.6 kB
Tags Source
SHA-256 checksum
How to use checksums
921a43a4eef5abd8b7f010a5815a6eb609d8ba9f93ef385a18dd8ebba5b65141
BLAKE2b-256 checksum
How to use checksums
d01afbcb638a15872d59a158eed9da6f73f288ab535438eecf0abf3e0a90b1d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.26.0

Release files / PyRMVtransport-0.3.3-py3-none-any.whl

Download URL PyRMVtransport-0.3.3-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4dd3b76cfdcae0a298113fd0893403afb86cfd82febefe9a1496610133193cdb
BLAKE2b-256 checksum
How to use checksums
f542ec4c0fa4f1f6849140305082542b43894515242f7ed8cf9cb5f65120f9fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.26.0

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.1

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page