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
- Activity
- Address
- AddressCountry
- ClientOrganization
- DetailedSearchResults
- DetailedSearchResultsSearchParameters
- Donator
- DonatorDonationEuro
- Entry
- EntryAccount
- EntryEmployeeCount
- EntryFinancialExpensesEuro
- Facet
- FieldOfInterest
- LegalForm
- LegalRepresentative
- LegislativeProject
- LobbyistIdentity
- Media
- MediaMedia
- NamedEmployee
- NumberRange
- SearchResult
- SortOrder
Documentation For Authorization
All endpoints do not require authorization.
Author
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for de-bundestag-lobbyregister-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33258de532bae77f3579a09c26fb3543bbad853aa2a3509a5779523d63888065 |
|
MD5 | 4d11c3f83efbd872c52a77fc647fed9c |
|
BLAKE2b-256 | 4f1adf65de9a8666b6a9535e3d2a516c9ee99c207a5a7c03973458473b0b7f14 |
Hashes for de_bundestag_lobbyregister-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e50dc1f0cee94f9f4ef3390704b67100fcc67f32eb37232587684be341cfef5 |
|
MD5 | 30fc64a78f7fd7710ac02abbbc0c00f3 |
|
BLAKE2b-256 | 669c6a2e37041f6df466398c100a48c11bb31520941b280c61fede247b6bb320 |