Fabian Peter Hammerle 076c51560e added tests for _event_vdir_filename | il y a 4 ans | |
---|---|---|
ics2vdir | il y a 4 ans | |
tests | il y a 4 ans | |
.gitignore | il y a 4 ans | |
.pylintrc | il y a 4 ans | |
Pipfile | il y a 4 ans | |
Pipfile.lock | il y a 4 ans | |
README.md | il y a 4 ans | |
setup.py | il y a 4 ans |
Convert / split single iCalendar
.ics
file into a
vdir directory.
Compatible with khal.
$ sudo apt-get install python3-icalendar # optional
$ pip3 install --user --upgrade ics2vdir
$ 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
$ 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