bundeshaushalt
Mit unserem Tool „Bundeshaushalt digital“ können Sie sich eine visualisierte Darstellung der Haushaltsdaten der letzten Jahre anzeigen lassen. Sie können sowohl Ausgaben und Einnahmen als auch Soll- und Ist-Werte abrufen und mithilfe des Jahresvergleichs gegenüberstellen. Zudem steht Ihnen eine Vielzahl weiterer Filteroptionen zur Verfügung.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/anetz89/bundeshaushalt-api
Requirements.
Python >= 3.6
Installation & Usage
pip install
pip install deutschland[bundeshaushalt]
poetry install
poetry add deutschland -E bundeshaushalt
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 bundeshaushalt
Getting Started
Please follow the installation procedure and then run the following:
import time
from deutschland import bundeshaushalt
from pprint import pprint
from deutschland.bundeshaushalt.api import budget_data_api
from deutschland.bundeshaushalt.model.bad_request import BadRequest
from deutschland.bundeshaushalt.model.budget_data_response import BudgetDataResponse
# Defining the host is optional and defaults to https://bundeshaushalt.de
# See configuration.py for a list of all supported configuration parameters.
configuration = bundeshaushalt.Configuration(
host = "https://bundeshaushalt.de"
)
# Enter a context with an instance of the API client
with bundeshaushalt.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = budget_data_api.BudgetDataApi(api_client)
year = 2021 # int | Haushaltsjahr
account = "expenses" # str | <b>income</b>: Einnahmen. Die Einnahmen des Bundes setzen sich aus Steuern, sonstigen Einnahmen und Krediten zusammen.<br><b>expenses</b>: Ausgaben. Der größte Teil der Ausgaben wird für Sozialausgaben geleistet. Weitere große Ausgabeposten sind die Ausgabebereiche Verteidigung, Verkehrs- und Nachrichtenwesen und auch Bildung und Forschung.
quota = "actual" # str | <b>target</b>: Sollwerte <i>(default)</i><br><b>actual</b>: Istwerte. (optional)
unit = "function" # str | <b>single</b>: Einzelplan. <i>(default)</i><br><b>function</b>: Funktion.<br><b>group</b>: Gruppe. (optional)
id = "090168301" # str | ID, die sich aus der Budgetnummer ergibt. Die Budgetnummer ist eine numerische Bezeichnung im Rahmen der Gliederung des Haushaltsplans, die sich aus der Einzelplan-, Kapitel und Titelnummer zusammensetzt. Gruppen-IDs starten mit 'G-', Funktions-IDs mit 'F-' (optional)
try:
# Anfrage von Budgetdaten des Bundeshaushalts.
api_response = api_instance.budget_data(year, account, quota=quota, unit=unit, id=id)
pprint(api_response)
except bundeshaushalt.ApiException as e:
print("Exception when calling BudgetDataApi->budget_data: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://bundeshaushalt.de
| Class | Method | HTTP request | Description |
|---|---|---|---|
| BudgetDataApi | budget_data | GET /internalapi/budgetData | Anfrage von Budgetdaten des Bundeshaushalts. |
Documentation For Models
- BadRequest
- BudgetDataResponse
- BudgetDataResponseMeta
- BudgetDataResponseRelated
- BudgetElement
- LabeledElement
Documentation For Authorization
All endpoints do not require authorization.
Author
Notes for Large OpenAPI documents
If the OpenAPI document is large, imports in bundeshaushalt.apis and bundeshaushalt.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.bundeshaushalt.api.default_api import DefaultApifrom deutschland.bundeshaushalt.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 bundeshaushalt
from deutschland.bundeshaushalt.apis import *
from deutschland.bundeshaushalt.models import *
Metadata
Release files for de-bundeshaushalt 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| de-bundeshaushalt-1.0.0.tar.gz | 43.7 kB | Without provenance | Details for de-bundeshaushalt-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| de_bundeshaushalt-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for de_bundeshaushalt-1.0.0-py3-none-any.whl |
Total release size: 104.9 kB
Release files / de-bundeshaushalt-1.0.0.tar.gz
| Download URL | de-bundeshaushalt-1.0.0.tar.gz |
|---|---|
| Size | 43.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
249649132d5962678da9055ed2ccb5d3a6a683ea0133139a7f866991e9b3dd17
|
|
BLAKE2b-256 checksum How to use checksums |
1324e55a3459c77e616cc901f79fb333b79c10d3a10da83cfeecf9201a5d53cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.8
|
Release files / de_bundeshaushalt-1.0.0-py3-none-any.whl
| Download URL | de_bundeshaushalt-1.0.0-py3-none-any.whl |
|---|---|
| Size | 61.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38c85cb03fa416c4f2bfcc290d1291bf4a8a689a7a5cd1f5c5b775ef08aade08
|
|
BLAKE2b-256 checksum How to use checksums |
15163ea696a3e6ad99bda8cd367330f08274a6288217d960db7fdfeb0c64dac2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.8
|
Security for de-bundeshaushalt 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.