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.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75cef2e8e48580f0341fefdf6224a782a2b31814f90138d0f6e4389266c05a47 |
|
MD5 | fc1e46a632afb9d2c369025abb03a59f |
|
BLAKE2b-256 | 49d4350ccece7053a7b014ed2da85de30b53be8016149dc4902948823efca566 |