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 Provenance Actions
vagquery-1.2.tar.gz 3.5 kB Without provenance Details for vagquery-1.2.tar.gz

Built distribution (wheel)

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

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

Security for vagquery 1.2

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.

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