Skip to main content

Módulo de utilidades para festivos en Colombia

Project description

holidays_co

Portado a módulo de Python desde colombia-holidays

Días festivos no laborables en Colombia. Calculados con base en la ley 51 de 1983

Última vez modificado: 2019-06-30
Desde: 2019-06-29
Version: 0.0.2
Autor: Javier Mejía <jmjaviermejiaest@gmail.com>

Instalación

$ pip install holidays_co

Ejemplo

import holidays_co
holidays = holidays_co.get_colombia_holidays_by_year(2019)

o

from holidays_co import get_colombia_holidays_by_year
holidays = get_colombia_holidays_by_year(2019)

Métodos disponibles

  • get_colombia_holidays_by_year(year): Devuelve la lista de festivos no laborables en Colombia para un año

    Input: type(int)
    Output: list(namedtuple("Holiday", ["date", "celebration"]))

  • is_holiday_date(date): Returna True, si la fecha ingresada corresponde a un día festivo, False en caso contrario.
    Input: type(date)
    Output: type(bool)

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

holidays_co-1.0.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

holidays_co-1.0.0-py3-none-any.whl (15.5 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