Skip to content

module that can transform .txt files to .csv or .ics(ical) calendars

License

Notifications You must be signed in to change notification settings

pustovitDmytro/calendar-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calendar-maker

module that can transform .txt files to .csv or .ics(ical) calendars

Table of Contents

  1. Requirements
  2. Install & Run
  3. Project Structure
  4. Docs
  5. License

Requirements

  • python 3.0+
  • pip 9.0+

Install & Run

To install packages run:

$ pip install abc json re os json csv datetime
$ python main.py

Project Structure

.
├── results                         # .ics and .csv files
├── source                          # .txt source files
└── main.py                         # file with method implementation

Docs

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

Examples Of Use

There are some examples of implementation:

  1. prepate input.txt file with data in this format:
name;date
Петя;01.05
Вася;02.05
  1. save it as Unicode plain text in the source directory.

  2. Add this code to main.py

page = Page('family.txt')
page.read();
page.save(type='csv');
page.save(type='ics');
  1. run in the command line
$ python main.py
  1. browse results directory

License

MIT

About

module that can transform .txt files to .csv or .ics(ical) calendars

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages