Skip to main content

===== vagquery

Build Status Coverage Status

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.

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)

Source distribution for vagquery 1.1
File Size Uploaded
vagquery-1.1.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vagquery 1.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

1.2

2 release files

This release

1.1 This release

2 release files

1.0

1 release file

0.111

1 release file

0.12

1 release file

0.11

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page