I am writing a Python script. My job is to find the last occurrence time from a recurrence rule. iCalendar recurrence rule is input for my Python function. I just need to parse it, find the expiry time of the event & store it in MongoDB. Is there any Python library available which I can use? Recurrence rule will be given in standard format according to RFC https://datatracker.ietf.org/doc/html/rfc5545. So I am expecting somebody has already written code for this.