A simple Python helper class to determine Italian holidays.
Project description
ItalianHolidays
A simple Python helper class to determine Italian holidays. Easter holidays' calculation will work for dates between 1900-2199.
Install
Using Pip
pip install italian-holidays
Usage
from italian_holidays import italian_holidays
from datetime import datetime
holidays = italian_holidays()
# Passing string
is_holiday = holidays.is_holiday("2024-06-02")
print(is_holiday) # True
# Passing datetime object
day = datetime(2031, 4, 14)
is_holiday = holidays.is_holiday(day)
print(is_holiday) # True
Licence
Source code can be found on github, licenced under MIT.
Developed by Giuseppe Bruno
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
italian-holidays-0.0.2.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for italian_holidays-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d5b3987c5a7531aa3fb434e14fe3cf36c917592a15ab3597ed3586b7f166ab4 |
|
MD5 | 8d9be801ecce51e74b33008a2c4949bd |
|
BLAKE2b-256 | d02b1ea2797c8728accb382260d3856739afe4a529440e1fd858d7f132b22f9c |