Package: de-bundestag
bundestagBundestag Informationen APIThis 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[bundestag]poetry installpoetryadddeutschland-EbundestagSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)UsageImport the package:fromdeutschlandimportbundestagGetting StartedPlease follow theinstallation procedureand then run the following:importtimefromdeutschlandimportbundestagfrompprintimportpprintfromdeutschland.bundestag.apiimportdefault_api# Defining the host is optional and defaults to https://www.bundestag.de# See configuration.py for a list of all supported configuration parameters.configuration=bundestag.Configuration(host="https://www.bundestag.de")# Enter a context with an instance of the API clientwithbundestag.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=default_api.DefaultApi(api_client)article_id=849630# int | ID des Nachrichtenbeitragstry:# Artikel Detailsapi_response=api_instance.blueprint_servlet_content_articleidas_app_v2_newsarticle_xml_get(article_id)pprint(api_response)exceptbundestag.ApiExceptionase:print("Exception when calling DefaultApi->blueprint_servlet_content_articleidas_app_v2_newsarticle_xml_get:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://www.bundestag.deClassMethodHTTP requestDescriptionDefaultApiblueprint_servlet_content_articleidas_app_v2_newsarticle_xml_getGET/blueprint/servlet/content/{ARTICLE_ID}/asAppV2NewsarticleXmlArtikel DetailsDefaultApiiptv_player_macros_xs144277506_bttv_mobile_feed_vod_xml_getGET/iptv/player/macros/_x_s-144277506/bttv/mobile/feed_vod.xmlAbruf eines VideosDefaultApistatic_appdata_plenum_v2_conferences_xml_getGET/static/appdata/plenum/v2/conferences.xmlSitzungstag übersichtDefaultApistatic_appdata_plenum_v2_speaker_xml_getGET/static/appdata/plenum/v2/speaker.xmlAktuelle Sprecher*inDefaultApixml_v2_ausschuesse_ausschussid_xml_getGET/xml/v2/ausschuesse/{AUSSCHUSS_ID}.xmlÜbersicht über die AusschüsseDefaultApixml_v2_ausschuesse_index_xml_getGET/xml/v2/ausschuesse/index.xmlÜbersicht über die AusschüsseDefaultApixml_v2_mdb_biografien_mdbid_xml_getGET/xml/v2/mdb/biografien/{MDB_ID}.xmlAbruf Details eines MDBSDefaultApixml_v2_mdb_index_xml_getGET/xml/v2/mdb/index.xmlÜbersicht über alle MDBSDocumentation For ModelsDocumentation For AuthorizationAll endpoints do not require authorization.Authorkontakt@bund.devNotes for Large OpenAPI documentsIf the OpenAPI document is large, imports in bundestag.apis and bundestag.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.bundestag.api.default_api import DefaultApifrom deutschland.bundestag.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 bundestag
from deutschland.bundestag.apis import *
from deutschland.bundestag.models import *