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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file holidays_ru-0.1.tar.gz.
File metadata
- Download URL: holidays_ru-0.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43f3b250f4a7d5037d8a10dba9baa74a8e761ef9e8dc3cf6e76400aceab29aef
|
|
| MD5 |
62bea23b3268d15a40ea173f7560c180
|
|
| BLAKE2b-256 |
183a10e2af74c0e934e1e2b22d59605f30b8853b278040f3d28821dc62dbf9f9
|
File details
Details for the file holidays_ru-0.1-py3-none-any.whl.
File metadata
- Download URL: holidays_ru-0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
349adfbb468d359a645244d40638b0e4dcc0888ae570242e657127ae4849c840
|
|
| MD5 |
105d20f420e65af8fa47ac87410b1e87
|
|
| BLAKE2b-256 |
6059f6c9552fe4dfb5c3d9be3a9d7ca57f6ed6c32c2c89fc44187b9fbad13c25
|