Dictzip online dating

Rated 4.6/5 based on 723 customer reviews

I prefer to have all my activities in a calendar and used to manually put every time in a course into my calendar.

Today I got a new schedule and thought: I could probably do this using Python.

First we create the calendar object and the continue with looping through our list of dictionaries.

In the loop we create an event and add the information.

Finally, we create a file (‘schedule.ics’), write the calender to the file, and close the file.

cal = Calendar() for row in data: event = Event() event.add('summary', row['Activity']) event.add('dtstart', row['dtstart']) event.add('dtend', row['dtend']) event.add('description', row['Activity']) event.add('location', row['Room']) cal.add_component(event) f = open('course_schedule.ics', 'wb') f.write(cal.to_ical()) f.close() Now we have our i Calendar file (course_schedule.ics) and can load it into our calender software.

This is the starting time and ending time of the event (e.g., a lecture).

dictzip online dating-65

dictzip online dating-44

The post How to use Python to create an i Calendar file from a Word table appeared first on Erik Marsja.

Both Python packages can be installed using pip: In the example code I used a table from a Word document containing 4 columns.

It is a pretty simple example but in the first column store the date, the second the time, third the room (location), and the last the activity of the event (e.g., lecture).

As you can see in the image below your lecture and computer labs will show up.

In this post, we learned how to use Python (python-docx) to extract a schedule from a table in a Word Document (.docx).

Leave a Reply