Skip to main content

Feiertage API

Project description

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

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 *

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

de_feiertage-1.0.2.tar.gz (38.8 kB view details)

Uploaded Source

Built Distribution

de_feiertage-1.0.2-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

Details for the file de_feiertage-1.0.2.tar.gz.

File metadata

  • Download URL: de_feiertage-1.0.2.tar.gz
  • Upload date:
  • Size: 38.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.1

File hashes

Hashes for de_feiertage-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5b7b79f3decae32a2a8ca9f327e91742652b6161dc5704d71f02791e989fa03b
MD5 9b3c926ac361e968deb1a39ca85672e3
BLAKE2b-256 a8cc2b6d861158cbbb3b2d62cfc8c18768048b3670c236c8ebd20a4045f4cfe8

See more details on using hashes here.

File details

Details for the file de_feiertage-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: de_feiertage-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 43.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.1

File hashes

Hashes for de_feiertage-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 20be58d72bcc7892fe849cad21d734a268b70e817d3f29b2e0fa458c1e196a87
MD5 6d9d900564e7c043220fe7df6201c78c
BLAKE2b-256 cd96e1d072dc50dbd0f8923edbb5ccaac0ef8c1e35715fe2d8832d10412f43ab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page