Package: de-polizei-brandenburg
polizei-brandenburgPolizei Brandenburg Nachrichten, Hochwasser-, Verkehrs- und WaldbrandwarnungenThis Python package is automatically generated by theOpenAPI Generatorproject:API version: 1.0.0Package version: 0.1.0Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python >= 3.6Installation & Usagepip installpipinstalldeutschland[polizei_brandenburg]poetry installpoetryadddeutschland-Epolizei_brandenburgSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)UsageImport the package:fromdeutschlandimportpolizei_brandenburgGetting StartedPlease follow theinstallation procedureand then run the following:importtimefromdeutschlandimportpolizei_brandenburgfrompprintimportpprintfromdeutschland.polizei_brandenburg.apiimportdefault_apifromdeutschland.polizei_brandenburg.model.newsimportNewsfromdeutschland.polizei_brandenburg.model.pegelimportPegelfromdeutschland.polizei_brandenburg.model.reviereimportRevierefromdeutschland.polizei_brandenburg.model.verkehrimportVerkehrfromdeutschland.polizei_brandenburg.model.waldbrandimportWaldbrand# Defining the host is optional and defaults to https://polizei.brandenburg.de/ipa_api# See configuration.py for a list of all supported configuration parameters.configuration=polizei_brandenburg.Configuration(host="https://polizei.brandenburg.de/ipa_api")# Enter a context with an instance of the API clientwithpolizei_brandenburg.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=default_api.DefaultApi(api_client)count=5000# int | Number of results (optional)category=8# int | category id (optional)district=500# int | district id (optional)try:# Nachrichten, Suchmeldungen der Polzei Brandenburgapi_response=api_instance.news_version1_get(count=count,category=category,district=district)pprint(api_response)exceptpolizei_brandenburg.ApiExceptionase:print("Exception when calling DefaultApi->news_version1_get:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://polizei.brandenburg.de/ipa_apiClassMethodHTTP requestDescriptionDefaultApinews_version1_getGET/news/version/1Nachrichten, Suchmeldungen der Polzei BrandenburgDefaultApipegel_version1_getGET/pegel/version/1PegelständeDefaultApireviere_version1_getGET/reviere/version/1Liste aller Reviere der Polzei BrandenburgDefaultApivwd_version1_getGET/vwd/version/1Verkehrswarnungen der Polzei BrandenburgDefaultApiwaldbrand_version1_getGET/waldbrand/version/1Waldbrandwarnungen BrandenburgDocumentation For ModelsNewsNewsDataPegelPegelDataReviereReviereDataVerkehrVerkehrDataWaldbrandWaldbrandDataDocumentation For AuthorizationAll endpoints do not require authorization.Authorkontakt@bund.devNotes for Large OpenAPI documentsIf the OpenAPI document is large, imports in polizei_brandenburg.apis and polizei_brandenburg.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.polizei_brandenburg.api.default_api import DefaultApifrom deutschland.polizei_brandenburg.model.pet import PetSolution 2:
Before importing the package, adjust the maximum recursion limit as shown below:import sys
sys.setrecursionlimit(1500)
from deutschland import polizei_brandenburg
from deutschland.polizei_brandenburg.apis import *
from deutschland.polizei_brandenburg.models import *