Simple Python 3 library to download, parse and query iCal sources.
Go to file
Brian Hartvigsen a37ce57d65
Fix reversion of RRULE UNTIL behavior
Prior to 0.1.25, ics files containing events like the following worked normally.  [A change](11dfa8c64c (diff-6659079db1c5e26c4bd075f64b432522644ff3ee3bd4264f2863bd6f69d63e72L287-R405)) in the 11dfa8c64c caused these to break.  This is an ics I'm getting from Google for my scheduled lunches :)

This restores the pre-0.1.25 behavior and continues to pass all tests.

```
BEGIN:VEVENT
SUMMARY:LUNCH
DTSTART;TZID=America/Boise:20210929T130000
DTEND;TZID=America/Boise:20210929T135000
DTSTAMP:20211029T005456Z
UID:not_sure_if_this_uid_is_secret@google.com
SEQUENCE:3
RRULE:FREQ=WEEKLY;UNTIL=20211020;BYDAY=MO,TH,WE;WKST=SU
EXDATE;TZID=America/Boise:20211013T130000
CREATED:20210811T153934Z
DESCRIPTION:
LAST-MODIFIED:20210927T184338Z
LOCATION:
STATUS:CONFIRMED
TRANSP:OPAQUE
X-APPLE-TRAVEL-ADVISORY-BEHAVIOR:AUTOMATIC
BEGIN:VALARM
ACKNOWLEDGED:20210830T185450Z
ACTION:NONE
TRIGGER;VALUE=DATE-TIME:19760401T005545Z
UID:343EB08E-9C4C-4151-92D0-80B351A080B2
X-WR-ALARMUID:343EB08E-9C4C-4151-92D0-80B351A080B2
END:VALARM
END:VEVENT
```
2021-10-30 14:39:44 -06:00
.github/workflows Push on tag, not just on release. 2021-10-21 15:59:31 +02:00
docs ci: only run linting in pre-commit 2021-10-11 19:58:18 +02:00
icalevents Fix reversion of RRULE UNTIL behavior 2021-10-30 14:39:44 -06:00
test [pre-commit.ci] auto fixes from pre-commit.com hooks 2021-10-30 12:04:32 +00:00
.coveragerc [pre-commit.ci] auto fixes from pre-commit.com hooks 2021-10-11 08:03:07 +00:00
.flake8 feat: add black, flake config and pre-commit 2021-10-11 09:49:29 +02:00
.gitignore [pre-commit.ci] auto fixes from pre-commit.com hooks 2021-10-11 08:03:07 +00:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate 2021-10-18 16:54:40 +00:00
.travis.yml
CODE_OF_CONDUCT.md Jazzband: Created local 'CODE_OF_CONDUCT.md' from remote 'CODE_OF_CONDUCT.md' 2021-10-21 14:38:19 +00:00
CONTRIBUTING.md
LICENSE
MANIFEST.in
README.md ci: switch to poetry 2021-10-11 20:22:35 +02:00
main.py ci: only run linting in pre-commit 2021-10-11 19:58:18 +02:00
poetry.lock ci: switch to poetry 2021-10-11 20:22:35 +02:00
pyproject.toml fix: update description for release 2021-10-17 23:50:44 +02:00
setup.cfg
setup.py fix: update description for release 2021-10-17 23:50:44 +02:00
test.py

README.md

iCalEvents

Simple Python 3 library to download, parse and query iCal sources.

Jazzband

Build info

last push: run pytest

master: Run pytest

Documentation

https://icalevents.readthedocs.io/en/latest/

Usage

iCloud:


from icalevents.icalevents import events

es  = events(<iCloud URL>, fix_apple=True)

Google:


from icalevents.icalevents import events

es  = events(<Google Calendar URL>)

Contributing

You will need poetry and pre-commit installed and than run.

pre-commit install

Happy contributing!