===== vagquery
A python library for generating and executing queries for the VAG public transport system start.vag.de
This enables users with disabilities, hackers and you to receive information from the start.vag website.
General usage
Two classes are usually used:
import vagquery
# Query for stations beginning with 'Schwe'
stations = vagquery.StationQuery("Schwe").query()
for station in stations:
print(station)
# Query for next departures of the main railway station (id: 510)
departures = vagquery.DepartureQuery(510).query()
for departure in departures:
print(departure)
Specialized usage
For repeated queries, the query object can be created and run again and again:
dquery = vagquery.DepartureQuery(510)
departures = dquery.query()
# ...
# much later
# ...
departures = dquery.query()
For a custom formating of the departures, the properties of a departure object can be used:
departures = vagquery.DepartureQuery(510).query()
for departure in departures:
print(departure.product + " " + str(departure.latitude) + str(departure.longitude))
License
vagquery is licensed under the MIT license.
Metadata
Release files for vagquery 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| vagquery-1.1.tar.gz | 3.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vagquery-1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / vagquery-1.1.tar.gz
| Download URL | vagquery-1.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34bc62d9610490fb3dbb6f9b08db77aec61e215f202ff7b767f7a0e20668a9b2
|
|
BLAKE2b-256 checksum How to use checksums |
aef0ef6a6da60014d1b09b28dee22c3644c525aa43a6d2ac916fa26014ee3259
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.10 CPython/3.7.1 Darwin/18.2.0
|
Release files / vagquery-1.1-py2.py3-none-any.whl
| Download URL | vagquery-1.1-py2.py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
35edd45f0f0e2f2a955393e6b05fa82081c1cfaedbb19074eb60980c44707f95
|
|
BLAKE2b-256 checksum How to use checksums |
592b4dc4c1db73d334c7b13dfc2cd7b5088b69bd99a16f0b86655dcca03a544e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.10 CPython/3.7.1 Darwin/18.2.0
|
Security for vagquery 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.