feiertage
Deutsche Feiertage per JSON-Webservice (API)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 1.0.2
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://bund.dev
Requirements.
Python >= 3.6
Installation & Usage
pip install
pip install deutschland[feiertage]
poetry install
poetry add deutschland -E feiertage
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 feiertage
Getting Started
Please follow the installation procedure and then run the following:
import time
from deutschland import feiertage
from pprint import pprint
from deutschland.feiertage.api import default_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 = default_api.DefaultApi(api_client)
jahr = "2021" # str | Welches Jahr? (optional)
nur_land = "NATIONAL" # str | Welches Bundesland? (optional)
nur_daten = 1 # int | Nur Daten oder auch Hinweise? (optional)
try:
# Get Feiertage
api_response = api_instance.get_feiertage(jahr=jahr, nur_land=nur_land, nur_daten=nur_daten)
pprint(api_response)
except feiertage.ApiException as e:
print("Exception when calling DefaultApi->get_feiertage: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://feiertage-api.de/api
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | get_feiertage | GET / | Get Feiertage |
Documentation For Models
Documentation For Authorization
All endpoints do not require authorization.
Author
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 DefaultApifrom 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 *
Metadata
Release files for de-feiertage 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| de_feiertage-1.0.2.tar.gz | 38.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| de_feiertage-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 81.9 kB
Release files / de_feiertage-1.0.2.tar.gz
| Download URL | de_feiertage-1.0.2.tar.gz |
|---|---|
| Size | 38.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b7b79f3decae32a2a8ca9f327e91742652b6161dc5704d71f02791e989fa03b
|
|
BLAKE2b-256 checksum How to use checksums |
a8cc2b6d861158cbbb3b2d62cfc8c18768048b3670c236c8ebd20a4045f4cfe8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.1
|
Release files / de_feiertage-1.0.2-py3-none-any.whl
| Download URL | de_feiertage-1.0.2-py3-none-any.whl |
|---|---|
| Size | 43.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20be58d72bcc7892fe849cad21d734a268b70e817d3f29b2e0fa458c1e196a87
|
|
BLAKE2b-256 checksum How to use checksums |
cd96e1d072dc50dbd0f8923edbb5ccaac0ef8c1e35715fe2d8832d10412f43ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.1
|