Metadata-Version: 2.1
Name: de-bundeshaushalt
Version: 1.0.0
Summary: Bundeshaushalt API
Home-page: https://github.com/bundesAPI/&lt;REPO&gt;
License: Apache-2.0
Keywords: OpenAPI,OpenAPI-Generator,bundeshaushalt,App,API
Author: BundesAPI
Author-email: kontakt@bund.dev
Requires-Python: >=3.6
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: python-dateutil
Requires-Dist: urllib3 (>=1.25.3)
Project-URL: Bug Tracker, https://github.com/bundesAPI/&lt;REPO&gt;/issues
Description-Content-Type: text/markdown

# 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.<br>

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) 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](https://github.com/anetz89/bundeshaushalt-api)

## Requirements.

Python >= 3.6

## Installation & Usage
### pip install

```sh
pip install deutschland[bundeshaushalt]
```

### poetry install

```sh
poetry add deutschland -E bundeshaushalt
```

### Setuptools

Install via [Setuptools](http://pypi.python.org/pypi/setuptools).

```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)

## Usage

Import the package:
```python
from deutschland import bundeshaushalt
```

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```python

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**](docs/BudgetDataApi.md#budget_data) | **GET** /internalapi/budgetData | Anfrage von Budgetdaten des Bundeshaushalts.


## Documentation For Models

 - [BadRequest](docs/BadRequest.md)
 - [BudgetDataResponse](docs/BudgetDataResponse.md)
 - [BudgetDataResponseMeta](docs/BudgetDataResponseMeta.md)
 - [BudgetDataResponseRelated](docs/BudgetDataResponseRelated.md)
 - [BudgetElement](docs/BudgetElement.md)
 - [LabeledElement](docs/LabeledElement.md)


## 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 *
```


