Skip to main content

hochwasserzentralen

Das Länderübergreifendes Hochwasserportal (LHP) bietet auf https://www.hochwasserzentralen.de über die hier dokumentierte API Informationen zur Hochwassersituation in Deutschland an. Betreiber des LHP sind das Bayerische Landesamt für Umwelt (LfU) und die Landesanstalt für Umwelt Baden-Württemberg (LUBW). Die Urheberrechte an den veröffentlichten Daten liegen nach Auskunft der Betreiber bei der für das jeweilige Bundesland zuständigen Hochwasserzentrale bzw. beim jeweiligen Pegelbetreiber.

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

  • API version: 1.0.0
  • Package version: 0.1.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python >= 3.6

Installation & Usage

pip install

pip install deutschland[hochwasserzentralen]

poetry install

poetry add deutschland -E hochwasserzentralen

Setuptools

Install via Setuptools.

python setup.py install --user

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

Usage

Import the package:

from deutschland import hochwasserzentralen

Getting Started

Please follow the installation procedure and then run the following:

import time
from deutschland import hochwasserzentralen
from pprint import pprint
from deutschland.hochwasserzentralen.api import default_api
from deutschland.hochwasserzentralen.model.lage_pegel import LagePegel
# Defining the host is optional and defaults to https://www.hochwasserzentralen.de
# See configuration.py for a list of all supported configuration parameters.
configuration = hochwasserzentralen.Configuration(
    host = "https://www.hochwasserzentralen.de"
)



# Enter a context with an instance of the API client
with hochwasserzentralen.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = default_api.DefaultApi(api_client)
    version = "20211130" # str | 

    try:
        # Geojson der Bundesländer
        api_response = api_instance.vhosts_geojson_bundesland_version_geojson_get(version)
        pprint(api_response)
    except hochwasserzentralen.ApiException as e:
        print("Exception when calling DefaultApi->vhosts_geojson_bundesland_version_geojson_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://www.hochwasserzentralen.de

Class Method HTTP request Description
DefaultApi vhosts_geojson_bundesland_version_geojson_get GET /vhosts/geojson/bundesland.{version}.geojson Geojson der Bundesländer
DefaultApi webservices_get_infosbundesland_php_post POST /webservices/get_infosbundesland.php Infos zu einem Bundesland.
DefaultApi webservices_get_infospegel_php_post POST /webservices/get_infospegel.php Infos zu einem Pegel.
DefaultApi webservices_get_lagepegel_php_get GET /webservices/get_lagepegel.php Lage der Pegel mit Pegelnummern

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

kontakt@bund.dev

Notes for Large OpenAPI documents

If the OpenAPI document is large, imports in hochwasserzentralen.apis and hochwasserzentralen.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:

Solution 1: Use specific imports for apis and models like:

  • from deutschland.hochwasserzentralen.api.default_api import DefaultApi
  • from deutschland.hochwasserzentralen.model.pet import Pet

Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:

import sys
sys.setrecursionlimit(1500)
from deutschland import hochwasserzentralen
from deutschland.hochwasserzentralen.apis import *
from deutschland.hochwasserzentralen.models import *

Release files for de-hochwasserzentralen 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for de-hochwasserzentralen 0.1.0
File Size Uploaded
de-hochwasserzentralen-0.1.0.tar.gz 40.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for de-hochwasserzentralen 0.1.0
File Interpreter ABI Platform
de_hochwasserzentralen-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 86.6 kB

Release files / de-hochwasserzentralen-0.1.0.tar.gz

Download URL de-hochwasserzentralen-0.1.0.tar.gz
Size 40.6 kB
Tags Source
SHA-256 checksum
How to use checksums
452c7bde4417755478f61f46e627fe1b3f40420de9a48f8637d6b85614c58d4e
BLAKE2b-256 checksum
How to use checksums
948792b0a74f9a88be7d5efe44a50d93380b166b0efc8fa67388118151489a61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.8

Release files / de_hochwasserzentralen-0.1.0-py3-none-any.whl

Download URL de_hochwasserzentralen-0.1.0-py3-none-any.whl
Size 46.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ce73158f20e9461c90fa9e9b8fd195307a7ce6497fcde572ee5d2378586fefd
BLAKE2b-256 checksum
How to use checksums
63a7e1731b597b742bd7aee4b1d747cd568157a5002fd13059f17cf0435589e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.8

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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