PyRMVtransport :bus:
Python library to make use of transport information from opendata.rmv.de.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| PyRMVtransport-0.3.3.tar.gz | 39.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|