Aim python library master (3) workalendar

[Library description]

Find holidays in different countries.

【program】

Let's get the 2016 Japanese holidays.

workalendar.py


# -*- coding: utf-8 -*-

from workalendar.asia import Japan

cal = Japan()

for i in xrange(len(cal.holidays(2016))):
    print cal.holidays(2016)[i]

【result】

(datetime.date(2016, 1, 1), 'New year') (datetime.date(2016, 1, 11), 'Coming of Age Day') (datetime.date(2016, 2, 11), 'Foundation Day') (datetime.date(2016, 3, 20), 'Vernal Equinox Day') (datetime.date(2016, 4, 29), 'Showa Day') (datetime.date(2016, 5, 3), 'Constitution Memorial Day') (datetime.date(2016, 5, 4), 'Greenery Day') (datetime.date(2016, 5, 5), "Children's Day") (datetime.date(2016, 7, 18), 'Marine Day') (datetime.date(2016, 9, 19), 'Respect-for-the-Aged Day') (datetime.date(2016, 9, 22), 'Autumnal Equinox Day') (datetime.date(2016, 10, 10), 'Health and Sports Day') (datetime.date(2016, 11, 3), 'Culture Day') (datetime.date(2016, 11, 23), 'Labour Thanksgiving Day') (datetime.date(2016, 12, 23), "The Emperor's Birthday")

March 21st was a transfer holiday this year, but it is not included in the results (> _ <)

[Impression]

I want you to support the acquisition of holidays in all countries.

[Reference site]

workalendar  github

Recommended Posts

Aim python library master (3) workalendar
Aim python library master (48) autopep8
Aim python library master (36) json2html
Aim python library master (49) psidialogs
Aim python library master (26) easyxml
Aim python library master (29) table_printer
Aim python library master (55) namespaces
Aim python library master (46) browserplus
Aim python library master (30) chronyk
Aim python library master (42) speedrecorder
Aim python library master (37) slimurl
Aim python library master (44) pynetviz
Aim python library master (8) rolex
Aim python library master (52) marktime
Aim python library master (7) numparser
Aim python library master (21) hy
Aim python library master (18) requests
Aim python library master (13) easydev
Aim python library master (20) pyyaml
Aim python library master (34) concurrent
Aim python library master (40) wordsegmentation
Aim python library master (43) cpmoptimize
Aim python library master (68) pazudorasolver
Aim python library master (58) faker
Aim python library master (11) nlist
Aim python library master (38) beautiful_print
Aim python library master (65) geopy
Aim python library master (2) vincenty
Aim python library master (59) logbook
Aim python library master (51) pyautogui
Aim python library master (10) timeit
Aim python library master (0) Links
Aim python library master (66) youtube-dl
Aim python library master (53) psutil
Aim python library master (22) htmltag
Aim python library master (67) httpie
Aim python library master (45) xlsxwriter
Aim python library master (9) WebHelpers
Aim python library master (32) sql
Aim python library master (60) colourettu
Aim python library master (64) pretty_cron
Aim python library master (56) colorthief
Aim python library master (61) nested-lookup
Aim python library master (17) rangeparser
Aim python library master (47) deckor
Aim python library master (25) orderedset
Aim python library master (62) glances
Aim python library master (12) excel
Aim python library master (24) combi
Aim python library master (63) easygui
Aim python library master (19) riemann
Aim python library master (39) goless
Aim python library master (54) tqdm
Aim python library master (16) byteplay
Aim python library master (23) memory_utils
Aim python library master (27) benchit
Aim python library master (35) pywildcard
Aim python library master (14) pyknon
Aim python library master (15) brute
Aim python library master (50) xlwings
Aim python library master (31) adipy