Generate and work with holidays Russia in Python
Project description
A fast, efficient Python library for Russia country, province and state specific sets of holidays on the fly. It aims to make determining whether a specific date is a holiday as fast and flexible as possible.
Install
The latest stable version can always be installed or updated via pip:
$ pip install --upgrade holidays-ru
Documentation
View Quick Start. You can use original library from other country and other functional https://python-holidays.readthedocs.io/
Quick Start
from datetime import date
from holidays_ru import check_holidays, is_holidays
check_holiday(date(2023, 1, 1)) # True
check_holiday(date(2023, 1, 12)) # False
check_holiday(date(2022, 12, 31)) # True
check_holiday(date(2022, 12, 31), with_weekends=False) # False, it's Sunday
is_holiday(date(2023, 1, 1)) # "New Year's Day"
is_holiday(date(2023, 1, 12)) # ""
is_holiday(date(2023, 1, 15)) # "Weekend"
is_holiday(date(2023, 1, 15)) # "Moved weekend"
is_holiday(date(2023, 1, 12)) # "", it's work Sunday
Contributions
Issues and pull requests are always welcome. Please see here for more information.
License
Code and documentation are available according to the MIT License (see LICENSE).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
holidays_ru-0.1.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for holidays_ru-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 349adfbb468d359a645244d40638b0e4dcc0888ae570242e657127ae4849c840 |
|
MD5 | 105d20f420e65af8fa47ac87410b1e87 |
|
BLAKE2b-256 | 6059f6c9552fe4dfb5c3d9be3a9d7ca57f6ed6c32c2c89fc44187b9fbad13c25 |