No project description provided
Project description
Unofficial MVG api
An async and sync wrapper for the MVG endpoints, with data validation over pydantic
Usage policy of the MVG api
ACHTUNG:
Unsere Systeme dienen der direkten Kundeninteraktion. Die Verarbeitung unserer Inhalte oder Daten durch Dritte erfordert unsere ausdrückliche Zustimmung. Für private, nicht-kommerzielle Zwecke, wird eine gemäßigte Nutzung ohne unsere ausdrückliche Zustimmung geduldet. Jegliche Form von Data-Mining stellt keine gemäßigte Nutzung dar. Wir behalten uns vor, die Duldung grundsätzlich oder in Einzelfällen zu widerrufen. Fragen richten Sie bitte gerne an: redaktion@mvg.de.
In other words: Private, noncomercial, moderate use of the API is tolerated. They don't consider data mining as moderate use.
(Disclaimer: I am not a lawyer, this isn't legal advice)
Installation
pip installation or clone the repository and install the poetry dependencies
pip install async-mvg-api
or
git clone https://github.com/Plutokekz/MVG-Api.git
cd MVG-Api
poetry install
Usage
from mvg_api.mvg import MVG
mvg = MVG()
mvg.get_location("Hauptbahnhof")
Tests
poetry run pytest mvg_api/tests/api_tests.py
Credit
For Endpoint Information and Code snippets
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for async_mvg_api-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc7641fe857689ab2db627ed5b56989b1459eb097edf5b8659a624d8ac8803dc |
|
MD5 | ba3046861d6eb25e36dfa24cf8da752b |
|
BLAKE2b-256 | 156311548a1290f9b026546688756c4127a1a1b1d68bf6aa3597f1f224f678aa |