API Wrapper for VVS (Verkehrsverbund Stuttgart)
Project description
VVS API Wrapper
Note: This is still work in progress
Fully object-oriented library to integrate the VVS API into your project.
Installation
pip install vvspy
Requirements
Python 3.6 or higher
Examples
- Detect delay in upcoming departures:
from vvspy import get_departures
deps = get_departures("5006115", limit=3) # Stuttgart main station
for dep in deps:
if dep.delay > 0:
print("Alarm! Delay detected.")
print(dep) # Station @ Timestamp: Train: Origin - Destination
- Get complete trip info between two stations:
from vvspy import get_trip
# TODO
- Filter for specific lines:
from vvspy import get_departures
deps = get_departures("5006118") # Stuttgart main station (lower)
for dep in deps:
if dep.serving_line.symbol == "S4":
print(f"Departure of S4 at {dep.real_datetime}")
Features
- fully object oriented results
- full customizable requests and parameters # coming soon
- parsing all available info into result obj
- Well tested and maintained
- Departures, Arrivals, Trips, Station info, Upcoming events, Maintenance work
See issues/projects on GitHub for upcoming features
Contributors
License:
This project is licensed under MIT.
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
vvspy-0.1.1.tar.gz
(60.4 kB
view details)
File details
Details for the file vvspy-0.1.1.tar.gz
.
File metadata
- Download URL: vvspy-0.1.1.tar.gz
- Upload date:
- Size: 60.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56785509cf73574e6611d0e73692277834a65459ec8c6351322b81f51612c908 |
|
MD5 | 96c7013169a86771ae759ba37c77aedb |
|
BLAKE2b-256 | 93049804a8070ff9fb3c61c4936e1470ac386e868364809e4ac41275122ff04d |