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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file holidays_co-1.0.0.tar.gz
.
File metadata
- Download URL: holidays_co-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16acc097ed96f10b82ca61ec07e1da5e26bbfad8b91d5eed1c668c65ea27e9d3 |
|
MD5 | 157235daea424769f38f9e9e674ec55b |
|
BLAKE2b-256 | df82b86f7e0232bf6771a4378766f75b93da1de37899eedfa1dd3fe251deb563 |
File details
Details for the file holidays_co-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: holidays_co-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7c98008bb0857039e919c4d29588030acb7d64563e8209554202569644b4774 |
|
MD5 | c567d06ec6e917c3cfac436a0de188d0 |
|
BLAKE2b-256 | 4bfc49086c735d7b8bdd3dabdcbc6cd323060cc08d6cd4d601685bcb91bf3081 |