Skip to main content

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 Read the Docs

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.5.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

feiertage_de-0.1.5-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file feiertage-de-0.1.5.tar.gz.

File metadata

  • Download URL: feiertage-de-0.1.5.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for feiertage-de-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ef6c55a1744e46504e5e4ccc4392e0275def09fe1e52150a3aa28089b5e3d047
MD5 bc8f8a1b29790929d2d940970c956630
BLAKE2b-256 95b86744400996774c36d72152bdeab33c7f67511e2ce731a64c8ffc23ae2904

See more details on using hashes here.

File details

Details for the file feiertage_de-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for feiertage_de-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 78009b0ec6716a3a60f53e92a681f50ccc905cefbd2c7d46e8e5535226e13fb6
MD5 9e746366877a49bcc3c6355b61435a26
BLAKE2b-256 bb5842f40b1e0d6356d387de1342890384269fe2d007729f2dabefc3f8f441a3

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