Skip to main content

wst-api

Project description

wst_api_client

Api which exposes data about the current status of the Westerschelde tunnel

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.0.1
  • Package version: 0.0.1
  • Generator version: 7.14.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import wst_api_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import wst_api_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import wst_api_client
from wst_api_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.wststatusboard.nl
# See configuration.py for a list of all supported configuration parameters.
configuration = wst_api_client.Configuration(
    host = "https://api.wststatusboard.nl"
)



# Enter a context with an instance of the API client
with wst_api_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = wst_api_client.AssetsApi(api_client)
    translation = 'translation_example' # str | the i18n code for the translation

    try:
        # Your GET endpoint
        api_response = api_instance.get_assets_i18n_translation_json(translation)
        print("The response of AssetsApi->get_assets_i18n_translation_json:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AssetsApi->get_assets_i18n_translation_json: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.wststatusboard.nl

Class Method HTTP request Description
AssetsApi get_assets_i18n_translation_json GET /assets/i18n/{translation}.json Your GET endpoint
IncidentApi get_incident_active GET /incident/active Your GET endpoint
IncidentApi get_incident_scheduled GET /incident/scheduled Your GET endpoint
MapApi get_map GET /map Your GET endpoint
MetadataApi get_translations GET /metadata/translations Your GET endpoint
SituationApi get_situation GET /situation Your GET endpoint

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wst_api_client-0.0.1.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wst_api_client-0.0.1-py3-none-any.whl (84.4 kB view details)

Uploaded Python 3

File details

Details for the file wst_api_client-0.0.1.tar.gz.

File metadata

  • Download URL: wst_api_client-0.0.1.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for wst_api_client-0.0.1.tar.gz
Algorithm Hash digest
SHA256 16c40f8cfbb33a8373d6521c0310edd2deb55330b6489416f67ba7437f28fe2d
MD5 0acb634b8dbcf8318d960f068b62150b
BLAKE2b-256 46874db28fdf28a7d0fb0b72cc6a3b0a0deb74951bf032c0be9c40a7332efcd6

See more details on using hashes here.

File details

Details for the file wst_api_client-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: wst_api_client-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 84.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for wst_api_client-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af5e873bcaf4aacf0720f4870b1a70f17325902209e8fabe947e659bf1e5001b
MD5 e17019ad66c271be5a3a3860d4599ace
BLAKE2b-256 ccfb989144c5a7f1f7b37ccaef587cb78529b8f86b5d9947e2a0d8313fd30234

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page