Skip to main content

Bundestag: Lobbyregister

Project description

bundestag-lobbyregister

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.3
  • Package version: 0.1.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python >= 3.6

Installation & Usage

pip install

pip install deutschland[bundestag_lobbyregister]

poetry install

poetry add deutschland -E bundestag_lobbyregister

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_lobbyregister

Getting Started

Please follow the installation procedure and then run the following:

import time
from deutschland import bundestag_lobbyregister
from pprint import pprint
from deutschland.bundestag_lobbyregister.api import default_api
from deutschland.bundestag_lobbyregister.model.detailed_search_results import DetailedSearchResults
from deutschland.bundestag_lobbyregister.model.sort_order import SortOrder
# Defining the host is optional and defaults to https://www.lobbyregister.bundestag.de
# See configuration.py for a list of all supported configuration parameters.
configuration = bundestag_lobbyregister.Configuration(
    host = "https://www.lobbyregister.bundestag.de"
)



# Enter a context with an instance of the API client
with bundestag_lobbyregister.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = default_api.DefaultApi(api_client)
    q = "q_example" # str | The text to search for. Will search in all text fields.  Leave empty to retrieve all registrations (optional)
sort = SortOrder("REGISTRATION_DESC") # SortOrder |  (optional)

    try:
        # Search through all registrations
        api_response = api_instance.suche_detail_json(q=q, sort=sort)
        pprint(api_response)
    except bundestag_lobbyregister.ApiException as e:
        print("Exception when calling DefaultApi->suche_detail_json: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
DefaultApi suche_detail_json GET /sucheDetailJson Search through all registrations

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_lobbyregister.apis and bundestag_lobbyregister.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_lobbyregister.api.default_api import DefaultApi
  • from deutschland.bundestag_lobbyregister.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_lobbyregister
from deutschland.bundestag_lobbyregister.apis import *
from deutschland.bundestag_lobbyregister.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-lobbyregister-0.1.0.tar.gz (53.0 kB view hashes)

Uploaded Source

Built Distribution

de_bundestag_lobbyregister-0.1.0-py3-none-any.whl (110.0 kB view hashes)

Uploaded Python 3

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