Metadata-Version: 2.1
Name: feiertage-de
Version: 0.1.2
Author-email: Michael Hohenstein <michael@hohenste.in>
Project-URL: Homepage, https://github.com/MitchiLaser/python-feiertage
Project-URL: Repository, https://github.com/MitchiLaser/python-feiertage
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Natural Language :: German
Classifier: Topic :: Office/Business
Classifier: Topic :: Office/Business :: Scheduling
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Requires-Python: >=3.7
Description-Content-Type: text/x-rst
License-File: LICENSE

Feiertage
=========

This python package provides an easy access to the list of German national holidays for each federal state.

.. code-block:: python

  >>> 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:

.. code-block:: bash

  $ pip install feiertage-de

Further information can be seen at the `PyPi project page <https://pypi.org/project/feiertage-de/>`_ or at `feiertage-de.readthedocs.io <https://feiertage-de.readthedocs.io/en/latest/index.html>`_
