PythonRMV/pyrmv/__init__.py
2022-09-23 22:58:05 +02:00

32 lines
754 B
Python

"""
## PythonRMV
Small module that makes your journey with RMV REST API somehow easier. Based fully on official RMV API reference and HAFAS documentation.
## Usage
```py
import pyrmv
# Set API key
accessId = "Something"
# Get origin's and destination's location
origin = pyrmv.raw.stop_by_name(accessid, "Frankfurt Hauptbahnhof", maxNo=1)[0]
destination = pyrmv.raw.stop_by_coords(accessid, 50.099613, 8.685449, maxNo=1)[0]
# Find a trip by locations got
trip = pyrmv.raw.trip_find(accessId, originId=origin.id, destExtId=destination.id)
```
"""
__name__ = "pyrmv"
__version__ = "0.2.0"
__license__ = "MIT License"
__author__ = "Profitroll"
from . import raw
from . import errors
from . import utility
from . import methods
from .methods import *