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

Metadata

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 Provenance
PyRMVtransport-0.3.3.tar.gz 39.6 kB Without provenance 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

Security for PyRMVtransport 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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