Skip to main content

python-holidays

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).

Metadata

Release files for holidays-ru 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for holidays-ru 0.1
File Size Uploaded Provenance Actions
holidays_ru-0.1.tar.gz 5.7 kB Without provenance Details for holidays_ru-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for holidays-ru 0.1
File Interpreter ABI Platform Actions
holidays_ru-0.1-py3-none-any.whl Python 3 none any Details for holidays_ru-0.1-py3-none-any.whl

Total release size: 9.8 kB

Release files / holidays_ru-0.1.tar.gz

Download URL holidays_ru-0.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
43f3b250f4a7d5037d8a10dba9baa74a8e761ef9e8dc3cf6e76400aceab29aef
BLAKE2b-256 checksum
How to use checksums
183a10e2af74c0e934e1e2b22d59605f30b8853b278040f3d28821dc62dbf9f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / holidays_ru-0.1-py3-none-any.whl

Download URL holidays_ru-0.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
349adfbb468d359a645244d40638b0e4dcc0888ae570242e657127ae4849c840
BLAKE2b-256 checksum
How to use checksums
6059f6c9552fe4dfb5c3d9be3a9d7ca57f6ed6c32c2c89fc44187b9fbad13c25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Security for holidays-ru 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page