module that can transform .txt files to .csv or .ics(ical) calendars
- python
3.0+
- pip
9.0+
To install packages run:
$ pip install abc json re os json csv datetime
$ python main.py
.
├── results # .ics and .csv files
├── source # .txt source files
└── main.py # file with method implementation
There are some docs how to write icalc files.
After you've jenerated .ics or .csv file use theese instructions to sync new calendar with gmail account
There are some examples of implementation:
- prepate
input.txt
file with data in this format:
name;date
Петя;01.05
Вася;02.05
-
save it as Unicode plain text in the source directory.
-
Add this code to main.py
page = Page('family.txt')
page.read();
page.save(type='csv');
page.save(type='ics');
- run in the command line
$ python main.py
- browse results directory
MIT