period and fertility calculator

calculate the next period date and the fertile days

This project appeared by pure chance on my previous week’s todo list. I was studying for the Python Certified Associate Programmer [PCAP] certification and was learning about the calendar package and its modules, functions and all that. I then took a short coffee break and told my girlfriend that I could build her an useful app. She didn’t think twice and started giving me the requirements for this app: it should do this, and that, and you also have to consider this. The rest is history. I spent the next two evenings and the following weekend working on the Python script. Once that was done and over I decided that the best way to make this program easily available to everybody, including my girlfriend, was to make it publicly accesible. For this I asked a dear colleague of mine to assist me in creating a subdomain for my nginx web-server. I then had to learn the basics of Flask in order to rewrite the program as a Flask app, grab a nice CSS template from the guys over at PicoCSS and put together some basic JavaScript for the form data using ChatGPT.

Voilà !

The result is now hosted here Period and Fertility Calendar Calculator and you can also see it in the two screenshots below.

On the left, the input form and the legend. Right, the calendar with emphasis on the period and fertile days.