HTMLCalendar

Description

HTMLCalendar generates one- and twelve-month calendars in HTML format with optional links.

Installation

Download the latest .tar.gz source release from the Python Package Index and follow the instructions in its README file.

Example

Generate a calendar for May 2004 adding links for days 1, 2, 3, 12 and 27:

import HTMLCalendar

month = 5
year = 2004
links = {1:'#day1', 2:'#day2', 3:'#day3', 12:'#day12', 27:'#day27'}

print HTMLCalendar.MonthCal().render(year, month, links)

Result:

May
S M T W T F S
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31