Skip to main content

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:

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

Documentation For Authorization

All endpoints do not require authorization.

Author

anetz@gmx.net

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 DefaultApi
  • from 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)

Source distribution for de-bundeshaushalt 1.0.0
File Size Uploaded
de-bundeshaushalt-1.0.0.tar.gz 43.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for de-bundeshaushalt 1.0.0
File Interpreter ABI Platform
de_bundeshaushalt-1.0.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page