Skip to content

Oscarce10/colombiaHolidays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colombiaHolidays

Description

Based on nequibc /colombia-holidays and adapted to use as a python module to return the list of holidays existing on a determined year in Colombia.

It also returns a boolean that indicates if today is a holiday.

Installation

pip install colombiaHolidays

How to use

You can import the package and call each one of the following methods depending on your need. To import the functions import the package this way

from colombiaHolidays import holidays

Then you can run any function by using

holidays.<function_name>

holidays_by_year

Returns a list of holidays existing on a determined year in Colombia between 1970 and 99999, and each holiday has the following structure:

{
    'holiday': '2021-01-01', 
    'celebrationDay': '2021-01-01', 
    'celebration': 'Año Nuevo'
}

is_today_holiday

Returns a boolean (True or False) that indicates whether is this day a holiday or not.

Contact

Oscar Cely - oscarcej@gmail.com

About

Python module to return the list of holidays existing on a determined year in Colombia.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages