Fabian Peter Hammerle 4ede518438 ci: lint tests | 4 rokov pred | |
---|---|---|
.github | 4 rokov pred | |
ical2vdir | 4 rokov pred | |
tests | 4 rokov pred | |
.gitignore | 4 rokov pred | |
.pylintrc | 4 rokov pred | |
COPYING | 4 rokov pred | |
Pipfile | 4 rokov pred | |
Pipfile.lock | 4 rokov pred | |
README.md | 4 rokov pred | |
setup.py | 4 rokov pred |
Convert / split single iCalendar
.ics
file into a
vdir directory.
Compatible with khal.
$ sudo apt-get install python3-icalendar # optional
$ pip3 install --user --upgrade ical2vdir
$ 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
$ 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