🗓️🗂️ .ICS file parser

by David P

Version 2 (August 7, 2026)

Download (11 downloads)

This parser can read any .ics file and structure its data into a set of arrays and dictionaries.

ICS files are commonly used to import/export data within a calendar.They carry information about events and their parameters.


All properties follow the same format: '{"value": "", "params": {}}'.

Calendar properties (NAME, VERSION, PRODID, etc.) are saved into 'calendar_properties' dictionary.

Example:
{
"VERSION": {
"parameters": {},
"value": "2.0"
},
"NAME": {
"parameters": {},
"value": "My calendar"
}
}


All events are one by one inside 'events' array. Each event (dictionary) has a special 'type' key (mostly VEVENT, but also VTODO, VJOIRNAL, etc.) that specifies the component type. The rest are its properties.

Example:
{
"type": "VEVENT",
"DESCRIPTION": {
"parameters": {},
"value": "Access-A-Ride to 900 Jay St.\, Brooklyn"
},
"DTSTART": {
"parameters": {
"TZID": "Europe/Rome"
},
"value": "20220452T070000"
},
"alarm": {
...
}
}

Events can also include an alarm. If an alarm is present, its properties will be saved under the special 'alarm' key in an event dictionary.



I hope it's not too confusing :)

• Supports all types of components
• Can be easily customized to suit your needs
• Disable logging!

4.0 average rating from 1 reviews

5 stars
0
4 stars
1
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.