Skip to main content

Bundestag: Live Informationen

Project description

bundestag

Bundestag Informationen API

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[bundestag]

poetry install

poetry add deutschland -E bundestag

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 bundestag

Getting Started

Please follow the installation procedure and then run the following:

import time
from deutschland import bundestag
from pprint import pprint
from deutschland.bundestag.api import default_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 client
with bundestag.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = default_api.DefaultApi(api_client)
    article_id = 849630 # int | ID des Nachrichtenbeitrags

    try:
        # Artikel Details
        api_response = api_instance.blueprint_servlet_content_articleidas_app_v2_newsarticle_xml_get(article_id)
        pprint(api_response)
    except bundestag.ApiException as e:
        print("Exception when calling DefaultApi->blueprint_servlet_content_articleidas_app_v2_newsarticle_xml_get: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
DefaultApi blueprint_servlet_content_articleidas_app_v2_newsarticle_xml_get GET /blueprint/servlet/content/{ARTICLE_ID}/asAppV2NewsarticleXml Artikel Details
DefaultApi iptv_player_macros_xs144277506_bttv_mobile_feed_vod_xml_get GET /iptv/player/macros/_x_s-144277506/bttv/mobile/feed_vod.xml Abruf eines Videos
DefaultApi static_appdata_plenum_v2_conferences_xml_get GET /static/appdata/plenum/v2/conferences.xml Sitzungstag übersicht
DefaultApi static_appdata_plenum_v2_speaker_xml_get GET /static/appdata/plenum/v2/speaker.xml Aktuelle Sprecher*in
DefaultApi xml_v2_ausschuesse_ausschussid_xml_get GET /xml/v2/ausschuesse/{AUSSCHUSS_ID}.xml Übersicht über die Ausschüsse
DefaultApi xml_v2_ausschuesse_index_xml_get GET /xml/v2/ausschuesse/index.xml Übersicht über die Ausschüsse
DefaultApi xml_v2_mdb_biografien_mdbid_xml_get GET /xml/v2/mdb/biografien/{MDB_ID}.xml Abruf Details eines MDBS
DefaultApi xml_v2_mdb_index_xml_get GET /xml/v2/mdb/index.xml Übersicht über alle MDBS

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 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 DefaultApi
  • from deutschland.bundestag.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 bundestag
from deutschland.bundestag.apis import *
from deutschland.bundestag.models import *

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

de-bundestag-0.1.0.tar.gz (39.0 kB view details)

Uploaded Source

Built Distribution

de_bundestag-0.1.0-py3-none-any.whl (41.1 kB view details)

Uploaded Python 3

File details

Details for the file de-bundestag-0.1.0.tar.gz.

File metadata

  • Download URL: de-bundestag-0.1.0.tar.gz
  • Upload date:
  • Size: 39.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.8

File hashes

Hashes for de-bundestag-0.1.0.tar.gz
Algorithm Hash digest
SHA256 86316b951a432ae4224dd1a4c86eebea2ef37a98a9b13582a6f1a370c335f88c
MD5 0ab87c1566b3feba8c4905ca3993e3a4
BLAKE2b-256 637b2bbaa671ba1b8ccbeef457250e4701b54c055daadbeb2cb6a45caefe1f75

See more details on using hashes here.

File details

Details for the file de_bundestag-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: de_bundestag-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 41.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.8

File hashes

Hashes for de_bundestag-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f10145462f471ccbf1ba0948cb8446d1dd8471c4c7d3eb242fd591cbf5943b53
MD5 dd6b8e01cc709f1fa976ec8d6932facd
BLAKE2b-256 db2a24c50f3a7b3e2318162026a6375534b36d1b175b6beaa45cd27950159e8f

See more details on using hashes here.

Supported by

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