Package: de-nina
ninaErhalten Sie wichtige Warnmeldungen des Bevölkerungsschutzes für Gefahrenlagen wie zum Beispiel Gefahrstoffausbreitung oder Unwetter per Programmierschnittstelle.This Python package is automatically generated by theOpenAPI Generatorproject:API version: 1.0.0Package version: 1.1.0Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visithttps://warnung.bund.de/Requirements.Python >= 3.6Installation & Usagepip installpipinstalldeutschland[nina]poetry installpoetryadddeutschland-EninaSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)UsageImport the package:fromdeutschlandimportninaGetting StartedPlease follow theinstallation procedureand then run the following:importtimefromdeutschlandimportninafrompprintimportpprintfromdeutschland.nina.apiimportarchive_apifromdeutschland.nina.model.archive_warning_historyimportArchiveWarningHistoryfromdeutschland.nina.model.warningimportWarning# Defining the host is optional and defaults to https://warnung.bund.de/api31# See configuration.py for a list of all supported configuration parameters.configuration=nina.Configuration(host="https://warnung.bund.de/api31")# Enter a context with an instance of the API clientwithnina.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=archive_api.ArchiveApi(api_client)identifier="mow.DE-NI-OL-W015-20230121-002"# str | Meldungs-IDtry:# Gesammelter Verlauf einer MOWAS Warnungapi_response=api_instance.get_full_warning_history(identifier)pprint(api_response)exceptnina.ApiExceptionase:print("Exception when calling ArchiveApi->get_full_warning_history:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://warnung.bund.de/api31ClassMethodHTTP requestDescriptionArchiveApiget_full_warning_historyGET/archive.mowas/{identifier}-mapping.jsonGesammelter Verlauf einer MOWAS WarnungArchiveApiget_warning_historyGET/archive.mowas/{identifier}.jsonAbruf einer archivierten MOWAS WarnungCovidApiget_ars_covid_rulesGET/appdata/covid/covidrules/DE/{ARS}.jsonCorona Regelungen nach ARSCovidApiget_covid_infosGET/appdata/covid/covidinfos/DE/covidinfos.jsonAllgemeine Informationen zu CoronaCovidApiget_covid_mapGET/appdata/covid/covidmap/DE/covidmap.jsonKartendaten für Corona-Fallzahlen.CovidApiget_covid_tickerGET/appdata/covid/covidticker/DE/covidticker.jsonCovid-TickerCovidApiget_covid_ticker_messageGET/appdata/covid/covidticker/DE/tickermeldungen/{id}.jsonDetailinformationen zu Covid-Ticker MeldungenWarningsApiget_biwapp_map_dataGET/biwapp/mapData.jsonBiwapp MeldungenWarningsApiget_dashboardGET/dashboard/{ARS}.jsonMeldungsübersicht nach ARSWarningsApiget_dwd_map_dataGET/dwd/mapData.jsonUnwetterwarnungen des Deutschen WetterdienstesWarningsApiget_katwarn_map_dataGET/katwarn/mapData.jsonKatwarn MeldungenWarningsApiget_lhp_map_dataGET/lhp/mapData.jsonMeldungen des Länderübergreifenden HochwasserportalsWarningsApiget_mowas_map_dataGET/mowas/mapData.jsonMowas MeldungenWarningsApiget_police_map_dataGET/police/mapData.jsonPolizeimeldungenWarningsApiget_warningGET/warnings/{identifier}.jsonDetailinformation zu einer WarnungWarningsApiget_warning_geo_jsonGET/warnings/{identifier}.geojsonGeoJSON informationen zu einer Warnung.DefaultApiget_data_versionGET/dynamic/version/dataVersion.jsonLiefert die Versionsnummer.DefaultApiget_event_codeGET/appdata/gsb/eventCodes/{filename}Event Code Bilddateien.DefaultApiget_event_codesGET/appdata/gsb/eventCodes/eventCodes.jsonLiefert Event Codes und Name der Bilddateien.DefaultApiget_faqsGET/appdata/gsb/faqs/DE/faq.jsonFAQsDefaultApiget_logoGET/appdata/gsb/logos/{filename}Logo-Bilddateien.DefaultApiget_logosGET/appdata/gsb/logos/logos.jsonLiefert Namen und Logos für Sender-IDsDefaultApiget_notfalltippsGET/appdata/gsb/notfalltipps/DE/notfalltipps.jsonNotfalltippsDocumentation For ModelsARSCovidRulesARSCovidRulesCommonInnerARSCovidRulesLevelARSCovidRulesRegulationsARSCovidRulesRegulationsSectionsARSCovidRulesRegulationsSectionsBUNDARSCovidRulesRegulationsSectionsBUNDIconARSCovidRulesRegulationsSectionsKREISARSCovidRulesRegulationsSectionsKREISIconARSCovidRulesRegulationsSectionsLANDARSCovidRulesRegulationsSectionsLANDIconARSCovidRulesRulesInnerARSCovidRulesRulesInnerIconARSOverviewResultARSOverviewResultInnerARSOverviewResultInnerI18nTitleARSOverviewResultInnerPayloadARSOverviewResultInnerPayloadDataARSOverviewResultInnerPayloadDataAreaARSOverviewResultInnerPayloadDataTransKeysArchiveWarningHistoryArchiveWarningHistoryHistoryInnerCovidInfosCovidInfosArticleCovidInfosCategoryCovidInfosImageCovidInfosTipCovidMapCovidMapDataCovidMapLegendCovidMapStyleCovidTickerCovidTickerEntryCovidTickerMessageEventCodeEventCodeCollectionFAQFAQCollectionKeyValueArrayKeyValueArrayInnerLogoLogoCollectionMapWarningsMapWarningsInnerMapWarningsInnerI18nTitleNotfalltippsNotfalltippsArticleNotfalltippsCategoryNotfalltippsCollectionNotfalltippsImageNotfalltippsTipVersionVersionCollectionWarningWarningInfoInnerWarningInfoInnerAreaInnerDocumentation For AuthorizationAll endpoints do not require authorization.Authorkontakt@bund.devNotes for Large OpenAPI documentsIf the OpenAPI document is large, imports in nina.apis and nina.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.nina.api.default_api import DefaultApifrom deutschland.nina.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 nina
from deutschland.nina.apis import *
from deutschland.nina.models import *