Fabian Peter Hammerle 076c51560e added tests for _event_vdir_filename | 4 سال پیش | |
---|---|---|
ics2vdir | 4 سال پیش | |
tests | 4 سال پیش | |
.gitignore | 4 سال پیش | |
.pylintrc | 4 سال پیش | |
Pipfile | 4 سال پیش | |
Pipfile.lock | 4 سال پیش | |
README.md | 4 سال پیش | |
setup.py | 4 سال پیش |
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