暂无描述

Fabian Peter Hammerle e4e068d6bb rename package ics2vdir -> ical2vdir 4 年之前
ical2vdir e4e068d6bb rename package ics2vdir -> ical2vdir 4 年之前
tests e4e068d6bb rename package ics2vdir -> ical2vdir 4 年之前
.gitignore d0ad6d5725 added tests for _datetime_basic_isoformat 4 年之前
.pylintrc 32c8ad8b90 added first tests for _event_prop_equal 4 年之前
COPYING f719ede95e added full license 4 年之前
Pipfile e4e068d6bb rename package ics2vdir -> ical2vdir 4 年之前
Pipfile.lock e4e068d6bb rename package ics2vdir -> ical2vdir 4 年之前
README.md e4e068d6bb rename package ics2vdir -> ical2vdir 4 年之前
setup.py e4e068d6bb rename package ics2vdir -> ical2vdir 4 年之前

README.md

ical2vdir

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 ical2vdir

Usage

$ ical2vdir < 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 ical2vdir --output-dir output/

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

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

Run Tests

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