Skip to main content

Bundestag: Dokumentations- und Informationssystem für Parlamentsmaterialien

Project description

dip-bundestag

DIP Bundestag 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[dip_bundestag]

poetry install

poetry add deutschland -E dip_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 dip_bundestag

Getting Started

Please follow the installation procedure and then run the following:

import time
from deutschland import dip_bundestag
from pprint import pprint
from deutschland.dip_bundestag.api import default_api
# Defining the host is optional and defaults to https://search.dip.bundestag.de/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = dip_bundestag.Configuration(
    host = "https://search.dip.bundestag.de/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'


# Enter a context with an instance of the API client
with dip_bundestag.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = default_api.DefaultApi(api_client)

    try:
        # Liste aller Aktivitäten
        api_response = api_instance.aktivitaet_get()
        pprint(api_response)
    except dip_bundestag.ApiException as e:
        print("Exception when calling DefaultApi->aktivitaet_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://search.dip.bundestag.de/api/v1

Class Method HTTP request Description
DefaultApi aktivitaet_get GET /aktivitaet/ Liste aller Aktivitäten
DefaultApi aktivitaet_id_get GET /aktivitaet/{id} Metadaten zu Aktivitäten
DefaultApi drucksache_get GET /drucksache/ Liste aller Drucksachen
DefaultApi drucksache_id_get GET /drucksache/{id} Metadaten zu Drucksachen
DefaultApi drucksache_text_get GET /drucksache-text/ Liste aller Volltexte der Drucksachen
DefaultApi drucksache_text_id_get GET /drucksache-text/{id} Soweit vorhanden werden zusätzlich die Volltexte der Drucksachen ausgegeben
DefaultApi person_get GET /person/ Liste aller Personenstammdaten
DefaultApi person_id_get GET /person/{id} Personenstammdaten
DefaultApi plenarprotokoll_get GET /plenarprotokoll/ Liste aller Plenarprotokolle
DefaultApi plenarprotokoll_id_get GET /plenarprotokoll/{id} Metadaten zu Plenarprotokollen
DefaultApi plenarprotokoll_text_get GET /plenarprotokoll-text/ Liste aller Volltexte der Plenarprotokolle
DefaultApi plenarprotokoll_text_id_get GET /plenarprotokoll-text/{id} Soweit vorhanden werden zusätzlich die Volltexte der Plenarprotokolle ausgegeben
DefaultApi vorgang_get GET /vorgang/ Liste aller Vorgänge
DefaultApi vorgang_id_get GET /vorgang/{id} Metadaten zu Vorgängen
DefaultApi vorgangsposition_get GET /vorgangsposition/ Liste aller Vorgangspositionen
DefaultApi vorgangsposition_id_get GET /vorgangsposition/{id} Metadaten zu Vorgangspositionen

Documentation For Models

Documentation For Authorization

ApiKeyAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

kontakt@bund.dev

Notes for Large OpenAPI documents

If the OpenAPI document is large, imports in dip_bundestag.apis and dip_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.dip_bundestag.api.default_api import DefaultApi
  • from deutschland.dip_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 dip_bundestag
from deutschland.dip_bundestag.apis import *
from deutschland.dip_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-dip-bundestag-0.1.0.tar.gz (40.4 kB view details)

Uploaded Source

Built Distribution

de_dip_bundestag-0.1.0-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for de-dip-bundestag-0.1.0.tar.gz
Algorithm Hash digest
SHA256 edb1a033a42f1c3809db1c56fa5db8e53d4ab35d937607939e5db8fc1c893687
MD5 02986c6a5bda45a73f8b6d2ee7030458
BLAKE2b-256 5ccd64d3b1349e70bf51acd3a55054a579b1e78e3d5e68390bd6a46b27bef7f2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for de_dip_bundestag-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81ffefe1974a3109ecc25f4070e01067bdced67446b9f2fc1435aeb484976a39
MD5 e51997e8b1b4dc8b07e3831a9a14499b
BLAKE2b-256 8ffc63fab7fe8c53fa1fbac81f91d52997d345ad87abfd45df22ac3bbc2b7c5a

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