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.

Metadata

Release files for vagquery 1.2

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.2
File Size Uploaded
vagquery-1.2.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vagquery 1.2
File Interpreter ABI Platform
vagquery-1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / vagquery-1.2.tar.gz

Download URL vagquery-1.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d8b7b8fb0db8e9d2fdd9343d234dc0bc3ca9a5cc184e19e235dc0eb0cffcec95
BLAKE2b-256 checksum
How to use checksums
64d64087f450a9135d19859f2b747f4d02d5c7ea32b0825cde6f2393f1477034
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.0 Darwin/20.1.0

Release files / vagquery-1.2-py3-none-any.whl

Download URL vagquery-1.2-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d29c367d1d5447732fc6f6c89d5a4d5f834f15761ea02815883513d7a62caddb
BLAKE2b-256 checksum
How to use checksums
6ace90b16ff3e00674e775de51541885766068d4f64db235a9c60fe874ea6a02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.0 Darwin/20.1.0

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files

1.1

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