Skip to main content

Enhanced add-on for the holidays library offering expanded functionality

Project description

python-holidays-plus

Enhanced add-on for the Python-Holidays library offering expanded functionality

This module adds a couple useful features to the Python holidays modules. For example:

import holidays
import holidays_plus

from datetime import datetime

# holidays, but not the racist one
our_holidays = holidays.US(years=[datetime.now().year])
our_holidays.pop_named("Columbus Day")

# wait, when is Martin Luther King Day this year?
(day,) = our_holidays.get_named("Martin Luther King Jr. Day")
print(f"Martin Luther King Jr. Day is on {day} this year.")

If you have ideas for additional functionality that might be added here, please let me know by opening an issue or sending me a PR here:

https://github.com/samtregar/python-holidays-plus

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

holidays_plus-0.0.2-py3-none-any.whl (6.2 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