async-mvg-api-0.1.4
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | async-mvg-api-0.1.4 |
| نام | async-mvg-api |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Lukas Mahr |
| ایمیل نویسنده | lukas@yousuckatprogramming.de |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/async-mvg-api/ |
| مجوز | - |
# 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](https://python-poetry.org/) dependencies
```bash
pip install async-mvg-api
```
or
```bash
git clone https://github.com/Plutokekz/MVG-Api.git
cd MVG-Api
poetry install
```
## Usage
```python
from mvg_api.mvg import MVG
mvg = MVG()
mvg.get_location("Hauptbahnhof")
```
## Tests
```bash
poetry run pytest mvg_api/tests/api_tests.py
```
# Credit
For Endpoint Information and Code snippets
* https://github.com/leftshift/python_mvg_api
* https://www.mvg.de/
نیازمندی
| مقدار | نام |
|---|---|
| >=1.10.7,<2.0.0 | pydantic |
| >=0.24.0,<0.25.0 | httpx |
| >=0.21.0,<0.22.0 | levenshtein |
| >=23.3.0,<24.0.0 | black |
| >=2.15.7,<3.0.0 | pylint |
| >=7.2.0,<8.0.0 | pytest |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.11,<4.0 | Python |
نحوه نصب
نصب پکیج whl async-mvg-api-0.1.4:
pip install async-mvg-api-0.1.4.whl
نصب پکیج tar.gz async-mvg-api-0.1.4:
pip install async-mvg-api-0.1.4.tar.gz