de-feiertage


Namede-feiertage JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/bundesAPI/feiertage-api
SummaryFeiertage API
upload_time2024-05-22 12:13:18
maintainerNone
docs_urlNone
authorBundesAPI
requires_python>=3.6
licenseApache-2.0
keywords openapi openapi-generator feiertage app api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.2
- 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 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**](docs/DefaultApi.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 *
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bundesAPI/feiertage-api",
    "name": "de-feiertage",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "OpenAPI, OpenAPI-Generator, feiertage, App, API",
    "author": "BundesAPI",
    "author_email": "kontakt@bund.dev",
    "download_url": "https://files.pythonhosted.org/packages/a8/cc/2b6d861158cbbb3b2d62cfc8c18768048b3670c236c8ebd20a4045f4cfe8/de_feiertage-1.0.2.tar.gz",
    "platform": null,
    "description": "# feiertage\nDeutsche Feiertage per JSON-Webservice (API) \n\nThis Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:\n\n- API version: 1.0.0\n- Package version: 1.0.2\n- Build package: org.openapitools.codegen.languages.PythonClientCodegen\nFor more information, please visit [https://bund.dev](https://bund.dev)\n\n## Requirements.\n\nPython >= 3.6\n\n## Installation & Usage\n### pip install\n\n```sh\npip install deutschland[feiertage]\n```\n\n### poetry install\n\n```sh\npoetry add deutschland -E feiertage\n```\n\n### Setuptools\n\nInstall via [Setuptools](http://pypi.python.org/pypi/setuptools).\n\n```sh\npython setup.py install --user\n```\n(or `sudo python setup.py install` to install the package for all users)\n\n## Usage\n\nImport the package:\n```python\nfrom deutschland import feiertage\n```\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```python\n\nimport time\nfrom deutschland import feiertage\nfrom pprint import pprint\nfrom deutschland.feiertage.api import default_api\n# Defining the host is optional and defaults to https://feiertage-api.de/api\n# See configuration.py for a list of all supported configuration parameters.\nconfiguration = feiertage.Configuration(\n    host = \"https://feiertage-api.de/api\"\n)\n\n\n\n# Enter a context with an instance of the API client\nwith feiertage.ApiClient(configuration) as api_client:\n    # Create an instance of the API class\n    api_instance = default_api.DefaultApi(api_client)\n    jahr = \"2021\" # str | Welches Jahr? (optional)\n    nur_land = \"NATIONAL\" # str | Welches Bundesland? (optional)\n    nur_daten = 1 # int | Nur Daten oder auch Hinweise? (optional)\n\n    try:\n        # Get Feiertage\n        api_response = api_instance.get_feiertage(jahr=jahr, nur_land=nur_land, nur_daten=nur_daten)\n        pprint(api_response)\n    except feiertage.ApiException as e:\n        print(\"Exception when calling DefaultApi->get_feiertage: %s\\n\" % e)\n```\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *https://feiertage-api.de/api*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*DefaultApi* | [**get_feiertage**](docs/DefaultApi.md#get_feiertage) | **GET** / | Get Feiertage\n\n\n## Documentation For Models\n\n - [Feiertag](docs/Feiertag.md)\n\n\n## Documentation For Authorization\n\n All endpoints do not require authorization.\n\n## Author\n\nkontakt@bund.dev\n\n\n## Notes for Large OpenAPI documents\nIf the OpenAPI document is large, imports in feiertage.apis and feiertage.models may fail with a\nRecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:\n\nSolution 1:\nUse specific imports for apis and models like:\n- `from deutschland.feiertage.api.default_api import DefaultApi`\n- `from deutschland.feiertage.model.pet import Pet`\n\nSolution 2:\nBefore importing the package, adjust the maximum recursion limit as shown below:\n```\nimport sys\nsys.setrecursionlimit(1500)\nfrom deutschland import feiertage\nfrom deutschland.feiertage.apis import *\nfrom deutschland.feiertage.models import *\n```\n\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Feiertage API",
    "version": "1.0.2",
    "project_urls": {
        "Bug Tracker": "https://github.com/bundesAPI/feiertage-api/issues",
        "Homepage": "https://github.com/bundesAPI/feiertage-api"
    },
    "split_keywords": [
        "openapi",
        " openapi-generator",
        " feiertage",
        " app",
        " api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cd96e1d072dc50dbd0f8923edbb5ccaac0ef8c1e35715fe2d8832d10412f43ab",
                "md5": "6d9d900564e7c043220fe7df6201c78c",
                "sha256": "20be58d72bcc7892fe849cad21d734a268b70e817d3f29b2e0fa458c1e196a87"
            },
            "downloads": -1,
            "filename": "de_feiertage-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6d9d900564e7c043220fe7df6201c78c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 43038,
            "upload_time": "2024-05-22T12:13:16",
            "upload_time_iso_8601": "2024-05-22T12:13:16.438562Z",
            "url": "https://files.pythonhosted.org/packages/cd/96/e1d072dc50dbd0f8923edbb5ccaac0ef8c1e35715fe2d8832d10412f43ab/de_feiertage-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a8cc2b6d861158cbbb3b2d62cfc8c18768048b3670c236c8ebd20a4045f4cfe8",
                "md5": "9b3c926ac361e968deb1a39ca85672e3",
                "sha256": "5b7b79f3decae32a2a8ca9f327e91742652b6161dc5704d71f02791e989fa03b"
            },
            "downloads": -1,
            "filename": "de_feiertage-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "9b3c926ac361e968deb1a39ca85672e3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 38837,
            "upload_time": "2024-05-22T12:13:18",
            "upload_time_iso_8601": "2024-05-22T12:13:18.197612Z",
            "url": "https://files.pythonhosted.org/packages/a8/cc/2b6d861158cbbb3b2d62cfc8c18768048b3670c236c8ebd20a4045f4cfe8/de_feiertage-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-22 12:13:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bundesAPI",
    "github_project": "feiertage-api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "de-feiertage"
}
        
Elapsed time: 0.32240s