بدون توضیح

Fabian Peter Hammerle 076c51560e added tests for _event_vdir_filename 4 سال پیش
ics2vdir 9b6f03f8ca _events_equal: fix key error 4 سال پیش
tests 076c51560e added tests for _event_vdir_filename 4 سال پیش
.gitignore d0ad6d5725 added tests for _datetime_basic_isoformat 4 سال پیش
.pylintrc 32c8ad8b90 added first tests for _event_prop_equal 4 سال پیش
Pipfile 648171b2be ics2vdir: first draft 4 سال پیش
Pipfile.lock 648171b2be ics2vdir: first draft 4 سال پیش
README.md 32c8ad8b90 added first tests for _event_prop_equal 4 سال پیش
setup.py 648171b2be ics2vdir: first draft 4 سال پیش

README.md

ics2vdir

Convert / split single iCalendar .ics file into a vdir directory.

Compatible with khal.

Setup

$ sudo apt-get install python3-icalendar # optional
$ pip3 install --user --upgrade ics2vdir

Usage

$ ics2vdir < input.ics --output-dir /some/path

Or download .ics from Google Calendar:

$ curl https://calendar.google.com/calendar/ical/someone%40gmail.com/private-1234/basic.ics \
    | pipenv run ics2vdir --output-dir output/

Remove files from output directory that are not available in input:

$ ics2vdir < input.ics --output-dir /some/path --delete

Run Tests

$ git clone https://github.com/fphammerle/ics2vdir.git
$ cd ics2vdir
$ pipenv sync --dev
$ pipenv run pylint ics2vdir
$ pipenv run mypy ics2vdir
$ pipenv run pytest --cov=ics2vdir --cov-report=term-missing --cov-fail-under=100