Tidak Ada Deskripsi

Fabian Peter Hammerle b64dab7cb3 tests: added license headers 4 tahun lalu
ics2vdir 9b6f03f8ca _events_equal: fix key error 4 tahun lalu
tests b64dab7cb3 tests: added license headers 4 tahun lalu
.gitignore d0ad6d5725 added tests for _datetime_basic_isoformat 4 tahun lalu
.pylintrc 32c8ad8b90 added first tests for _event_prop_equal 4 tahun lalu
Pipfile 648171b2be ics2vdir: first draft 4 tahun lalu
Pipfile.lock 648171b2be ics2vdir: first draft 4 tahun lalu
README.md 32c8ad8b90 added first tests for _event_prop_equal 4 tahun lalu
setup.py 648171b2be ics2vdir: first draft 4 tahun lalu

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