Skip to main content

A Python library for Dominican Republic holidays, ported from ErredeHolidays.Net

Project description

ErredeHolidays (Python)

A Python library for calculating Dominican Republic holidays, ported from ErredeHolidays.Net.

Installation

pip install errede-holidays

Usage

from errede_holidays import Holiday, HolidayIdentity
from datetime import date

# Get all holidays for a year
holidays_2026 = Holiday.get_all(2026)
for h in holidays_2026:
    print(f"{h.effective_date}: {h.description}")

# Check if a specific date is a holiday
from errede_holidays.holiday import is_holiday
today = date.today()
if is_holiday(today):
    print("Today is a holiday!")

Features

  • Calculates movable holidays according to Dominican Law 139-97.
  • Supports historical and future dates.

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

errede_holidays-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

errede_holidays-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file errede_holidays-0.1.1.tar.gz.

File metadata

  • Download URL: errede_holidays-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for errede_holidays-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bd949688a11ac8168f48c9f6ebea692337f206b08aa6ce1330ffd85fd13f4420
MD5 518c53d2c231e36e89c0b0c09052468b
BLAKE2b-256 8a41f3bc02aaab01977868cab1a6c5df3727b51f70bc302b4af5f0ca0f9d471c

See more details on using hashes here.

File details

Details for the file errede_holidays-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for errede_holidays-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ed635df8d9373e5a8c7c3ebd90c6ee420e2bd814b3872a9fcf37da597ad25ab
MD5 1d7b49fdecba8364093d0f1d81672856
BLAKE2b-256 24d962be6eaec52c164d55772448763f6efb54665b8e27539a73036cb2a79726

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page