No project description provided
Project description
This python package provides an easy access to the list of German national holidays for each federal state.
>>> import feiertage
>>> holidays = feiertage.Holidays("BW", year=2023).holidays
>>> # holidays now contains a list of dictionaries for each holiday with the attribues
>>> # 'date' -> a datetime.date object with the date of the holiday
>>> # 'name'-> a string with the name of the holiday
>>>
>>> # let's print this list beautifully formatted
>>> from pprint import pprint
>>> pprint(holidays)
[{'date': datetime.date(2023, 1, 1), 'name': 'Neujahr'},
{'date': datetime.date(2023, 5, 1), 'name': 'Tag der Arbeit'},
{'date': datetime.date(2023, 10, 3), 'name': 'Tag der deutschen Einheit'},
{'date': datetime.date(2023, 12, 25), 'name': '1. Weihnachstag'},
{'date': datetime.date(2023, 12, 26), 'name': '2. Weihnachstag'},
{'date': datetime.date(2023, 4, 7), 'name': 'Karfreitag'},
{'date': datetime.date(2023, 4, 10), 'name': 'Ostermontag'},
{'date': datetime.date(2023, 5, 18), 'name': 'Christi-Himmelfahrt'},
{'date': datetime.date(2023, 5, 29), 'name': 'Pfingstmontag'},
{'date': datetime.date(2023, 1, 6), 'name': 'Heilige drei Könige'},
{'date': datetime.date(2023, 6, 8), 'name': 'Fronleichnam'},
{'date': datetime.date(2023, 11, 1), 'name': 'Allerheiligen'}]
Installation
This package can be easily installed with pip:
$ pip install feiertage-de
Further information can be seen at the PyPi project page or at feiertage-de.readthedocs.io
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
feiertage-de-0.1.2.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for feiertage_de-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bd8b73855bcb1a55d395dd3dab49f388d0c6c80464f049183f0d7379ba9e15b |
|
MD5 | 80aa514ac3686209b9c862f24328dc2f |
|
BLAKE2b-256 | 80c4ec64c5da30a7526fe513ca62422d26692a4c2da34f54101d9d826b0d76f4 |