Metadata-Version: 2.1
Name: de-feiertage
Version: 1.0.0
Summary: Feiertage API
Home-page: https://github.com/bundesAPI/feiertage-api
License: Apache-2.0
Keywords: OpenAPI,OpenAPI-Generator,feiertage,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/feiertage-api/issues
Description-Content-Type: text/markdown

# feiertage
Deutsche Feiertage per JSON-Webservice (API) 

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://bund.dev](https://bund.dev)

## Requirements.

Python >= 3.6

## Installation & Usage
### pip install

```sh
pip install deutschland[feiertage]
```

### poetry install

```sh
poetry add deutschland -E feiertage
```

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

## Getting Started

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

```python

import time
from deutschland import feiertage
from pprint import pprint
from deutschland.feiertage.api from deutschland import feiertage_api
# Defining the host is optional and defaults to https://feiertage-api.de/api
# See configuration.py for a list of all supported configuration parameters.
configuration = feiertage.Configuration(
    host = "https://feiertage-api.de/api"
)



# Enter a context with an instance of the API client
with feiertage.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = feiertage_api.FeiertageApi(api_client)
    jahr = "2021" # str | Welches Jahr?
    nur_land = "BW" # str | Welches Bundesland? (optional)
    nur_daten = 1 # int | Nur Daten oder auch Hinweise? (optional)

    try:
        # Get Feiertage
        api_response = api_instance.get_feiertage(jahr, nur_land=nur_land, nur_daten=nur_daten)
        pprint(api_response)
    except feiertage.ApiException as e:
        print("Exception when calling FeiertageApi->get_feiertage: %s\n" % e)
```

## Documentation for API Endpoints

All URIs are relative to *https://feiertage-api.de/api*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*FeiertageApi* | [**get_feiertage**](docs/FeiertageApi.md#get_feiertage) | **GET** / | Get Feiertage


## Documentation For Models

 - [Feiertag](docs/Feiertag.md)


## Documentation For Authorization

 All endpoints do not require authorization.

## Author

kontakt@bund.dev


## Notes for Large OpenAPI documents
If the OpenAPI document is large, imports in feiertage.apis and feiertage.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.feiertage.api.default_api import DefaultApi`
- `from deutschland.feiertage.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 feiertage
from deutschland.feiertage.apis import *
from deutschland.feiertage.models import *
```


