Skip to main content

Recurrence rules for calendar events

Project description

Wadu

Wadu implements recurrence rules for calendar events.

Features

  • sane: the implementation is fairly linear and straightforward, making it easy enough to follow the code paths and make sense of them.
  • compliant: implements the RFC 5545 specification but also with the unambiguous JSCalendar draft from IETF.

Usage

# The 1st Friday of each month, for 10 occurrences.
rule = RecurrenceRule(MONTHLY,
                      on_week_days=(FRIDAY(1),),
                      count=10)
for dttm in rule:
    print(dttm)


# Every other year on January and February, starting on a given date.
rule = RecurrenceRule(YEARLY,
                      interval=2,
                      on_months=(JANUARY, FEBRUARY),
                      count=10)
start = datetime(1997, 3, 10, hour=9)
for dttm in rule.iterate_from(start):
    print(dttm)

Repository

https://github.com/christophercrouzet/wadu

License

Unlicense.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wadu, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size wadu-0.0.1-py2.py3-none-any.whl (12.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size wadu-0.0.1.tar.gz (13.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page