Skip to main content

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.

Package:
Python supported versions PyPI version Downloads
CD/CI:
https://github.com/xvlady/python-holidays-ru/actions/workflows/python-package.yml/badge.svg https://coveralls.io/repos/github/xvlady/python-holidays-ru/badge.svg?branch=main
Meta:
Code style License

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

This version

0.1

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)

Uploaded Source

Built Distribution

holidays_ru-0.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

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