mencal2: a menstruation calendar

Description

Displays one or more months of calendars with PMS and menstruation info. A Python version of mencal that fixes several bugs I encountered while using it. Mencal2 is able to use existing .mencalrc files, or allows for a newer mencal2rc format with greater flexibility for adding multiple people.

Usage:

mencal2.py [options] [NAME1 [NAME2 [...]]] [MONTH [YEAR]]

NAME is a case-insensitive name given on the command line or specified in either the ~/.mencalrc or ~/.mencal2rc

color is one of:
black, red, green, yellow, blue, magenta, cyan, white, brightblack, brightred, brightgreen, brightyellow, brightblue, brightmagenta, brightcyan, brightwhite

Options:

--version
show program's version number and exit
-h, --help
show this help message and exit
-q, --quiet
no top information will be printed
-v, --verbose
increase verbosity
-1
show current month (default)
-3
show previous, current, and next month
-y YEAR, --year=YEAR
show the entire year
-n, --nocolor
don't color the results
-i COLOR, --icolor=COLOR, --intersection=COLOR, --intersection-color=COLOR
the color used to display the intersection of multiple days

.mencalrc format

The original mencal format. For details, see the linked site and the man-pages for mencal.


start 20080403
length 27
duration 6

.mencal2rc format

Follows a more standard .INI format, with each person as their own situation.


# set the default color for intersections between people
icolor green
[Mary]
# how many days of PMS (default 5)
pms 4
# some arbitrary date on which menstruation started
start 20080401
# number of days from start-to-start (default 28)
length 29
# number of days menstruation lasts (default 7)
duration 6
# the color to use for menstruation days (default brightred)
color brightgreen

[Jane]
pms 6
start 20080403
length 27
duration 6

Download

mencal2.py (©2008 Tim Chase, available under GPLv2)

Last modified: $Date: 2008/11/29 20:35:47 $