icalendar.parser_tools module#
- icalendar.parser_tools.data_encode(data: str | bytes | dict | list, encoding='utf-8') bytes | List[bytes] | dict [source]#
Encode all datastructures to the given encoding. Currently unicode strings, dicts and lists are supported.