Package: de-bundestag-lobbyregister
bundestag-lobbyregisterNo description provided (generated by Openapi Generatorhttps://github.com/openapitools/openapi-generator)This Python package is automatically generated by theOpenAPI Generatorproject:API version: 1.3Package version: 0.1.0Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python >= 3.6Installation & Usagepip installpipinstalldeutschland[bundestag_lobbyregister]poetry installpoetryadddeutschland-Ebundestag_lobbyregisterSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)UsageImport the package:fromdeutschlandimportbundestag_lobbyregisterGetting StartedPlease follow theinstallation procedureand then run the following:importtimefromdeutschlandimportbundestag_lobbyregisterfrompprintimportpprintfromdeutschland.bundestag_lobbyregister.apiimportdefault_apifromdeutschland.bundestag_lobbyregister.model.detailed_search_resultsimportDetailedSearchResultsfromdeutschland.bundestag_lobbyregister.model.sort_orderimportSortOrder# 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 clientwithbundestag_lobbyregister.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_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 registrationsapi_response=api_instance.suche_detail_json(q=q,sort=sort)pprint(api_response)exceptbundestag_lobbyregister.ApiExceptionase:print("Exception when calling DefaultApi->suche_detail_json:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://www.lobbyregister.bundestag.deClassMethodHTTP requestDescriptionDefaultApisuche_detail_jsonGET/sucheDetailJsonSearch through all registrationsDocumentation For ModelsActivityAddressAddressCountryClientOrganizationDetailedSearchResultsDetailedSearchResultsSearchParametersDonatorDonatorDonationEuroEntryEntryAccountEntryEmployeeCountEntryFinancialExpensesEuroFacetFieldOfInterestLegalFormLegalRepresentativeLegislativeProjectLobbyistIdentityMediaMediaMediaNamedEmployeeNumberRangeSearchResultSortOrderDocumentation For AuthorizationAll endpoints do not require authorization.Authorkontakt@bund.devNotes for Large OpenAPI documentsIf 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 DefaultApifrom deutschland.bundestag_lobbyregister.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_lobbyregister
from deutschland.bundestag_lobbyregister.apis import *
from deutschland.bundestag_lobbyregister.models import *