de-feiertage


Namede-feiertage JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/bundesAPI/feiertage-api
SummaryFeiertage API
upload_time2022-05-21 01:02:23
maintainer
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.1
- 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?
    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 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": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "OpenAPI,OpenAPI-Generator,feiertage,App,API",
    "author": "BundesAPI",
    "author_email": "kontakt@bund.dev",
    "download_url": "https://files.pythonhosted.org/packages/4c/2e/9fe0cdf679cfc75c883a7d246cef1c53c90bc2a97b67d415a90be7ae9f91/de-feiertage-1.0.1.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.1\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?\n    nur_land = \"BW\" # 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, 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.1",
    "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": "2806e90efa88bd8198db9a97a0d410620a9730862957a2f46abe519e26fd067b",
                "md5": "e2802802a2beb329bfd411c128f57384",
                "sha256": "c5b32d7c6439bc5d49e2e96425d3a1afd70519eeabbd72529d006987bd652902"
            },
            "downloads": -1,
            "filename": "de_feiertage-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e2802802a2beb329bfd411c128f57384",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 43006,
            "upload_time": "2022-05-21T01:02:21",
            "upload_time_iso_8601": "2022-05-21T01:02:21.645557Z",
            "url": "https://files.pythonhosted.org/packages/28/06/e90efa88bd8198db9a97a0d410620a9730862957a2f46abe519e26fd067b/de_feiertage-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4c2e9fe0cdf679cfc75c883a7d246cef1c53c90bc2a97b67d415a90be7ae9f91",
                "md5": "8e5aa299d0cf6584878af1fac23a2988",
                "sha256": "68ed32993d5436971073c1803d0641f1942315768a825e828fa029caa27ad8c5"
            },
            "downloads": -1,
            "filename": "de-feiertage-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8e5aa299d0cf6584878af1fac23a2988",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 39418,
            "upload_time": "2022-05-21T01:02:23",
            "upload_time_iso_8601": "2022-05-21T01:02:23.520674Z",
            "url": "https://files.pythonhosted.org/packages/4c/2e/9fe0cdf679cfc75c883a7d246cef1c53c90bc2a97b67d415a90be7ae9f91/de-feiertage-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-05-21 01:02:23",
    "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.07631s